/* belya.live · v2 «Пульт»
   Сайт — живий пульт каналу: він знає, чи йде ефір, який скін сьогодні
   розігрується і скільки людей у грі. Мова форм — HUD із CS2: кутові дужки,
   моноширинні зчитування, радар. Палітра каналу лишається — чорнило й
   помаранчевий із постерів; холодний блакитний з'являється лише в приладах. */

:root {
  --ink: #0B0B0F;
  --panel: #121218;
  --panel-2: #17171F;
  --line: #23232E;
  --line-2: #32323F;
  --text: #EEEEF3;
  --muted: #8B8B9A;
  --accent: #F5A623;
  --accent-ink: #17120A;
  --live: #FF4D4D;
  --cyan: #5ED4FF;

  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --pad: 22px;
  --r: 18px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img, video { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ── прилади ─────────────────────────────────────────────────────────── */
.readout {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.readout b { color: var(--text); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--live); box-shadow: 0 0 0 0 rgba(255,77,77,.6); animation: pulse 1.6s infinite; }
.dot.cyan { background: var(--cyan); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,77,.55) } 100% { box-shadow: 0 0 0 10px rgba(255,77,77,0) } }

/* Кутові дужки — як рамка цілі на HUD. Лише там, де панель справді прилад. */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--cyan); border-style: solid; opacity: .75;
}
.hud::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ── смуга стану ─────────────────────────────────────────────────────── */
.strip {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,11,15,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.strip .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.strip .readouts { display: flex; gap: 28px; margin-left: 10px; overflow: hidden; }
.strip .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #FFB733; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }
@media (max-width: 760px) { .strip .readouts { display: none; } }

/* ── герой ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
#radar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { color: #C9C9D6; font-size: clamp(16px, 1.8vw, 18px); margin-top: 22px; max-width: 48ch; }
.lead b { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta .btn { padding: 14px 22px; font-size: 15px; }
.rules { display: grid; grid-template-columns: repeat(3, auto); gap: 22px; margin-top: 34px; width: fit-content; }
.rules div { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; line-height: 1.4; }
.rules div b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--text); letter-spacing: 0; margin-bottom: 4px; }
@media (max-width: 480px) { .rules { grid-template-columns: repeat(3, 1fr); width: 100%; gap: 12px; } }

/* Модуль стану: в ефірі — плеєр, поза ефіром — телефон з останнім кліпом. */
.stage { position: relative; }
.stage__player { display: none; aspect-ratio: 16/9; background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.stage__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage.live .stage__player { display: block; }
.stage.live .phone { display: none; }
.stage__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(11,11,15,.7); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 8px; }

.phone {
  width: min(310px, 78vw); margin: 0 auto; aspect-ratio: 9/19; position: relative;
  border-radius: 38px; background: #000; padding: 10px;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #111; }
.phone .cap {
  position: absolute; left: 20px; right: 20px; bottom: 22px;
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.phone .cap small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }

/* ── дошка ───────────────────────────────────────────────────────────── */
.board { padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 7vw, 96px); }
.board .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
@media (max-width: 900px) { .board .wrap { grid-template-columns: 1fr; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel h2 { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }

/* Картка скіна — як панель огляду предмета в грі. */
.skin { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: center; }
@media (max-width: 520px) { .skin { grid-template-columns: 1fr; } }
.skin__img {
  aspect-ratio: 4/3; border-radius: 14px; display: grid; place-items: center; padding: 14px;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(245,166,35,.22), transparent 62%),
    linear-gradient(180deg, var(--panel-2), #0E0E13);
  border: 1px solid var(--line);
}
.skin__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.skin__name { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.25; text-wrap: balance; }
.skin__wear { margin-top: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-top: 18px; font-size: 14px; }
.kv dt { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.kv dd { font-variant-numeric: tabular-nums; }
.kv dd b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.seal {
  margin-top: 16px; padding: 10px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px dashed var(--line-2);
  font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; overflow: hidden;
}
.seal code { color: var(--cyan); letter-spacing: .04em; }
.seal.open code { color: var(--accent); }
.count { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.count small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* Як це працює — три кроки, бо це справді послідовність дня. */
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step time { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: .08em; padding-top: 4px; }
.step h3 { font-size: 15px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ── стрічка кліпів ──────────────────────────────────────────────────── */
.rail { padding: 0 0 clamp(56px, 7vw, 96px); }
.rail__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.rail__head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.rail__head a { margin-left: auto; color: var(--muted); font-size: 14px; text-decoration: none; }
.rail__head a:hover { color: var(--text); }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(232px, 62vw); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 18px;
  margin: 0 calc(-1 * var(--pad)); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.clip {
  scroll-snap-align: start; position: relative; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden;
  background: #111; border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.clip:hover { transform: translateY(-4px); border-color: var(--line-2); }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip .t {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.clip .t small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .12em; color: var(--cyan); margin-bottom: 6px; }
.clip .len { position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 11px; background: rgba(11,11,15,.7); padding: 4px 7px; border-radius: 6px; }

/* ── низ ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 14px; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .spacer { flex: 1; }
footer .legal { font-family: var(--mono); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot.on { animation: none; }
  .clip, .btn { transition: none; }
}

/* ── v2.1: більше приладів ───────────────────────────────────────────── */

/* Ефір фарбує всю сторінку: коли стрім іде, з правого верхнього кута тече червоне. */
body.is-live::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 600px at 85% -10%, rgba(255,77,77,.16), transparent 70%);
}
.strip, .hero, .board, .rail, footer, .stats, .fair { position: relative; z-index: 1; }

/* Стрічка чисел — коротка, бо ці числа і є суть каналу. */
.stats { padding: 0 0 clamp(20px, 3vw, 36px); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 8px; }

/* Відлік до жеребкування — живий, посекундний. */
.timer { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 36px); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; }
.timer small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* Картка FACEIT — рівень, ELO, п'ять останніх матчів як смужка результатів. */
.faceit { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.lvl {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--accent-ink);
  background: conic-gradient(var(--accent) var(--p, 0%), var(--line) 0);
  position: relative;
}
.lvl::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel); z-index: 0; }
.lvl i { position: relative; z-index: 1; font-style: normal; color: var(--text); }
.elo { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.elo small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.form { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.form span {
  font-family: var(--mono); font-size: 11px; padding: 6px 8px; border-radius: 7px;
  border: 1px solid var(--line-2); color: var(--muted); display: inline-flex; gap: 6px; align-items: center;
}
.form span::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--muted); }
.form span.w { border-color: rgba(94,212,255,.35); color: var(--text); }
.form span.w::before { background: var(--cyan); }
.form span.l::before { background: var(--live); }

/* Чесність: таблиця минулих розіграшів і перевірка хеша прямо в браузері. */
.fair { padding: 0 0 clamp(56px, 7vw, 96px); }
.fair__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.fair__head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.fair__head p { color: var(--muted); font-size: 14px; max-width: 60ch; }
.fair__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .fair__grid { grid-template-columns: 1fr; } }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-top: 0; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
td code { font-family: var(--mono); font-size: 12px; color: var(--cyan); }
td .pz { display: inline-flex; align-items: center; gap: 10px; }
td .pz img { width: 44px; height: 33px; object-fit: contain; }
tr.pick { cursor: pointer; }
tr.pick:hover td { background: var(--panel-2); }
tr.on td { background: rgba(94,212,255,.06); }

.verify { display: grid; gap: 12px; }
.verify label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.verify input {
  width: 100%; font: 14px/1.4 var(--mono); color: var(--text); background: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
}
.verify .out { font-family: var(--mono); font-size: 13px; padding: 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); word-break: break-all; }
.verify .out.ok { border-color: rgba(94,212,255,.5); color: var(--text); }
.verify .out.ok code { color: var(--cyan); }
.verify .out.bad { border-color: rgba(255,77,77,.5); }
.verify p { color: var(--muted); font-size: 13px; }

