/* =========================================================
   «Свои знают» — стили игры (тёмная тема, фиолетовый + лайм)
   ========================================================= */
@font-face { font-family: "InterV"; src: url("../fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: block; }

:root {
  --bg: #0C0716;
  --ink: #FFFFFF;
  --soft: #A89DC4;
  --mute: #6F6690;
  --violet: #7B3CFF;
  --violet-hi: #A47BFF;
  --accent: #C8F53A;
  --on-accent: #140B2A;
  --glass: rgba(255,255,255,.06);
  --glass-2: rgba(255,255,255,.035);
  --line: rgba(195,163,255,.16);
  --line-2: rgba(195,163,255,.24);
  --tile-ink: #E6DAFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
body { color: var(--ink); font-family: "InterV", system-ui, sans-serif; letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
svg { display: block; flex: none; }

.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: center; overflow: hidden; }
.glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 46% at 72% 58%, rgba(123,60,255,.22), transparent 70%),
    radial-gradient(26% 30% at 8% 100%, rgba(200,245,58,.07), transparent 70%); }

/* ---------- экраны и переходы ---------- */
#view { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; animation: scr-in .55s cubic-bezier(.2,.8,.2,1) both; }
.screen.still { animation: none; }
.screen.still .once { animation: none !important; }
.screen.leave { animation: scr-out .3s ease both; pointer-events: none; }
@keyframes scr-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes scr-out { to { opacity: 0; transform: scale(.985); } }

/* ---------- шапка ---------- */
.topbar { position: absolute; top: 56px; left: 120px; right: 120px; display: flex; align-items: center; justify-content: space-between; z-index: 5; }
.brand { display: flex; align-items: center; gap: 22px; font-size: 26px; font-weight: 700; color: var(--soft); }
.lg { font-size: 50px; color: #fff; --logo-dot: var(--violet-hi); }
.lg svg { height: 1em; width: auto; }
.brand i { width: 2px; height: 32px; background: #2A2240; }
.tools { display: flex; gap: 14px; align-items: center; }

/* ---------- кнопки ---------- */
.soft { height: 60px; padding: 0 26px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 650; color: var(--soft);
  backdrop-filter: blur(12px); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.soft:hover { background: rgba(255,255,255,.09); color: #fff; }
.soft.round { width: 60px; padding: 0; display: inline-grid; place-items: center; }
.soft.round svg { width: 26px; height: 26px; }
.soft.xs { height: 48px; padding: 0 20px; font-size: 19px; gap: 8px; }
.soft.warn:hover { border-color: #FF8FB0; color: #FFC2D4; }
.soft.note { cursor: default; padding-left: 12px; }
.soft.note:hover { background: rgba(255,255,255,.05); color: var(--soft); }
.orb-lime { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #F2FFC4, #C8F53A 50%, #7FA800 100%); box-shadow: inset -4px -6px 12px rgba(40,60,0,.35); color: var(--on-accent); }
.orb-lime svg { width: 16px; height: 16px; }
.orb-violet { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff;
  background: radial-gradient(circle at 35% 30%, #E3D2FF, #8A4DFF 45%, #3D0FA8 100%); box-shadow: inset -6px -9px 18px rgba(20,0,80,.55); }
.orb-violet svg { width: 30px; height: 30px; }
.orb-violet.sm { width: 40px; height: 40px; } .orb-violet.sm svg { width: 20px; height: 20px; }

.glossy { position: relative; height: 124px; padding: 0 76px; border-radius: 999px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 34px; font-weight: 700; color: #fff; white-space: nowrap;
  background: radial-gradient(120% 140% at 30% 0%, #B48DFF 0%, #7B3CFF 40%, #4B12D6 100%);
  box-shadow: inset 0 3px 8px rgba(255,255,255,.45), inset 0 -10px 24px rgba(30,0,110,.6), 0 30px 60px -20px rgba(123,60,255,.85);
  transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.glossy::after { content: ""; position: absolute; top: 8%; left: 30px; right: 30px; height: 26%; border-radius: 999px;
  background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,0)); pointer-events: none; }
.glossy:hover { transform: scale(1.04); }
.glossy:active { transform: scale(.98); }
.glossy.sm { height: 100px; padding: 0 56px; font-size: 30px; }
.glossy.xs { height: 60px; padding: 0 34px; font-size: 22px; }
.glossy.lime { color: var(--on-accent);
  background: radial-gradient(120% 140% at 30% 0%, #F4FFD0 0%, #C8F53A 45%, #8DB800 100%);
  box-shadow: inset 0 3px 8px rgba(255,255,255,.6), inset 0 -10px 24px rgba(60,90,0,.35), 0 30px 60px -24px rgba(200,245,58,.55); }
.glossy svg { width: 30px; height: 30px; }

.ghost { height: 100px; padding: 0 36px; border-radius: 999px; display: inline-flex; align-items: center; gap: 14px;
  font-size: 28px; font-weight: 650; color: var(--soft); transition: color .2s, background .2s; }
.ghost:hover { color: #fff; background: rgba(255,255,255,.05); }
.ghost svg { width: 28px; height: 28px; }

.bottom-actions { position: absolute; left: 120px; right: 120px; bottom: 56px; display: flex; align-items: center; justify-content: space-between; }

/* ---------- заголовки ---------- */
.head { position: absolute; left: 120px; right: 120px; top: 150px; display: flex; align-items: flex-end; justify-content: space-between; }
.h-big { font-size: 112px; font-weight: 660; letter-spacing: -0.07em; line-height: .9; }
.h-big span, .h-huge span { color: var(--violet-hi); }
.head-note { font-size: 26px; font-weight: 600; color: var(--soft); padding-bottom: 10px; max-width: 700px; text-align: right; line-height: 1.3; }

.cap-pill { height: 56px; padding: 0 28px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.cap-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.cap-mod { height: 56px; padding: 0 24px 0 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cap-mod svg { width: 22px; height: 22px; }

/* =================== СТАРТ =================== */
.st-hero { position: absolute; left: 112px; top: 215px; width: 860px; }
.st-title { font-size: 270px; font-weight: 660; letter-spacing: -0.075em; line-height: .74; }
.st-title span { display: block; }
.st-title .l2 { color: var(--violet-hi); }
.st-sub { margin-top: 26px; padding-left: 8px; font-size: 48px; font-weight: 700; letter-spacing: -0.04em; }
.st-sub b { color: var(--accent); font-weight: 800; }
.st-actions { margin: 78px 0 0 8px; display: flex; align-items: center; gap: 18px; }
.st-rounds { position: absolute; left: 120px; bottom: 46px; display: flex; gap: 12px; }
.st-rounds span, .chip { height: 52px; padding: 0 22px; border-radius: 999px; background: #1C1530; color: var(--mute);
  display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.st-rounds span b { color: var(--accent); }

.st-board-wrap { position: absolute; right: 70px; top: 225px; width: 920px; height: 780px; perspective: 1800px; }
.st-board { position: absolute; inset: 0; padding: 34px; border-radius: 44px;
  background: rgba(255,255,255,.035); border: 1.5px solid rgba(195,163,255,.18); backdrop-filter: blur(18px);
  box-shadow: 0 60px 120px -50px rgba(60,20,150,.55);
  transform: rotateY(-20deg) rotateX(9deg) rotateZ(-3deg); transform-style: preserve-3d;
  animation: float 9s ease-in-out infinite;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto repeat(5, 1fr); gap: 14px; }
@keyframes float {
  0%,100% { transform: rotateY(-20deg) rotateX(9deg) rotateZ(-3deg) translateY(0); }
  50%     { transform: rotateY(-16deg) rotateX(7deg) rotateZ(-2deg) translateY(-14px); } }
.st-board .cap { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 4px 8px; }
.st-board .cap .t { font-size: 24px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st-board .cap .r { display: flex; align-items: center; gap: 18px; }
.st-board .cap .new { background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 800; padding: 6px 16px; border-radius: 999px; }
.matrix { display: grid; grid-template-columns: repeat(5, 8px); gap: 4px; }
.matrix i { width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: opacity .3s; }
.matrix i.o { opacity: .15; }
.dtile { border-radius: 24px; display: grid; place-items: center;
  background: var(--glass); color: var(--tile-ink); border: 1.5px solid rgba(195,163,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px -14px rgba(0,0,0,.6);
  font-size: 56px; font-weight: 750; letter-spacing: -0.05em;
  transition: background .5s, color .5s, transform .5s cubic-bezier(.3,1.6,.5,1), box-shadow .5s; }
.dtile.played { background: rgba(255,255,255,.025); color: rgba(230,218,255,.18); box-shadow: none; border-color: transparent; }
.dtile.lit { background: var(--accent); color: var(--on-accent); border-color: transparent; transform: translateZ(40px) scale(1.07); box-shadow: 0 20px 40px -12px rgba(200,245,58,.55); }
.dtile.mod { border-color: transparent; color: #fff;
  background: radial-gradient(circle at 35% 28%, #E3D2FF, #8A4DFF 45%, #3D0FA8 100%);
  box-shadow: inset -8px -12px 24px rgba(20,0,80,.55), 0 18px 40px -12px rgba(123,60,255,.8); }
.dtile.mod svg { width: 60px; height: 60px; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== ПРАВИЛА =================== */
.rules { position: absolute; left: 120px; right: 120px; top: 320px; display: grid; grid-template-columns: 1fr 660px; gap: 64px; }
.rules-list { list-style: none; counter-reset: r; }
.rules-list li { counter-increment: r; display: grid; grid-template-columns: 76px 1fr; padding: 24px 0; border-bottom: 1.5px solid rgba(195,163,255,.12);
  font-size: 32px; font-weight: 560; line-height: 1.3; color: var(--soft); }
.rules-list li:first-child { padding-top: 0; }
.rules-list li::before { content: "0" counter(r); font-size: 22px; font-weight: 800; color: var(--accent); padding-top: 8px; letter-spacing: .04em; }
.rules-list b { color: #fff; font-weight: 750; }
.rules-side { display: flex; flex-direction: column; gap: 14px; }
.r-card { display: flex; align-items: center; gap: 24px; padding: 22px 28px; border-radius: 28px; background: var(--glass-2); border: 1.5px solid rgba(195,163,255,.12); }
.r-num { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); font-size: 24px; font-weight: 800; color: var(--accent); }
.r-card b { display: block; font-size: 30px; font-weight: 720; letter-spacing: -0.03em; }
.r-card small { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; color: var(--soft); line-height: 1.35; }

/* =================== КОМАНДЫ =================== */
.teams-grid { position: absolute; left: 120px; right: 120px; top: 320px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.team-card { height: 150px; border-radius: 30px; background: var(--glass); border: 1.5px solid var(--line-2);
  display: flex; align-items: center; gap: 22px; padding: 0 22px 0 30px; transition: border-color .2s; }
.team-card:focus-within { border-color: var(--accent); }
.tc-num { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); font-size: 24px; font-weight: 800; color: var(--accent); }
.tc-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 38px; font-weight: 720; letter-spacing: -0.035em; color: #fff; }
.tc-input::placeholder { color: var(--mute); }
.tc-del { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--mute); transition: background .2s, color .2s; }
.tc-del:hover { background: rgba(255,255,255,.08); color: #fff; }
.tc-del svg { width: 22px; height: 22px; }
.team-card.add { justify-content: center; background: none; border: 2px dashed var(--line-2); font-size: 28px; font-weight: 650; color: var(--soft); gap: 14px; }
.team-card.add:hover { color: #fff; border-color: var(--accent); }
.team-card.add svg { width: 28px; height: 28px; }

/* =================== ИГРОВОЕ ПОЛЕ =================== */
.round { display: flex; align-items: baseline; gap: 26px; }
.round h1 { font-size: 112px; font-weight: 660; letter-spacing: -0.07em; line-height: .9; }
.round h1 span { color: var(--violet-hi); }
.round small { font-size: 26px; font-weight: 650; color: var(--soft); }
.steps { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.steps .st { height: 52px; min-width: 52px; padding: 0 20px; border-radius: 999px; display: grid; place-items: center;
  font-size: 19px; font-weight: 750; letter-spacing: .05em; background: rgba(255,255,255,.05); color: var(--mute); }
.steps .st.past { color: var(--soft); }
.steps .st.on { background: var(--accent); color: var(--on-accent); }
.steps .count { margin-left: 18px; font-size: 22px; font-weight: 650; color: var(--soft); }
.steps .count b { color: #fff; }

.board { position: absolute; left: 120px; right: 120px; top: 300px; display: grid; grid-template-columns: 560px repeat(5, 1fr); grid-auto-rows: 118px; gap: 14px; }
.cat { display: flex; align-items: center; gap: 24px; padding: 0 30px; border-radius: 26px; background: var(--glass-2); border: 1.5px solid rgba(195,163,255,.12); }
.cat em { font-style: normal; font-size: 18px; font-weight: 750; letter-spacing: .06em; color: var(--mute); }
.cat b { font-size: 40px; font-weight: 720; letter-spacing: -0.035em; line-height: 1.05; }
.cat b.long { font-size: 32px; }
.tile { position: relative; border-radius: 26px; display: grid; place-items: center;
  background: var(--glass); border: 1.5px solid var(--line-2); color: var(--tile-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px -16px rgba(0,0,0,.6);
  font-size: 64px; font-weight: 750; letter-spacing: -0.05em;
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .35s, color .35s, border-color .35s, box-shadow .35s; }
.tile:hover:not(:disabled) { transform: translateY(-4px) scale(1.03); border-color: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px var(--accent), 0 20px 40px -16px rgba(200,245,58,.45); }
.tile:active:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.tile.played { background: rgba(255,255,255,.02); border-color: transparent; color: rgba(230,218,255,.16); box-shadow: none; }
.tile.just { animation: just-played 1.4s ease .35s both; }
@keyframes just-played {
  from { background: var(--accent); color: var(--on-accent); transform: scale(1.04); }
  45%  { background: rgba(200,245,58,.25); color: rgba(20,11,42,.6); transform: scale(1); } }

.score-strip { position: absolute; left: 120px; right: 120px; bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.strip-teams { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; overflow: hidden; }
.strip-teams .lbl { font-size: 19px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-right: 8px; }
.team { height: 52px; padding: 0 22px; border-radius: 999px; background: rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 650; color: var(--soft); white-space: nowrap; transition: background .2s; }
.strip-teams:hover .team { background: rgba(255,255,255,.08); }
.team b { color: var(--accent); font-weight: 800; }
.score-strip .soft svg, .score-strip .glossy svg { width: 24px; height: 24px; }

/* =================== ВОПРОС / ОТВЕТ =================== */
.caption { position: absolute; top: 168px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }
.qa { position: absolute; left: 160px; right: 160px; top: 262px; bottom: 200px; display: flex; align-items: center; justify-content: center; }
.qa-text { max-width: 1520px; text-align: center; font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; white-space: pre-line;
  animation: q-in .7s cubic-bezier(.2,.8,.2,1) .1s both; }
@keyframes q-in { from { opacity: 0; transform: translateY(26px); } }
.qa.with-img { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.qa.with-img .qa-text, .qa.with-img .ans { text-align: left; }
.qa.img-only { display: flex; }
.qa-img { margin: 0; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; animation: q-in .7s cubic-bezier(.2,.8,.2,1) both; }
.qa-img img { max-width: 100%; max-height: 100%; border-radius: 30px; object-fit: contain; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.qa.img-only .qa-img { width: 100%; }

.ans { text-align: center; max-width: 1520px; }
.ans-label { display: inline-flex; height: 52px; padding: 0 24px; align-items: center; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 21px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.ans-text { margin-top: 34px; font-weight: 740; letter-spacing: -0.05em; line-height: 1.04; white-space: pre-line;
  animation: ans-in .9s cubic-bezier(.2,.8,.2,1) .12s both; }
@keyframes ans-in { from { opacity: 0; filter: blur(16px); transform: scale(.9); } }
.ans-note { margin-top: 34px; font-size: 34px; font-weight: 550; line-height: 1.32; color: var(--soft); white-space: pre-line; animation: q-in .7s ease .45s both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* =================== МОДИФИКАТОР =================== */
.mod-screen { position: absolute; left: 160px; right: 160px; top: 250px; bottom: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mod-orb { position: relative; width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 28%, #E3D2FF, #8A4DFF 45%, #3D0FA8 100%);
  box-shadow: inset -16px -22px 40px rgba(20,0,80,.6), 0 40px 80px -20px rgba(123,60,255,.9);
  animation: orb-in .9s cubic-bezier(.3,1.5,.5,1) both; }
.mod-orb svg { width: 100px; height: 100px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); animation: spin 10s linear infinite; }
.mod-orb::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; animation: ring 2.4s ease-out 1s infinite; }
.mod-orb.lime { color: var(--on-accent); background: radial-gradient(circle at 35% 28%, #F6FFD8, #C8F53A 48%, #7FA800 100%);
  box-shadow: inset -16px -22px 40px rgba(40,60,0,.35), 0 40px 80px -24px rgba(200,245,58,.6); }
.mod-orb.lime::after { border-color: var(--violet-hi); }
.mod-orb.lime svg { animation: none; }
@keyframes orb-in { from { opacity: 0; transform: scale(.3) rotate(-60deg); } }
@keyframes ring { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.5); } }
.mod-label { margin-top: 44px; display: inline-flex; height: 52px; padding: 0 26px; align-items: center; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 21px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; animation: pop .5s cubic-bezier(.3,1.6,.5,1) .35s both; }
.mod-name { margin-top: 24px; font-size: 150px; font-weight: 680; letter-spacing: -0.065em; line-height: .95; animation: q-in .7s cubic-bezier(.2,.8,.2,1) .45s both; }
.mod-desc { margin-top: 28px; max-width: 1180px; font-size: 38px; font-weight: 560; line-height: 1.3; color: var(--soft); animation: q-in .7s ease .6s both; }

/* =================== КОНЕЦ РАУНДА / ИТОГИ =================== */
.center-screen { position: absolute; left: 120px; right: 120px; top: 170px; bottom: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.h-huge { margin-top: 30px; font-size: 190px; font-weight: 660; letter-spacing: -0.075em; line-height: 1; animation: q-in .8s cubic-bezier(.2,.8,.2,1) both; }
.standings { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1600px; }
.stand { height: 86px; padding: 0 32px 0 26px; border-radius: 999px; background: var(--glass); border: 1.5px solid rgba(195,163,255,.14);
  display: flex; align-items: center; gap: 18px; animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.stand em { font-style: normal; font-size: 22px; font-weight: 800; color: var(--mute); }
.stand b { font-size: 32px; font-weight: 720; letter-spacing: -0.03em; }
.stand span { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.stand.lead { background: var(--accent); border-color: transparent; }
.stand.lead em, .stand.lead b, .stand.lead span { color: var(--on-accent); }

.final .winner { margin-top: 26px; display: flex; flex-direction: column; align-items: center; }
.final .mod-orb { width: 170px; height: 170px; }
.final .mod-orb svg { width: 84px; height: 84px; }
.win-name { margin-top: 18px; font-size: 128px; font-weight: 700; letter-spacing: -0.065em; line-height: .95; max-width: 1600px; animation: q-in .8s cubic-bezier(.2,.8,.2,1) .45s both; }
.win-score { margin-top: 14px; font-size: 40px; font-weight: 650; color: var(--soft); animation: q-in .7s ease .6s both; }
.final .standings { margin-top: 40px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -40px; width: 14px; height: 24px; border-radius: 4px; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(1160px) rotate(720deg); } }

/* =================== ТАБЛИЦА РЕЗУЛЬТАТОВ =================== */
#overlay { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
#overlay.open { pointer-events: auto; }
.ov-backdrop { position: absolute; inset: 0; background: rgba(7,3,14,.72); backdrop-filter: blur(12px); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.ov-panel { position: absolute; left: 50%; top: 50%; width: 1600px; max-height: 980px; transform: translate(-50%, -50%);
  background: #140C26; border: 1.5px solid rgba(195,163,255,.2); border-radius: 44px; padding: 44px 52px 36px;
  box-shadow: 0 60px 140px -40px rgba(0,0,0,.9); display: flex; flex-direction: column; animation: panel-in .45s cubic-bezier(.2,.9,.2,1) both; }
#overlay.still .ov-panel, #overlay.still .ov-backdrop { animation: none; }
@keyframes panel-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.ov-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.ov-head h2 { font-size: 64px; font-weight: 680; letter-spacing: -0.055em; line-height: 1; }
.ov-head p { margin-top: 12px; font-size: 22px; font-weight: 600; color: var(--soft); }
.ov-head p b { color: var(--accent); }
.ov-rows { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.ov-row { display: grid; grid-template-columns: 56px 1fr 300px 160px 230px 56px; align-items: center; gap: 18px;
  height: 104px; padding: 0 22px 0 28px; border-radius: 30px; background: rgba(255,255,255,.04); border: 1.5px solid transparent; }
.ov-row.lead { border-color: rgba(200,245,58,.35); }
.ov-row em { font-style: normal; font-size: 24px; font-weight: 800; color: var(--mute); }
.ov-row.lead em { color: var(--accent); }
.ov-name { min-width: 0; background: none; border: 0; outline: none; border-radius: 14px; padding: 6px 10px; margin-left: -10px;
  font-size: 40px; font-weight: 720; letter-spacing: -0.035em; color: #fff; }
.ov-name:focus { background: rgba(255,255,255,.06); }
.quick { display: flex; gap: 10px; justify-content: flex-end; }
.qbtn { height: 64px; padding: 0 22px; border-radius: 999px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.qbtn:hover { transform: scale(1.06); }
.qbtn.plus { background: var(--accent); color: var(--on-accent); }
.qbtn.minus { background: rgba(255,255,255,.07); color: var(--soft); }
.ov-custom { width: 100%; height: 64px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1.5px solid transparent; outline: none;
  text-align: center; font-size: 26px; font-weight: 700; color: #fff; }
.ov-custom::placeholder { color: var(--mute); }
.ov-custom:focus { border-color: var(--accent); }
.ov-score { width: 100%; background: none; border: 0; outline: none; border-radius: 14px; padding: 0 10px; text-align: right;
  font-size: 64px; font-weight: 760; letter-spacing: -0.045em; color: #fff; font-variant-numeric: tabular-nums; }
.ov-score:focus { background: rgba(255,255,255,.06); }
.ov-row.lead .ov-score { color: var(--accent); }
.ov-score.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.12); } }
.ov-del { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); transition: background .2s, color .2s; }
.ov-del:hover { background: rgba(255,255,255,.08); color: #fff; }
.ov-del svg { width: 22px; height: 22px; }
.ov-foot { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; }
.ov-foot .hint { font-size: 19px; font-weight: 600; color: var(--mute); }
.ov-foot .soft svg { width: 22px; height: 22px; }

/* =================== РЕДАКТОР =================== */
.save-state { font-size: 20px; font-weight: 600; color: var(--soft); margin-right: 8px; }
.save-state.saving { color: var(--mute); }
.ed-tabs { position: absolute; left: 120px; right: 120px; top: 150px; display: flex; gap: 10px; align-items: center; }
.ed-tab { height: 60px; padding: 0 28px; border-radius: 999px; background: rgba(255,255,255,.05); font-size: 22px; font-weight: 700; color: var(--soft); transition: background .2s, color .2s; }
.ed-tab:hover { color: #fff; }
.ed-tab.on { background: var(--accent); color: var(--on-accent); }
.ed-tabs .sp { flex: 1; }
.ed-body { position: absolute; left: 120px; right: 120px; top: 240px; bottom: 40px; display: grid; grid-template-columns: 540px 1fr; gap: 28px; }
.ed-left, .ed-right { overflow: auto; padding-right: 12px; scrollbar-width: thin; scrollbar-color: rgba(195,163,255,.25) transparent; }
.ed-card { background: rgba(255,255,255,.035); border: 1.5px solid rgba(195,163,255,.12); border-radius: 28px; padding: 26px 28px; margin-bottom: 20px; }
.ed-card h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 750; letter-spacing: -0.03em; margin-bottom: 8px; }
.ed-card label { display: block; margin-top: 16px; font-size: 16px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.ed-card input:not([type=checkbox]), .ed-card textarea, .ed-card select {
  display: block; width: 100%; margin-top: 8px; padding: 13px 18px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1.5px solid var(--line); outline: none;
  font-size: 22px; font-weight: 550; letter-spacing: -0.01em; color: #fff; text-transform: none; transition: border-color .2s; }
.ed-card textarea { resize: vertical; line-height: 1.35; }
.ed-card select option { background: #1A1230; }
.ed-card input:focus, .ed-card textarea:focus, .ed-card select:focus { border-color: var(--accent); }
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-card label.ed-check { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: -0.01em; font-size: 21px; font-weight: 600; color: var(--soft); cursor: pointer; }
.ed-check input { width: 24px; height: 24px; accent-color: var(--accent); margin: 0; }
.ed-cat { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.ed-cat input:not([type=checkbox]) { margin: 0; }
.ed-cat-pick { width: 56px; height: 52px; flex: none; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 19px; font-weight: 800; color: var(--mute); transition: background .2s, color .2s; }
.ed-cat-pick:hover { color: #fff; }
.ed-cat.on .ed-cat-pick { background: var(--accent); color: var(--on-accent); }
.ed-hint { margin-top: 8px; font-size: 18px; font-weight: 550; color: var(--mute); line-height: 1.35; }
.ed-h { font-size: 44px; font-weight: 700; letter-spacing: -0.045em; margin: 0 0 18px 4px; }
.ed-h small { font-size: 22px; font-weight: 600; color: var(--soft); margin-left: 10px; letter-spacing: -0.01em; }
.ed-q-head { display: flex; align-items: center; gap: 12px; }
.ed-val { height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.08); display: flex; align-items: center; font-size: 24px; font-weight: 800; }
.ed-modtag { height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(123,60,255,.28); color: #DCCBFF; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.ed-modtag svg { width: 18px; height: 18px; }
.ed-played { font-size: 18px; font-weight: 650; color: var(--mute); }
.ed-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ed-img { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-img img { height: 88px; max-width: 170px; border-radius: 12px; object-fit: cover; }
.ed-img .soft svg { width: 20px; height: 20px; }
.ed-settings { position: absolute; left: 120px; right: 120px; top: 240px; bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; }
.ed-settings .ed-card { margin: 0; padding: 32px 34px; }
.ed-settings p { margin: 10px 0 22px; font-size: 22px; font-weight: 550; line-height: 1.4; color: var(--soft); }
.ed-settings p.muted { color: var(--mute); font-size: 19px; margin-bottom: 0; }
.ed-btns { display: flex; gap: 12px; align-items: center; }

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

/* =================== КТО ОТВЕЧАЕТ (экран вопроса) =================== */
.s-question .qa { bottom: 300px; }
.buzz { position: absolute; left: 120px; right: 120px; bottom: 182px; height: 92px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.buzz-lbl { font-size: 19px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); margin-right: 8px; white-space: nowrap; }
.bz-team { height: 76px; max-width: 360px; min-width: 0; flex: 0 1 auto; padding: 0 28px 0 14px; border-radius: 999px; background: var(--glass); border: 1.5px solid var(--line-2);
  display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 720; letter-spacing: -0.03em; color: #fff;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1), border-color .2s, background .2s, opacity .3s; }
.bz-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-team em { flex: none; font-style: normal; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); font-size: 20px; font-weight: 800; color: var(--accent); }
.bz-team:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-4px); background: rgba(200,245,58,.08); }
.bz-team:active:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.bz-team.tried { opacity: .38; border-color: transparent; }
.bz-team.tried span { text-decoration: line-through; }
.bz-team small { flex: none; font-size: 20px; font-weight: 750; color: #FF9DB8; }
.buzz-mini { height: 60px; padding: 0 20px; border-radius: 999px; display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 650; color: var(--mute); transition: color .2s, background .2s; white-space: nowrap; }
.buzz-mini:hover { color: #fff; background: rgba(255,255,255,.06); }
.buzz-mini svg { width: 22px; height: 22px; }

.buzz.on > * { animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.buzz.on > *:nth-child(2) { animation-delay: .05s; } .buzz.on > *:nth-child(3) { animation-delay: .1s; }
.buzz-who { display: flex; flex-direction: column; align-items: flex-start; margin-right: 18px; line-height: 1.05; }
.buzz-who em { font-style: normal; font-size: 17px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.buzz-who b { font-size: 40px; font-weight: 740; letter-spacing: -0.04em; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.judge { height: 88px; padding: 0 36px 0 28px; border-radius: 999px; display: flex; align-items: center; gap: 12px;
  font-size: 32px; font-weight: 760; letter-spacing: -0.03em; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.judge:hover { transform: scale(1.05); }
.judge svg { width: 32px; height: 32px; }
.judge small { font-size: 24px; font-weight: 750; opacity: .7; margin-left: 4px; }
.judge.yes { background: radial-gradient(120% 140% at 30% 0%, #F4FFD0 0%, #C8F53A 45%, #8DB800 100%); color: var(--on-accent);
  box-shadow: inset 0 3px 8px rgba(255,255,255,.6), 0 24px 50px -22px rgba(200,245,58,.6); }
.judge.no { background: rgba(255,110,150,.12); color: #FFB8CB; border: 1.5px solid rgba(255,110,150,.4); }

.cap-win { height: 56px; padding: 0 24px 0 18px; border-radius: 999px; background: rgba(200,245,58,.12); border: 1.5px solid rgba(200,245,58,.5); color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: .02em; animation: pop .5s cubic-bezier(.3,1.6,.5,1) .5s both; }
.cap-win svg { width: 22px; height: 22px; }

/* =================== МОДИФИКАТОР У ОТВЕЧАЮЩЕЙ КОМАНДЫ =================== */
.mod-note { margin-top: 18px; font-size: 26px; font-weight: 650; color: var(--accent); animation: q-in .7s ease .75s both; }
.cap-offer { height: 56px; padding: 0 24px 0 18px; border-radius: 999px; border: 1.5px solid rgba(164,123,255,.55); background: rgba(123,60,255,.16); color: #D9C8FF;
  display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; letter-spacing: .02em; }
.cap-offer svg { width: 22px; height: 22px; color: var(--violet-hi); }
.take-mod { position: relative; height: 88px; padding: 0 34px 0 26px; border-radius: 999px; display: flex; align-items: center; gap: 12px; overflow: hidden;
  font-size: 30px; font-weight: 760; letter-spacing: -0.03em; color: #fff; white-space: nowrap;
  background: radial-gradient(120% 140% at 30% 0%, #B48DFF 0%, #7B3CFF 40%, #4B12D6 100%);
  box-shadow: inset 0 3px 8px rgba(255,255,255,.45), 0 24px 50px -20px rgba(123,60,255,.85); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.take-mod:hover { transform: scale(1.05); }
.take-mod svg { width: 30px; height: 30px; animation: spin 8s linear infinite; }
.take-mod::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: ring 2.4s ease-out 1s infinite; }
.mod-taken { height: 64px; padding: 0 24px 0 18px; border-radius: 999px; background: rgba(123,60,255,.22); color: #E2D4FF; display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; }
.mod-taken svg { width: 24px; height: 24px; color: var(--accent); }
.buzz.on { gap: 14px; }

.qa-main { display: flex; flex-direction: column; align-items: center; gap: 40px; max-width: 1520px; }
.qa.with-img .qa-main { align-items: flex-start; }
.hint-card { max-width: 1300px; padding: 26px 36px; border-radius: 30px; background: rgba(200,245,58,.08); border: 1.5px solid rgba(200,245,58,.45);
  display: flex; flex-direction: column; gap: 10px; text-align: left; animation: hint-in .7s cubic-bezier(.2,.8,.2,1) both; }
.hint-card span { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hint-card span svg { width: 20px; height: 20px; }
.hint-card p { font-size: 40px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; color: #fff; white-space: pre-line; }
@keyframes hint-in { from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(8px); } }

/* =================== АВАТАРКИ =================== */
.av { --sz: 48px; width: var(--sz); height: var(--sz); flex: none; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, hsl(var(--h, 265) 80% 70%), hsl(var(--h, 265) 70% 42%) 55%, hsl(var(--h, 265) 70% 22%) 100%);
  box-shadow: inset 0 -4px 10px rgba(0,0,0,.28), inset 0 2px 4px rgba(255,255,255,.25); }
.av i { font-style: normal; font-size: calc(var(--sz) * .6); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.av.pic { background: #1C1530; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.none { background: rgba(255,255,255,.08); box-shadow: none; }
.av.none b { font-size: calc(var(--sz) * .4); font-weight: 800; color: var(--accent); }
.av.xs { --sz: 34px; } .av.sm { --sz: 48px; } .av.md { --sz: 72px; } .av.lg { --sz: 104px; } .av.xl { --sz: 200px; } .av.xl2 { --sz: 160px; }

/* экран команд */
.tc-av { position: relative; flex: none; border-radius: 50%; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.tc-av:hover { transform: scale(1.08) rotate(-4deg); }
.tc-av .av { --sz: 96px; }
.tc-pen { position: absolute; right: -4px; bottom: -4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px #17102B; }
.tc-pen svg { width: 18px; height: 18px; }
.team-card { height: 160px; padding-left: 26px; }

/* кто отвечает / счёт / таблица */
.bz-av { position: relative; flex: none; }
.bz-av em { position: absolute; right: -6px; bottom: -6px; width: 24px !important; height: 24px !important; font-size: 13px !important; background: #17102B !important; border: 1.5px solid var(--line-2); }
.bz-team { padding-left: 12px; }
.buzz.on .av { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.team { padding-left: 9px; gap: 10px; }
.cap-win { padding-left: 11px; }
.ov-av { border-radius: 50%; transition: transform .3s cubic-bezier(.3,1.6,.5,1); justify-self: start; }
.ov-av:hover { transform: scale(1.08); }
.ov-row { grid-template-columns: 80px 1fr 300px 160px 230px 56px; height: 108px; padding-left: 18px; }
.stand { padding-left: 22px; gap: 16px; }
.stand .av { --sz: 54px; }

/* итоги */
.win-avs { display: flex; gap: 40px; justify-content: center; }
.win-av { position: relative; animation: orb-in .9s cubic-bezier(.3,1.5,.5,1) both; }
.win-av .av { box-shadow: 0 0 0 8px var(--accent), 0 40px 90px -20px rgba(200,245,58,.55); }
.win-av .crown { position: absolute; left: 50%; top: -44px; transform: translateX(-50%) rotate(-8deg); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); }
.win-av .crown svg { width: 46px; height: 46px; }
.final .mod-label { margin-top: 30px; }
.final .winner { margin-top: 40px; }
.final .win-name { font-size: 112px; }

/* окно выбора */
#picker { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
#picker.open { pointer-events: auto; }
.pk-panel { position: absolute; left: 50%; top: 50%; width: 1500px; max-height: 960px; transform: translate(-50%, -50%);
  background: #140C26; border: 1.5px solid rgba(195,163,255,.2); border-radius: 44px; padding: 44px 52px; display: flex; flex-direction: column;
  box-shadow: 0 60px 140px -40px rgba(0,0,0,.9); animation: panel-in .45s cubic-bezier(.2,.9,.2,1) both; }
.pk-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; overflow: auto; padding: 6px; }
.pk-item { position: relative; height: 150px; border-radius: 28px; background: rgba(255,255,255,.04); border: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .25s cubic-bezier(.3,1.6,.5,1), border-color .2s, background .2s; }
.pk-item:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--accent); background: rgba(200,245,58,.06); }
.pk-item.on { border-color: var(--accent); background: rgba(200,245,58,.1); }
.pk-item.taken { opacity: .3; }
.pk-item.taken .av { filter: grayscale(1); }
.pk-item small { max-width: 90%; font-size: 15px; font-weight: 700; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-item.add { border: 2px dashed var(--line-2); color: var(--soft); }
.pk-item.add svg { width: 40px; height: 40px; }
.pk-item.add:hover { color: #fff; }
.pk-del { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .2s; }
.pk-item:hover .pk-del { opacity: 1; }
.pk-del svg { width: 16px; height: 16px; }

/* =================== ЗВУК =================== */
.soft.round.off { color: var(--mute); opacity: .7; }

/* =================== ТАЙМЕР =================== */
.cd { position: relative; display: inline-grid; place-items: center; flex: none; }
.cd-ring { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); overflow: visible; pointer-events: none; }
.cd-ring circle { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .1s linear, stroke .3s; filter: drop-shadow(0 0 6px rgba(200,245,58,.6)); }
.cd.hot .cd-ring circle { stroke: #FF6E96; filter: drop-shadow(0 0 8px rgba(255,110,150,.8)); }
.cd-n { position: absolute; right: -14px; bottom: -10px; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: #17102B; border: 2px solid var(--accent); color: var(--accent); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd.hot .cd-n { border-color: #FF6E96; color: #FF9DB8; animation: pulse-n 1s ease infinite; }
.cd.up .cd-n { background: #FF6E96; color: #fff; border-color: #FF6E96; animation: none; }
.cd.up { animation: shake .5s ease 2; }
@keyframes pulse-n { 50% { transform: scale(1.18); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.buzz.timeup .buzz-who em { color: #FF9DB8; }

.fin-timer { position: absolute; left: 0; right: 0; bottom: 190px; display: flex; justify-content: center; align-items: center; gap: 40px; }
.fin-clock { width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.04); display: block; }
.cd.big .cd-n { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 0; height: auto; padding: 0; background: none; border: 0; font-size: 56px; font-weight: 760; letter-spacing: -0.04em; }
.cd.big.hot .cd-n { animation: none; }
.cd.big .cd-ring circle { stroke-width: 4; }
.s-finQ .qa { bottom: 340px; }

/* =================== ВСПЛЫВАЮЩИЕ БАЛЛЫ =================== */
.fx { position: absolute; left: 50%; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 14px 40px 14px 14px; border-radius: 999px; pointer-events: none;
  font-size: 64px; font-weight: 800; letter-spacing: -0.05em; transform: translateX(-50%); animation: fx 2.2s cubic-bezier(.2,.8,.2,1) both; }
.fx.fx-top { top: 250px; } .fx.fx-bottom { bottom: 300px; }
.fx.plus { background: var(--accent); color: var(--on-accent); box-shadow: 0 30px 80px -20px rgba(200,245,58,.7); }
.fx.minus { background: #FF6E96; color: #fff; box-shadow: 0 30px 80px -20px rgba(255,110,150,.7); }
.fx.zero { background: #2A1F48; color: #E2D4FF; font-size: 44px; }
@keyframes fx {
  0% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.5); }
  14% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.08); }
  24% { transform: translateX(-50%) scale(1); }
  75% { opacity: 1; transform: translateX(-50%) translateY(-14px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-60px) scale(.9); } }

/* =================== ЖИВОЙ СЧЁТ =================== */
.strip-teams .team { position: relative; transition: background .4s, box-shadow .4s; }
.strip-teams .team b { font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; }
.strip-teams .team.lead { background: rgba(200,245,58,.12); box-shadow: inset 0 0 0 1.5px rgba(200,245,58,.5); color: #fff; }
.strip-teams .team.gain { background: rgba(200,245,58,.28); box-shadow: 0 0 30px -4px rgba(200,245,58,.6); }
.strip-teams .team.loss { background: rgba(255,110,150,.25); }
.strip-teams .team.loss b { color: #FF9DB8; }
.crown-s { position: absolute; left: 12px; top: -15px; width: 26px; height: 26px; color: var(--accent); transform: rotate(-14deg); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.crown-s svg { width: 100%; height: 100%; }
.ov-av { position: relative; }
.ov-crown { position: absolute; left: -6px; top: -14px; width: 32px; height: 32px; color: var(--accent); transform: rotate(-16deg); filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.ov-crown svg { width: 100%; height: 100%; }

/* =================== МОДИФИКАТОРЫ: ставка, кот в мешке =================== */
.allin-bet { display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 10px 0 22px; border-radius: 999px; background: rgba(123,60,255,.2); border: 1.5px solid rgba(164,123,255,.5);
  font-size: 18px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: #D9C8FF; }
.allin-bet input { width: 150px; height: 56px; border-radius: 999px; border: 0; outline: none; background: rgba(0,0,0,.3); text-align: center; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.allin-bet input:focus { box-shadow: 0 0 0 2px var(--accent); }
.buzz.pass .bz-team { height: 72px; }

/* =================== МЕДИА =================== */
.qa-video video { max-width: 100%; max-height: 100%; border-radius: 30px; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.qa-img.blurry { position: relative; cursor: pointer; overflow: hidden; border-radius: 30px; }
.qa-img.blurry img { transition: filter .8s cubic-bezier(.2,.8,.2,1); transform: scale(1.04); }
.unblur-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px; background: rgba(12,7,22,.75); backdrop-filter: blur(8px);
  font-size: 20px; font-weight: 700; color: #fff; white-space: nowrap; }
.audio-card { display: flex; align-items: center; gap: 26px; padding: 18px 34px 18px 18px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1.5px solid var(--line-2); }
.au-play { width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent);
  background: radial-gradient(circle at 35% 28%, #F6FFD8, #C8F53A 48%, #8DB800 100%); box-shadow: 0 16px 40px -14px rgba(200,245,58,.6); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.au-play:hover { transform: scale(1.06); }
.au-play svg { width: 40px; height: 40px; }
.au-play svg + svg, .audio-card.playing .au-play svg:first-child { display: none; }
.audio-card.playing .au-play svg + svg { display: block; }
.au-wave { display: flex; align-items: center; gap: 6px; height: 70px; }
.au-wave i { width: 7px; height: 30%; border-radius: 4px; background: var(--violet-hi); opacity: .5; }
.audio-card.playing .au-wave i { opacity: 1; animation: wave 1s ease-in-out infinite; }
.au-wave i:nth-child(3n) { animation-delay: -.3s !important; } .au-wave i:nth-child(3n+1) { animation-delay: -.6s !important; } .au-wave i:nth-child(4n) { animation-duration: .7s !important; }
@keyframes wave { 50% { height: 100%; background: var(--accent); } }
.ed-img audio { height: 44px; max-width: 320px; }
.ed-img video { height: 110px; max-width: 200px; border-radius: 12px; }

/* =================== ФИНАЛ =================== */
.fin-theme { position: absolute; left: 120px; right: 120px; top: 300px; display: flex; align-items: center; gap: 28px; }
.fin-theme h2 { font-size: 64px; font-weight: 720; letter-spacing: -0.05em; }
.fin-grid { position: absolute; left: 120px; right: 120px; top: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fin-card { height: 130px; padding: 0 22px 0 26px; border-radius: 30px; background: var(--glass); border: 1.5px solid var(--line-2); display: flex; align-items: center; gap: 22px; }
.fin-who { flex: 1; min-width: 0; }
.fin-who b { display: block; font-size: 36px; font-weight: 720; letter-spacing: -0.035em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-who small { font-size: 19px; font-weight: 600; color: var(--soft); }
.fin-bet { width: 220px; height: 76px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(0,0,0,.25); outline: none; text-align: center;
  color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.fin-bet:focus { border-color: var(--accent); }
.fin-bet.secret { -webkit-text-security: disc; letter-spacing: .1em; }
.fin-none { font-size: 20px; font-weight: 650; color: var(--mute); }
.fin-head { top: 260px; }
.fin-rows { position: absolute; left: 120px; right: 120px; top: 420px; display: flex; flex-direction: column; gap: 12px; }
.fin-row { height: 104px; padding: 0 20px 0 22px; border-radius: 30px; background: var(--glass); display: flex; align-items: center; gap: 22px; }
.fin-row > b { flex: 1; font-size: 36px; font-weight: 720; letter-spacing: -0.035em; }
.fin-stake { font-size: 20px; font-weight: 650; color: var(--soft); margin-right: 14px; }
.fin-stake em { font-style: normal; font-size: 34px; font-weight: 800; color: #fff; margin-left: 6px; }
.mark { height: 72px; padding: 0 28px 0 22px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 750;
  background: rgba(255,255,255,.05); color: var(--soft); transition: background .2s, color .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.mark svg { width: 26px; height: 26px; }
.mark:hover { transform: scale(1.04); color: #fff; }
.mark.yes.on { background: var(--accent); color: var(--on-accent); }
.mark.no.on { background: #FF6E96; color: #fff; }
.glossy:disabled { opacity: .4; filter: grayscale(.6); transform: none; }
.fin-qa { bottom: 300px; }
.fin-deltas { position: absolute; left: 120px; right: 120px; bottom: 190px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.fd { height: 72px; padding: 0 26px 0 12px; border-radius: 999px; background: rgba(255,255,255,.06); display: flex; align-items: center; gap: 14px;
  font-size: 26px; font-weight: 700; animation: pop .55s cubic-bezier(.3,1.6,.5,1) both; }
.fd b { font-size: 30px; font-weight: 800; }
.fd.plus { background: rgba(200,245,58,.15); box-shadow: inset 0 0 0 1.5px rgba(200,245,58,.6); }
.fd.plus b { color: var(--accent); }
.fd.minus { background: rgba(255,110,150,.14); box-shadow: inset 0 0 0 1.5px rgba(255,110,150,.5); }
.fd.minus b { color: #FF9DB8; }

/* правила: место под пятый пункт */
.rules-list li { padding: 20px 0; font-size: 29px; }
.strip-teams { overflow: visible; }
.buzz.on .cd + .buzz-who { margin-left: 14px; }
.rules-list li { padding: 18px 0; }

.answer-highlight { color: var(--accent); }

/* Пароль настроек */
.auth-layer { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(6,3,14,.86); backdrop-filter: blur(14px); }
.auth-card { width: 580px; padding: 44px; border-radius: 30px; border: 1px solid var(--line); background: #1C1530; box-shadow: 0 30px 90px #0008; }
.auth-card h2 { font-size: 38px; margin-bottom: 30px; letter-spacing: -.04em; }
.auth-card label { display: block; font-size: 23px; color: var(--soft); margin-bottom: 12px; }
.auth-card input { display: block; width: 100%; padding: 18px; font-size: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); outline: none; }
.auth-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #c8f53a22; }
.auth-error { min-height: 56px; font-size: 21px; line-height: 1.3; color: #FF9EB9; padding-top: 12px; }
.auth-actions { display: flex; gap: 16px; justify-content: flex-end; margin-top: 16px; }
.cloud-state { font-size: 20px; line-height: 1.4; color: var(--soft); }
