@font-face { font-family: "Fredoka"; src: url("../../vendor/fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root { --ink: #fff8f0; --pink: #ff3fa8; --gold: #ffd36a; --bg: #0b0910; --round: "Fredoka", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Apple SD Gothic Neo", Thonburi, "Arial Rounded MT Bold", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; font-family: var(--round); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#c { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }

/* title: the logo is a toy box sticker */
.title { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: calc(34px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom)); pointer-events: none; transition: opacity .7s ease, transform .7s ease; background: linear-gradient(rgba(11,9,16,.55), rgba(11,9,16,0) 26%, rgba(11,9,16,0) 70%, rgba(11,9,16,.7)); }
.title.gone { opacity: 0; transform: translateY(-14px); }
.title.gone .btn { pointer-events: none; }
.title__cta { display: flex; flex-direction: column; gap: 10px; width: min(340px, 100%); pointer-events: auto; }
.logo { margin: 0; font-weight: 700; font-size: clamp(54px, 17vw, 108px); line-height: .86; letter-spacing: -.01em; color: #fff; text-transform: uppercase;
  text-shadow: 0 2px 0 #ffd1ea, 0 4px 0 #ff7cc4, 0 6px 0 #e0258a, 0 8px 0 #a3145f, 0 14px 22px rgba(0,0,0,.55), 0 0 40px rgba(255,63,168,.55); transform: rotate(-3deg); }
:lang(ja) .logo, :lang(ko) .logo { word-break: keep-all; } /* フック・|ゴブリン breaks only at the dot */
.tag { margin: 18px 0 0; font-size: clamp(17px, 4.6vw, 22px); font-weight: 500; color: #f6eaff; text-shadow: 0 2px 12px #000; }

.btn { font: 600 17px/1 var(--round); width: 100%; padding: 16px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(14,10,20,.5); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--main { font-size: 21px; font-weight: 700; padding: 19px 18px; border: 0; color: #2a0b1d; background: linear-gradient(#fff2a8, #ffc23a); box-shadow: 0 -3px 0 rgba(0,0,0,.18) inset, 0 6px 0 #c47a12, 0 14px 34px rgba(255,170,40,.45); }
.btn--main:active { transform: translateY(3px); box-shadow: 0 -3px 0 rgba(0,0,0,.18) inset, 0 3px 0 #c47a12, 0 8px 20px rgba(255,170,40,.4); }
.btn--small { font-size: 14px; padding: 12px 10px; }

/* HUD: the follower counter is the joke; friends sit next to it */
.hud { position: fixed; left: 0; right: 0; top: 0; padding: calc(14px + env(safe-area-inset-top)) 18px 0; display: flex; justify-content: space-between; pointer-events: none; transition: opacity .5s; }
.hud.gone { opacity: 0; }
.stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.stat.r { align-items: flex-end; }
.stat b { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.pop { position: absolute; left: 0; top: 46px; font-style: normal; font-weight: 700; opacity: 0; white-space: nowrap; }
.pop.big { color: #ff5fb8; font-size: 26px; }
.pop.small { color: #b9ffcf; font-size: 16px; }
.pop.on { animation: rise 1.3s ease-out both; }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px) scale(.6) } 15% { opacity: 1; transform: translateY(0) scale(1.15) } 70% { opacity: 1 } 100% { opacity: 0; transform: translateY(-16px) scale(1) } }
.pips { position: absolute; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; gap: 7px; }
.pips i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.pips i.h { box-shadow: 0 0 10px currentColor; }
.pips i.s { box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }

.hint { position: fixed; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 14px; font-weight: 500; opacity: .8; pointer-events: none; transition: opacity .5s; text-shadow: 0 2px 8px #000; }
.hint.gone, .title:not(.gone) ~ .hint { opacity: 0; }

/* captions: hooks shout in yellow caps; stories speak quietly */
.say { position: fixed; left: 16px; right: 16px; top: calc(88px + env(safe-area-inset-top)); text-align: center; pointer-events: none; opacity: 0; transition: opacity .3s; }
.say.on { opacity: 1; }
.say .w { display: inline-block; animation: pop .26s cubic-bezier(.3,1.7,.5,1) both; }
.say.loud { font-weight: 700; font-size: clamp(21px, 6vw, 32px); line-height: 1.12; color: #ffe94a; -webkit-text-stroke: 1.5px #1a0010; paint-order: stroke fill; text-shadow: 0 3px 0 #1a0010, 0 0 22px rgba(255,40,140,.55); }
.say.soft { font-weight: 500; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.3; color: #fff4e2; text-shadow: 0 2px 14px rgba(0,0,0,.85); }
.say.soft .w { animation: fadeup .6s ease both; }
@keyframes pop { from { transform: scale(.3) translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes fadeup { from { transform: translateY(6px); opacity: 0 } to { transform: none; opacity: 1 } }

/* the name at the reveal */
.name { position: fixed; left: 16px; right: 16px; top: calc(70px + env(safe-area-inset-top)); text-align: center; pointer-events: none; }
.name small { display: block; font-size: 15px; letter-spacing: .4em; font-weight: 600; opacity: .8; }
.name b { display: block; margin-top: 6px; font-size: clamp(34px, 10vw, 60px); line-height: 1; font-weight: 700; color: #fff; text-shadow: 0 3px 0 #e0258a, 0 6px 18px rgba(0,0,0,.6), 0 0 30px rgba(255,63,168,.5); }
.name.on b { animation: stamp .55s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes stamp { from { transform: scale(2.4) rotate(-6deg); opacity: 0 } to { transform: none; opacity: 1 } }

.card { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(6,4,10,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadein .6s ease both; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.card__img { display: block; height: min(54vh, 150vw); max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 18px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.18), 0 24px 60px rgba(0,0,0,.6), 0 0 60px rgba(255,63,168,.18); animation: cardin .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cardin { from { transform: translateY(40px) rotate(4deg) scale(.9); opacity: 0 } to { transform: none; opacity: 1 } }
.card__btns { display: flex; flex-direction: column; gap: 9px; width: min(360px, 100%); }
.card__row { display: flex; gap: 9px; }
.toast { position: fixed; top: calc(18px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 15px; letter-spacing: .08em; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25); padding: 10px 18px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.bootfail { position: fixed; inset: auto 16px 40px; text-align: center; background: #000; padding: 14px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .say .w, .name.on b, .card__img, .pop.on { animation: none } }
/* growth kit (11-05): tonight's number on the title; the clip button is a pink outline, never louder than the card */
.night { margin: 10px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 10px #000; }
.night:empty { display: none; }
/* creator night: "Beat @code's 3 real friends" — a pink snack-sticker under the logo */
.creator { margin: 18px auto 0; display: inline-block; max-width: min(340px, 92vw); padding: 11px 20px 12px; border-radius: 22px; background: var(--pink); color: #fff; font-weight: 700; font-size: clamp(19px, 5.4vw, 25px); line-height: 1.15; overflow-wrap: anywhere; box-shadow: 0 4px 0 #a3145f, 0 12px 30px rgba(255,63,168,.5); transform: rotate(-2deg); text-shadow: 0 2px 0 rgba(120,0,60,.35); }
.btn--clip { border-color: var(--pink); color: #ffd1ea; box-shadow: 0 0 22px rgba(255,63,168,.25); }
/* the end card never clips at 390×844: the photo gives up height for each extra button; scroll is the last resort */
.card { overflow-y: auto; justify-content: safe center; }
.card:has(#clipBtn:not([hidden])) .card__img, .card:has(#showdown:not([hidden])) .card__img { height: min(46vh, 150vw); }
.card:has(#clipBtn:not([hidden])):has(#showdown:not([hidden])) .card__img { height: min(39vh, 150vw); }
/* group-chat line (11-09): the quip under the card + "Send to the group chat" with explicit LINE / WhatsApp links.
   The card image gives up the room so the buttons + the real exit still fit a 390x844 phone. */
.tsQuip { margin: -4px 0 0; max-width: 360px; text-align: center; font: 600 14px/1.3 var(--round); color: #ffd1ea; }
.tsRow { display: flex; gap: 6px; }
.tsRow .btn { flex: 1; min-width: 0; padding: 13px 12px; font-size: 16px; border-color: var(--pink); }
.tsLink { flex: 0 0 auto; display: flex; align-items: center; padding: 0 11px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(14,10,20,.5); color: #fff; font: 600 12px/1 var(--round); text-decoration: none; }
.card:has(#tsRow:not([hidden])) { gap: 10px; }
.card:has(#tsRow:not([hidden])) .card__btns { gap: 7px; }
.card:has(#tsRow:not([hidden])) .card__btns > .btn:not(.btn--main) { padding: 12px 18px; }
.card:has(#tsRow:not([hidden])) .btn--main { padding: 15px 18px; }
.card:has(#tsRow:not([hidden])) .card__img { height: min(33vh, 150vw); }
.card:has(#tsRow:not([hidden])):has(#clipBtn:not([hidden])) .card__img, .card:has(#tsRow:not([hidden])):has(#showdown:not([hidden])) .card__img { height: min(27vh, 150vw); }
.card:has(#tsRow:not([hidden])):has(#clipBtn:not([hidden])):has(#showdown:not([hidden])) .card__img { height: min(22vh, 150vw); }