/* Кліп: кнопки платформ і «поділитись» з'являються при наведенні. */
.clip .acts { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.clip:hover .acts, .clip:focus-within .acts { opacity: 1; }
@media (hover: none) { .clip .acts { opacity: 1; } }
.clip .acts a, .clip .acts button {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(11,11,15,.8); color: var(--text); border: 1px solid var(--line-2);
  padding: 5px 7px; border-radius: 6px; text-decoration: none; cursor: pointer;
}
.clip .acts a:hover, .clip .acts button:hover { border-color: var(--cyan); }

/* Нахил картки скіна за курсором — як огляд предмета в грі. */
.skin__img { transform-style: preserve-3d; transition: transform .12s ease-out; will-change: transform; }

/* ── v2.2: шрифти, рух, прокрутка ────────────────────────────────────── */
:root {
  --display: 'Tektur', 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Golos Text', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
h1 { font-weight: 800; letter-spacing: -.01em; }
.brand span, .panel h2, .rail__head h2, .fair__head h2 { letter-spacing: .02em; }

/* Тонка лінія прогресу зверху — як шкала на HUD. */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--accent)); transition: width .08s linear; }

/* Смуга стану стискається після першої прокрутки. */
.strip { transition: box-shadow .25s, background .25s; }
.strip.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.45); background: rgba(11,11,15,.92); }

