/* Votello web guest — direction B «Disposable Night» (design/party/B, design/party/tokens.md).
   Fonts: Oswald Bold + Caveat Bold (SIL OFL 1.1, assets/fonts/OFL-*.txt), subset Latin + Latin-ext + Cyrillic.
   Source TTF: design/party/B/fonts/ (iOS uses the same files). */
@font-face { font-family: "VT Display"; src: url("fonts/Oswald-Bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT Marker"; src: url("fonts/Caveat-Bold.woff2") format("woff2"); font-display: swap; }

/* ===== THEME — the single place to restyle (colors, type, shape, motion) ===== */
:root {
  --night: #16112E; --night-2: #251C4A; --print: #FFFDF6; --text2: #CFC8EA;
  --coral: #FF5B4A; --sun: #FFD23F; --mint: #6EF0BE; --violet: #B6A7EF; --stamp: #FF8A1F; --ink: #171C2E;
  --sun-sole: #B8901A; --print-sole: #A9A3C2;
  --err: #FFB2AF; --ok: #6EF0BE; --focus: #FFD23F; --line: rgba(255, 255, 255, .22);
  --font-ui: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "VT Display", Impact, "Arial Narrow Bold", "Roboto Condensed", sans-serif;
  --font-marker: "VT Marker", "Marker Felt", "Comic Sans MS", cursive;
  --r-print: 6px; --r-control: 16px; --r-story: 18px; --r-compact: 12px;
  --t-press: 60ms; --t-ack: 160ms; --t-fade: 140ms; --t-enter: 220ms; --t-reveal: 900ms; --t-reduced: 200ms; --t-fly: 1200ms;
  --react-size: 34px;
  --gutter: 22px;
  color-scheme: dark;
}
@media (max-width: 359px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; scroll-padding-bottom: 120px; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--night); color: var(--print); font: 500 16px/22px var(--font-ui); overflow-x: hidden;
  background-image: radial-gradient(circle at 20% 8%, rgba(182, 167, 239, .18), transparent 40%), radial-gradient(circle at 90% 92%, rgba(255, 91, 74, .14), transparent 45%);
  background-attachment: fixed;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1:focus, .question:focus, .youbig:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { min-height: var(--vvh, 100vh); min-height: var(--vvh, 100dvh); max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; position: relative;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.hdr { position: sticky; top: 0; z-index: 6; min-height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(var(--night) 70%, transparent); }
.brand { font: 400 26px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.brand b { color: var(--coral); margin-left: 3px; font-weight: 400; }
.content { flex: 1; padding: 4px var(--gutter) 24px; position: relative; }
.dock { position: sticky; bottom: 0; z-index: 7; display: grid; gap: 10px; padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--night) 18px); }
body.kb .dock, .phase-recap .dock { position: static; }
.content.enter > * { animation: enter var(--t-enter) cubic-bezier(.16, 1, .3, 1) both; }

/* ---------- type ---------- */
.mega { font: 400 60px/.9 var(--font-display); text-transform: uppercase; letter-spacing: .005em; margin: 10px 0 8px; overflow-wrap: anywhere; }
.mega.sm { font-size: 44px; }
.mega em { font-style: normal; color: var(--sun); }
@media (max-width: 359px) { .mega { font-size: 48px; } .mega.sm { font-size: 36px; } }
.mk { font: 400 22px/1.05 var(--font-marker); color: var(--text2); margin: 6px 0; }
.mk.mint { color: var(--mint); } .mk.muted { color: var(--text2); opacity: .8; } .center { text-align: center; }
.accent-mk { color: var(--coral); transform: rotate(-2deg); display: inline-block; }
.sub { color: var(--text2); margin: 0 0 16px; font-size: 15px; line-height: 20px; }
.micro { font: 800 11px/14px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); margin: 0 0 6px; }
.label { display: block; font: 800 12px/16px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); margin: 18px 0 6px; }
.helper { display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; color: var(--text2); margin: 6px 0 0; min-height: 20px; }
.helper.center { justify-content: center; text-align: center; }
.helper .over { color: var(--err); font-weight: 700; }
.error { color: var(--err); font-size: 14px; line-height: 20px; margin: 8px 0 0; font-weight: 600; }
.muted { color: var(--text2); }
.note { font-size: 14px; line-height: 20px; color: var(--text2); background: rgba(255, 255, 255, .06); border: 1.5px solid var(--line); border-radius: var(--r-compact); padding: 12px; margin: 0 0 4px; }

