/* Doodle Telephone styles. Original look: sketchbook paper, marker ink, sticker buttons. */
:root {
  --font-display: "Chalkboard SE", "Bradley Hand", "Segoe Print", "Comic Neue", "Marker Felt", "Comic Sans MS", cursive;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg1: #2b2f7a; --bg2: #14163d; --dot: rgba(255,255,255,.07);
  --acc: #ffcf3f; --acc-hi: #ffe58a; --acc-lo: #c08a00;
  --paper: #fffaf0; --paper-2: #f3ead4; --pink: #ff6fa8; --mint: #46d6a4; --sky: #5bb5ff; --red: #ff5d5d;
  --ink: #fff7e3; --ink-dim: #b9b6e0; --pen: #2a2438; --pen-dim: #6c6580;
  --panel: #1d1f55; --panel-2: #272a6e; --good: #6be3a6; --bad: #ff8a8a;
  --fs-xs: 11px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 24px; --fs-2xl: 36px;
}
html[data-table="crayon"] { --bg1: #7a2b6b; --bg2: #2e0f2c; --dot: rgba(255,255,255,.08); }
html[data-table="mint"] { --bg1: #0f7d78; --bg2: #06302f; }
html[data-table="sunset"] { --bg1: #c2452f; --bg2: #3a1109; --panel: #4a1a12; --panel-2: #5f241a; --ink-dim: #f1c6b8; }
html[data-table="graphite"] { --bg1: #3c4150; --bg2: #14161c; --panel: #20232d; --panel-2: #2d313e; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg2); overscroll-behavior: none; }
body { font-family: var(--font-ui); color: var(--ink); touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; }
.hidden { display: none !important; }
.play { position: fixed; inset: 0; max-width: 640px; margin: 0 auto; overflow: hidden; background: radial-gradient(circle at 1px 1px, var(--dot) 1.4px, transparent 1.6px) 0 0 / 22px 22px, radial-gradient(ellipse at 50% -10%, var(--bg1), var(--bg2) 75%); }
body.tv .play { max-width: none; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ---------- buttons ---------- */
.primary {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); letter-spacing: .01em; color: #3a2800; border: 2.5px solid #3a2800; border-radius: 16px; padding: 14px 18px;
  background: linear-gradient(var(--acc-hi), var(--acc)); cursor: pointer; box-shadow: 0 5px 0 #3a2800; transition: transform .08s, box-shadow .08s; min-height: 52px;
}
.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #3a2800; }
.primary:disabled { filter: grayscale(.85) brightness(.7); }
.primary.pink { background: linear-gradient(#ff9cc6, var(--pink)); color: #4a0a26; border-color: #4a0a26; box-shadow: 0 5px 0 #4a0a26; }
.primary.mint { background: linear-gradient(#8ff0cb, var(--mint)); color: #053b28; border-color: #053b28; box-shadow: 0 5px 0 #053b28; }
.ghost { font-weight: 700; font-size: var(--fs-md); color: var(--ink); background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.28); border-radius: 14px; padding: 12px 16px; cursor: pointer; min-height: 46px; }
.ghost:active { background: rgba(255,255,255,.16); transform: scale(.98); }
.chip-btn { font-size: var(--fs-sm); font-weight: 700; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25); border-radius: 12px; padding: 8px 12px; cursor: pointer; min-height: 38px; }
.chip-btn:active { transform: translateY(1px); }
.chip-btn:disabled { opacity: .35; }
.linkish { background: none; border: 0; color: var(--acc-hi); text-decoration: underline; font-size: var(--fs-md); cursor: pointer; }

/* ---------- title ---------- */
.title { align-items: center; justify-content: center; text-align: center; padding: max(18px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; }
.title > .inner { margin: auto; width: min(360px, 100%); display: grid; gap: 12px; justify-items: center; }
.mascot { width: 168px; height: 168px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(2deg); } }
.logo { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 12vw, 52px); line-height: .95; font-weight: 800; color: var(--acc); text-shadow: 0 3px 0 #3a2800, 0 6px 0 rgba(0,0,0,.25); transform: rotate(-2deg); }
.logo small { display: block; margin-top: 12px; font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--ink-dim); text-shadow: none; transform: rotate(2deg); line-height: 1.35; }
.menu-col { display: grid; gap: 12px; width: 100%; margin-top: 6px; }
.menu-row { display: flex; gap: 10px; }
.menu-row > * { flex: 1; }
.join-inline { display: flex; gap: 8px; }
.join-inline input, .join-row input, .field {
  flex: 1; min-width: 0; font: inherit; font-size: 20px; letter-spacing: .18em; text-transform: uppercase; text-align: center; color: var(--ink); background: rgba(0,0,0,.28);
  border: 2px solid rgba(255,255,255,.28); border-radius: 14px; padding: 11px; -webkit-user-select: text; user-select: text; outline: none;
}
.join-inline input:focus, .join-row input:focus, .field:focus { border-color: var(--acc); }
.fineprint { color: var(--ink-dim); font-size: 12px; margin: 4px 0 0; line-height: 1.45; }
.back-link { color: var(--ink-dim); text-decoration: none; font-size: var(--fs-md); padding: 4px 0; text-align: center; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,5,25,.66); animation: fade .2s; }
body.tv .sheet { align-items: center; }
@keyframes fade { from { opacity: 0; } }
.sheet-body { width: 100%; max-width: 640px; max-height: 90dvh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); background: var(--panel); border-top: 3px solid var(--acc); box-shadow: 0 -10px 40px rgba(0,0,0,.5); animation: rise .3s cubic-bezier(.2,.9,.3,1.1); }
body.tv .sheet-body { border-radius: 26px; border: 3px solid var(--acc); }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }
.sheet-body::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 6px; min-height: 48px; }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--acc); }
.sheet-content { overflow: auto; padding: 4px 18px 20px; }
.sheet-actions { display: grid; gap: 10px; margin-top: 16px; position: sticky; bottom: -2px; padding-top: 12px; background: linear-gradient(transparent, var(--panel) 28%); }
.leader { text-align: center; color: var(--ink-dim); margin: 12px 0 0; font-size: var(--fs-md); }
.err { color: var(--bad); font-size: var(--fs-sm); min-height: 1.2em; text-align: center; margin: 8px 0 0; }
.rules h3, h3.sec { margin: 16px 0 6px; color: var(--acc); font-size: var(--fs-md); font-family: var(--font-display); }
.rules p, .rules li { font-size: 14px; line-height: 1.5; color: #e9e6ff; margin: 0 0 6px; }
.rules ul { margin: 0; padding-left: 18px; }
.howtip { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.howtip .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: #3a2800; font-weight: 900; display: grid; place-items: center; font-family: var(--font-display); }
.code-big { text-align: center; font-family: var(--font-display); font-size: 52px; letter-spacing: .16em; margin: 2px 0; color: var(--acc); text-shadow: 0 3px 0 #3a2800; }
.seat-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.09); }
.seat-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: none; box-shadow: 0 0 8px var(--good); }
.seat-row .dot.off { background: #777; box-shadow: none; }
.seat-row .nm { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-row .tag { font-size: var(--fs-xs); color: var(--acc); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.seat-row .avatar { width: 34px; height: 34px; margin: 0; border-width: 2px; }
.join-row { display: flex; gap: 8px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; }
.mini-row small { color: var(--ink-dim); }
.mini-row select { font: inherit; color: var(--ink); background: rgba(0,0,0,.3); border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px; padding: 8px 10px; max-width: 55%; }
.chk { width: 24px; height: 24px; accent-color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.22); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.chip.on { background: var(--acc); border-color: var(--acc); color: #3a2800; }
.lobby-note { color: var(--ink-dim); font-size: 12px; margin: 4px 0 0; }
textarea.field { letter-spacing: 0; text-transform: none; text-align: left; font-size: 15px; width: 100%; min-height: 96px; resize: vertical; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.swatch { display: grid; gap: 6px; justify-items: center; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 2px solid transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.swatch.on { border-color: var(--acc); }
.swatch i { width: 54px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--f1), var(--f3)); border: 2px solid rgba(255,255,255,.3); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.09); }
.rank-row.me { background: rgba(255,207,63,.12); border-radius: 12px; }
.rank-row .n { width: 30px; font-weight: 800; color: var(--acc); font-size: var(--fs-lg); font-family: var(--font-display); }
.rank-row .nm { flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .d { font-size: 12px; color: var(--ink-dim); white-space: nowrap; }
.rank-row .s { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; min-width: 48px; text-align: right; }
.avatar { position: relative; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 28%, var(--c1), var(--c2)); border: 2.5px solid rgba(255,255,255,.9); box-shadow: 0 3px 7px rgba(0,0,0,.45); flex: none; }
.avatar .av-svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: 90%; padding: 10px 16px; border-radius: 14px; background: #0c0d2e; border: 1.5px solid var(--acc); color: var(--ink); font-size: var(--fs-sm); text-align: center; animation: bub 3.6s ease-out forwards; }
@keyframes bub { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- game frame ---------- */
.game { padding-top: env(safe-area-inset-top); }
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 6px; }
.round-info { flex: 1; text-align: center; min-width: 0; line-height: 1.15; }
.round-info strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--acc); }
.round-info span { font-size: 12px; color: var(--ink-dim); }
.clock { min-width: 50px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; padding: 4px 10px; border-radius: 12px; background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.2); font-variant-numeric: tabular-nums; }
.clock.low { background: var(--red); border-color: #ffb0b0; color: #fff; animation: tt .8s infinite; }
@keyframes tt { 50% { transform: scale(1.1); } }
.timebar { height: 6px; background: rgba(0,0,0,.3); margin: 0 12px; border-radius: 3px; overflow: hidden; }
.timebar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--acc), var(--red)); background-size: 300% 100%; transition: width .25s linear; }
.players { display: flex; gap: 8px; padding: 8px 12px 4px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; min-height: 66px; }
.players::-webkit-scrollbar { display: none; }
.pl { display: grid; justify-items: center; gap: 2px; width: 52px; flex: none; position: relative; font-size: 10px; color: var(--ink-dim); }
.pl .avatar { width: 38px; height: 38px; }
.pl.me .avatar { box-shadow: 0 0 0 3px var(--acc), 0 3px 7px rgba(0,0,0,.45); }
.pl.off { opacity: .45; }
.pl span { max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .badge { position: absolute; top: -3px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); color: #053b28; font-style: normal; font-size: 11px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--bg2); animation: popin .35s ease-out; }
@keyframes popin { from { transform: scale(0); } 70% { transform: scale(1.3); } }
.stage { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.dock { padding: 8px 14px max(12px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.dock:empty { display: none; }
.react-row { display: flex; gap: 6px; justify-content: center; }
.react-row button { font-size: 22px; width: 46px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2); cursor: pointer; }
.react-row button:active { transform: scale(.9); }
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.floater { position: absolute; bottom: 90px; font-size: 38px; animation: floatup 2.4s ease-out forwards; text-align: center; }
.floater small { display: block; font-size: 11px; color: var(--ink); background: rgba(0,0,0,.55); border-radius: 8px; padding: 1px 6px; }
@keyframes floatup { to { transform: translateY(-340px) rotate(var(--r, 8deg)); opacity: 0; } }

/* ---------- paper cards ---------- */
.card { position: relative; background: var(--paper); color: var(--pen); border-radius: 14px; padding: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.22), 0 12px 22px rgba(0,0,0,.3); }
.card.tilt1 { transform: rotate(-1deg); } .card.tilt2 { transform: rotate(1deg); }
.tape { position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,207,63,.7); border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--pen-dim); }
.word-card { text-align: center; padding: 18px 14px 20px; }
.word-card b { display: block; font-family: var(--font-display); font-size: clamp(28px, 9vw, 40px); line-height: 1.05; margin-top: 6px; color: var(--pen); overflow-wrap: anywhere; }
.pick-grid { display: grid; gap: 14px; margin-top: 4px; }
.pick-card { text-align: center; cursor: pointer; border: 3px solid transparent; font: inherit; width: 100%; }
.pick-card.on { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,111,168,.35), 0 12px 22px rgba(0,0,0,.3); }
.pick-card:active { transform: scale(.98); }
.hero { text-align: center; padding: 6px 0 0; }
.hero h2 { margin: 0; font-family: var(--font-display); font-size: 30px; color: var(--acc); text-shadow: 0 3px 0 #3a2800; }
.hero p { margin: 6px 0 0; color: var(--ink-dim); font-size: 14px; }
.prompt { text-align: center; }
.prompt b { display: block; font-family: var(--font-display); font-size: clamp(24px, 7.5vw, 34px); line-height: 1.05; color: var(--acc); text-shadow: 0 2px 0 #3a2800; overflow-wrap: anywhere; }
.prompt small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); font-weight: 800; }