/* Заголовок героя піднімається по словах при завантаженні. */
.rise span { display: inline-block; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.rise span:nth-child(2) { animation-delay: .06s } .rise span:nth-child(3) { animation-delay: .12s }
.rise span:nth-child(4) { animation-delay: .18s } .rise em span:first-child { animation-delay: .26s } .rise em span:last-child { animation-delay: .34s }
@keyframes rise { from { transform: translateY(.6em) skewY(2deg); opacity: .001; } to { transform: none; opacity: 1; } }
.lead, .cta, .rules { animation: fadeUp .8s .35s cubic-bezier(.2,.8,.2,1) both; }
.cta { animation-delay: .45s } .rules { animation-delay: .55s }
@keyframes fadeUp { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

/* Поява при прокрутці: елемент і без спостерігача читається — лише трохи тьмяніший. */
.reveal { opacity: .35; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.stats .stat:nth-child(2) { transition-delay: .07s } .stats .stat:nth-child(3) { transition-delay: .14s } .stats .stat:nth-child(4) { transition-delay: .21s }
.clip { opacity: .35; transform: translateY(16px); }
.clip.in { opacity: 1; transform: none; }
.clip:hover { transform: translateY(-4px); }

/* Заголовки розділів: лінія-скан прокреслюється, коли розділ доїхав. */
h2.line { position: relative; padding-bottom: 10px; }
h2.line::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), transparent); transition: width .9s .2s cubic-bezier(.2,.8,.2,1); }
.reveal.in h2.line::after, h2.line.in::after { width: 100%; }

/* Телефон і скін ледь пливуть — як предмети в огляді, а не картинки. */
.phone { animation: float 7s ease-in-out infinite; will-change: transform; }
.skin__img img { animation: float 6s 1s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.skin__img::after { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.25), transparent 70%); filter: blur(18px); animation: glow 4s ease-in-out infinite; z-index: 0; }
.skin__img { position: relative; overflow: hidden; }
.skin__img img { position: relative; z-index: 1; }
@keyframes glow { 0%, 100% { opacity: .6 } 50% { opacity: 1 } }

/* Стрічка переможців — біжить, зупиняється під курсором. */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); margin-bottom: clamp(20px, 3vw, 36px); position: relative; z-index: 1; }
.ticker__track { display: flex; gap: 0; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 28px; white-space: nowrap; display: inline-flex; gap: 12px; align-items: center; }
.ticker__track span b { color: var(--text); font-weight: 500; }
.ticker__track span i { font-style: normal; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Числа в стрічці рахуються від нуля, коли доїхали в кадр. */
.stat b { transition: color .3s; }
.stat.counting b { color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .rise span, .lead, .cta, .rules, .phone, .skin__img img, .skin__img::after, .ticker__track { animation: none; }
  .reveal, .clip { opacity: 1; transform: none; transition: none; }
  h2.line::after { width: 100%; transition: none; }
  .progress { display: none; }
}

/* ── v2.3: вже розіграли, пости з каналу ─────────────────────────────── */
.won { padding: 0 0 clamp(56px, 7vw, 96px); }
.won__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .won__grid { grid-template-columns: repeat(2, 1fr); } }
.wonc { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; transition: border-color .2s, transform .2s; }
.wonc:hover { border-color: var(--accent); transform: translateY(-3px); }
.wonc__img { aspect-ratio: 4/3; border-radius: 10px; display: grid; place-items: center; padding: 10px;
  background: radial-gradient(ellipse at 50% 60%, rgba(245,166,35,.18), transparent 62%), linear-gradient(180deg, var(--panel-2), #0E0E13); }
.wonc__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.6)); }
.wonc__name { font-family: var(--display); font-weight: 700; font-size: 14px; margin-top: 12px; line-height: 1.3; }
.wonc__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.wonc__meta b { color: var(--accent); font-weight: 600; }
.wonc:nth-child(2) { transition-delay: .06s } .wonc:nth-child(3) { transition-delay: .12s } .wonc:nth-child(4) { transition-delay: .18s }

.posts { display: grid; gap: 14px; }
.post { border-top: 1px solid var(--line); padding-top: 12px; }
.post:first-child { border-top: 0; padding-top: 0; }
.post .readout { margin-bottom: 8px; }
.post iframe { border-radius: 12px; }
.stage { transform: translateY(var(--py, 0)); will-change: transform; }

/* ── v2.4: пости за день з прокруткою, записи стрімів ────────────────── */
.posts { max-height: 640px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
.posts::-webkit-scrollbar { width: 6px; } .posts::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.vods { padding: 0 0 clamp(56px, 7vw, 96px); }
.vods__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .vods__grid { grid-template-columns: 1fr; } }
.vod-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vod-player { aspect-ratio: 16/9; background: #000; }
.vod-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.vod-cap { padding: 16px 18px 18px; }
.vod-cap h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin-top: 8px; line-height: 1.3; text-wrap: balance; }
.vod-list { display: grid; gap: 10px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 4px; }
.vod { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--text); transition: border-color .2s, transform .2s; }
.vod:hover { border-color: var(--line-2); transform: translateX(3px); }
.vod.on { border-color: var(--accent); }
.vod img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #000; }
.vod__t { font-size: 13px; font-weight: 600; line-height: 1.3; display: block; }
.vod__t small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }

