:root {
  --bg: #0f1a2b;
  --panel: #17263d;
  --panel2: #1f3150;
  --line: #2c4366;
  --text: #eef3fb;
  --muted: #8ea3c2;
  --accent: #e8b84a;
  --danger: #e0524f;
  --ok: #3fb56b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}
textarea { width: 100%; margin: 8px 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .4; cursor: default; }
button.primary { background: var(--accent); color: #1a1200; border-color: var(--accent); font-weight: 600; }
button.danger { border-color: var(--danger); color: #ffb3b1; }
button.small { padding: 2px 8px; font-size: 13px; }
button.icon { background: none; border: none; color: var(--muted); padding: 2px 6px; }
button.icon:hover { color: var(--danger); }
.muted { color: var(--muted); font-size: 14px; }
.num { width: 76px; }
.grow { flex: 1; min-width: 200px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
details { margin: 12px 0; }
summary { cursor: pointer; color: var(--muted); }
h3 { margin: 18px 0 8px; }
.warn-box { background: #4a3410; border: 1px solid var(--accent); padding: 8px 12px; border-radius: 8px; }
.warn-text { color: var(--accent); font-size: 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--c); color: var(--text); background: color-mix(in srgb, var(--c) 25%, transparent);
}

/* ---------- Ведучий ---------- */
.host-header {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.host-header h1 { font-size: 20px; margin: 0; }
.board-ctl { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.chip.on { background: var(--accent); color: #1a1200; border-color: var(--accent); }
.chip.warn { border-color: var(--danger); }
.tabs { display: flex; gap: 4px; padding: 10px 16px 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab { border-radius: 8px 8px 0 0; border-bottom: none; background: transparent; }
.tab.on { background: var(--panel); border-color: var(--line); font-weight: 600; }
.tab.add { color: var(--accent); border-style: dashed; }
.panel { padding: 16px; max-width: 1200px; }

.people { padding-left: 28px; columns: 2 320px; }
.people li { margin: 4px 0; break-inside: avoid; }
.people li input { width: 220px; margin-right: 6px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.team-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 10px; padding: 10px; }
.team-card input[type=color] { width: 36px; height: 32px; padding: 2px; }
.team-name { flex: 1; font-weight: 600; min-width: 0; }
.team-card ul, .free { list-style: none; padding: 0; margin: 6px 0 0; }
.team-card li, .free li { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 3px 0; }
.team-card li select, .free li select { max-width: 120px; font-size: 13px; padding: 2px 4px; }
.free { max-width: 420px; }

.contest-name { font-size: 18px; font-weight: 600; }
.standings { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.stand { background: var(--panel); border-left: 5px solid var(--c); border-radius: 8px; padding: 8px 14px; min-width: 150px; }
.stand-name { font-weight: 600; }
.stand-score { font-size: 28px; font-weight: 700; }
.round-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 14px; }
.answers td input:not(.num) { width: 100%; min-width: 160px; }
.answers tr.revealed td { background: rgba(232, 184, 74, .08); }
.answers .who { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.team-btn { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); padding: 2px 8px; font-size: 13px; }
.strikes { color: var(--danger); display: inline-block; min-width: 40px; text-align: center; letter-spacing: 2px; }
.rating tr.prize td { background: rgba(232, 184, 74, .1); }
.file-btn { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; background: var(--panel2); }
.file-btn input { display: none; }
.finale-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 2px solid var(--accent);
  padding: 10px 16px; display: flex; gap: 10px; align-items: center; justify-content: center;
}

/* ---------- Табло ---------- */
body.is-board { overflow: hidden; background: radial-gradient(ellipse at top, #1d3560, #0a1220 70%); }
.board { height: 100vh; width: 100vw; padding: 3vh 3vw; display: flex; flex-direction: column; position: relative; }
.welcome { margin: auto; text-align: center; }
.welcome .big { font-size: 7vw; font-weight: 800; color: var(--accent); text-shadow: 0 0 40px rgba(232, 184, 74, .4); }
.welcome .sub { font-size: 3vw; color: var(--muted); margin-top: 2vh; }

.b-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr)); gap: 2vw; height: 100%; }
.b-team { background: rgba(255, 255, 255, .05); border-top: .8vh solid var(--c); border-radius: 1vw; padding: 2vh 1.5vw; }
.b-team h2 { color: var(--c); font-size: 3vw; margin: 0 0 2vh; }
.b-team ul { list-style: none; padding: 0; margin: 0; font-size: 2vw; line-height: 1.5; }

.b-ff { display: flex; flex-direction: column; height: 100%; gap: 2vh; }
.b-ff-head { text-align: center; }
.round-title { font-size: 2.2vw; color: var(--muted); }
.mult { color: var(--accent); font-weight: 800; }
.question { font-size: 3.4vw; font-weight: 700; margin-top: 1vh; }
.duel { font-size: 1.8vw; color: var(--accent); margin-top: 1vh; }
.b-ff .grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, 1fr); gap: 1.2vh 1.5vw; }
.cell {
  border-radius: .8vw; background: linear-gradient(#24477f, #18315a); border: 2px solid #3c66a8;
  display: flex; align-items: center; justify-content: center; font-size: 3vw; font-weight: 700;
}
.cell .num { width: 5vw; height: 5vw; border-radius: 50%; background: #0d1d38; display: flex; align-items: center; justify-content: center; }
.cell.open { justify-content: space-between; padding: 0 2vw; background: linear-gradient(color-mix(in srgb, var(--c) 55%, #10203a), color-mix(in srgb, var(--c) 30%, #10203a)); border-color: var(--c); }
.cell.open .txt { font-size: 2.6vw; }
.cell.open .pts { font-size: 3vw; background: rgba(0, 0, 0, .3); padding: 0 1vw; border-radius: .5vw; }
.b-scores { display: flex; gap: 1.5vw; }
.b-score { flex: 1; background: rgba(255, 255, 255, .06); border-bottom: .8vh solid var(--c); border-radius: .8vw; text-align: center; padding: 1vh; }
.b-score .n { font-size: 1.8vw; color: var(--c); font-weight: 700; }
.b-score .s { font-size: 4.5vw; font-weight: 800; line-height: 1.1; }
.b-score .x { font-size: 2.2vw; color: var(--danger); letter-spacing: .5vw; }

.b-lb-wrap h1 { text-align: center; font-size: 3.5vw; margin: 0 0 2vh; color: var(--accent); }
.b-lb-wrap .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; }
.b-lb { list-style: none; padding: 0; margin: 0; font-size: 1.9vw; }
.b-lb li { display: flex; align-items: center; gap: .8vw; padding: .5vh .8vw; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.b-lb li.prize { background: rgba(232, 184, 74, .14); }
.b-lb .p { width: 3vw; color: var(--muted); }
.b-lb .nm { flex: 1; }
.b-lb .tot { font-weight: 800; }

.b-finale { margin: auto; width: 60vw; text-align: center; }
.b-finale h1 { font-size: 4vw; color: var(--accent); }
.fin {
  display: flex; align-items: center; gap: 2vw; font-size: 3vw; padding: 1.5vh 2vw; margin: 1.2vh 0;
  background: rgba(255, 255, 255, .07); border-radius: 1vw; animation: pop .6s ease-out;
}
.fin .p { width: 5vw; font-weight: 800; color: var(--accent); }
.fin .nm { flex: 1; text-align: left; }
.fin .tot { font-weight: 800; }
.fin.place-1 { font-size: 4vw; background: linear-gradient(90deg, rgba(232, 184, 74, .5), rgba(232, 184, 74, .1)); }
.fin.hidden { justify-content: center; color: var(--muted); animation: none; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.timer {
  position: absolute; top: 2vh; right: 2vw; width: 9vw; height: 9vw; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: .5vw solid var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 4.5vw; font-weight: 800;
}
.timer.hot { border-color: var(--danger); color: #ffb3b1; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* ---------- Ефекти табло ---------- */
.b-ff .grid { perspective: 1200px; }
.cell { transform-style: preserve-3d; backface-visibility: hidden; }
.cell.open.flip { animation: flip 1.1s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes flip {
  0% { transform: rotateX(-90deg); filter: brightness(2.2); }
  45% { transform: rotateX(18deg); filter: brightness(1.6); }
  70% { transform: rotateX(-6deg); }
  100% { transform: rotateX(0); filter: brightness(1); box-shadow: 0 0 0 transparent; }
}
.cell.open.flip .pts { animation: pts-pop 1.1s ease-out both; animation-delay: inherit; }
@keyframes pts-pop { 0%, 40% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }

.strike-fx {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3vw;
  pointer-events: none; background: rgba(120, 0, 0, .25);
  animation: strike-bg 1.6s ease-out both;
}
.strike-fx span {
  font-size: 26vw; line-height: 1; font-weight: 900; color: #ff2a2a;
  text-shadow: 0 0 4vw rgba(255, 0, 0, .8), 0 0 1vw #fff;
  -webkit-text-stroke: .4vw #fff;
  animation: strike-x 1.6s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: inherit;
}
@keyframes strike-bg { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes strike-x {
  0% { transform: scale(3) rotate(-20deg); opacity: 0; }
  18% { transform: scale(.9) rotate(4deg); opacity: 1; }
  26% { transform: scale(1.05) rotate(-2deg); }
  32%, 80% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(.8); opacity: 0; }
}
.sound-btn {
  position: absolute; bottom: 2vh; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a1200; font-weight: 700; font-size: 1.4vw; border: none; padding: 1vh 2vw;
}
button.miss { border-color: var(--danger); color: #ffb3b1; }

/* ---------- Заставка Univisia (біло-оранжева) ---------- */
.board.mode-welcome { padding: 0; background: #fff; }
body.is-board:has(.mode-welcome) { background: #fff; }
.welcome-uv {
  --uv: #fb4000; --uv-soft: #ffc3a2; --uv-ink: #222;
  position: relative; height: 100%; overflow: hidden; color: var(--uv-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(circle at 15% 110%, rgba(251, 64, 0, .14), transparent 45%),
    radial-gradient(circle at 90% -10%, rgba(251, 64, 0, .12), transparent 40%),
    #fff;
}
.welcome-uv::before, .welcome-uv::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.2vh; background: var(--uv);
}
.welcome-uv::before { top: 0; }
.welcome-uv::after { bottom: 0; }
.uv-logo { width: 26vw; max-width: 520px; height: auto; position: relative; z-index: 1; animation: uv-in 1s ease-out both; }
.uv-year {
  position: relative; z-index: 1; font-size: 17vw; line-height: .95; font-weight: 900; letter-spacing: -.02em;
  color: var(--uv); margin-top: 5vh; animation: uv-in 1s .2s ease-out both;
}
.uv-title { position: relative; z-index: 1; font-size: 6vw; font-weight: 800; margin-top: 1vh; animation: uv-in 1s .4s ease-out both; }
.uv-line { position: relative; z-index: 1; width: 10vw; height: .6vh; background: var(--uv); border-radius: 1vh; margin: 3vh 0 2.5vh; animation: uv-in 1s .6s ease-out both; }
.uv-sub { position: relative; z-index: 1; font-size: 2.2vw; color: #666; animation: uv-in 1s .8s ease-out both; }
@keyframes uv-in { from { opacity: 0; transform: translateY(3vh); } to { opacity: 1; transform: none; } }
.snow { position: absolute; inset: 0; pointer-events: none; }
.flake { position: absolute; top: -5vh; color: var(--uv); animation: fall linear infinite; }
.flake:nth-child(3n) { color: var(--uv-soft); }
@keyframes fall {
  0% { transform: translate(0, -5vh) rotate(0); }
  50% { transform: translate(2vw, 50vh) rotate(180deg); }
  100% { transform: translate(-1vw, 110vh) rotate(360deg); }
}
.mode-welcome .sound-btn { background: #fb4000; color: #fff; }
.music-btn {
  position: absolute; bottom: 3vh; right: 2vw; width: 4vw; height: 4vw; border-radius: 50%; font-size: 1.8vw;
  background: #fff; border: 2px solid #fb4000; z-index: 2; opacity: .7;
}
.music-btn:hover { opacity: 1; }

/* ---------- Жеребкування команд ---------- */
.teams-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 12px 0; }
.teams-box summary { color: var(--text); }
.teams-box summary .badge { margin-left: 4px; }
.b-teams-wrap { display: flex; flex-direction: column; height: 100%; gap: 2vh; }
.b-teams-title { text-align: center; font-size: 3vw; margin: 0; color: var(--accent); }
.b-teams-wrap .b-teams { flex: 1; }
.b-team h2.pop { animation: team-pop .7s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes team-pop { from { transform: scale(0) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.b-team li.drawn { animation: drawn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes drawn {
  0% { transform: translateY(-6vh) scale(1.6); opacity: 0; color: var(--c); }
  60% { transform: translateY(0) scale(1.1); opacity: 1; color: var(--c); }
  100% { transform: none; opacity: 1; }
}
.cloud { font-size: 13px; color: var(--muted); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.cloud.ok { color: #9be3b4; border-color: #2f6b45; }
.cloud.err { color: #ffb3b1; border-color: var(--danger); }

/* ---------- Найближча відповідь: ведучий ---------- */
.cl-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 12px 0; }
.cl-team { background: var(--panel); border-top: 4px solid var(--c); border-radius: 8px; padding: 8px 12px; }
.cl-team.out { opacity: .55; }
.cl-team-name { color: var(--c); font-weight: 700; margin-bottom: 4px; }
.cl-team ul { list-style: none; padding: 0; margin: 0; }
.cl-team li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 4px; border-radius: 4px; }
.cl-team li.dead { color: var(--muted); text-decoration: line-through; }
.cl-team li.next { background: color-mix(in srgb, var(--c) 30%, transparent); font-weight: 600; }
.hearts { color: #ff6b6b; letter-spacing: 1px; white-space: nowrap; }
.topic-btn { font-size: 16px; padding: 10px 14px; }
.cl-q { font-size: 18px; font-weight: 600; margin: 8px 0; }
tr.loser td { background: rgba(224, 82, 79, .2); }
tr.winner td { background: rgba(63, 181, 107, .2); }
.num.wide { width: 110px; }
input.need { border-color: var(--accent); background: #3a2c10; }
tr.used td input { color: var(--muted); }
.qr-row { align-items: flex-start; }
.qr { background: #fff; padding: 6px; border-radius: 8px; width: 180px; line-height: 0; }
.qr svg { width: 100%; height: auto; }

/* ---------- Найближча відповідь: табло ---------- */
.cl-board { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 2vh; text-align: center; }
.cl-board .question { max-width: 85vw; }
.cl-title { font-size: 4vw; margin: 0; color: var(--accent); }
.qr.big { width: min(60vh, 45vw); padding: 2vh; }
.cl-chooser { font-size: 2.6vw; }
.cl-chooser b { color: var(--accent); }
.cl-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5vw; }
.cl-topic { background: rgba(255, 255, 255, .07); border: 2px solid var(--accent); border-radius: 1vw; padding: 2vh 2vw; font-size: 2.2vw; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 1vh; min-width: 14vw; }
.cl-topic .ic { font-size: 4vw; }
.cl-topic.empty { opacity: .3; border-color: var(--line); }
.cl-unit { font-size: 2vw; color: var(--muted); }
.cl-correct { font-size: 6vw; font-weight: 800; color: var(--accent); background: rgba(232, 184, 74, .12); border: .4vh solid var(--accent); border-radius: 1vw; padding: 0 3vw; }
.cl-correct small { font-size: 2.5vw; font-weight: 600; }
.cl-correct.flip { animation: flip .9s ease both; }
.cl-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(18vw, 1fr)); gap: 1.5vw; width: 100%; }
.cl-player { background: rgba(255, 255, 255, .06); border-top: .8vh solid var(--c); border-radius: 1vw; padding: 1.5vh 1vw; transition: transform .3s, background .3s; }
.cl-player .tn { color: var(--c); font-size: 1.6vw; font-weight: 700; }
.cl-player .pn { font-size: 2.4vw; font-weight: 700; }
.cl-player .pv { font-size: 3vw; font-weight: 800; margin-top: .5vh; }
.cl-player .pd { font-size: 1.4vw; color: var(--muted); }
.cl-player .pr { font-size: 1.8vw; font-weight: 700; margin-top: .5vh; }
.cl-player.loser { background: rgba(224, 82, 79, .3); animation: pop .5s ease both; }
.cl-player.winner { background: rgba(63, 181, 107, .3); transform: scale(1.04); }
.cl-winner { font-size: 7vw; font-weight: 800; color: var(--c); animation: pulse 1.6s ease-in-out infinite; }
.cl-board .cl-teams { width: 100%; margin-top: auto; grid-template-columns: repeat(auto-fit, minmax(18vw, 1fr)); gap: 1vw; }
.cl-board .cl-team { background: rgba(255, 255, 255, .05); font-size: 1.3vw; text-align: left; }

/* ---------- Телефон команди ---------- */
body.phone { background: var(--bg); font-family: system-ui, sans-serif; }
.ph { max-width: 480px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 100vh; box-sizing: border-box; }
.ph h1 { font-size: 22px; margin: 0; }
.ph .team-pick { display: grid; gap: 10px; }
.ph .team-pick button { font-size: 20px; padding: 16px; border-left: 8px solid var(--c); text-align: left; }
.ph .bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid var(--c); padding-bottom: 8px; }
.ph .bar b { color: var(--c); font-size: 20px; }
.ph .who { font-size: 26px; font-weight: 800; text-align: center; }
.ph .q { font-size: 20px; font-weight: 600; text-align: center; }
.ph input.ans { font-size: 36px; text-align: center; padding: 12px; width: 100%; box-sizing: border-box; }
.ph button.send { font-size: 22px; padding: 16px; }
.ph .done { font-size: 22px; text-align: center; color: var(--ok); }
.ph .wait { font-size: 20px; text-align: center; color: var(--muted); margin-top: 20vh; }

/* ---------- Новорічні прикраси табло ---------- */
#deco { display: none; position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
body.deco-on #deco { display: block; }
body.is-board.deco-on { background: radial-gradient(ellipse at 50% -10%, #23407a 0%, #12234a 40%, #070e1f 85%); }
body.deco-on .board { z-index: 1; padding-top: 7vh; }
#deco .sky {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 27% 32%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 26%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 15%, #fff, transparent), radial-gradient(1px 1px at 91% 38%, #fff, transparent),
    radial-gradient(1px 1px at 6% 52%, #fff, transparent), radial-gradient(1.5px 1.5px at 35% 60%, #fff, transparent),
    radial-gradient(1px 1px at 56% 48%, #fff, transparent), radial-gradient(1.5px 1.5px at 84% 64%, #fff, transparent),
    radial-gradient(1px 1px at 20% 80%, #fff, transparent), radial-gradient(1px 1px at 70% 84%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }
#deco .flake { color: #fff; }
#deco .garland { position: absolute; top: 0; left: 0; right: 0; height: 6vh; }
#deco .garland svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#deco .garland path { fill: none; stroke: #0d1a10; stroke-width: 3; vector-effect: non-scaling-stroke; }
#deco .garland i {
  position: absolute; width: .9vw; height: 1.4vw; margin-left: -.45vw; border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--b) 45%);
  box-shadow: 0 0 1.2vw .2vw var(--b); animation: bulb 2.1s ease-in-out infinite;
}
#deco .garland i::before { content: ''; position: absolute; top: -.35vw; left: 50%; width: .5vw; height: .45vw; margin-left: -.25vw; background: #3a3f46; border-radius: .1vw; }
@keyframes bulb { 0%, 100% { opacity: 1; filter: brightness(1.15); } 50% { opacity: .45; filter: brightness(.7); box-shadow: 0 0 .3vw 0 var(--b); } }
#deco .drift {
  position: absolute; left: -5vw; right: -5vw; bottom: -3vh; height: 9vh; opacity: .12;
  background:
    radial-gradient(ellipse 18vw 7vh at 10% 100%, #fff 98%, transparent), radial-gradient(ellipse 22vw 8vh at 38% 100%, #fff 98%, transparent),
    radial-gradient(ellipse 20vw 6vh at 66% 100%, #fff 98%, transparent), radial-gradient(ellipse 24vw 8vh at 92% 100%, #fff 98%, transparent);
}
/* Тепліші акценти: заголовки табло з легким сяйвом, плитки з «морозною» кромкою. */
body.deco-on .b-teams-title, body.deco-on .b-lb-wrap h1, body.deco-on .b-finale h1, body.deco-on .cl-title { text-shadow: 0 0 2vw rgba(232, 184, 74, .45); }
body.deco-on .question { text-shadow: 0 .3vh 1vw rgba(0, 0, 0, .5); }
body.deco-on .cell { box-shadow: inset 0 .4vh 0 rgba(255, 255, 255, .18), 0 .6vh 1.5vw rgba(0, 0, 0, .35); }
body.deco-on .b-team, body.deco-on .b-score, body.deco-on .cl-player, body.deco-on .cl-topic, body.deco-on .cl-board .cl-team, body.deco-on .fin {
  background-color: rgba(10, 22, 48, .72); backdrop-filter: blur(2px);
}
body.deco-on .b-lb li { background-color: rgba(10, 22, 48, .45); }
body.deco-on .b-lb li.prize { background: rgba(232, 184, 74, .2); }
body.deco-on .cl-player.loser { background-color: rgba(150, 40, 40, .8); }
body.deco-on .cl-player.winner { background-color: rgba(30, 120, 70, .8); }
/* На табло склад команд компактний: імена в рядок, щоб 6 людей у команді вміщались. */
.cl-board .cl-team ul { display: flex; flex-wrap: wrap; gap: .3vh .4vw; }
.cl-board .cl-team li { padding: .1vh .4vw; gap: .3vw; }
.cl-board .cl-team .hearts { font-size: .9em; }
.cl-player .pt { font-size: 1.6vw; color: #cfe3ff; margin-top: .3vh; }
.ph .countdown { font-size: 44px; font-weight: 800; text-align: center; color: var(--accent); }
.ph .countdown.hot { color: #ff6b6b; animation: pulse 1s infinite; }

/* ---------- Квіз-розминка: ведучий ---------- */
.qz-cols { display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.qz-players { columns: 2; padding-left: 22px; margin: 0; }
.qz-players li { break-inside: avoid; }
.qz-players li span:first-child { margin-right: 6px; }
.qz-q { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 8px 0; }
.qz-q.draft { border-style: dashed; opacity: .8; }
.qz-q.used { border-left: 4px solid var(--ok); }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.qz-opt { display: flex; align-items: center; gap: 6px; border-left: 5px solid var(--c); padding-left: 6px; }
.qz-opt input:not([type=radio]) { flex: 1; }
.qz-ic { display: inline-block; width: 1.4em; text-align: center; }

/* ---------- Квіз-розминка: табло ---------- */
.qz-board { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 2vh; text-align: center; }
.qz-lobby { flex-direction: row; align-items: stretch; gap: 3vw; text-align: left; }
.qz-join { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2vh; text-align: center; }
.qz-join-text { font-size: 2vw; }
.qz-joined { flex: 1; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.qz-count { font-size: 7vw; font-weight: 800; color: var(--accent); line-height: 1; }
.muted-b { font-size: 1.8vw; color: var(--muted); }
.qz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .8vh .6vw; margin-top: 2vh; }
.qz-chip { background: rgba(10, 22, 48, .75); border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: .5vh 1.2vw; font-size: 1.7vw; animation: pop .4s ease both; }
.qz-mid { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 18vh; }
.qz-answered { text-align: center; }
.qz-bars { display: flex; align-items: flex-end; gap: 2vw; height: 100%; max-height: 26vh; }
.qz-bar { width: 8vw; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.qz-bar .v { font-size: 2.4vw; font-weight: 800; }
.qz-bar .b { width: 100%; min-height: .6vh; background: var(--c); border-radius: .5vw .5vw 0 0; transition: height .8s ease; opacity: .45; }
.qz-bar.ok .b { opacity: 1; box-shadow: 0 0 2vw var(--c); }
.qz-bar .i { font-size: 2vw; background: var(--c); width: 100%; border-radius: 0 0 .5vw .5vw; padding: .4vh 0; }
.qz-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5vh 1.5vw; width: 100%; }
.qz-tile { background: var(--c); color: #fff; border-radius: 1vw; padding: 2.4vh 2vw; font-size: 2.6vw; font-weight: 700; text-align: left; display: flex; align-items: center; gap: 1vw; box-shadow: inset 0 -.6vh 0 rgba(0, 0, 0, .25); transition: opacity .4s, transform .4s; }
.qz-tile .qz-ic { font-size: 3vw; width: auto; }
.qz-tile.dim { opacity: .25; }
.qz-tile.ok { transform: scale(1.03); box-shadow: 0 0 0 .5vh #fff, 0 0 3vw var(--c); }
.qz-check { margin-left: auto; font-size: 3.4vw; }
.qz-top { list-style: none; padding: 0; margin: 2vh 0 0; width: 70vw; }
.qz-top li { display: flex; align-items: center; gap: 1.5vw; font-size: 3vw; padding: 1.4vh 2vw; margin: 1vh 0; background: rgba(10, 22, 48, .78); border-radius: 1vw; animation: pop .5s ease both; }
.qz-top li:nth-child(1) { background: linear-gradient(90deg, rgba(251, 64, 0, .6), rgba(10, 22, 48, .78)); }
.qz-top li:nth-child(2) { animation-delay: .1s; } .qz-top li:nth-child(3) { animation-delay: .2s; } .qz-top li:nth-child(4) { animation-delay: .3s; } .qz-top li:nth-child(5) { animation-delay: .4s; }
.qz-top .p { width: 3vw; font-weight: 800; color: var(--accent); }
.qz-top .nm { flex: 1; text-align: left; }
.qz-top .plus { font-size: 2vw; color: #9be3b4; }
.qz-top .tot { font-weight: 800; min-width: 8vw; text-align: right; }
.qz-podium { display: flex; align-items: flex-end; justify-content: center; gap: 2vw; flex: 1; width: 70vw; }
.qz-step { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.qz-step .nm { font-size: 2.8vw; font-weight: 800; animation: pop .6s ease both; }
.qz-step .tot { font-size: 2vw; color: var(--accent); margin-bottom: 1vh; }
.qz-step .blk { width: 100%; background: linear-gradient(#fb4000, #a32a00); border-radius: 1vw 1vw 0 0; font-size: 6vw; font-weight: 900; color: #fff; display: flex; align-items: flex-start; justify-content: center; padding-top: 1vh; }
.qz-step.s1 .blk { height: 34vh; background: linear-gradient(#ffd23f, #c99a00); color: #3a2a00; }
.qz-step.s2 .blk { height: 24vh; background: linear-gradient(#e3ecf5, #9fb0c2); color: #223; }
.qz-step.s3 .blk { height: 17vh; }
.qz-step.s1 .nm { font-size: 3.6vw; }
.qz-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: 1vh 2vw; font-size: 1.7vw; color: var(--muted); }

/* ---------- Квіз-розминка: телефон гравця ---------- */
.pl-top { display: flex; justify-content: space-between; align-items: center; }
.pl-top .countdown { font-size: 34px; }
.pl-opts { display: grid; gap: 10px; }
.pl-opt { background: var(--c); color: #fff; border: none; border-radius: 12px; font-size: 20px; font-weight: 700; padding: 18px 14px; text-align: left; display: flex; align-items: center; gap: 10px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.pl-opt:active { transform: scale(.98); }
.pl-opt .qz-ic { font-size: 26px; }
.pl-picked { background: var(--c); color: #fff; border-radius: 12px; padding: 18px; font-size: 22px; font-weight: 700; text-align: center; }
.pl-result { text-align: center; font-size: 30px; font-weight: 800; padding: 24px 12px; border-radius: 14px; margin-top: 4vh; }
.pl-result.ok { background: rgba(63, 181, 107, .25); }
.pl-result.bad { background: rgba(224, 82, 79, .25); }
.pl-result .pts { font-size: 40px; color: var(--accent); margin-top: 6px; }
.pl-stand { text-align: center; font-size: 20px; }
@media (max-width: 700px) { .qz-cols { grid-template-columns: 1fr; } .qz-opts { grid-template-columns: 1fr; } }

/* ---------- Топ-10 на табло ---------- */
.b-top10 { display: flex; flex-direction: column; align-items: center; height: 100%; }
.b-top10 h1 { font-size: 3.2vw; margin: 0 0 1.5vh; color: var(--accent); text-shadow: 0 0 2vw rgba(232, 184, 74, .45); }
.b-top10 ol { list-style: none; padding: 0; margin: 0; width: 62vw; display: flex; flex-direction: column; gap: .7vh; }
.b-top10 li {
  display: flex; align-items: center; gap: 1.5vw; font-size: 2.2vw; line-height: 1.25; padding: .6vh 2vw; position: relative; border-radius: 1vw;
  background: rgba(10, 22, 48, .78); border: 1px solid rgba(255, 255, 255, .08);
  animation: top10-in .7s cubic-bezier(.2, 1.3, .4, 1) both;
}
.b-top10 li.prize { background: linear-gradient(90deg, rgba(232, 184, 74, .32), rgba(10, 22, 48, .78)); border-color: rgba(232, 184, 74, .5); }
.b-top10 li.first { font-size: 2.7vw; background: linear-gradient(90deg, rgba(251, 64, 0, .65), rgba(232, 184, 74, .35)); box-shadow: 0 0 2.5vw rgba(251, 64, 0, .45); }
.b-top10 .p { width: 3.5vw; font-weight: 800; color: var(--accent); text-align: center; }
.b-top10 li.first::before { content: '👑'; position: absolute; left: -3.2vw; font-size: 2.4vw; }
.b-top10 .nm { flex: 1; }
.b-top10 .tot { font-weight: 800; }
@keyframes top10-in { from { opacity: 0; transform: translateX(-8vw) scale(.9); } to { opacity: 1; transform: none; } }