/* ---------- drawing ---------- */
.canvas-wrap { width: min(100%, calc((100dvh - 330px) * 1.25)); min-width: 220px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 0 rgba(0,0,0,.25), 0 12px 22px rgba(0,0,0,.35); border: 3px solid var(--paper); background: #fff; line-height: 0; }
.canvas-wrap canvas, canvas.drawing { width: 100%; aspect-ratio: 5 / 4; height: auto; display: block; touch-action: none; }
canvas.pad { cursor: crosshair; }
.tools { display: grid; gap: 8px; width: min(100%, 560px); margin: 0 auto; }
.colors { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.col { aspect-ratio: 1; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.65); cursor: pointer; padding: 0; min-width: 0; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.col.on { transform: scale(1.18); border-color: #fff; box-shadow: 0 0 0 3px var(--acc), 0 2px 0 rgba(0,0,0,.35); }
.tool-row { display: flex; gap: 6px; align-items: center; }
.tool { flex: 1; min-width: 0; height: 44px; font-size: 18px; border-radius: 12px; background: rgba(255,255,255,.09); border: 2px solid rgba(255,255,255,.22); cursor: pointer; display: grid; place-items: center; }
.tool.on { background: var(--acc); border-color: #3a2800; color: #3a2800; }
.tool:disabled { opacity: .35; }
.tool:active { transform: translateY(1px); }
.brush i { display: block; border-radius: 50%; background: currentColor; }
.tool-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.2); margin: 4px 2px; }

/* ---------- guess ---------- */
.guess-input { width: min(100%, 520px); margin: 0 auto; font: inherit; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: 0; text-transform: none; padding: 14px; text-align: center; color: var(--pen); background: var(--paper); border: 3px solid #3a2800; border-radius: 14px; outline: none; box-shadow: 0 4px 0 #3a2800; -webkit-user-select: text; user-select: text; }
.guess-input:focus { border-color: var(--pink); box-shadow: 0 4px 0 var(--pink); }
.blank-note { text-align: center; color: var(--ink-dim); font-size: 14px; padding: 36px 10px; background: rgba(255,255,255,.05); border-radius: 14px; border: 2px dashed rgba(255,255,255,.2); }
.wait { text-align: center; padding: 20px 8px; }
.wait .big { font-size: 56px; line-height: 1; margin-bottom: 6px; animation: bob 2.4s ease-in-out infinite; }
.wait h2 { font-family: var(--font-display); margin: 4px 0; color: var(--acc); font-size: 28px; }
.wait p { color: var(--ink-dim); margin: 4px 0; }
.wait .preview { width: min(70%, 240px); margin: 12px auto 0; transform: rotate(-2deg); }
.wait .preview canvas { width: 100%; border-radius: 10px; border: 3px solid var(--paper); box-shadow: 0 4px 0 rgba(0,0,0,.25); aspect-ratio: 5/4; }

/* ---------- reveal ---------- */
.strip { display: grid; gap: 14px; }
.entry { animation: dealin .5s cubic-bezier(.2,.9,.3,1.15) backwards; position: relative; }
@keyframes dealin { from { opacity: 0; transform: translateY(26px) scale(.94) rotate(-2deg); } }
.entry .who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--pen-dim); }
.entry .who .avatar { width: 30px; height: 30px; border-width: 2px; }
.entry .who b { color: var(--pen); }
.entry canvas.drawing { border-radius: 8px; border: 2px solid #e5dcc3; }
.entry .said { font-family: var(--font-display); font-size: clamp(24px, 7.5vw, 34px); font-weight: 800; text-align: center; line-height: 1.1; padding: 8px 4px 4px; overflow-wrap: anywhere; color: var(--pen); }
.entry .said.auto { color: var(--pen-dim); font-style: italic; }
.entry.star-able { cursor: pointer; }
.entry.star-able:active { transform: scale(.985); }
.entry.mine-entry { opacity: .55; }
.star { position: absolute; top: 8px; right: 8px; min-width: 42px; height: 42px; border-radius: 21px; display: grid; place-items: center; font-size: 22px; background: rgba(0,0,0,.08); border: 2px dashed rgba(0,0,0,.22); color: #999; padding: 0 8px; }
.entry.picked .star { background: var(--acc); border: 2px solid #3a2800; color: #3a2800; animation: popin .4s ease-out; }
.entry.picked { box-shadow: 0 0 0 4px var(--acc), 0 12px 22px rgba(0,0,0,.3); }
.stars-n { position: absolute; top: 8px; right: 8px; background: var(--acc); border: 2px solid #3a2800; color: #3a2800; font-weight: 900; border-radius: 999px; padding: 4px 10px; font-size: 15px; animation: popin .5s ease-out; }
.pts { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 800; color: #1b7a4a; }
.verdict { text-align: center; padding: 16px 12px; border-radius: 16px; animation: dealin .5s backwards; border: 3px solid; }
.verdict h3 { margin: 0; font-family: var(--font-display); font-size: 30px; }
.verdict p { margin: 6px 0 0; font-size: 14px; }
.verdict.yes { background: rgba(107,227,166,.16); border-color: var(--good); color: var(--good); }
.verdict.no { background: rgba(255,138,138,.13); border-color: var(--bad); color: var(--bad); }
.verdict .vs { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--ink); font-family: var(--font-display); font-size: 18px; }
.verdict .vs span { background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 10px; }
.award-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.award { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); font-weight: 800; font-size: 13px; animation: popin .5s backwards; }
.award .avatar { width: 26px; height: 26px; border-width: 2px; }
.award b { color: var(--acc); }
.hint-line { text-align: center; color: var(--ink-dim); font-size: 14px; margin: 2px 0; }
.book-head { display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; }
.book-head h2 { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--acc); text-shadow: 0 2px 0 #3a2800; }
.book-head .avatar { width: 38px; height: 38px; margin: 0; }
.prog { display: flex; gap: 5px; justify-content: center; }
.prog i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.prog i.on { background: var(--acc); }

/* ---------- done ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 6px 0; }
.pod { display: grid; justify-items: center; gap: 4px; width: 92px; font-weight: 800; font-size: 13px; text-align: center; }
.pod .avatar { width: 54px; height: 54px; }
.pod .bar { width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: start center; padding-top: 6px; font-family: var(--font-display); font-size: 30px; color: #3a2800; background: linear-gradient(var(--acc-hi), var(--acc)); border: 2.5px solid #3a2800; border-bottom: 0; }
.pod.p2 .bar { background: linear-gradient(#f2f4f8, #aab4c6); } .pod.p3 .bar { background: linear-gradient(#f4c9a2, #c98750); }
.pod span.sc { color: var(--ink-dim); font-weight: 700; }
.book-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.2); cursor: pointer; margin-bottom: 8px; }
.book-btn .avatar { width: 34px; height: 34px; margin: 0; }
.book-btn .t { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-dim); line-height: 1.3; }
.book-btn .t b { color: var(--ink); display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-btn .ok { color: var(--good); font-weight: 800; }
canvas.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 25; }

/* ---------- TV ---------- */
body.tv .stage { padding: 14px 34px 24px; }
body.tv .topbar, body.tv .players { padding-left: 34px; padding-right: 34px; }
body.tv .timebar { margin: 0 34px; }
body.tv .round-info strong { font-size: 30px; } body.tv .round-info span { font-size: 17px; }
body.tv .clock { font-size: 34px; padding: 6px 18px; }
body.tv .pl { width: 84px; font-size: 14px; } body.tv .pl .avatar { width: 58px; height: 58px; } body.tv .pl span { max-width: 84px; }
body.tv .strip { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
body.tv .entry .said { font-size: 44px; }
body.tv .prompt b { font-size: 56px; } body.tv .hero h2 { font-size: 52px; } body.tv .wait h2 { font-size: 48px; } body.tv .wait p { font-size: 22px; }
body.tv .code-big { font-size: 110px; }
body.tv .tv-lobby { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.tv-seats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tv-seat { display: grid; justify-items: center; gap: 4px; width: 100px; font-weight: 800; animation: popin .4s backwards; }
.tv-seat .avatar { width: 68px; height: 68px; }
.tv-banner { text-align: center; }
.tv-banner .url { font-family: var(--font-display); font-size: 34px; color: var(--ink); }
@media (max-width: 520px) { body.tv .tv-lobby { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mascot, .wait .big, .entry, .verdict, .award { animation: none !important; } }
.entry.static { animation: none; }
.pl em { font-style: normal; font-weight: 900; color: var(--acc); font-size: 12px; }
body.tv .pl em { font-size: 18px; }
.entry .who { padding-right: 50px; }
.entry .who .avatar { margin: 0; }
body.tv .strip { display: flex; overflow-x: auto; align-items: flex-start; padding: 12px 6px 18px; gap: 22px; scrollbar-width: none; }
body.tv .strip > * { flex: 0 0 clamp(260px, 26vw, 400px); }
body.tv .strip::-webkit-scrollbar { display: none; }
body.tv .entry .said { font-size: 36px; }
.stage > .tv-lobby, .stage > .wait { margin-block: auto; }