/* ── v2.5: FACEIT над скіном, день — праворуч на всю висоту колонки ──── */
.board .wrap { align-items: stretch; }
.col { display: grid; gap: 18px; align-content: start; }
.col--day { display: flex; }
#day { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#day .posts { flex: 1; min-height: 0; max-height: none; }
@media (max-width: 900px) { #day .posts { max-height: 640px; } }

/* ── v2.6: праві колонки рівняються по лівих, а не навпаки ───────────── */
/* Права панель не бере участі у визначенні висоти ряду: вона абсолютна всередині
   колонки, тож рядок стає заввишки як ліва частина, а праворуч усе гортається. */
@media (min-width: 901px) {
  .col--day { position: relative; min-height: 0; }
  #day { position: absolute; inset: 0; }
  .vods__grid { align-items: stretch; }
  .vod-list-wrap .vod-list { position: absolute; inset: 0; max-height: none; }
  .vods__grid { grid-template-columns: 1.6fr 1fr; }
  .vod-list-wrap { position: relative; min-height: 0; }
}

/* ── v2.7: герой розлітається, ефір влітає ───────────────────────────── */
.hero__copy { transform: translateX(var(--sx, 0)); opacity: var(--so, 1); will-change: transform, opacity; }
.stage { transform: translate(var(--sx, 0), var(--py, 0)); opacity: var(--so, 1); }
.hero { overflow: hidden; }
.vod-main, .vod-list-wrap { transform: translateX(var(--fx, 0)); opacity: var(--fo, 1); will-change: transform, opacity; }
.vod-main { position: relative; }
@media (max-width: 900px) { .vod-list-wrap { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__copy, .stage, .vod-main, .vod-list-wrap { transform: none; opacity: 1; } }

/* ── v2.8: основний запис на всю ширину, решта — стрічкою під ним ─────── */
.vods__grid { display: block; }
.vod-main { width: 100%; }
.vod-list-wrap { position: static; margin-top: 14px; transform: translate(var(--fx, 0), var(--fy, 0)); }
@media (min-width: 901px) { .vod-list-wrap .vod-list { position: static; max-height: none; } }
.vod-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 74vw); gap: 12px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 4px var(--pad) 14px; margin: 0 calc(-1 * var(--pad)); max-height: none;
}
.vod { scroll-snap-align: start; grid-template-columns: 1fr; gap: 8px; padding: 8px; }
.vod img { width: 100%; }
.vod:hover { transform: translateY(-3px); }
.vod__t { padding: 0 4px 4px; }

/* ── v2.9: герой відходить углиб, решта насувається поверх ────────────── */
.hero { position: sticky; top: 0; z-index: 0; }
.hero .wrap { transform: scale(var(--hs, 1)) translateY(var(--hy, 0)); opacity: var(--ho, 1); transform-origin: 50% 35%; will-change: transform, opacity; }
.hero__copy { transform: none; opacity: 1; }
.stage { transform: translateY(var(--py, 0)); opacity: 1; }
.ticker, .stats, .vods, .board, .won, .rail, footer { position: relative; z-index: 2; background: var(--ink); }
.ticker { background: var(--panel); box-shadow: 0 -30px 60px rgba(11,11,15,.9); }
@media (prefers-reduced-motion: reduce) { .hero { position: relative; } .hero .wrap { transform: none; opacity: 1; } }

/* ── v2.10: полегшений режим для телефонів ───────────────────────────── */
@media (hover: none), (max-width: 900px) {
  .hero { position: relative; }
  .hero .wrap, .stage, .vod-main, .vod-list-wrap { transform: none !important; opacity: 1 !important; will-change: auto; }
  .phone, .skin__img img, .skin__img::after { animation: none; }
  .rise span, .lead, .cta, .rules { animation-duration: .35s; }
  .reveal, .clip { transform: none; opacity: .6; transition: opacity .35s; }
  .reveal.in, .clip.in { opacity: 1; }
  .strip { backdrop-filter: none; background: rgba(11,11,15,.96); }
  .ticker { box-shadow: none; }
  .ticker__track { animation-duration: 40s; }
  h2.line::after { transition-duration: .4s; }
  #radar { opacity: .5; }
}

/* ── v2.11: у повний екран відео йде цілим ───────────────────────────── */
/* object-fit: cover потрібен у картці, щоб кадр заповнював плитку. Але коли
   те саме відео відкривають на весь екран, браузер лишає це правило — і
   вертикальний кліп розпливається в квадрат. У повному екрані — тільки contain. */
video:fullscreen, video:-webkit-full-screen, video:picture-in-picture {
  object-fit: contain !important; width: 100% !important; height: 100% !important; background: #000;
}
