/* Шрифты «Арены» со своего сервера (OFL; переменные, один файл на семейство и алфавит): Golos Text, Oswald, Tektur — кириллица
   и латиница. Без Google Fonts: IP посетителей не уходит третьим лицам, в России грузится быстрее. */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/golos-text-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("/assets/fonts/oswald-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("/assets/fonts/oswald-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tektur"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/tektur-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tektur"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/tektur-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* «Арена» — новый вид сайта и веб-кабинета (задача владельца 21.10.2026: «как у друга» — case-battle.uk и nightcity.bar).
   Слой поверх _site.css и _redesign.css: тёмный интерфейс в духе игрового HUD — рубленые заголовки Tektur, метки капсом
   Oswald, панели со срезанным углом и световой чертой, плитки уровней (золото — «Прогноз Линзы», синий — «Выбор»), большая
   золотая кнопка, оранжевое «Войти». Текст — Golos Text, крупный: читать должно быть легко и пожилым.
   Тот же файл отдаётся страницам сервера (/m/, команды, турниры, статьи) как assets/arena.css. */
:root:not(#lz-arena) {
  --bg: #07080f;
  --surface: #11141f;
  --surface-2: #171b29;
  --card: #121624;
  --well: #0d1019;
  --accent-strong: #b3a8ff;
  --sunken: #0c0f18;
  --line: rgba(160, 150, 255, .16);
  --line-hot: rgba(255, 92, 80, .45);
  --ink: #f2f3f8;
  --muted: #b1b6c8;
  --faint: #8a90a8;
  --accent: #9d8fff;
  --accent-ink: #0b0a17;
  --accent-soft: rgba(157, 143, 255, .16);
  --gold: #ffc83d;
  --gold-ink: #1a1200;
  --cyan: #3ee6f5;
  --cyan-ink: #031417;
  --coral: #ff6457;
  --orange: #ff7a2e;
  --pos: #4ade9a;
  --neg: #ff7b72;
  --pos-soft: rgba(74, 222, 154, .14);
  --warn: #ffc83d;
  --warn-soft: rgba(255, 200, 61, .14);
  --board: #10122a;
  --board-ink: #fff;
  --live: #ff5a4f;
  --display: "Tektur", "Golos Text", "Segoe UI", sans-serif;
  --label: "Oswald", "Golos Text", "Arial Narrow", sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --num: "Tektur", "JetBrains Mono", Consolas, monospace;
  --cut: 12px;
  color-scheme: dark;
}
html { background: var(--bg); }
body {
  background:
    radial-gradient(1200px 520px at 85% -120px, rgba(124, 92, 255, .22), transparent 70%),
    radial-gradient(900px 420px at -10% 10%, rgba(255, 90, 80, .10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 48px),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
}
a { color: var(--cyan); }
::selection { background: rgba(62, 230, 245, .3); }

/* Шапка: вкладки капсом, бирюзовая черта у открытой, снизу — красно-фиолетовая линия */
.top { background: rgba(7, 8, 15, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 0; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--coral) 18%, var(--accent) 60%, transparent); opacity: .75; }
.top .wrap { min-height: 72px; }
.logo { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink) !important; text-decoration: none; }
.logo svg rect { fill: #6c5cff; }
.top nav a { position: relative; font: 500 14px/1 var(--label); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 10px 6px; border-radius: 0; background: none !important; text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--cyan); }
.top nav a[aria-current="page"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -2px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* Кнопки: срезанные углы, капс; золото — главное действие, бирюза — второе, оранжевое — вход */
.btn {
  font: 600 15px/1 var(--label); text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  border-radius: 0; border: 0; min-height: 48px; padding-inline: 24px;
  background: linear-gradient(180deg, #ffd65c, var(--gold) 55%, #e8a913); color: var(--gold-ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.small { min-height: 40px; font-size: 13.5px; padding-inline: 16px; --cut: 9px; }
.btn.ghost, .btn.secondary { background: rgba(62, 230, 245, .08); color: var(--cyan); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn.cyan { background: var(--cyan); color: var(--cyan-ink); }
.btn.login { background: linear-gradient(180deg, #ff9a52, var(--orange) 55%, #e2551b); color: #1b0700; }
.cta-band .btn.ghost { color: var(--cyan); box-shadow: inset 0 0 0 1.5px var(--cyan); }

/* Заголовки и метки */
h1, h2, h3, .head h2, .hero h1 { font-family: var(--display); letter-spacing: 0; }
h1 { font-weight: 700; line-height: 1.1; }
h2 { font-weight: 700; }
.eyebrow, .hero .eyebrow, .kicker-title, .kicker > span:first-child, .list-title { font: 500 13px/1.2 var(--label); text-transform: uppercase; letter-spacing: .16em; color: var(--coral); }
.page-head h1 { font-size: clamp(30px, 4.6vw, 52px); }
.page-head p { color: var(--muted); }

/* Разделы-карточки — с обычными отступами (правило секций главной в _redesign.css их раздувало) */
section.card:not(.hero), section.tg-cta:not(.hero), section.plan:not(.hero) { padding: 18px; }
/* Карточка матча в списке — плитка со срезом */
a.match { border-radius: 0; background: linear-gradient(180deg, rgba(23, 27, 41, .96), rgba(14, 17, 27, .96)); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); color: var(--ink); }
a.match:hover { border-color: rgba(62, 230, 245, .5); }
a.match .teams { color: var(--ink); font-family: var(--display); font-weight: 700; }
.odd.pick, .odd.best { border-color: var(--gold) !important; box-shadow: inset 0 0 0 1px var(--gold); }
.odd b { color: var(--cyan); }

/* Панели: тёмный градиент, срезанный правый верхний угол, световая черта слева сверху */
.card, .plan, .tier, .tool, .mcard, .result, .tg-cta, .src-intro, .empty {
  position: relative; border-radius: 0; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 27, 41, .96), rgba(14, 17, 27, .96));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.card::before, .plan::before, .tg-cta::before { content: ""; position: absolute; top: 0; left: 0; width: min(38%, 220px); height: 2px; background: linear-gradient(90deg, var(--coral), transparent); }
.card.accent::before, .card.plain::before { background: linear-gradient(90deg, var(--gold), transparent); }
.card.plain { border-color: rgba(255, 200, 61, .35); }
.card.plain h2 { font: 700 20px/1.2 var(--display); color: var(--gold); }
.tg-cta, .src-intro { border: 1px solid rgba(62, 230, 245, .4); }
.badge { border-radius: 0; border-color: var(--line); font: 500 12px/1.2 var(--label); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(255, 255, 255, .03); }
.badge.accent, .badge.pos { color: var(--gold); border-color: rgba(255, 200, 61, .4); }
.hint { color: var(--muted); font-size: 14.5px; }
.fact { font-size: 16px; }

/* Цифры — Tektur, у главных — свечение */
.stat { border-radius: 0; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.stat b { font-family: var(--num); color: var(--gold); text-shadow: 0 0 18px rgba(255, 200, 61, .25); }
.prob .pct, .odd b, .teams b, .num { font-family: var(--num); }
.track { background: rgba(255, 255, 255, .06); border-radius: 0; }
.track i { background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 0; }
.odd { border-radius: 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }

/* Таблицы */
.table { border-radius: 0; border: 1px solid var(--line); background: rgba(12, 15, 24, .9); }
.table th { font: 500 12.5px/1.2 var(--label); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.table td, .table th { border-color: var(--line); }
.table tbody tr:hover { background: rgba(157, 143, 255, .06); }

/* «Подробнее» — бирюзовая метка капсом */
details.more { border-top: 1px dashed var(--line); }
details.more summary { font: 500 14.5px/1.3 var(--label); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
details.more summary::after { color: var(--cyan); }

/* Вкладки и поля */
.tabs { border-radius: 0; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.tabs button { border-radius: 0; font: 500 13.5px/1 var(--label); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tabs button[aria-selected="true"], .tabs button.on { background: rgba(62, 230, 245, .12); color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
.field input, .field select, input[type="text"], input[inputmode], select, textarea { border-radius: 0 !important; background: #0b0e17 !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.field input:focus, input:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* Полоса призыва */
.cta-band { border-radius: 0; background: linear-gradient(120deg, rgba(108, 92, 255, .35), rgba(255, 90, 80, .18)), #0d0f1d; border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }

/* Подвал */
footer { background: #05060b; border-top: 1px solid var(--line); color: var(--faint); }
footer a { color: var(--muted); }
.age { border-radius: 0 !important; border-color: var(--coral) !important; color: var(--coral) !important; font-family: var(--display); }

/* Плитки уровней (как редкость скинов): золото — «Прогноз Линзы», синий — «Выбор Линзы», графит — без уверенности */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; padding: 14px 14px 12px; min-height: 132px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .14); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); background: linear-gradient(160deg, #2a2f45, #141826); transition: transform .15s, filter .15s; }
.tile:hover { transform: translateY(-2px); filter: brightness(1.12); }
.tile.gold { background: linear-gradient(160deg, #f7c531 0%, #a87908 55%, #4a3500 100%); border-color: #ffd86b; color: #1b1300; }
.tile.blue { background: linear-gradient(160deg, #3d7bff 0%, #1440a8 55%, #0a1d55 100%); border-color: #7ea6ff; }
.tile.red { background: linear-gradient(160deg, #ff5b4f 0%, #a8190f 55%, #4d0904 100%); border-color: #ff8f86; }
.tile .t-k { font: 500 11.5px/1.2 var(--label); text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.tile .t-m { margin-top: 8px; font: 700 16px/1.25 var(--display); }
.tile .t-p { position: absolute; right: 12px; bottom: 10px; font: 800 28px/1 var(--num); }
.tile .t-w { margin-top: 6px; font-size: 13.5px; opacity: .92; max-width: 68%; }
.tile.gold .t-k, .tile.gold .t-w { opacity: 1; }

/* Окно входа через Telegram */
.lz-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(3, 4, 9, .78); backdrop-filter: blur(6px); }
.lz-modal[hidden] { display: none; }
.lz-modal .box { position: relative; width: min(460px, 100%); padding: 26px 22px 22px; border: 1px solid rgba(62, 230, 245, .45); background: linear-gradient(180deg, #151a2a, #0c0f19); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.lz-modal h2 { margin: 0 0 6px; font: 800 24px/1.15 var(--display); }
.lz-modal .pick { display: inline-block; margin: 6px 0 4px; padding: 8px 22px; font: 800 54px/1 var(--display); color: var(--gold); border: 2px solid var(--gold); text-shadow: 0 0 22px rgba(255, 200, 61, .45); }
.lz-modal ol { margin: 10px 0 16px; padding-left: 22px; line-height: 1.55; }
.lz-modal .x { position: absolute; top: 8px; right: 30px; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.lz-modal .state { min-height: 22px; margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.lz-user { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--label); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.lz-user i { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #fff; font-style: normal; font-family: var(--display); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .wrap { min-height: 62px; }
  .btn { font-size: 14px; padding-inline: 18px; }
  .tile { min-height: 118px; }
  .tile .t-p { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .tile { transition: none; } .btn:hover, .tile:hover { transform: none; } }

/* Главная: первый экран — арена CS за текстом, справа плитки «Сегодня на арене» (site/src/js/home.js) */
.arena-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #07080f; }
.arena-hero::before { content: ""; position: absolute; inset: 0; background-image: image-set(url("/assets/arena-cs.webp") type("image/webp"), url("/assets/arena-cs.jpg") type("image/jpeg")); background-size: cover; background-position: center 35%; opacity: .7; }
.arena-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 15, .97) 0%, rgba(7, 8, 15, .82) 42%, rgba(7, 8, 15, .45) 100%), linear-gradient(0deg, #07080f 0%, transparent 35%); }
.arena-hero .wrap { position: relative; z-index: 1; }
.arena-hero h1 { font-size: clamp(38px, 5vw, 66px); max-width: 13ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.arena-hero .lead { color: #d5d8e6; max-width: 46ch; }
.hero-arena { min-width: 0; }
.arena-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.arena-head a { font: 500 13px/1 var(--label); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); text-decoration: none; }
.hero-arena .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile.skel { background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 300% 100%; animation: lz-skel 1.4s linear infinite; border-color: var(--line); }
@keyframes lz-skel { to { background-position: -300% 0; } }
.legend-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.legend-tiles .sw { display: inline-block; width: 12px; height: 12px; margin-right: -8px; background: linear-gradient(160deg, #2a2f45, #141826); border: 1px solid rgba(255, 255, 255, .2); }
.legend-tiles .sw.gold { background: linear-gradient(160deg, #f7c531, #a87908); }
.legend-tiles .sw.blue { background: linear-gradient(160deg, #3d7bff, #1440a8); }

/* Блок расширения — бывший первый экран, с живым примером строки линии */
.ext .wrap { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: 56px; }
.ext h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; margin: 10px 0 18px; }
.ext .lead { color: var(--muted); }
.ext .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ext .fine { margin-top: 16px; font-size: 12px; color: var(--faint); }
.board { border-radius: 0; border: 1px solid rgba(62, 230, 245, .35); background: linear-gradient(180deg, #121627, #0b0e19); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); box-shadow: 0 0 60px rgba(108, 92, 255, .18); }
.board .odd { border-radius: 0; background: #1a1f31; font-family: var(--num); }
.board .odd.pick { background: #2b2350; box-shadow: inset 0 0 0 2px var(--gold); }
.studio-label span:first-child { color: var(--coral); font-family: var(--label); letter-spacing: .14em; }
.switch { border-radius: 0; }
@media (max-width: 900px) {
  .ext .wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 760px) {
  .arena-hero::after { background: linear-gradient(180deg, rgba(7, 8, 15, .7) 0%, rgba(7, 8, 15, .92) 55%, #07080f 100%); }
  .arena-hero h1 { font-size: clamp(34px, 10vw, 48px); }
}
@media (prefers-reduced-motion: reduce) { .tile.skel { animation: none; } }

/* Плашка согласия на Метрику (site/src/js/metrika.js задаёт вид встроенными стилями — здесь поверх них). Селектор — по подписи
   плашки: имена её атрибутов в CSS не пишем, тесты страниц без Метрики (кабинет, оплата) ищут их как признак счётчика. */
div[role="region"][aria-label^="Cookie"] { border-radius: 0 !important; background: #0d101b !important; border: 1px solid rgba(62, 230, 245, .4) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, .6) !important; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
div[role="region"][aria-label^="Cookie"] button { border-radius: 0 !important; font-family: var(--label) !important; text-transform: uppercase; letter-spacing: .06em; }
div[role="region"][aria-label^="Cookie"] button:first-of-type { background: var(--gold) !important; color: var(--gold-ink) !important; border: 0 !important; }
div[role="region"][aria-label^="Cookie"] a { color: var(--cyan) !important; }

/* Оплата и страница после оплаты (pay.html, paid.html — свои стили): тёмные карточки сроков, золотая кнопка оплаты */
.plans label { border-radius: 0 !important; background: var(--well) !important; border-color: var(--line) !important; }
.plans label:has(input:checked) { border-color: var(--gold) !important; box-shadow: inset 0 0 0 1px var(--gold) !important; }
.plans .sum { font-family: var(--num); color: var(--gold) !important; }
.methods li { border-radius: 0 !important; font-family: var(--label); text-transform: uppercase; letter-spacing: .05em; font-size: 13px !important; }
button.pay { border-radius: 0 !important; background: linear-gradient(180deg, #ffd65c, var(--gold) 55%, #e8a913) !important; color: var(--gold-ink) !important; font-family: var(--label) !important; text-transform: uppercase; letter-spacing: .08em; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.consent-text { border-radius: 0 !important; }
