/* WyseFlex Live: award-night stage. Shared tokens and parts first, then the phone */
:root {
  --brand: #0C7C3C; --accent: #F97316;
  --hi: #22C55E; --deep: #063D22; --mint: #E4F6EB;
  --paper: #FBF9F3; --paper2: #F1EBDD; --ink: #0B2A1A; --inksoft: #4E5F54;
  --gold: #F2D27A; --gold2: #C9A24B; --gold3: #8A6A22;
  --soft: rgba(251, 249, 243, .88); --faint: rgba(251, 249, 243, .7);
  --hair: 1px solid rgba(242, 210, 122, .45);
  --glass: rgba(4, 50, 28, .45);
  --foil: linear-gradient(180deg, #F8E3A0, #E2B955);
  --btn: linear-gradient(180deg, #F3D98F, #E4BE62);
  --card: linear-gradient(180deg, #FFFFFF, #FBF9F3 35%, #F1EBDD);
  --lift: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 0 0 1px rgba(201, 162, 75, .4), 0 2px 3px rgba(0, 0, 0, .18), 0 16px 30px -14px rgba(0, 0, 0, .5);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: Fraunces, 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --settle: cubic-bezier(.22, 1.12, .36, 1);
  --bg1: #129150; --bg2: #0F7A43; --bg3: #0C6335; --spot: rgba(150, 245, 185, .42); --edge: rgba(5, 66, 36, .5);
  --floor1: #17995A; --floor2: #0C6335;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font); font-weight: 600; color: var(--paper); background: var(--bg2);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
/* the room: one spotlight from above, fine weave and a soft green vignette */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -2; background: radial-gradient(95% 52% at 50% -6%, var(--spot), transparent 72%), linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%); }
body::after {
  z-index: -1;
  background:
    radial-gradient(130% 95% at 50% 40%, transparent 58%, var(--edge) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 7px);
}
body[data-tone="good"] { --bg1: #1DB565; --bg2: #13924F; --bg3: #0D713D; --spot: rgba(200, 255, 215, .5); }
body[data-tone="bad"] { --bg1: #B8452C; --bg2: #9A3320; --bg3: #7C2A1B; --spot: rgba(255, 205, 170, .4); --edge: rgba(70, 18, 10, .42); }
body[data-tone="slow"] { --bg1: #0F6E55; --bg2: #0B5B48; --bg3: #094B3D; --spot: rgba(170, 235, 225, .3); --edge: rgba(4, 44, 36, .5); --floor1: #10785C; --floor2: #0A5544; }
body[data-tone="final"] { --bg1: #16A05A; --spot: rgba(255, 240, 190, .5); }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; }
svg { display: block; fill: currentColor; }
b { font-weight: 800; }

.kicker, .qno, .tag, .reactlabel { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); line-height: 1.2; }
.foil { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: #221803; background: var(--btn);
  padding: 15px 26px; border-radius: 16px; box-shadow: 0 1.5px 0 rgba(255, 255, 255, .6) inset, 0 5px 0 #9A7424, 0 16px 26px -10px rgba(0, 0, 0, .45);
  transition: transform .09s var(--ease);
}
.btn:active { transform: translateY(4px); box-shadow: 0 1.5px 0 rgba(255, 255, 255, .6) inset, 0 1px 0 #9A7424, 0 6px 12px -8px rgba(0, 0, 0, .45); }
.btn:disabled { opacity: .6; }
.btn.ghost { background: var(--glass); color: var(--paper); border: var(--hair); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 10px 20px -12px rgba(0, 0, 0, .45); }
.btn.ghost:active { transform: translateY(2px); }

/* the four answers: green house, gold key, orange bolt, mint star */
.c0 { --c: #17824A; --cb: #0B5A2F; --ce: #C9A24B; --ct: #FBF9F3; --cm: rgba(255, 255, 255, .16); }
.c1 { --c: #F8D56B; --cb: #E0AC2C; --ce: #94690F; --ct: #2B1D00; --cm: rgba(80, 50, 0, .14); }
.c2 { --c: #FF8E45; --cb: #EE5A0B; --ce: #9C3600; --ct: #FFFFFF; --cm: rgba(90, 26, 0, .2); }
.c3 { --c: #A8F0C2; --cb: #5FD993; --ce: #1E8A4C; --ct: #03230F; --cm: rgba(0, 60, 24, .14); }

.sparky { width: 120px; height: auto; overflow: visible; flex: none; }
.sparky.wave .arm.wave { transform-origin: 102px 70px; animation: wave 1.1s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-8deg); } to { transform: rotate(16deg); } }
.bob .sp-body { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.buddy { width: 40px; height: auto; flex: none; overflow: visible; }
.onstage { position: relative; display: inline-flex; justify-content: center; }
.onstage::before {
  content: ''; position: absolute; left: 50%; bottom: -8%; width: 190%; height: 30%; margin-left: -95%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 190, .62), rgba(244, 222, 158, .18) 55%, transparent);
}
.onstage > * { position: relative; }

.wait-ring { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(244, 222, 158, .3); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dots { display: inline-flex; gap: 7px; color: var(--gold); }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-6px); opacity: 1; } }

.pop { animation: pop .5s var(--settle) both; }
.rise { animation: rise .55s var(--ease) both; }
@keyframes pop { from { transform: scale(.72); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.d1 { animation-delay: .09s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; }
.still * { animation: none !important; }

.status {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: none; z-index: 60;
  background: #1B1206; color: var(--gold); border: var(--hair); padding: 9px 18px; border-radius: 99px; font-size: 15px; font-weight: 800; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6);
}
.status.show { display: block; }
.floater { position: fixed; font-size: 32px; margin-left: -16px; pointer-events: none; animation: floatUp 1.1s var(--ease) forwards; z-index: 45; }
@keyframes floatUp { from { transform: translateY(0) scale(.8); opacity: 1; } to { transform: translateY(-150px) scale(1.5); opacity: 0; } }
.drift { position: fixed; bottom: 2vh; font-size: 5.4vh; pointer-events: none; animation: drift 3.2s ease-out forwards; z-index: 20; }
@keyframes drift { 0% { transform: translateY(0) scale(.5); opacity: 0; } 10% { opacity: 1; transform: translateY(-4vh) scale(1.1); } 100% { transform: translate(var(--dx), -72vh) scale(1.25); opacity: 0; } }
.err { min-height: 20px; font-size: 15px; font-weight: 800; color: #FFD0BC; text-align: center; }

/* ---------- phone ---------- */
.play { min-height: 100%; min-height: 100dvh; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; }
.play header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: max(10px, env(safe-area-inset-top)) 16px 6px; }
.who { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 16px; font-weight: 800; }
.who:empty { display: none; }
.who .buddy { width: 30px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts { flex: none; font-family: var(--display); font-size: 16px; font-variant-numeric: tabular-nums; color: var(--gold); padding: 6px 13px; border-radius: 99px; background: var(--glass); border: var(--hair); }
.pts.bump { animation: bump .5s var(--settle); }
@keyframes bump { 40% { transform: scale(1.16); } }
.play main { position: relative; flex: 1; display: flex; flex-direction: column; padding: 4px 16px 0; min-height: 0; }

/* a status screen is a small stage: words up top, Sparky on the floor line, one thing on the floor */
.scene, .center { flex: 1; display: flex; flex-direction: column; min-height: 0; text-align: center; }
.scene { overflow: hidden; margin: 0 -16px; padding: 0 16px; }
.center { align-items: center; justify-content: center; gap: 13px; padding-bottom: 16px; position: relative; }
.sc-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 6px 0 14px; position: relative; z-index: 2; }
.sc-stage { flex: none; position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-bottom: -9px; z-index: 1; }
.sp { position: relative; display: flex; }
.sp .sparky { position: relative; width: min(230px, 24vh); }
.scene.roomy .sp .sparky { width: min(300px, 33vh); }
.scene.roomy .sc-top { justify-content: flex-end; padding-bottom: 26px; flex: .8; }
.floor {
  flex: none; position: relative; isolation: isolate; margin: 0 -16px; padding: 24px 16px max(18px, env(safe-area-inset-bottom)); min-height: 15vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.floor::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-top: 1.5px solid rgba(255, 240, 190, .6);
  background: radial-gradient(64% 90% at 50% 0%, rgba(255, 240, 190, .5), transparent 72%), linear-gradient(180deg, var(--floor1), var(--floor2));
}
.rays {
  position: absolute; left: 50%; bottom: 50%; width: 560px; height: 560px; margin: 0 0 -280px -280px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .09) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 78%); mask: radial-gradient(closest-side, #000 18%, transparent 78%);
}
.rays.soft { opacity: .5; }
body[data-tone="bad"] .sp::before {
  content: ''; position: absolute; left: 50%; bottom: 5%; width: 108%; aspect-ratio: 1; margin-left: -54%; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #FFFDF6, #F1E6CB); box-shadow: 0 0 0 5px rgba(244, 222, 158, .45), 0 18px 30px -12px rgba(0, 0, 0, .5);
}

.logo { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; }
.logo b { color: var(--gold); }
.bolt { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(160deg, #FF9A4D, #F0600F); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 6px 12px -4px rgba(0, 0, 0, .4); }
.bolt svg { width: 62%; }
.big { font-family: var(--display); font-size: 48px; font-weight: 800; line-height: .98; letter-spacing: -.035em; overflow-wrap: anywhere; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.big.m { font-size: 35px; } .big.s { font-size: 28px; line-height: 1.05; }
.hint { font-size: 16px; line-height: 1.4; color: var(--soft); max-width: 310px; font-weight: 500; }
.hint b { color: var(--paper); font-weight: 800; }

.join { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 9px; }
.join input {
  width: 100%; padding: 14px; border-radius: 16px; border: 0; outline: none; text-align: center;
  font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); background: var(--paper);
  box-shadow: 0 0 0 2px var(--gold2), 0 0 0 6px rgba(244, 222, 158, .22), 0 2px 6px rgba(0, 0, 0, .2) inset, 0 16px 28px -14px rgba(0, 0, 0, .5);
}
.join input::placeholder { color: #A9A08B; }
.join input:focus { box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 7px rgba(244, 222, 158, .36), 0 2px 6px rgba(0, 0, 0, .2) inset, 0 16px 28px -14px rgba(0, 0, 0, .5); }
.join .pinbox { letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.join .btn { width: 100%; }
.join .err:empty { min-height: 4px; }
.btn.quiet { font-family: var(--font); font-size: 16px; font-weight: 800; padding: 12px 22px; }

/* lobby: the player's pass */
.pass { width: 100%; max-width: 340px; display: flex; align-items: stretch; text-align: left; color: var(--ink); background: var(--card); border-radius: 18px; overflow: hidden; position: relative; box-shadow: var(--lift); }
.pass::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--foil); }
.pass .stub { flex: none; width: 86px; display: grid; place-items: center; padding: 16px 0 12px; border-right: 2px dashed rgba(11, 42, 26, .2); background: var(--mint); }
.pass .stub .buddy { width: 54px; }
.pass .info { min-width: 0; flex: 1; padding: 17px 14px 13px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.pass .kicker { color: var(--gold3); font-size: 11px; }
.pass b { font-family: var(--display); font-size: 25px; line-height: 1.05; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass small { font-size: 14px; font-weight: 600; color: var(--inksoft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tips { width: 100%; max-width: 340px; text-align: left; }
.tips div { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.tips div + div { border-top: 1px solid rgba(255, 255, 255, .14); }
.tips .ti { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: var(--hair); background: var(--glass); }
.tips .ti svg { width: 16px; }
.tips p { font-size: 15px; line-height: 1.3; color: var(--soft); font-weight: 500; }
.tips p b { color: var(--paper); font-weight: 800; }
.lobby-sp .sparky { width: min(132px, 19vh); }

.reactzone { padding-top: 16px; gap: 10px; min-height: 0; }
.reactlabel { color: var(--paper); font-size: 12px; }
.reacts { display: flex; justify-content: center; gap: 11px; }
.reacts button { width: 54px; height: 54px; border-radius: 50%; font-size: 25px; line-height: 1; background: rgba(4, 50, 28, .5); border: var(--hair); box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 10px 18px -10px rgba(0, 0, 0, .5); transition: transform .12s var(--ease); }
.reacts button:active { transform: scale(.86); }

/* get ready */
.pips { display: flex; gap: 5px; justify-content: center; }
.pips i { width: 14px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.pips i.done { background: var(--gold); } .pips i.now { background: var(--paper); width: 22px; }
.qtext {
  width: 100%; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.16; letter-spacing: -.02em; text-align: center; color: var(--ink);
  background: var(--card); border-radius: 18px; padding: 19px 16px; position: relative; box-shadow: var(--lift); overflow-wrap: anywhere;
}
.qtext::after { content: ''; position: absolute; inset: 5px; border-radius: 13px; border: 1px solid rgba(201, 162, 75, .5); pointer-events: none; }
.qtext.l { font-size: 19px; } .qtext.xl { font-size: 16.5px; line-height: 1.2; padding: 15px 14px; }
.cd3 {
  flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  font-family: var(--display); font-size: 60px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums;
  background: radial-gradient(circle at 50% 30%, #0F6E3C, #084526 80%); box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(5, 66, 36, .45), 0 0 0 10px rgba(244, 222, 158, .4), 0 18px 30px -10px rgba(0, 0, 0, .5);
}
.cd3.pop { animation: tickin .45s var(--settle); }
@keyframes tickin { from { transform: scale(1.22); opacity: .5; } to { transform: none; opacity: 1; } }

/* question */
.qhead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.secs { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 23px; color: var(--gold); font-variant-numeric: tabular-nums lining-nums; background: rgba(4, 50, 28, .6); box-shadow: 0 0 0 2.5px var(--gold), 0 8px 14px -6px rgba(0, 0, 0, .4); }
.secs.low { color: #fff; background: #E0500A; box-shadow: 0 0 0 2.5px #FFC9A3, 0 8px 14px -6px rgba(0, 0, 0, .4); }
.timer { flex: 1; height: 14px; border-radius: 14px; background: rgba(4, 50, 28, .6); box-shadow: 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .4) inset; overflow: hidden; }
.timer i { display: block; height: 100%; border-radius: 14px; background: var(--foil); transform-origin: left; will-change: transform; }
.timer.low i { background: linear-gradient(180deg, #FF9A4D, #F0600F); }
.qno { margin: 0 2px 8px; }
.choices { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 11px; margin: 13px 0 max(16px, env(safe-area-inset-bottom)); padding-bottom: 7px; min-height: 250px; }
.choices.two { grid-template-columns: 1fr; }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-width: 0; overflow: hidden;
  padding: 12px 10px; border-radius: 20px; color: var(--ct); background: linear-gradient(180deg, var(--c), var(--cb));
  box-shadow: 0 1.5px 0 rgba(255, 255, 255, .6) inset, 0 6px 0 var(--ce), 0 18px 22px -12px rgba(0, 0, 0, .55);
  font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-align: center;
  transition: transform .12s var(--ease), opacity .18s;
}
.choice.c0 { box-shadow: 0 0 0 2px #E2B955 inset, 0 6px 0 var(--ce), 0 18px 22px -12px rgba(0, 0, 0, .55); }
.choice span:last-child { position: relative; overflow-wrap: anywhere; max-width: 100%; }
.choice .ic { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cm); box-shadow: 0 1px 1px rgba(0, 0, 0, .14) inset, 0 1px 0 rgba(255, 255, 255, .3); }
.choice .ic svg { width: 31px; }
.choice .wm { position: absolute; right: -16px; bottom: -20px; width: 112px; opacity: .1; pointer-events: none; }
.choice .wm svg { width: 100%; }
.choices.l .choice { font-size: 19px; }
.choices.xl .choice { font-size: 16.5px; line-height: 1.14; gap: 7px; padding: 10px 8px; }
.choices.xxl .choice { font-size: 15px; }
.choices.xl .choice .ic { width: 42px; height: 42px; } .choices.xl .choice .ic svg { width: 24px; }
.choices.two .choice { flex-direction: row; font-size: 28px; gap: 16px; }
.choice:active { transform: translateY(4px); }
.choice.picked { transform: scale(1.03); box-shadow: 0 0 0 3px var(--paper), 0 0 0 7px rgba(251, 249, 243, .3), 0 6px 0 var(--ce); z-index: 1; }
.choice.dim { opacity: .35; transform: scale(.97); }

/* locked in */
.lockwrap { position: relative; margin-bottom: 20px; }
.locked {
  width: 112px; height: 112px; border-radius: 28px; display: grid; place-items: center; color: var(--ct); background: linear-gradient(180deg, var(--c), var(--cb));
  box-shadow: 0 2px 0 rgba(255, 255, 255, .6) inset, 0 7px 0 var(--ce), 0 0 0 6px rgba(244, 222, 158, .25), 0 26px 34px -14px rgba(0, 0, 0, .6);
}
.locked svg { width: 54px; }
.tick { position: absolute; right: -10px; top: -12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #221803; box-shadow: 0 0 0 3px var(--bg2), 0 6px 10px rgba(0, 0, 0, .3); }
.tick svg { width: 24px; }
.picked-txt { font-size: 17px; line-height: 1.35; color: var(--soft); max-width: 320px; overflow-wrap: anywhere; font-weight: 500; }
.picked-txt b { color: var(--paper); font-weight: 800; }

/* result */
.say {
  position: absolute; left: 54%; bottom: 88%; white-space: nowrap; font-family: var(--display); font-size: 17px; letter-spacing: -.01em; color: var(--ink);
  background: var(--paper); padding: 8px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 0 #fff inset, 0 10px 18px -8px rgba(0, 0, 0, .45); transform-origin: 0 100%; z-index: 2;
}
.say.far { left: auto; right: 0; border-radius: 16px 16px 4px 16px; transform-origin: 100% 100%; }
.result .big { font-size: 54px; }
.result .sc-top { padding-bottom: 46px; }
.gain { font-family: var(--display); font-size: 68px; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.gain small { font-size: 23px; letter-spacing: -.01em; margin-left: 5px; }
.streak { font-size: 15px; font-weight: 800; padding: 7px 14px; border-radius: 99px; background: rgba(4, 50, 28, .5); border: 1.5px solid rgba(255, 154, 77, .9); color: #FFE1C8; }
.answerwas { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 340px; text-align: left; padding: 11px 14px 11px 11px; border-radius: 16px; color: var(--ink); background: var(--card); box-shadow: var(--lift); }
.answerwas .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--ct); background: linear-gradient(180deg, var(--c), var(--cb)); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 3px 0 var(--ce); }
.answerwas .ic svg { width: 24px; }
.answerwas small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold3); margin-bottom: 2px; }
.answerwas b { font-family: var(--display); font-size: 18px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rankcard { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 340px; text-align: left; padding: 11px 14px; border-radius: 18px; background: rgba(3, 40, 22, .55); border: var(--hair); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 16px 26px -16px rgba(0, 0, 0, .5); }
.pos { flex: none; min-width: 62px; text-align: center; font-family: var(--display); font-size: 38px; line-height: 1; letter-spacing: -.04em; color: var(--paper); font-variant-numeric: lining-nums; }
.pos.top { color: var(--gold); }
.pos sup { font-size: 15px; letter-spacing: 0; margin-left: 1px; vertical-align: top; position: relative; top: 4px; }
.rankcard p { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; color: var(--paper); font-weight: 500; overflow-wrap: anywhere; }
.rankcard p b { font-weight: 800; }
.mv { flex: none; font-size: 15px; font-weight: 800; padding: 5px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.mv.up { background: #1FA653; color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); } .mv.down { background: #E0500A; color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }

/* the stands, pocket size */
.lbp, .fin { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lbp-head { display: flex; align-items: center; gap: 10px; min-height: 62px; text-align: left; }
.lbp-head .sparky { width: 60px; }
.say2 { font-family: var(--display); font-size: 21px; line-height: 1.08; letter-spacing: -.02em; margin-top: 4px; overflow-wrap: anywhere; }
.pod3 { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 5px; margin-top: 10px; position: relative; }
.pod3::after { content: ''; position: absolute; left: -16px; right: -16px; bottom: -14px; height: 30px; background: radial-gradient(closest-side, rgba(255, 240, 190, .5), transparent); pointer-events: none; }
.pcol { display: flex; flex-direction: column; align-items: center; min-width: 0; position: relative; z-index: 1; }
.ptok { display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; z-index: 2; transition: transform .8s var(--settle); animation: fade .45s ease both; }
.ptok .buddy { width: 80px; margin-bottom: -4px; }
.p1 .ptok .buddy { width: 90px; }
.ptok .crown { width: 30px; margin-bottom: -7px; color: var(--gold); position: relative; z-index: 1; filter: drop-shadow(0 1.5px 0 rgba(120, 84, 10, .8)); }
.pp { position: absolute; top: calc(100% + 9px); left: 4px; right: 4px; text-align: center; padding: 5px 4px; border-radius: 9px; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px rgba(138, 106, 34, .55), 0 8px 12px -6px rgba(0, 0, 0, .5); }
.pp b { display: block; font-family: var(--display); font-size: 16px; line-height: 1.15; letter-spacing: -.015em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp small { display: block; font-family: var(--display); font-size: 15px; line-height: 1.15; color: var(--brand); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.pp .fire, .lrow .fire { font-family: var(--font); font-size: 13px; font-weight: 800; color: #B84A08; margin-right: 3px; }
.ptok.me .pp { box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 6px rgba(244, 222, 158, .35), 0 8px 12px -6px rgba(0, 0, 0, .5); }
.ptok.me .pp::after { content: 'you'; position: absolute; top: -9px; right: -3px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #221803; background: var(--gold); padding: 2px 6px; border-radius: 99px; }
.pblk { width: 100%; border-radius: 10px 10px 0 0; position: relative; font-family: var(--display); line-height: 1; font-variant-numeric: lining-nums; transform-origin: bottom; animation: grow .6s var(--ease) both; }
@keyframes grow { from { transform: scaleY(.05); opacity: 0; } to { transform: none; opacity: 1; } }
.pblk::before { content: ''; position: absolute; inset: 0 0 auto; height: 7px; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .6); }
.pblk span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; }
.p1 .pblk { height: 138px; font-size: 56px; color: rgba(74, 50, 0, .7); background: linear-gradient(180deg, #F8E7B0, #E3BF63 25%, #C19A3F 70%, #A8802C); animation-delay: .34s; }
.p2 .pblk { height: 108px; font-size: 40px; color: rgba(40, 52, 45, .6); background: linear-gradient(180deg, #FFFFFF, #E4E0D4 30%, #BDB8A8); animation-delay: .2s; }
.p3 .pblk { height: 86px; font-size: 24px; color: rgba(74, 30, 0, .65); background: linear-gradient(180deg, #FFC08F, #E08240 30%, #B85C1C); animation-delay: .06s; }
.p1 .ptok { animation-delay: .6s; } .p2 .ptok { animation-delay: .46s; } .p3 .ptok { animation-delay: .32s; }
.lbp-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 14px; min-width: 0; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px rgba(138, 106, 34, .4), 0 8px 14px -8px rgba(0, 0, 0, .45); transition: transform .8s var(--settle); }
.lrow.fadein { animation: fade .45s ease both; }
.lrow .r { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 17px; color: #fff; background: #1F8F52; font-variant-numeric: tabular-nums lining-nums; }
.lrow .buddy { width: 32px; }
.lrow .nm { flex: 0 1 auto; min-width: 0; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .you { flex: none; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #221803; background: var(--gold); padding: 2px 6px; border-radius: 99px; margin-left: -4px; }
.lrow .sc { flex: none; margin-left: auto; font-family: var(--display); font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums lining-nums; }
.lrow.me { box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 6px rgba(244, 222, 158, .3), 0 8px 14px -8px rgba(0, 0, 0, .45); }
.lrow.me .r { background: #0B3D26; color: var(--gold); width: auto; min-width: 30px; padding: 0 7px; border-radius: 99px; }
.gapdots { display: flex; justify-content: center; gap: 5px; margin: 3px 0 0; }
.gapdots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.lbp .hint, .fastest { max-width: none; text-align: center; font-size: 15px; color: var(--soft); margin-top: 10px; font-weight: 500; }
.fastest b, .lbp .hint b { color: var(--gold); font-weight: 800; }
.lbp-fill { flex: 1; min-height: 8px; }

/* final */
.fin { align-items: center; gap: 9px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.fin .lbp-head, .fin .pod3, .fin .lbp-rows { align-self: stretch; }
.fin .say2 { font-size: 27px; }
.fin .lbp-rows { margin-top: 8px; }
.stats { display: flex; width: 100%; border-radius: 16px; background: rgba(3, 40, 22, .55); border: var(--hair); }
.stats span { flex: 1; padding: 6px 4px 7px; font-size: 15px; font-weight: 600; color: var(--soft); text-align: center; }
.stats span + span { border-left: 1px solid rgba(244, 222, 158, .3); }
.stats b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; color: var(--paper); font-variant-numeric: lining-nums; line-height: 1.1; }
.claim { width: 100%; max-width: 340px; color: var(--ink); text-align: center; border-radius: 20px; padding: 16px 18px 14px; position: relative; background: var(--card); box-shadow: 0 0 0 2px var(--gold2), 0 0 0 7px rgba(244, 222, 158, .28), 0 26px 40px -18px rgba(0, 0, 0, .6); }
.claim::after { content: ''; position: absolute; inset: 6px; border-radius: 15px; border: 1px solid rgba(201, 162, 75, .55); pointer-events: none; }
.claim .won { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold3); }
.claim .code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 44px; font-weight: 800; letter-spacing: .14em; margin: 4px 0 2px; padding-left: .14em; color: var(--brand); }
.claim hr { border: 0; border-top: 2px dashed rgba(11, 42, 26, .2); margin: 7px 0 9px; }
.claim p { font-size: 15px; line-height: 1.36; color: var(--inksoft); font-weight: 500; }
.claim p b { color: var(--ink); }
.thanks { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; line-height: 1.15; text-align: center; margin: auto 0; padding: 2px 0; }

@media (max-height: 640px) {
  .big { font-size: 40px; } .result .big { font-size: 44px; } .gain { font-size: 54px; } .sc-top { gap: 9px; padding-bottom: 10px; } .result .sc-top { padding-bottom: 40px; }
  .tips div:last-child { display: none; } .tips div { padding: 6px 4px; }
  .p1 .pblk { height: 104px; font-size: 40px; } .p2 .pblk { height: 82px; font-size: 21px; } .p3 .pblk { height: 66px; font-size: 0; }
  .fin .lrow.mover, .fin .gapdots { display: none; } .choices { min-height: 176px; gap: 9px; margin-top: 10px; } .qtext { padding: 13px 12px; font-size: 19px; } .qtext.l { font-size: 17px; }
  .choice .ic { width: 44px; height: 44px; } .choice .ic svg { width: 25px; } .choice { font-size: 18px; gap: 6px; } .choices.l .choice { font-size: 16.5px; }
  .ptok .buddy { width: 60px; } .p1 .ptok .buddy { width: 68px; }
  .reactlabel { display: none; } .reacts button { width: 46px; height: 46px; font-size: 22px; } .reactzone { padding-top: 12px; }
  .cd3 { width: 84px; height: 84px; font-size: 48px; } .locked { width: 92px; height: 92px; } .locked svg { width: 44px; }
  .floor { min-height: 13vh; padding-top: 18px; } .lbp-rows { margin-top: 12px; gap: 6px; } .fin { gap: 9px; } .claim .code { font-size: 36px; }
}
@media (max-height: 600px) { .fastest, .lbp .hint, .lbp .gapdots { display: none; } .lbp-head { min-height: 50px; } .lbp-head .sparky { width: 46px; } .lrow { padding: 4px 12px 4px 6px; } .lbp-rows { margin-top: 10px; } }
@media (min-height: 820px) { .p1 .pblk { height: 172px; font-size: 68px; } .p2 .pblk { height: 134px; font-size: 50px; } .p3 .pblk { height: 106px; font-size: 34px; } .ptok .buddy { width: 96px; } .p1 .ptok .buddy { width: 108px; } .pp b { font-size: 17px; } .lbp-rows { margin-top: 20px; gap: 9px; } .lrow { padding: 9px 14px 9px 8px; } }
@media (max-width: 340px) { .choice { font-size: 17px; padding: 8px 8px; } .choices.l .choice { font-size: 16px; } .qhead { margin-bottom: 6px; } .qno { margin-bottom: 5px; } .big { font-size: 35px; } .reacts { gap: 7px; } .say { font-size: 15px; } .pp b { font-size: 15px; } .say2 { font-size: 19px; } .fin .say2 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}
.lrow .fire, .lrow .mv { margin-left: auto; }
.lrow .fire ~ .sc, .lrow .mv ~ .sc { margin-left: 0; }
