/* This or That Volume One. Game show stage: deep navy, THIS purple on the left, THAT pink on the right, sunny yellow for wins.
   Single dark stage look on purpose (it is a game show), so every color is set here. */
:root {
  --night: #15123A; --stage: #221C5C; --card: #2E2672; --ink: #FFFFFF; --soft: #CFC8F5;
  --this: #7B3FE4; --this-d: #5626B3; --that: #FF4FA3; --that-d: #C92A78; --sun: #FFD23F; --sun-d: #D9A91E;
  --aqua: #2BD9C9; --good: #33D17A; --bad: #FF5D5D; --line: rgba(255,255,255,.16);
  --f-show: 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --f-read: 'Andika', 'Century Gothic', 'Trebuchet MS', system-ui, sans-serif;
  --mb: 0px; --tabw: 44px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--f-read); font-size: clamp(16px, 1.1vw + 10px, 22px); line-height: 1.4; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
img { max-width: 100%; }
.svg-ic { width: 1.2em; height: 1.2em; flex: none; }

/* exciting animated background (used until her 4K backgrounds are uploaded, and behind them) */
.bgfx { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(60% 70% at 18% 30%, rgba(123,63,228,.55), transparent 70%),
  radial-gradient(60% 70% at 82% 30%, rgba(255,79,163,.45), transparent 70%),
  radial-gradient(80% 50% at 50% 110%, rgba(255,210,63,.18), transparent 70%), var(--night); }
.bgfx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.bgfx .beam { position: absolute; bottom: -10%; width: 34vmax; height: 130vmax; transform-origin: 50% 100%; background: linear-gradient(to top, rgba(255,255,255,.14), transparent 70%); filter: blur(6px); animation: sweep 9s ease-in-out infinite alternate; }
.bgfx .beam.b1 { left: 4%; --a: -24deg; --b: 14deg; }
.bgfx .beam.b2 { right: 4%; --a: 24deg; --b: -14deg; animation-delay: -4s; }
@keyframes sweep { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
.bgfx .spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); opacity: .0; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

