/* ───────── Дизайн-токены (iOS-палитра, тёмная тема по умолчанию) ───────── */
:root {
  --bg: #000;
  --surface: #1c1c1e;
  --surface2: #2c2c2e;
  --glass: rgba(28, 28, 30, .72);
  --fill: rgba(120, 120, 128, .24);
  --fill2: rgba(120, 120, 128, .36);
  --line: rgba(84, 84, 88, .55);
  --text: #fff;
  --text2: rgba(235, 235, 245, .62);
  --text3: rgba(235, 235, 245, .32);
  --blue: #0a84ff;
  --indigo: #5e5ce6;
  --green: #30d158;
  --green-btn: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --teal: #64d2ff;
  --ta: #ff9f0a;
  --tb: #64d2ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --glow1: rgba(94, 92, 230, .38);
  --glow2: rgba(10, 132, 255, .26);
  --ease: cubic-bezier(.2, .9, .25, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
/* data-theme выставляет app.js (тема Telegram или системная) */
:root[data-theme="light"] {
  --bg: #f2f2f7;
  --surface: #fff;
  --surface2: #f2f2f7;
  --glass: rgba(255, 255, 255, .72);
  --fill: rgba(120, 120, 128, .12);
  --fill2: rgba(120, 120, 128, .2);
  --line: rgba(60, 60, 67, .18);
  --text: #000;
  --text2: rgba(60, 60, 67, .68);
  --text3: rgba(60, 60, 67, .3);
  --blue: #007aff;
  --indigo: #5856d6;
  --green: #34c759;
  --green-btn: #248a3d;
  --red: #ff3b30;
  --orange: #ff9500;
  --yellow: #ffcc00;
  --teal: #32ade6;
  --ta: #ff9500;
  --tb: #32ade6;
  --shadow: 0 10px 30px rgba(0, 0, 0, .1);
  --glow1: rgba(88, 86, 214, .2);
  --glow2: rgba(0, 122, 255, .16);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overscroll-behavior: none; }
body {
  font: 500 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; letter-spacing: inherit; color: inherit; border: 0; cursor: pointer; touch-action: manipulation; background: none; padding: 0; }
button:disabled { cursor: default; }
svg { display: block; }

#app {
  position: relative; display: flex; flex-direction: column; height: 100dvh; max-width: 560px; margin: 0 auto; overflow: hidden;
}
/* мягкое «северное сияние» за интерфейсом */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, var(--glow1), transparent 70%),
    radial-gradient(55% 40% at 90% 8%, var(--glow2), transparent 70%);
}

#top { flex: none; padding: max(10px, env(safe-area-inset-top)) 14px 6px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
#main { flex: 1; overflow-y: auto; padding: 6px 14px 18px; -webkit-overflow-scrolling: touch; animation: rise .5s var(--ease); scrollbar-width: none; }
#main::-webkit-scrollbar { display: none; }
#dock {
  flex: none; padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-top: .5px solid var(--line);
}
#dock:empty { display: none; }
.conn { background: var(--red); color: #fff; text-align: center; padding: 6px; font-size: 13px; font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────── Счёт ───────── */
.team {
  position: relative; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px; padding: 9px 12px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--spring), box-shadow .3s;
}
.team.tB { align-items: flex-end; text-align: right; }
.swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--ta); position: absolute; top: 11px; right: 12px; }
.tB .swatch { background: var(--tb); right: auto; left: 12px; }
.team.active { transform: scale(1.04); box-shadow: inset 0 0 0 2px var(--yellow), 0 0 28px color-mix(in srgb, var(--yellow) 45%, transparent); }
.team.mine .tname::after { content: "  ·  вы"; color: var(--blue); }
.tname { font-size: 12px; font-weight: 600; color: var(--text2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tscore { font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tscore.bump { animation: bump .6s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); color: var(--green); } 100% { transform: scale(1); } }
.mid { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 70px; max-width: 120px; text-align: center; }
.mid b { font-size: 13px; font-weight: 700; line-height: 1.15; }
.mid span { font-size: 12px; color: var(--text2); }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--text2); margin-top: 3px; transition: .2s; }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 16px; height: 16px; }