/* ---------- controls ---------- */
.cta { width: 100%; min-height: 60px; padding: 12px 18px; border: 0; border-radius: var(--r-control); background: var(--sun); color: var(--ink);
  font: 400 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 5px 0 var(--sun-sole);
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform var(--t-press) ease-out, box-shadow var(--t-press) ease-out; }
.cta:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--sun-sole); }
.cta:disabled { opacity: .5; cursor: default; }
.cta.ghost { background: transparent; color: var(--print); box-shadow: none; border: 2px solid rgba(255, 255, 255, .5); min-height: 52px; font-size: 21px; }
.cta.ghost.pending { border-style: dashed; }
.cta.ghost.accepted { border-color: var(--mint); color: var(--mint); }
.cta.danger { background: var(--coral); box-shadow: 0 5px 0 #8C2F27; }
.cta.ig { background: linear-gradient(135deg, var(--sun), var(--coral) 55%, var(--violet)); box-shadow: 0 5px 0 #8C2F27; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-weight: 800; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border-radius: 999px; padding: 6px 14px; font: 800 12px/1 var(--font-ui); letter-spacing: .06em;
  background: rgba(255, 255, 255, .12); color: var(--print); border: 0; text-decoration: none; }
button.chip, a.chip { min-height: 44px; }
.chip.ghost { background: transparent; }
.text-input { width: 100%; min-height: 56px; border-radius: var(--r-control); border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: var(--print);
  padding: 10px 16px; font: 400 26px/1.1 var(--font-marker); }
.text-input[aria-invalid="true"] { border-color: var(--err); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; flex-shrink: 0; animation: spin .9s linear infinite; }
.spin.big { width: 40px; height: 40px; border-width: 3px; color: var(--sun); }
.center-block { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.pin-show { font: 400 46px/1 var(--font-display); letter-spacing: .06em; text-align: center; margin: 12px 0; color: var(--sun); }

/* ---------- wristband (PIN) ---------- */
.band { position: relative; margin: 14px 0 6px; background: var(--coral); color: var(--ink); border-radius: 12px; padding: 12px 18px 12px 24px; transform: rotate(-1.5deg); }
.band::before, .band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10px; background: radial-gradient(circle at 0 50%, var(--night) 6px, transparent 7px) 0 0/10px 16px repeat-y; }
.band::before { left: -2px; } .band::after { right: -2px; transform: scaleX(-1); }
.band small, .band-label { display: block; font: 800 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.band strong { font: 400 46px/1.05 var(--font-display); letter-spacing: .06em; }
.pin-input { width: 100%; border: 0; background: transparent; color: var(--ink); font: 400 52px/1.1 var(--font-display); letter-spacing: .08em; padding: 4px 0 0; font-variant-numeric: tabular-nums; }
.pin-input::placeholder { color: rgba(23, 28, 46, .35); }
.pin-input:focus-visible { outline: none; }
.band:focus-within { box-shadow: 0 0 0 3px var(--sun); }
.pin-input[aria-invalid="true"] { text-decoration: underline wavy var(--ink); }

/* ---------- print (photo with white frame) ---------- */
.print { --tilt: 0deg; margin: 0; background: var(--print); padding: 7px 7px 30px; border-radius: var(--r-print); box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  position: relative; transform: rotate(var(--tilt)); color: var(--ink); display: block; }
.print .ph { position: relative; overflow: hidden; background: var(--night-2); aspect-ratio: 1; display: grid; place-items: center; }
.print .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.print .ph video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.print .cap { position: absolute; left: 9px; right: 8px; bottom: 4px; font: 400 21px/1 var(--font-marker); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.print .cap small { font: 600 11px/1 var(--font-ui); color: #5a5470; }
.print.p-xs { width: 74px; padding: 4px 4px 18px; } .print.p-xs .cap { font-size: 14px; left: 5px; bottom: 2px; }
.print.p-sm { padding: 5px 5px 24px; } .print.p-sm .cap { font-size: 18px; left: 7px; bottom: 3px; }
.print.p-lg { width: min(300px, 82vw); margin: 10px auto 0; padding: 9px 9px 36px; } .print.p-lg .cap { font-size: 26px; bottom: 6px; left: 12px; }
.print.is-off .ph { filter: grayscale(.8) brightness(.6); }
.date, .stampd { font: 700 12px/1 "Courier New", monospace; color: var(--stamp); letter-spacing: 1px; text-shadow: 0 0 4px rgba(255, 138, 31, .7); }
.print .date { position: absolute; right: 10px; bottom: 9px; }
.tape { position: absolute; width: 64px; height: 20px; background: rgba(255, 236, 170, .75); top: -9px; left: 50%; transform: translateX(-50%) rotate(-4deg); z-index: 3; }
.empty-print { border: 0; cursor: pointer; font: inherit; }
.empty-print .ph { background: #2b2250; }
.ring { position: absolute; inset: 14% 18% 16%; border: 3px dashed rgba(255, 255, 255, .8); border-radius: 48%; pointer-events: none; }
.ph-cta { position: relative; z-index: 2; font: 400 26px/1 var(--font-display); text-transform: uppercase; color: var(--print); }
.stk { position: absolute; left: -12px; bottom: 44px; transform: rotate(-12deg); background: var(--coral); color: var(--ink); font: 400 22px/1 var(--font-display); padding: 7px 10px; border-radius: 10px; text-transform: uppercase; z-index: 4; }
.selfie-slot { display: flex; flex-direction: column; align-items: center; margin: 4px 0 10px; }
.selfie-row { display: flex; justify-content: center; gap: 8px; margin: 12px 0 0; }
.shut { display: flex; align-items: center; justify-content: center; gap: 34px; }
.shut-big { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
.shut-big:active:not(:disabled) { transform: scale(.94); }
.shut-big:disabled { opacity: .5; }
.shut-sm { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 22px; border: 0; cursor: pointer; }
.file-cta { cursor: pointer; }
.file-cta:focus-within, .shut-sm:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- states ---------- */
.panel-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 18px; gap: 6px; }
.panel-state .print { margin: 14px auto 6px; width: 180px; }
.state-art { margin-top: 16px; }

/* ---------- banners (S21) ---------- */
.banners { padding: 0 var(--gutter); display: grid; gap: 8px; position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 6; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: var(--r-compact); font-size: 14px; line-height: 20px; font-weight: 600;
  background: rgba(37, 28, 74, .96); border: 1.5px solid var(--line); animation: fade var(--t-fade) linear; }
.banner.warn { border-color: var(--sun); } .banner.err { border-color: var(--coral); } .banner.subtle { font-weight: 400; color: var(--text2); } .banner.info { border-color: var(--violet); }
.banner > span:not(.spin):not(.dot):not(.ico):not(.banner-actions) { flex: 1; min-width: 160px; }
.banner-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; flex-shrink: 0; }
.dot.warn { background: var(--sun); }

/* ---------- avatars a0…a7 (preset; used when a member has no photo) ---------- */
.av { --sz: 48px; width: var(--sz); height: var(--sz); flex-shrink: 0; position: relative; display: inline-block; background: var(--mint); border-radius: 33%; }
.av.s32 { --sz: 32px; } .av.s48 { --sz: 48px; } .av.s64 { --sz: 64px; } .av.s80 { --sz: 80px; }
.print .av { --sz: 64px; } .print.p-lg .av { --sz: 96px; } .print.p-xs .av { --sz: 32px; }
.av::before { content: ""; position: absolute; left: 29%; top: 35%; width: 8%; height: 12.5%; border-radius: 50%; background: var(--ink); box-shadow: calc(var(--sz) * .32) 0 0 var(--ink); }
.av::after { content: ""; position: absolute; left: 37%; top: 56%; width: 26%; height: 14%; border: max(1.5px, calc(var(--sz) * .035)) solid var(--ink); border-top: 0; border-radius: 0 0 999px 999px; }
.av.a1 { background-color: var(--coral); border-radius: 50% 50% 28% 28%; }
.av.a2 { background-color: var(--violet); border-radius: 31% 11% 31% 11%; }
.av.a3 { background-color: var(--sun); border-radius: 50%; }
.av.a4 { background-color: var(--print); border-radius: 33%; box-shadow: inset 0 0 0 2px var(--ink); }
.av.a5 { background-color: var(--mint); border-radius: 50%; box-shadow: inset 0 -10px 0 var(--coral); }
.av.a6 { background-color: var(--sun); border-radius: 18%; clip-path: polygon(0 0, 74% 0, 100% 26%, 100% 100%, 0 100%); }
.av.a7 { background-color: var(--violet); border-radius: 50%; box-shadow: inset 0 8px 0 var(--mint); }
.av.photo { background: var(--night-2); overflow: hidden; clip-path: none; box-shadow: inset 0 0 0 2px var(--print); }
.av.photo::before, .av.photo::after { display: none; }
.av.photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* ---------- lobby ---------- */
.ticket { margin-top: 6px; }
.lobby-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wall { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
@media (max-width: 359px) { .wall { gap: 14px 10px; } }
.hostb, .meb { position: absolute; top: 10px; left: 10px; z-index: 4; background: var(--sun); color: var(--ink); font: 800 10px/1 var(--font-ui); padding: 3px 5px; border-radius: 5px; letter-spacing: .06em; text-transform: uppercase; }
.meb { left: auto; right: 10px; background: var(--violet); }
.readyb { position: absolute; top: -10px; right: -8px; z-index: 5; background: var(--mint); color: var(--ink); font: 400 18px/1 var(--font-display); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; transform: rotate(10deg); }
.dock-status { text-align: center; margin: 0; min-height: 24px; color: var(--text2); }
.dock-status.ok { color: var(--mint); }

/* ---------- voting ---------- */
.phase-vote .hdr { gap: 8px; }
.frames { display: flex; gap: 3px; flex: 1; justify-content: center; flex-wrap: wrap; max-width: 220px; }
.frames i { width: 10px; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.frames i.d { background: var(--sun); } .frames i.n { background: #fff; }
.clock { min-width: 64px; text-align: right; }
.clock-num { font: 400 28px/1 var(--font-display); color: var(--coral); }
.clock.low .clock-num { color: var(--sun); }
.packl { color: var(--coral); transform: rotate(-2deg); display: inline-block; margin: 2px 0 6px; }
.question { font: 400 38px/.98 var(--font-display); text-transform: uppercase; margin: 0 0 14px; overflow-wrap: break-word; }
@media (max-width: 359px) { .question { font-size: 30px; } }
.subject { display: flex; justify-content: center; margin: -4px 0 12px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.choices.n1 { grid-template-columns: 1fr; }
.choice { padding: 0; border: 0; background: none; position: relative; text-align: left; transition: transform var(--t-press) ease-out, filter var(--t-ack) ease-out; }
.choice:active:not(:disabled) { transform: scale(.97); }
.choice:disabled { cursor: default; }
.choice .print { width: 100%; }
.choice.dim .ph { filter: grayscale(.5) brightness(.7); }
.choice.dim .yn-big { opacity: .55; }
.choice.pending .print, .choice.pending .yn-big { outline: 3px dashed var(--print); outline-offset: 4px; }
.choice.was .print { outline: 2px dotted var(--mint); outline-offset: 4px; }
.scrib { position: absolute; inset: -14px -12px 6px -12px; z-index: 5; pointer-events: none; width: calc(100% + 24px); height: calc(100% + 8px); }
.scrib path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 260ms ease-out both; }
.myv { position: absolute; top: -14px; right: -8px; z-index: 6; background: var(--mint); color: var(--ink); font: 400 17px/1 var(--font-display); padding: 6px 9px; border-radius: 9px; transform: rotate(8deg); text-transform: uppercase; }
.myv.pend { background: var(--print); }
.yn-big { display: grid; place-items: center; min-height: 128px; border-radius: var(--r-print); background: var(--print); color: var(--ink); font: 400 52px/1 var(--font-display); text-transform: uppercase; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.yn-big.yes { transform: rotate(-2deg); } .yn-big.no { transform: rotate(2deg); background: var(--violet); }
.vote-status { text-align: center; min-height: 24px; margin: 18px 0 2px; font-size: 15px; font-weight: 700; }
.ok-text { color: var(--mint); } .warn-text { color: var(--err); }
.wait-line { text-align: center; }

/* ---------- result: reveal ---------- */
.phase-result .content { padding-top: 0; }
.phase-result.has-bg { background: #000; }
.rv-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: contrast(1.08) saturate(1.15); z-index: 0; max-width: 480px; margin: 0 auto; }
.has-bg .rv-shade { position: fixed; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(22, 17, 46, .25) 0%, transparent 30%, rgba(22, 17, 46, .92) 68%); box-shadow: inset 0 0 0 12px var(--print); max-width: 480px; margin: 0 auto; pointer-events: none; }
.has-bg .hdr { background: transparent; }
.whiteout { position: fixed; inset: 0; background: #fff; opacity: 0; z-index: 50; pointer-events: none; }
.rv-body { position: relative; z-index: 3; display: flex; flex-direction: column; min-height: calc(var(--vvh, 100dvh) - 240px); justify-content: flex-end; padding-bottom: 6px; }
.scrib.rv-circle { position: fixed; top: 14%; bottom: auto; left: 50%; right: auto; width: 280px; height: 300px; margin-left: -140px; z-index: 2; }
.rv-date { position: fixed; right: calc(var(--gutter) + 6px); top: calc(64px + env(safe-area-inset-top)); z-index: 3; font-size: 15px; }
.youbig { font: 400 96px/.9 var(--font-display); text-transform: uppercase; color: #fff; text-shadow: 5px 5px 0 var(--coral); margin: 8px 0 10px; overflow-wrap: anywhere; }
.youbig.none { color: var(--violet); text-shadow: 4px 4px 0 var(--night-2); }
@media (max-width: 359px) { .youbig { font-size: 72px; } .rvname { font-size: 24px; } }
.rvname { font: 400 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 0; color: var(--mint); }
.rvq { color: #E8E2FF; margin: 8px 0 0; }
.rv-others { font-size: 18px; margin-top: 8px; opacity: .85; }
.result-meta { color: var(--text2); font-size: 13px; margin: 8px 0 0; }
.rv-tie { display: flex; justify-content: center; gap: 12px; margin: 8px 0 4px; }
.rv-tie .print { width: 42%; max-width: 160px; }
.rv-solo { display: flex; justify-content: center; }
.rv-solo .print { width: min(240px, 66vw); }
.confetti { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; max-width: 480px; margin: 0 auto; }
.cf { position: absolute; left: var(--x); top: -30px; background: var(--c); color: var(--c); opacity: 0; }
.cf.r { width: 10px; height: 22px; border-radius: 2px; } .cf.c { width: 14px; height: 14px; border-radius: 50%; }
.cf.s { background: none; font: 400 30px/1 var(--font-display); }
.phase-result:not(.reveal) .cf { opacity: .85; top: calc(4% + var(--x) * .3); transform: rotate(var(--r)); }

.reveal .whiteout { animation: wo var(--t-reveal) ease-out both; }
.reveal .rv-bg { animation: zoom var(--t-reveal) cubic-bezier(.2, .8, .2, 1) both; }
.reveal .youbig { animation: slam var(--t-reveal) cubic-bezier(.2, 1.5, .4, 1) both; }
.reveal .rvname, .reveal .rvq, .reveal .rv-others, .reveal .result-meta { animation: rise 500ms ease-out 400ms both; }
.reveal .rv-solo, .reveal .rv-tie { animation: rise 400ms ease-out 120ms both; }
.reveal .cf { animation: fall 1600ms cubic-bezier(.3, .6, .4, 1) calc(400ms + var(--d)) both; }
.reveal .rv-circle path { animation: draw 500ms ease-out 300ms both; }
.reveal-reduced .content > *, .reveal-reduced .rv-bg { animation: fade var(--t-reduced) linear both; }

/* ---------- reactions ---------- */
.reactions { display: flex; justify-content: space-between; background: rgba(22, 17, 46, .82); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 6px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.react-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 25px; line-height: 1; padding: 0; display: grid; place-items: center; transition: transform var(--t-press) ease-out, background var(--t-press); }
@media (max-width: 359px) { .react-btn { width: 33px; font-size: 21px; } .reactions { padding: 4px 3px; } }
.react-btn:active { transform: scale(1.18); background: rgba(255, 210, 63, .35); }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.fly { position: absolute; left: var(--x); bottom: calc(150px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 2px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); animation: fly var(--t-fly) cubic-bezier(.2, .7, .3, 1) forwards; }
.fly-e { font-size: var(--react-size); line-height: 1; }
.fly-n { font: 400 15px/1 var(--font-marker); padding: 2px 6px; border-radius: 5px; background: var(--print); color: var(--ink); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fly.mine .fly-e { font-size: calc(var(--react-size) * 1.2); }

/* ---------- recap: photobooth ---------- */
.recap-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.story { margin: 10px auto 14px; width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: var(--r-story); background: var(--night-2); position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 80% 15%, rgba(255, 91, 74, .35), transparent 40%), radial-gradient(circle at 10% 90%, rgba(182, 167, 239, .35), transparent 45%); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.story .hd { position: absolute; top: 14px; left: 14px; right: 14px; font: 400 28px/.9 var(--font-display); text-transform: uppercase; }
.story .hd small { display: block; font: 400 17px/1 var(--font-marker); color: var(--sun); text-transform: none; margin-top: 4px; }
.story > .mk { position: absolute; top: 45%; left: 16px; right: 16px; }
.bstrip { position: absolute; left: 14px; top: 84px; width: 40%; background: var(--print); padding: 6px; display: flex; flex-direction: column; gap: 6px; transform: rotate(-3deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .5); }
.bstrip .f { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-2); display: grid; place-items: center; }
.bstrip img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.bstrip .av { --sz: 40px; width: 40px; height: 40px; }
.bstrip .ft { font: 400 13px/1 var(--font-display); color: var(--ink); text-align: center; letter-spacing: .06em; padding-top: 2px; }
.titles { position: absolute; left: calc(40% + 26px); right: 10px; top: 92px; display: flex; flex-direction: column; gap: 10px; }
.titles div { font: 400 15px/1.0 var(--font-marker); color: #fff; min-width: 0; }
.titles div span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; }
.titles b { display: block; font: 400 20px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titles .sun { color: var(--sun); } .titles .mint { color: var(--mint); } .titles .coral { color: var(--coral); } .titles .violet { color: var(--violet); }
.story .wm { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; font: 400 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.acts { display: flex; gap: 12px; margin-bottom: 8px; }
.acts .cta { flex: 1; font-size: 21px; }
.rc-details summary { cursor: pointer; text-align: center; min-height: 44px; display: grid; place-items: center; }
.rc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.rc-card { background: rgba(255, 255, 255, .06); border-radius: var(--r-control); padding: 12px 14px; }
.rc-q { margin: 0 0 8px; font-weight: 700; line-height: 20px; }
.rc-a { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.tag { font: 800 11px/14px var(--font-ui); padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--t-fade) linear; }
.sheet { width: 100%; max-width: 480px; background: var(--night-2); border-radius: 24px 24px 0 0; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; animation: enter var(--t-enter) ease-out; }
.sheet-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }

/* ---------- landscape / short ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hdr, .banners, .dock { position: static; }
  .mega { font-size: 40px; } .question { font-size: 28px; } .youbig { font-size: 64px; }
  .choices { grid-template-columns: repeat(4, 1fr); }
  .print.p-lg { width: 200px; }
  .rv-body { min-height: 0; }
}

/* ---------- keyframes ---------- */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wo { 0% { opacity: 0; } 8% { opacity: 1; } 20% { opacity: .95; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes zoom { 0% { transform: scale(1.25); } 100% { transform: scale(1.02); } }
@keyframes slam { 0%, 25% { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(70vh) rotate(var(--r)); } }
@keyframes fly { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 12% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(0, -50vh) scale(1.05); } }

/* Reduce Motion: fade only — no flash, no confetti, no slam, reactions appear and fade in place. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-name: fade !important; animation-duration: var(--t-reduced) !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .1s !important; }
  .whiteout, .confetti { display: none !important; }
  .spin { animation: none !important; border-right-color: currentColor; opacity: .6; }
  .fly { animation: fadeout 300ms linear 600ms forwards !important; bottom: calc(180px + env(safe-area-inset-bottom)); }
  .cta:active:not(:disabled), .choice:active:not(:disabled) { transform: none; }
}
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }

/* ---------- report / block ---------- */
.rep-btn { position: absolute; bottom: 3px; right: 4px; z-index: 6; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(23, 28, 46, .08); color: #5a5470; font-size: 13px; }
.rep-btn::before { content: ""; position: absolute; inset: -8px; } /* 44px tap target */
.print:has(.rep-btn) .cap { right: 34px; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rep-chip { min-height: 44px; border: 0; background: none; color: var(--text2); font: 700 12px/1 var(--font-ui); letter-spacing: .04em; padding: 0 4px; opacity: .8; }
.rep-chip.inline { min-height: 32px; min-width: 32px; vertical-align: middle; }
.reasons { display: grid; gap: 8px; }
.reasons .cta { min-height: 48px; font-size: 18px; }

/* Short phones (320×568, SE): keep the reveal above the reaction dock. */
@media (max-height: 700px) {
  .rv-solo .print { width: min(150px, 46vw); }
  .rv-tie .print { max-width: 118px; }
  .youbig { font-size: 64px; margin: 4px 0 6px; }
  .rv-body { min-height: 0; }
  .scrib.rv-circle { top: 8%; width: 200px; height: 210px; margin-left: -100px; }
}
/* Winner without a selfie: ring goes around the print, on top of it. */
.phase-result:not(.has-bg) .scrib.rv-circle { z-index: 4; top: 34px; width: 330px; height: 330px; margin-left: -165px; pointer-events: none; }
@media (max-height: 700px) { .phase-result:not(.has-bg) .scrib.rv-circle { top: 36px; width: 210px; height: 220px; margin-left: -105px; } }
@media (max-height: 700px) { .has-bg .rv-body { min-height: calc(var(--vvh, 100dvh) - 190px); } }
.acts .cta { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
@media (max-width: 359px) { .acts { gap: 8px; } .acts .cta { font-size: 17px; padding-left: 6px; padding-right: 6px; min-width: 0; } }

.dock { grid-template-columns: minmax(0, 1fr); }

/* ---- 19.10 audit batch ---- */
/* UGC consent under the selfie CTA (P0-2) */
.consent { margin: 2px 0 0; font: 400 12.5px/1.35 var(--font-body, system-ui, sans-serif); color: #CFC8EA; text-align: center; }
.consent a { color: var(--sun); text-decoration: underline; text-underline-offset: 2px; }
/* Invite friends (viral loop) */
.invite-row { display: flex; justify-content: center; margin-top: 12px; }
.chip.invite { min-height: 44px; padding: 0 18px; font-size: 16px; background: transparent; border: 2px solid var(--mint); color: var(--mint); }
/* Host CTA on recap without App Store URL */
.cta.soon { display: grid; place-items: center; margin: 0; background: transparent; color: var(--violet); border: 2px dashed rgba(182, 167, 239, .6); box-shadow: none; cursor: default; }
a.cta { display: grid; place-items: center; text-decoration: none; }
.story .wm .site { font-size: 11px; color: var(--violet); letter-spacing: .04em; }
/* Voting: «Skip» is a text link — the dock stays small so options are not covered (P1-21) */
.skip-link { width: 100%; min-height: 44px; background: none; border: 0; color: #CFC8EA; font: 400 17px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.skip-link.pending { color: var(--sun); text-decoration-style: dashed; }
.skip-link.accepted { color: var(--mint); }
.skip-link:disabled { opacity: .45; cursor: default; }
.phase-vote .dock { padding-top: 4px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); gap: 0; }
/* 3+ nominees → 3 columns with smaller prints */
.choices.nomination:not(.n1):not(.n2) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.choices.nomination:not(.n1):not(.n2) .print { padding: 4px 4px 22px; }
.choices.nomination:not(.n1):not(.n2) .print .cap { font-size: 15px; bottom: 3px; left: 6px; right: 4px; }
@media (max-height: 700px) {
  .phase-vote .question { font-size: 26px; margin-bottom: 10px; }
  .phase-vote .q-top { margin-bottom: 2px; }
  .phase-vote .vote-status { margin-top: 8px; font-size: 14px; }
  .choices.duel .print.p-lg, .choices.binary .yn-big { max-height: 170px; }
  .choices { gap: 10px 8px; }
  /* Result: the «waiting for host» line moves away, reactions stay — the breakdown fits above the dock */
  .phase-result .dock { padding-top: 4px; gap: 4px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .phase-result .dock-status { display: none; }
  .phase-result .youbig { font-size: 56px; }
  .phase-result .rvname { font-size: 22px; }
  .phase-result .rvq { font-size: 15px; margin: 6px 0; }
}
.cta.soon { font-size: 19px; line-height: 1.1; text-align: center; } @media (max-width: 359px) { .cta.soon { font-size: 16px; } }
.youbig { overflow-wrap: break-word; hyphens: manual; }
.youbig.long { font-size: 64px; }
.youbig.xlong { font-size: 44px; line-height: .95; }
@media (max-width: 359px), (max-height: 700px) { .youbig.long { font-size: 48px; } .youbig.xlong { font-size: 34px; } }
/* iPhone → app screen */
.ios-app .ios-code { margin-top: 18px; }
.ios-app .ios-code strong { font-size: 52px; }
.ios-copy { display: flex; justify-content: center; margin-top: 12px; }
.skip-link.small { font: 400 14px/1.2 var(--font-body, system-ui, sans-serif); text-transform: none; letter-spacing: 0; min-height: 44px; }
.ios-app .mega { font-size: clamp(38px, 12vw, 56px); overflow-wrap: normal; word-break: keep-all; }
@media (max-height: 700px) {
  .ios-app .mega { font-size: 34px; margin-bottom: 6px; }
  .ios-app .sub { font-size: 14px; margin: 4px 0; }
  .ios-app .ios-code { margin-top: 8px; padding-top: 6px; padding-bottom: 6px; }
  .ios-app .ios-code strong { font-size: 38px; }
  .ios-copy { margin-top: 6px; }
  .phase-ios .dock { gap: 6px; padding-top: 6px; }
  .phase-ios .dock .cta { min-height: 50px; font-size: 19px; }
  .phase-ios .dock .skip-link.small { min-height: 32px; }
}
/* App not installed: highlight the store button and «Copy code» */
.cta.hl, .cta.soon.hl { border-color: var(--sun); color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 210, 63, .35); animation: hlpulse 1.2s ease-out 2; }
.chip.invite.hl { border-color: var(--sun); color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 210, 63, .35); animation: hlpulse 1.2s ease-out 2; }
@keyframes hlpulse { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cta.hl, .chip.invite.hl { animation: none; } }
.phase-ios .dock .dock-status { min-height: 0; }
.ios-noapp { color: var(--sun); }