/* layout */
.app { min-height: 100%; display: flex; flex-direction: column; padding-bottom: calc(var(--mb) + var(--rab, 0px) + env(safe-area-inset-bottom, 0px)); }
.wrap { width: 100%; max-width: min(1320px, 94vw); margin: 0 auto; padding-block: 12px 24px; padding-left: max(16px, env(safe-area-inset-left, 0px), calc(var(--tabw) + 8px)); padding-right: max(16px, env(safe-area-inset-right, 0px), calc(var(--tabw) + 8px)); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-block: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); background: rgba(21,18,58,.86); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .ttl { font: 800 clamp(20px, 2vw + 10px, 34px)/1 var(--f-show); margin-right: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ttl .t1 { color: #C9A8FF; } .ttl .t2 { color: var(--sun); font-size: .7em; } .ttl .t3 { color: #FF9BCB; }
.tb { min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font: 800 16px/1 var(--f-show); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tb[aria-pressed="true"] { background: var(--sun); color: var(--night); border-color: var(--sun); }
.tb .lbl { white-space: nowrap; }
@media (max-width: 520px) { .tb .lbl.hide-sm { display: none; } }

.screen { display: none; flex: 1; }
.screen.on { display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--f-show); line-height: 1.05; margin: 0; text-wrap: balance; }
.big-btn { min-height: 64px; padding: 0 26px; border-radius: 22px; border: 0; font: 800 clamp(22px, 1.4vw + 14px, 34px)/1 var(--f-show); display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 0 rgba(0,0,0,.35); transition: transform .12s; }
.big-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.big-btn.this { background: var(--this); color: #fff; box-shadow: 0 6px 0 var(--this-d); }
.big-btn.that { background: var(--that); color: #fff; box-shadow: 0 6px 0 var(--that-d); }
.big-btn.sun { background: var(--sun); color: var(--night); box-shadow: 0 6px 0 var(--sun-d); }
.big-btn.ghost { background: var(--card); color: #fff; border: 2px solid var(--line); box-shadow: none; }
.big-btn:disabled { opacity: .5; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font: 700 15px/1.2 var(--f-read); }
.note { color: var(--soft); }
.panel { background: rgba(46,38,114,.88); border: 2px solid var(--line); border-radius: 26px; padding: clamp(14px, 2vw, 28px); }

/* landing */
.landing { align-items: center; justify-content: center; text-align: center; gap: clamp(14px, 2.4vh, 28px); padding-block: 16px; }
.logo { width: min(760px, 92vw); max-width: 100%; }
.logo-text { font: 800 clamp(54px, 9vw, 150px)/.9 var(--f-show); letter-spacing: -1px; display: flex; align-items: center; justify-content: center; gap: .18em; flex-wrap: wrap; text-shadow: 0 6px 0 rgba(0,0,0,.35); }
.logo-text .a { color: #B583FF; } .logo-text .o { color: var(--sun); font-size: .5em; } .logo-text .b { color: #FF7DBD; }
.vol { font: 800 clamp(18px, 1.5vw + 10px, 28px)/1 var(--f-show); color: var(--sun); letter-spacing: 2px; text-transform: uppercase; }
.gremlins { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: clamp(110px, 20vh, 220px); }
.gremlins { max-width: 100%; }
.gremlins img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.gremlins svg { height: 100%; width: auto; max-width: 31%; }
.gbob { animation: bob 2.4s ease-in-out infinite; }
.gbob:nth-child(2) { animation-delay: -.8s; } .gbob:nth-child(3) { animation-delay: -1.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.modes { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.modes .big-btn { min-width: min(320px, 86vw); min-height: 84px; flex-direction: column; gap: 4px; }
.modes small { font: 700 15px/1.2 var(--f-read); opacity: .9; }

/* forms */
.form { width: min(560px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form label { font: 800 18px/1.2 var(--f-show); }
.form input[type=text] { min-height: 56px; border-radius: 16px; border: 3px solid var(--line); background: #fff; color: var(--night); padding: 0 16px; font: 700 22px/1 var(--f-read); width: 100%; }
.form input.code { text-transform: uppercase; letter-spacing: 8px; text-align: center; font: 800 34px/1 var(--f-show); }
.form .err { min-height: 1.4em; color: #FFB3B3; font-weight: 700; }
.form input.bad { border-color: var(--bad); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1 1 80px; min-height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font: 800 18px/1 var(--f-show); }
.seg button[aria-pressed="true"] { background: var(--sun); color: var(--night); border-color: var(--sun); }

/* lobby spam */
.lobby { align-items: center; text-align: center; gap: 14px; padding-block: 18px; }
.react-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: min(720px, 100%); }
.react { flex: 1 1 120px; min-height: 64px; border-radius: 20px; border: 0; font: 800 20px/1.05 var(--f-show); display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 5px 0 rgba(0,0,0,.35); padding: 6px 10px; }
.react:active { transform: translateY(3px) scale(.97); }
.r0 { background: var(--this); color: #fff; } .r1 { background: var(--sun); color: var(--night); } .r2 { background: #FF7A2F; color: #fff; }
.r3 { background: var(--aqua); color: var(--night); } .r4 { background: var(--that); color: #fff; }
.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.floater { position: absolute; bottom: -60px; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: floatup 3.2s ease-out forwards; }
.floater .bub { padding: 8px 14px; border-radius: 18px; font: 800 clamp(16px, 1.4vw + 8px, 30px)/1 var(--f-show); box-shadow: 0 4px 0 rgba(0,0,0,.3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.floater .who { font: 700 clamp(12px, .8vw + 6px, 18px)/1 var(--f-read); background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
@keyframes floatup { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-12vh) scale(1); } 100% { transform: translateY(-105vh) rotate(var(--rot, 6deg)); opacity: 0; } }

/* play: the This / That stage */
.play { gap: 10px; padding-block: 8px 12px; }
.qhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.qnum { font: 800 18px/1 var(--f-show); color: var(--sun); }
.prompt { font: 800 clamp(24px, 2.6vw + 12px, 64px)/1.08 var(--f-show); text-align: center; text-wrap: balance; overflow-wrap: break-word; }
.prompt-es { text-align: center; color: var(--soft); font: 700 clamp(16px, 1.2vw + 8px, 30px)/1.2 var(--f-read); }
.qart { display: block; margin: 0 auto; max-height: 16vh; border-radius: 18px; }
.timer { height: 16px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--good), var(--sun), var(--bad)); transform-origin: left; }
.count321 { font: 800 clamp(60px, 12vw, 200px)/1 var(--f-show); color: var(--sun); text-align: center; text-shadow: 0 8px 0 rgba(0,0,0,.35); }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(8px, 1.4vw, 28px); align-items: stretch; flex: 1; min-height: 0; }
.vs { align-self: center; font: 800 clamp(22px, 2.4vw + 8px, 56px)/1 var(--f-show); color: var(--sun); text-shadow: 0 4px 0 rgba(0,0,0,.4); }
.choice { position: relative; border: 0; padding: clamp(6px, .8vw, 14px); border-radius: clamp(18px, 2vw, 34px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: #fff; box-shadow: 0 8px 0 rgba(0,0,0,.35); transition: transform .15s, opacity .25s, box-shadow .2s; }
.choice.this { background: linear-gradient(160deg, #9564F0, var(--this)); }
.choice.that { background: linear-gradient(160deg, #FF7DBD, var(--that)); }
.choice .tag { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font: 800 clamp(14px, 1vw + 8px, 26px)/1 var(--f-show); background: rgba(0,0,0,.35); padding: 4px 14px; border-radius: 99px; letter-spacing: 2px; text-transform: uppercase; z-index: 2; }
.choice .pic { width: 100%; aspect-ratio: 1; max-height: var(--picmax, 46vh); border-radius: clamp(12px, 1.4vw, 24px); overflow: hidden; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
.choice .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.choice .pic .word { padding: 10px; font: 800 clamp(18px, 2.6vw + 6px, 72px)/1.05 var(--f-show); text-align: center; overflow-wrap: break-word; hyphens: auto; text-shadow: 0 4px 0 rgba(0,0,0,.3); }
.choice .lab { font: 800 clamp(17px, 1.6vw + 7px, 42px)/1.05 var(--f-show); text-align: center; overflow-wrap: break-word; hyphens: auto; }
.choice:has(.pic.nopic) > .lab { display: none; }
.choice .lab-es { font: 700 clamp(13px, .8vw + 7px, 22px)/1.1 var(--f-read); opacity: .9; text-align: center; }
.choice:disabled { cursor: default; }
.choice.picked { transform: scale(1.03); box-shadow: 0 0 0 6px var(--sun), 0 8px 0 rgba(0,0,0,.35); }
.choice.dim { opacity: .35; }
.choice.right { box-shadow: 0 0 0 8px var(--good), 0 0 50px var(--good); }
.choice.right::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: clamp(44px, 4vw, 90px); height: clamp(44px, 4vw, 90px); border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.votebar { width: 100%; height: 12px; border-radius: 99px; background: rgba(0,0,0,.3); overflow: hidden; }
.votebar i { display: block; height: 100%; background: #fff; width: 0; transition: width .6s ease-out; }
.voten { font: 800 clamp(14px, 1vw + 8px, 26px)/1 var(--f-show); }
.status { text-align: center; font: 800 clamp(18px, 1.4vw + 10px, 36px)/1.1 var(--f-show); min-height: 1.2em; }
.status.good { color: var(--good); } .status.bad { color: #FF9C9C; }
.gainpop { font: 800 clamp(36px, 5vw, 90px)/1 var(--f-show); color: var(--sun); text-align: center; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 600px) {
  :root { --tabw: 28px; }
  .sidetab { font-size: 12px; min-height: 120px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .duel { grid-template-columns: 1fr 1fr; } .vs { display: none; }
  .choice .pic .word { font-size: clamp(16px, 5vw, 26px); }
  .choice .tag { top: 6px; }
}

/* leaderboard (vertical) */
.lb { width: min(820px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(6px, .9vh, 12px); counter-reset: none; }
.lb-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: clamp(8px, 1.1vh, 16px) clamp(12px, 1.4vw, 24px); border-radius: 20px; background: rgba(46,38,114,.92); border: 2px solid var(--line); font: 800 clamp(18px, 1.4vw + 8px, 38px)/1 var(--f-show); animation: rise .5s both; }
.lb-row .rk { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: #fff; font-size: .8em; }
.lb-row .nm { min-width: 0; overflow-wrap: anywhere; }
.lb-row .pt { color: var(--sun); font-variant-numeric: tabular-nums; }
.lb-row.p1 { background: linear-gradient(90deg, #FFD23F, #FFB000); color: var(--night); } .lb-row.p1 .pt { color: var(--night); } .lb-row.p1 .rk { background: var(--night); color: var(--sun); }
.lb-row.p2 { background: linear-gradient(90deg, #E8E8F5, #B9B9D6); color: var(--night); } .lb-row.p2 .pt { color: var(--night); }
.lb-row.p3 { background: linear-gradient(90deg, #F2A86B, #D97A3A); color: var(--night); } .lb-row.p3 .pt { color: var(--night); }
.lb-row.me { outline: 4px solid var(--aqua); }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* side tabs and drawer (Tips of Play / About the Science) */
.sidetab { position: fixed; top: 50%; z-index: 40; width: var(--tabw); min-height: 150px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; font: 800 15px/1 var(--f-show); writing-mode: vertical-rl; }
.sidetab.tips { left: env(safe-area-inset-left, 0px); transform: translateY(-50%); background: var(--sun); color: var(--night); border-radius: 0 16px 16px 0; }
.sidetab.sci { right: env(safe-area-inset-right, 0px); transform: translateY(-50%); background: #3FA9FF; color: var(--night); border-radius: 16px 0 0 16px; }
.sidetab .svg-ic { writing-mode: horizontal-tb; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 60; width: min(640px, 94vw); background: #FFFDF5; color: #1E1A4D; overflow-y: auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); font-size: 18px; }
.drawer.left { left: 0; } .drawer.right { right: 0; }
.drawer h2 { font-size: 30px; } .drawer h3 { font-size: 23px; margin-top: 14px; }
.drawer .dtools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.drawer .dtools button, .drawer .xbtn { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid #1E1A4D; background: #fff; font: 800 16px/1 var(--f-show); color: #1E1A4D; display: inline-flex; align-items: center; gap: 6px; }
.drawer .xbtn { min-width: 44px; justify-content: center; }
.drawer .trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer .here { background: #FFF2B8; border-radius: 16px; padding: 10px 14px; }
.drawer details { border-top: 2px solid #E8E2CC; padding: 6px 0; }
.drawer summary { min-height: 44px; display: flex; align-items: center; font: 800 20px/1.1 var(--f-show); cursor: pointer; }
.drawer .lock { background: #EEE; border-radius: 12px; padding: 8px 12px; font-size: 16px; }
.drawer ol, .drawer ul { padding-left: 22px; }

/* read-aloud bar, fix-it, modal */
.rabar { position: fixed; right: max(12px, env(safe-area-inset-right, 0px), calc(var(--tabw) + 6px)); bottom: calc(12px + var(--mb) + env(safe-area-inset-bottom, 0px)); z-index: 45; width: min(440px, calc(100vw - 24px)); background: #FFFDF5; color: #1E1A4D; border: 3px solid #1E1A4D; border-radius: 20px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.rabar .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rabar button, .rabar select { min-height: 44px; border-radius: 12px; border: 2px solid #1E1A4D; background: #fff; color: #1E1A4D; font: 800 15px/1 var(--f-show); padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; }
.rabar button.on { background: var(--good); color: #fff; border-color: #1E7A47; }
.rabar select { flex: 1 1 160px; min-width: 0; font-family: var(--f-read); font-weight: 700; }
.rabar .ttl { font: 800 18px/1 var(--f-show); margin-right: auto; }
@media (max-width: 520px) { .rabar { left: 8px; right: 8px; width: auto; } }
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.6); }
.modal .box { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: #FFFDF5; color: #1E1A4D; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal .box h2 { font-size: 28px; }
.modal .box button { min-height: 52px; border-radius: 14px; border: 2px solid #1E1A4D; background: #fff; color: #1E1A4D; font: 800 18px/1.1 var(--f-show); text-align: left; padding: 8px 14px; }
.modal .box button.main { background: var(--sun); }
.modal .box input { min-height: 52px; border-radius: 12px; border: 2px solid #1E1A4D; padding: 0 12px; font: 700 20px/1 var(--f-read); color: #1E1A4D; background: #fff; }
.toast { position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 80; background: var(--sun); color: var(--night); padding: 10px 18px; border-radius: 16px; font: 800 18px/1.2 var(--f-show); max-width: 90vw; text-align: center; box-shadow: 0 6px 0 rgba(0,0,0,.3); }

/* jukebox */
.musicbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; display: flex; align-items: center; gap: 8px; padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: rgba(21,18,58,.95); border-top: 2px solid var(--line); }
.musicbar .mt { flex: 1; min-width: 0; font: 700 15px/1.2 var(--f-read); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.musicbar .mt b { font-family: var(--f-show); }
.musicbar button { min-width: 44px; min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; }
.musicbar input[type=range] { width: clamp(70px, 12vw, 160px); accent-color: var(--sun); min-height: 44px; }
.ytbox { position: fixed; z-index: 43; width: 96px; height: 54px; border-radius: 8px; overflow: hidden; background: #000; }
.ytbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.ytbox .shield { position: absolute; inset: 0; z-index: 2; background: transparent; }
.ytbox .art { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--this), var(--that)); font: 800 12px/1 var(--f-show); text-align: center; padding: 4px; }
.ytbox .tapgo { position: absolute; inset: 0; z-index: 3; border: 0; background: var(--sun); color: var(--night); font: 800 12px/1 var(--f-show); }
.jbpanel .songs { display: flex; flex-direction: column; gap: 6px; }
.jbpanel .songs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.jbpanel .songs button.cur { background: var(--sun); }
.jbpanel .songs small { font: 700 14px/1.2 var(--f-read); opacity: .85; }
.jbhead { display: flex; align-items: center; gap: 10px; }
.jbhead img, .jbhead svg { width: 64px; height: 64px; }

/* projector (arena.html) */
.proj { --picmax: 44vh; }
.proj .duel { flex: 0 1 auto; }
.proj .wrap { max-width: min(1860px, 97vw); }
.codebox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.code-big { font: 800 clamp(60px, 9vw, 170px)/1 var(--f-show); letter-spacing: .14em; color: var(--sun); text-shadow: 0 6px 0 rgba(0,0,0,.4); }
.joinurl { font: 800 clamp(20px, 1.6vw + 8px, 40px)/1.1 var(--f-show); overflow-wrap: anywhere; }
.qr { background: #fff; padding: 10px; border-radius: 16px; line-height: 0; }
.qr img, .qr canvas { width: clamp(120px, 14vw, 240px) !important; height: auto !important; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; width: 100%; }
.names .nm { padding: 8px 12px; border-radius: 14px; background: rgba(46,38,114,.92); border: 2px solid var(--line); font: 800 clamp(16px, 1vw + 8px, 26px)/1.1 var(--f-show); overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; animation: pop .4s; }
.names .nm .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--good); flex: none; }
.names .nm.off .dot { background: #888; }
.hostbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.go-btn { min-height: 88px; min-width: 260px; font-size: clamp(34px, 3vw + 10px, 64px); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.answered { font: 800 clamp(18px, 1.2vw + 8px, 34px)/1 var(--f-show); text-align: center; }
.fast { text-align: center; font: 800 clamp(18px, 1.4vw + 8px, 38px)/1.1 var(--f-show); color: var(--sun); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .floater { animation: floatup 1.5s linear forwards !important; }
}
@media print {
  body { background: #fff; color: #000; } .drawer { position: static; box-shadow: none; width: auto; color: #000; background: #fff; }
  .app, .sidetab, .rabar, .musicbar, .ytbox, .bgfx, .topbar, .dtools, .xbtn { display: none !important; }
}
@media (max-width: 520px) { #bFull { display: none; } }
/* short sideways screens (phones turned sideways): the cards fill what is left, nothing hides below */
@media (max-height: 520px) {
  .topbar { position: static; padding-block: 4px; }
  .topbar .ttl { font-size: 22px; }
  .play { gap: 6px; padding-block: 4px 6px; }
  .prompt { font-size: clamp(18px, 3.4vh + 6px, 30px); }
  .prompt-es, #qArtBox, .qhead [data-readq] { display: none !important; }
  .choice { --picmax: calc(100dvh - 250px); padding: 6px; gap: 4px; }
  .choice .tag { top: 4px; font-size: 13px; padding: 2px 10px; }
  .choice .lab { font-size: 17px; }
  .choice .lab-es { display: none; }
  .count321 { font-size: 56px; }
}