/* ───────── Общее ───────── */
.center-msg { text-align: center; margin: 24vh 0 0; font-size: 17px; color: var(--text2); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.hero { text-align: center; padding: 5vh 0 8px; }
.hero h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin: 6px 0 0; }
.hero p { color: var(--text2); margin: 10px auto 0; max-width: 34ch; font-size: 15px; }
.code {
  display: inline-block; margin-top: 8px; font-size: 44px; font-weight: 800; letter-spacing: .22em; padding: 6px 0 6px .22em;
  background: linear-gradient(135deg, var(--blue), var(--indigo) 60%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hint { color: var(--text2); font-size: 14px; text-align: center; margin: 6px 0 10px; }
.hint b { color: var(--text); }

.banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 52px; padding: 10px 16px; margin: 4px 0 12px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 20px; font-size: 16px; font-weight: 650; line-height: 1.25; box-shadow: inset 0 0 0 1px var(--line);
  animation: pop-in .45s var(--spring);
}
.banner::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text3); }
.banner.hot::before { background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 30%, transparent); animation: ping 1.2s infinite; }
.banner.ok { background: color-mix(in srgb, var(--green) 20%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent); }
.banner.ok::before { background: var(--green); }
.banner.bad { background: color-mix(in srgb, var(--red) 18%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 55%, transparent); }
.banner.bad::before { background: var(--red); }
@keyframes ping { 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ───────── Кнопки ───────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 16px; border-radius: 16px;
  background: var(--fill); font-weight: 600; font-size: 16px; transition: transform .2s var(--spring), opacity .2s, filter .2s;
}
.btn:active:not(:disabled) { transform: scale(.96); filter: brightness(.9); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 88%, #fff), var(--blue)); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 40%, transparent); }
.btn.ok { background: var(--green-btn); color: #fff; font-weight: 700; }
.btn.bad { background: var(--red); color: #fff; font-weight: 700; }
.btn.ghost { background: var(--fill); color: var(--blue); }
.btn.small { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 13px; }
.btn:disabled { opacity: .35; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; min-width: 0; }
#dock > .btn { width: 100%; }
#dock > .row, .tools { margin-top: 0; }

/* ───────── Лобби ───────── */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.tcard { background: var(--surface); border-radius: 22px; padding: 14px; min-height: 150px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.tcard .bar { height: 5px; width: 36px; border-radius: 3px; background: var(--ta); }
.tcard.tB .bar { background: var(--tb); }
.tcard h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.name-edit { width: 100%; background: var(--fill); border: 0; color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 700; font-size: 16px; outline: none; }
.name-edit:focus { box-shadow: 0 0 0 2px var(--blue); }
.you { text-align: center; font-size: 13px; font-weight: 600; color: var(--blue); padding: 8px 0 2px; }
.members { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.member { font-size: 15px; display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex: none; }
.dot.on { background: var(--green); }
.pool { background: var(--surface); border-radius: 20px; padding: 6px 14px; margin-top: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.pool .p { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 15px; border-bottom: .5px solid var(--line); }
.pool .p:last-child { border: 0; }
.pool .row { flex: none; width: 96px; }
.pool .hint { text-align: left; margin: 8px 0 2px; }

/* ───────── Мемы ───────── */
.pic-wrap { position: relative; background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.pic { display: block; width: 100%; height: 44dvh; object-fit: contain; animation: pop-in .5s var(--ease); }
.pic.ph { display: grid; place-items: center; font-size: 96px; font-weight: 800; color: var(--text3); animation: none; }
.pic-tag { position: absolute; left: 12px; top: 12px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 99px; padding: 4px 11px; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.thumb { flex: none; width: 66px; height: 50px; border-radius: 13px; overflow: hidden; background: var(--surface); position: relative; opacity: .6; transition: .25s var(--spring); box-shadow: inset 0 0 0 1px var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.sel { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 2.5px var(--blue); }
.thumb span { position: absolute; right: 4px; bottom: 2px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.cd { margin-top: 14px; }
.cd-bar { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
.cd-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--indigo)); transition: width .12s linear; }
.cd-num { display: block; text-align: center; margin-top: 6px; font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
.answer-line { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 16px 0 0; animation: pop-in .5s var(--spring); }

/* ───────── Табло 100 к 1 ───────── */
.board {
  background: linear-gradient(160deg, color-mix(in srgb, var(--indigo) 30%, var(--surface)), var(--surface) 55%);
  border-radius: 30px; padding: 14px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.bhead { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.bank { display: flex; align-items: baseline; gap: 8px; }
.bank b { font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--text), var(--text2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bank i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--yellow); }
.bank.tick b { animation: bump .6s var(--spring); }
.q { background: var(--fill); border-radius: 18px; padding: 14px 16px; font-size: clamp(17px, 5vw, 22px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 10px; min-height: 3.4em; display: flex; align-items: center; }
.q.dim { opacity: .35; }
.grid { display: grid; grid-auto-flow: column; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; padding: 6px 8px 6px 12px; border-radius: 16px;
  background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; overflow: hidden; transition: transform .2s var(--spring), box-shadow .2s;
}
.slot .st { font-size: clamp(13px, 3.7vw, 16px); line-height: 1.15; flex: 1; min-width: 0; overflow-wrap: break-word; letter-spacing: -.015em; }
.slot .st.mid { font-size: clamp(12px, 3.2vw, 14px); }
.slot .st.long { font-size: clamp(10.5px, 2.8vw, 12.5px); }
.slot .sp { background: rgba(255,255,255,.2); border-radius: 10px; padding: 3px 8px; min-width: 38px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.slot.closed { justify-content: center; }
.slot.closed .num { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 16px; font-weight: 700; color: var(--text2); flex: none; }
.slot.closed.peek { justify-content: flex-start; gap: 6px; padding: 6px 6px 6px 7px; }
.slot.closed.peek .num { width: 24px; height: 24px; font-size: 13px; }
.slot.closed.peek .st { font-size: clamp(12px, 3.3vw, 15px); }
.slot.closed.peek .st.mid { font-size: clamp(11px, 3vw, 13px); }
.slot.closed.peek .st.long { font-size: clamp(10px, 2.7vw, 12px); }
.slot.closed.peek .st { font-weight: 600; color: var(--text2); }
.slot.closed.peek .sp { background: var(--fill); color: var(--text2); font-size: 13px; min-width: 30px; padding: 2px 6px; }
.slot.tap { cursor: pointer; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--blue) 70%, transparent); }
.slot.tap .st { color: var(--text); }
.slot.tap:active { transform: scale(.96); }
.slot.shown { opacity: .5; }
.slot.shown .sp { color: inherit; }
.slot.open { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--blue) 35%, transparent); }
.slot.anim { animation: flip .75s var(--ease); }
@keyframes flip { 0% { transform: rotateX(92deg) scale(.9); filter: brightness(2); } 55% { transform: rotateX(-10deg); } 100% { transform: none; } }
.strikes { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.x { width: 44px; height: 44px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--text3); transition: .3s var(--spring); }
.x svg { width: 22px; height: 22px; }
.x.on { background: var(--red); color: #fff; transform: scale(1.1); box-shadow: 0 0 22px color-mix(in srgb, var(--red) 70%, transparent); }

/* ───────── Кнопка-«бузер» ───────── */
.buzz {
  position: relative; width: 100%; min-height: 104px; border-radius: 34px; padding: 12px 18px; font-size: 17px; font-weight: 650; line-height: 1.25;
  background: var(--fill); color: var(--text2); transition: transform .15s var(--spring);
}
.buzz.ready {
  background: radial-gradient(120% 140% at 30% 0%, #ffb340, #ff7a00 45%, #ff2d55); color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.02em; text-transform: none;
  box-shadow: 0 14px 40px rgba(255, 90, 20, .55), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -8px 18px rgba(0,0,0,.18);
  animation: breathe 1.4s ease-in-out infinite;
}
.buzz.ready::after { content: ""; position: absolute; inset: -6px; border-radius: 40px; border: 2px solid rgba(255, 140, 40, .6); animation: ring 1.4s ease-out infinite; pointer-events: none; }
.buzz.pressed, .buzz.ready:active { transform: scale(.95); animation: none; }
@keyframes breathe { 50% { transform: scale(1.015); } }
@keyframes ring { from { transform: scale(.98); opacity: .9; } to { transform: scale(1.08); opacity: 0; } }

/* ───────── Пульт ведущего ───────── */
.hostans { text-align: center; font-size: 14px; color: var(--text2); margin-bottom: 10px; line-height: 1.3; }
.hostans b { color: var(--text); font-weight: 700; }
.tools { display: flex; gap: 8px; margin-top: 8px; }
.tools .btn { flex: 1; min-height: 42px; font-size: 14px; }
.menu { background: var(--surface); border-radius: 20px; padding: 6px 14px 14px; margin-top: 10px; max-height: 40dvh; overflow-y: auto; box-shadow: inset 0 0 0 1px var(--line); animation: pop-in .35s var(--spring); }
.menu h4 { margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; }
.menu .row { margin-bottom: 6px; }
.menu select, .menu input { background: var(--fill); color: var(--text); border: 0; border-radius: 12px; padding: 11px 12px; font: inherit; width: 100%; outline: none; }
.menu .btn { width: 100%; }

/* ───────── Финал ───────── */
.podium { text-align: center; padding-top: 7vh; }
.podium .trophy { font-size: 84px; animation: pop-in .8s var(--spring); }
.podium .win { font-size: 36px; font-weight: 800; letter-spacing: -.04em; margin-top: 6px; background: linear-gradient(135deg, var(--yellow), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.podium .final { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.podium .final div { background: var(--surface); border-radius: 24px; padding: 18px 10px; font-size: 14px; color: var(--text2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.podium .final b { display: block; font-size: 54px; line-height: 1.1; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.podium .final .lead b { color: var(--yellow); }

/* ───────── Эффекты и тосты ───────── */
#fx { position: fixed; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 50; }
.fx {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 190px; padding: 26px 34px 22px; border-radius: 34px; text-align: center;
  background: var(--glass); -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 0 0 1px var(--line); animation: fx 1.3s var(--spring) forwards;
}
.fx .ic { font-size: 62px; line-height: 1; margin-bottom: 4px; }
.fx .ic svg { width: 64px; height: 64px; }
.fx .t { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fx .s { font-size: 15px; color: var(--text2); font-weight: 600; }
.fx.ok .ic, .fx.ok .t { color: var(--green); }
.fx.bad .ic, .fx.bad .t { color: var(--red); }
.fx.gold .t { color: var(--yellow); }
.fx .xs { display: flex; gap: 10px; color: var(--red); }
.fx .xs svg { width: 58px; height: 58px; }
@keyframes fx { 0% { transform: scale(.55); opacity: 0; } 16% { transform: scale(1.04); opacity: 1; } 22% { transform: scale(1); } 78% { opacity: 1; } 100% { transform: scale(.96); opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%) translateY(10px); background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 11px 18px; border-radius: 99px; z-index: 60; max-width: 90%; text-align: center; font-weight: 600; font-size: 14px; opacity: 0; transition: .3s var(--ease); pointer-events: none; box-shadow: 0 8px 30px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); }
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ───────── Режим «экран» (?screen=1): фиксированный холст 1280×720, масштабируется под монитор ───────── */
body.screen { overflow: hidden; background: var(--bg); }
body.screen #app {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; max-width: none; margin: 0;
  transform: translate(-50%, -50%) scale(var(--sc, 1)); transform-origin: center center;
}
body.screen #fx { zoom: var(--fxz, 1); }
body.screen #toast { display: none; }
body.screen #dock { display: none; }
body.screen #top { padding: 22px 40px 6px; gap: 20px; }
body.screen .team { padding: 12px 26px 10px; border-radius: 28px; }
body.screen .tname { font-size: 20px; }
body.screen .tscore { font-size: 64px; }
body.screen .swatch { width: 12px; height: 12px; top: 18px; right: 20px; }
body.screen .tB .swatch { left: 20px; }
body.screen .team.mine .tname::after { content: ""; }
body.screen .mid { min-width: 280px; max-width: 360px; }
body.screen .mid b { font-size: 26px; }
body.screen .mid span { font-size: 18px; }
body.screen .icon-btn { width: 36px; height: 36px; opacity: .6; }
body.screen .snd-hint { font-size: 13px; color: var(--yellow); margin-top: 2px; }
body.screen #main { padding: 6px 40px 20px; overflow: hidden; }
body.screen .banner { font-size: 26px; min-height: 64px; margin: 6px 0 12px; border-radius: 24px; }
body.screen .banner::before { width: 14px; height: 14px; }

/* мемы */
body.screen .pic-wrap { border-radius: 32px; }
body.screen .pic { height: 326px; }
body.screen .pic-tag { font-size: 16px; padding: 6px 16px; left: 18px; top: 18px; }
body.screen .thumbs { margin-top: 12px; gap: 14px; }
body.screen .thumb { width: 96px; height: 70px; border-radius: 16px; }
body.screen .thumb span { font-size: 15px; }
body.screen .cd { margin-top: 12px; }
body.screen .cd-bar { height: 10px; }
body.screen .cd-num { font-size: 16px; }
body.screen .answer-line { font-size: 46px; margin-top: 10px; }
body.screen .hint { font-size: 18px; margin: 8px 0 0; }

/* табло */
body.screen .board { border-radius: 36px; padding: 18px 24px 18px; position: relative; }
body.screen .bhead { padding: 0 6px 12px; }
body.screen .bhead .eyebrow { font-size: 18px; }
body.screen .bank { gap: 12px; }
body.screen .bank b { font-size: 60px; }
body.screen .bank i { font-size: 20px; }
body.screen .strikes { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); margin: 0; gap: 14px; }
body.screen .x { width: 54px; height: 54px; }
body.screen .x svg { width: 28px; height: 28px; }
body.screen .q { font-size: 32px; min-height: 2em; padding: 14px 24px; border-radius: 24px; margin-bottom: 14px; }
body.screen .grid { gap: 12px 16px; }
body.screen .slot { min-height: 76px; padding: 8px 12px 8px 20px; border-radius: 22px; }
body.screen .slot .st { font-size: 31px; }
body.screen .slot .st.mid { font-size: 27px; }
body.screen .slot .st.long { font-size: 23px; }
body.screen .slot .sp { font-size: 34px; min-width: 70px; padding: 5px 12px; border-radius: 14px; }
body.screen .slot.closed .num { width: 52px; height: 52px; font-size: 28px; }

/* лобби и интро */
body.screen .hero { padding-top: 10vh; }
body.screen .hero h1 { font-size: 64px; }
body.screen .hero p { font-size: 24px; max-width: 40ch; }
body.screen .podium .trophy { font-size: 130px; }
body.screen .podium .win { font-size: 64px; }
body.screen .podium .final { max-width: 800px; margin: 28px auto 0; }
body.screen .podium .final div { font-size: 22px; }
body.screen .podium .final b { font-size: 90px; }
.sl { display: grid; grid-template-columns: 430px 1fr; gap: 50px; align-items: center; height: 520px; }
.sl-left { text-align: center; }
.sl-left h1 { font-size: 42px; letter-spacing: -.035em; font-weight: 800; margin: 4px 0 14px; }
.sl-left p { color: var(--text2); font-size: 20px; margin: 6px 0 0; }
.sl-left .code { font-size: 54px; margin-top: 4px; }
.qr { width: 230px; height: 230px; margin: 0 auto; padding: 18px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); }
.qr svg { width: 100%; height: 100%; display: block; }
.sl-right .teams { grid-template-columns: 1fr; gap: 18px; margin: 0; }
body.screen .tcard { min-height: 200px; padding: 22px 26px; border-radius: 32px; }
body.screen .tcard h3 { font-size: 34px; }
body.screen .tcard .bar { width: 56px; height: 8px; }
body.screen .member { font-size: 26px; padding: 4px 0; }
body.screen .dot { width: 12px; height: 12px; }
