/* ===== Вестник геймера ===== */
@layer tokens, base, layout, components, motion;

/* ---------- Шрифт ---------- */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

@layer tokens {
  :root {
    /* --- Типографика: восемь ступеней. Дробных размеров нет: они появляются,
       когда каждый элемент настраивают отдельно, а не берут из шкалы. --- */
    --t-1: 12px;   /* подписи, счётчики */
    --t-2: 13px;   /* мелкий вспомогательный текст */
    --t-3: 15px;   /* базовый интерфейсный */
    --t-4: 17px;   /* текст статей, крупные карточки */
    --t-5: 20px;   /* заголовки третьего уровня */
    --t-6: 26px;   /* заголовки разделов */
    --t-7: 34px;   /* заголовок страницы */
    --t-8: clamp(34px, 2rem + 2.4vw, 52px);  /* первый экран */

    /* --- Отступы: шаг 4, дальше удвоение. --- */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;

    /* --- Скругления и время: по три и по две величины, не больше. --- */
    --r-1: 8px;
    --r-2: 16px;
    --r-pill: 999px;
    --d-fast: .15s;
    --d-slow: .3s;
    --ease: cubic-bezier(.22, 1, .36, 1);

    /* --- Цвет в OKLCH: равные шаги светлоты выглядят равными. ---
       База тёплая и почти бесцветная, акцент холодный. Раньше было наоборот:
       холодный сине-серый фон и кислотный лайм — дополнительные цвета,
       которые спорят друг с другом. Тёплое основание с холодным акцентом
       даёт глубину, и на нём же спокойно живут зелёный, жёлтый и красный
       для оценок: акцент с ними по тону не пересекается. */
    --h: 60;
    --bg:        oklch(14.5% 0.006 var(--h));
    --surface:   oklch(18.5% 0.008 var(--h));
    --surface-2: oklch(23%   0.010 var(--h));
    --line:      oklch(27%   0.010 var(--h));
    --line-2:    oklch(35%   0.012 var(--h));
    --text:      oklch(96%   0.003 var(--h));
    --soft:      oklch(80%   0.006 var(--h));
    --muted:     oklch(64%   0.008 var(--h));

    --accent:     oklch(79% 0.13 230);
    /* Каналы в относительном синтаксисе — числа, не проценты.
       calc(l + 6%) невалиден и обнуляет весь цвет: кнопка теряла фон. */
    --accent-hi:  oklch(from var(--accent) calc(l + 0.07) c h);
    --accent-ink: oklch(19% 0.04 230);
    --accent-dim:  color-mix(in oklch, var(--accent) 15%, transparent);
    --accent-line: color-mix(in oklch, var(--accent) 36%, transparent);

    --good: oklch(78% 0.15 148);
    --warn: oklch(83% 0.14 82);
    --bad:  oklch(70% 0.17 25);

    --wrap: 1240px;
    --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: var(--sans);
  }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }
  body {
    font-family: var(--sans);
    font-size: var(--t-3);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(120% 55% at 50% -25%, color-mix(in oklch, var(--accent) 5%, transparent), transparent 70%);
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  button, input, select, textarea { font: inherit; }
  svg { display: block; }
  code { background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-1); font-size: .9em; }

  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }

  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--r-pill); border: 3px solid var(--bg); }
  ::selection { background: var(--accent); color: var(--accent-ink); }

  .hidden { display: none !important; }
  .muted { color: var(--muted); }
  .empty { color: var(--muted); padding: var(--s-5) 0; }

  /* Одинаковая ширина цифр там, где числа сравниваются глазом. */
  .date-tag, .news-date, .cal-day, .rel-day b, .score, .detail-score b,
  .info-table b, .month-tile i, .footer-plats i, .rail-list i,
  .rail-chips .tag-chip span, .sc {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
  }

  /* Иконки — один спрайт вместо текстовых стрелок: они рисуются системным
     шрифтом и выглядят по-разному на разных платформах. */
  .i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2;
       stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
}

@layer layout {
  .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
  main.wrap { display: block; padding-block: var(--s-6) var(--s-8); }

  /* ---------- Шапка ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklch, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
  }
  .header-inner { display: flex; align-items: center; gap: var(--s-6); min-height: 64px; }
  .logo { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--t-4); letter-spacing: -.02em; flex-shrink: 0; }
  .logo-mark {
    width: 26px; height: 26px; border-radius: var(--r-1); display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); font-size: var(--t-2); font-weight: 700;
  }
  .logo-text { white-space: nowrap; }
  .logo-accent { color: var(--muted); }

  .nav { display: flex; gap: var(--s-1); margin-inline-start: auto; flex-wrap: wrap; }
  .nav-btn {
    font-size: var(--t-2); font-weight: 500; color: var(--muted);
    padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
    transition: color var(--d-fast), background var(--d-fast);
  }
  .nav-btn:hover { color: var(--text); background: var(--surface-2); }
  .nav-btn.active { color: var(--accent-ink); background: var(--accent); font-weight: 600; }

  /* Гамбургер появляется, когда семь пунктов перестают помещаться в строку. */
  .nav-toggle {
    display: none; place-items: center; margin-inline-start: auto;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-1);
    background: transparent; color: var(--text); cursor: pointer;
    transition: border-color var(--d-fast);
  }
  .nav-toggle:hover { border-color: var(--line-2); }
  .nav-toggle .i { width: 20px; height: 20px; }

  /* ---------- Первый экран ---------- */
  .bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); margin-bottom: var(--s-5); }
  .cell { min-width: 0; }
  .cell-headline { grid-column: span 7; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-5); }
  .cell-month {
    grid-column: span 5;
    background: var(--surface); border-radius: var(--r-2);
    padding: var(--s-5); display: flex; flex-direction: column;
  }

  .eyebrow {
    font-size: var(--t-1); font-weight: 500; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); display: inline-block;
  }
  .cell-headline h1 { font-size: var(--t-8); letter-spacing: -.04em; }
  .cell-headline p { color: var(--muted); font-size: var(--t-4); margin: var(--s-4) 0 var(--s-5); max-width: 46ch; }
  .hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

  /* Ближайший релиз на первом экране: обложка, подпись и название.
     Держим её узкой — это указатель, а не карточка, и она не должна
     конкурировать с панелью месяца справа. */
  .next-up {
    display: flex; align-items: center; gap: var(--s-3);
    max-width: 46ch; margin-bottom: var(--s-5);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-2); padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
    transition: border-color var(--d-fast), background var(--d-fast);
  }
  .next-up:hover { background: var(--surface-2); border-color: var(--line-2); }
  .next-up-art {
    flex: none; width: 64px; aspect-ratio: 16 / 9;
    border-radius: var(--r-1); overflow: hidden;
  }
  .next-up-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .next-up-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
  .next-up-text i {
    font-style: normal; font-size: var(--t-1); color: var(--accent);
    text-transform: uppercase; letter-spacing: .06em;
  }
  .next-up-text b {
    font-size: var(--t-3); font-weight: 550; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .next-up .i { flex: none; color: var(--muted); transition: transform var(--d-fast) var(--ease); }
  .next-up:hover .i { transform: translateX(2px); color: var(--text); }

  /* ---------- Заголовки ---------- */
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin: var(--s-7) 0 var(--s-5); }
  .section-head h2 { font-size: var(--t-6); }
  .link-more {
    display: inline-flex; align-items: center; gap: var(--s-1);
    font-size: var(--t-2); font-weight: 500; color: var(--muted); white-space: nowrap;
    transition: color var(--d-fast);
  }
  .link-more:hover { color: var(--accent); }

  .page-title { margin-bottom: var(--s-6); }
  .page-title h1 { font-size: var(--t-7); }
  .page-title p { color: var(--muted); margin-top: var(--s-3); max-width: 68ch; font-size: var(--t-3); }
  .page-sub { color: var(--muted); margin: calc(var(--s-3) * -1) 0 var(--s-5); }

  .crumbs { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-5); font-size: var(--t-2); color: var(--muted); }
  .crumbs a { transition: color var(--d-fast); }
  .crumbs a:hover { color: var(--accent); }
  .crumbs i { font-style: normal; color: var(--line-2); }
  .crumbs span { color: var(--soft); }

  .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-7); align-items: start; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: var(--s-7); align-items: start; }
}

@layer components {
  /* ---------- Кнопки ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer;
    font-size: var(--t-3); font-weight: 550; padding: var(--s-3) var(--s-5);
    border-radius: var(--r-pill); border: 1px solid transparent;
    /* Фон и шрифт сбрасываем явно. Пока .btn висел только на ссылках, это было
       не нужно, но на настоящем <button> браузер подставляет свой buttonface —
       почти белый — и светлый текст на нём пропадает. Так и случилось с кнопкой
       «Отказаться» в баннере cookie. */
    background: transparent; font-family: inherit;
    transition: background var(--d-fast) var(--ease), border-color var(--d-fast), color var(--d-fast);
  }
  .btn-primary { background: var(--accent); color: var(--accent-ink); }
  .btn-primary:hover { background: var(--accent-hi); }
  .btn-ghost { border-color: var(--line-2); color: var(--text); }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn.danger { color: var(--bad); border-color: color-mix(in oklch, var(--bad) 40%, transparent); }
  .btn-sm { font-size: var(--t-2); padding: var(--s-2) var(--s-4); }

  /* ---------- Поля и фильтры ---------- */
  .controls { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
  .input {
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    font-size: var(--t-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-1);
    outline: none; transition: border-color var(--d-fast); min-width: 0;
  }
  .input::placeholder { color: var(--muted); }
  .input:focus { border-color: var(--accent-line); }
  #arch-search { flex: 1 1 260px; }
  .select { appearance: none; padding-inline-end: var(--s-6);
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

  .year-filter { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-5); }
  .chip {
    background: transparent; border: 1px solid var(--line); color: var(--muted);
    padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); cursor: pointer;
    font-size: var(--t-2); font-weight: 500; transition: all var(--d-fast) var(--ease);
  }
  .chip:hover { color: var(--text); border-color: var(--line-2); }
  .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

  /* ---------- Поверхности: три уровня, а не один ----------
     1. Карточка материала — заливка без рамки, поднимается при наведении.
     2. Служебный контейнер — рамка без заливки.
     3. Акцентный блок — подложка акцента.
     Раньше все шесть типов блоков выглядели одинаково, и вес материала
     ничем не отличался от веса вспомогательной панели. */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: var(--s-4); }
  .grid.mini { grid-template-columns: 1fr; }

  .card {
    position: relative;
    container-type: inline-size;
    background: var(--surface); border-radius: var(--r-2);
    overflow: hidden; display: flex; flex-direction: column;
    transition: background var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  }
  .card:hover { background: var(--surface-2); transform: translateY(-2px); }
  .card:hover .card-title { color: var(--accent); }
  .card[hidden] { display: none !important; }

  /* Хит и «ждут» без подписи словом. Состояние несёт сама карточка: кольцо по
     контуру, тёплая подсветка сверху обложки и один значок в углу. Два цвета
     разводят состояния между собой — вышедший хит тёплый, ожидаемое холодное,
     и это те же цвета, которыми на сайте уже размечены оценка и дата. */
  .is-hit  { --hype: var(--warn);   --hype-line: color-mix(in oklch, var(--warn) 45%, transparent); }
  .is-want { --hype: var(--accent); --hype-line: var(--accent-line); }

  .card.is-hype { box-shadow: inset 0 0 0 1px var(--hype-line); }
  .card.is-hype:hover { box-shadow: inset 0 0 0 1px var(--hype); }
  /* ::after у card-art уже занят затемнением снизу, поэтому подсветка идёт
     отдельным слоем сверху. */
  .card.is-hype .card-art::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, color-mix(in oklch, var(--hype) 20%, transparent), transparent 60%);
  }
  .hype-mark {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: oklch(18% 0.01 var(--h) / .78); backdrop-filter: blur(6px);
    border: 1px solid var(--hype-line); color: var(--hype); flex-shrink: 0;
  }
  .hype-mark .i { width: 12px; height: 12px; }

  /* Кликабельна вся карточка, но ссылка одна — на заголовке.
     Раньше в <a> была обёрнута вся карточка, и скринридер читал
     название, студию, описание и платформы как текст одной ссылки. */
  .card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

  /* Пропорция, а не фиксированная высота: обложка должна оставаться обложкой
     на любой ширине карточки. 16:9 — формат, в котором издатели отдают
     ключевой арт и скриншоты. */
  .card-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
  .card-art img { width: 100%; height: 100%; object-fit: cover; }
  .card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in oklch, var(--surface) 85%, transparent)); }
  .art-letters {
    position: absolute; right: var(--s-4); bottom: var(--s-1); z-index: 1;
    font-size: 40px; font-weight: 500; letter-spacing: -.04em;
    color: oklch(100% 0 0 / .13); user-select: none;
  }
  .card-art .badges { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; display: flex; gap: var(--s-1); flex-wrap: wrap; max-width: 78%; }
  .badge {
    font-size: var(--t-1); font-weight: 550; padding: 2px var(--s-2); border-radius: var(--r-pill);
    background: oklch(18% 0.01 var(--h) / .78); color: var(--soft); backdrop-filter: blur(6px);
  }
  .badge.soon { background: oklch(96% 0 0 / .92); color: oklch(20% 0 0); }

  .score {
    position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2;
    min-width: 38px; height: 26px; padding-inline: var(--s-2); border-radius: var(--r-pill);
    display: grid; place-items: center; font-weight: 600; font-size: var(--t-2);
    background: oklch(18% 0.01 var(--h) / .8); backdrop-filter: blur(6px); border: 1px solid;
  }
  .score.high { color: var(--good); border-color: color-mix(in oklch, var(--good) 45%, transparent); }
  .score.mid  { color: var(--warn); border-color: color-mix(in oklch, var(--warn) 45%, transparent); }
  .score.low  { color: var(--bad);  border-color: color-mix(in oklch, var(--bad) 45%, transparent); }

  .card-body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; }
  .card-title { font-size: var(--t-4); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; transition: color var(--d-fast); }
  .card-meta { color: var(--muted); font-size: var(--t-2); margin: var(--s-1) 0 var(--s-3); }
  .card-desc { color: var(--soft); font-size: var(--t-2); flex: 1; line-height: 1.5; }
  .card-foot { margin-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
  .date-tag { font-size: var(--t-1); color: var(--accent); white-space: nowrap; }
  .date-tag.is-out { color: var(--muted); }
  .plats { display: flex; gap: var(--s-1); flex-wrap: wrap; }
  .plats i { font-style: normal; font-size: var(--t-1); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-1); padding: 0 var(--s-2); }

  /* Порог был 300px при реальной ширине карточки 286px — «узкий режим»
     включался в обычной сетке и прятал описание. Оставляем только для
     действительно тесных мест. */
  @container (max-width: 210px) {
    .art-letters { font-size: 28px; }
    .card-desc { display: none; }
  }

  /* ---------- Подборка месяца ---------- */
  .month-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
  .month-panel-head h2 { font-size: var(--t-5); }

  .rel-list { display: flex; flex-direction: column; }
  .rel-row {
    position: relative;
    display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4);
    padding: var(--s-2) 0; border-top: 1px solid var(--line);
    transition: background var(--d-fast) var(--ease);
  }
  .rel-row:first-child { border-top: none; }
  .rel-row:hover { background: var(--surface-2); }
  .rel-day { text-align: center; line-height: 1.1; }
  .rel-day b { display: block; font-size: var(--t-4); font-weight: 500; }
  .rel-day i { font-style: normal; font-size: var(--t-1); color: var(--muted); }
  .rel-main { min-width: 0; }
  .rel-main b { display: block; font-size: var(--t-3); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rel-main i { font-style: normal; font-size: var(--t-1); color: var(--muted); }
  .rel-row:hover .rel-main b { color: var(--accent); }
  .rel-main a::after { content: ''; position: absolute; inset: 0; }
  .rel-plats { display: flex; gap: var(--s-1); }
  .rel-plats i { font-style: normal; font-size: var(--t-1); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-1); padding: 0 var(--s-1); }
  .rel-split {
    font-size: var(--t-1); letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); padding: var(--s-4) 0 var(--s-1); border-top: 1px solid var(--line); margin-top: var(--s-1);
  }

  /* ---------- Календарь ---------- */
  .cal-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
  .cal-bar h1 { font-size: var(--t-7); }
  .cal-nav { display: flex; gap: var(--s-2); }

  /* ---------- Полоса месяцев ---------- */
  .month-strip { margin-bottom: var(--s-6); }
  .strip-years { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); }
  .strip-y {
    font-size: var(--t-2); font-weight: 500; color: var(--muted);
    padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
    transition: color var(--d-fast), background var(--d-fast);
  }
  .strip-y:hover { color: var(--text); background: var(--surface-2); }
  .strip-y.active { color: var(--text); background: var(--surface-2); font-weight: 600; }

  .strip-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-1); }
  .strip-m {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: var(--s-2) var(--s-1); border-radius: var(--r-1);
    font-size: var(--t-2); color: var(--soft); background: var(--surface);
    transition: background var(--d-fast), color var(--d-fast);
  }
  .strip-m span { font-size: var(--t-1); color: var(--muted); font-variant-numeric: tabular-nums; }
  .strip-m:hover { background: var(--surface-2); }
  .strip-m.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
  .strip-m.active span { color: var(--accent-ink); opacity: .75; }
  .strip-m.off { background: transparent; color: color-mix(in oklch, var(--muted) 55%, var(--bg)); }

  /* ---------- Повестка по дням ---------- */
  .agenda { display: grid; gap: var(--s-5); }
  .day-group { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  .day-mark { position: sticky; top: 84px; text-align: center; padding-top: var(--s-2); }
  .day-mark b { display: block; font-size: var(--t-6); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
  .day-mark i { font-style: normal; font-size: var(--t-1); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .day-mark.weekend b { color: var(--soft); }
  .day-mark em {
    display: block; font-style: normal; margin-top: var(--s-1);
    font-size: var(--t-1); color: var(--accent-ink); background: var(--accent);
    border-radius: var(--r-pill); padding: 1px var(--s-2);
  }
  .day-group.is-today .day-mark b { color: var(--accent); }

  /* Прошедшие дни текущего месяца гасим, но не прячем: календарь остаётся
     полным, а взгляд сам находит место, где кончилось прошлое. */
  .day-group.is-past { opacity: 1; }

  /* Черта «сегодня» — когда на саму дату релизов нет и подписывать нечего. */
  .today-line {
    display: flex; align-items: center; gap: var(--s-3);
    color: var(--accent); font-size: var(--t-1);
    text-transform: uppercase; letter-spacing: .06em;
  }
  .today-line::before, .today-line::after {
    content: ''; height: 1px; background: var(--accent-line);
  }
  .today-line::before { width: 64px; flex: none; }
  .today-line::after { flex: 1; }

  .day-releases { display: grid; gap: var(--s-2); }

  .rel-card {
    position: relative;
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center;
    background: var(--surface); border-radius: var(--r-2); padding: var(--s-3);
    transition: background var(--d-fast) var(--ease);
  }
  .rel-card:hover { background: var(--surface-2); }
  .rel-card.is-hype { box-shadow: inset 0 0 0 1px var(--hype-line); }
  .rel-cover { position: relative; overflow: hidden; border-radius: var(--r-1); aspect-ratio: 16 / 9; }
  .rel-cover img { width: 100%; height: 100%; object-fit: cover; }
  .rel-cover .art-letters { font-size: 22px; right: var(--s-2); bottom: 0; }
  .rel-cover .hype-mark { position: absolute; top: var(--s-1); left: var(--s-1); z-index: 2; }
  .rel-info { min-width: 0; }
  .rel-info h3 { font-size: var(--t-4); font-weight: 600; letter-spacing: -.02em; transition: color var(--d-fast); }
  .rel-card:hover .rel-info h3 { color: var(--accent); }
  .rel-info h3 a::after { content: ''; position: absolute; inset: 0; }
  .rel-info p { font-size: var(--t-2); color: var(--muted); margin-top: 2px; }
  .rel-tags { display: flex; gap: var(--s-1); flex-wrap: wrap; margin-top: var(--s-2); }
  .rel-tags span { font-size: var(--t-1); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-1); padding: 0 var(--s-2); }
  .rel-tags .soon-tag { color: var(--accent); border-color: var(--accent-line); }
  .score-pill {
    font-size: var(--t-3); font-weight: 600; font-variant-numeric: tabular-nums;
    padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); border: 1px solid;
    margin-inline-end: var(--s-2);
  }
  .score-pill.high { color: var(--good); border-color: color-mix(in oklch, var(--good) 45%, transparent); }
  .score-pill.mid  { color: var(--warn); border-color: color-mix(in oklch, var(--warn) 45%, transparent); }
  .score-pill.low  { color: var(--bad);  border-color: color-mix(in oklch, var(--bad) 45%, transparent); }

  /* ---------- Мини-календарь ---------- */
  .mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .mini-wd { font-size: 10px; color: var(--muted); text-align: center; padding-bottom: var(--s-1); }
  .mini-cell {
    aspect-ratio: 1; display: grid; place-items: center;
    font-size: var(--t-1); color: color-mix(in oklch, var(--muted) 70%, var(--bg));
    border-radius: var(--r-1); font-variant-numeric: tabular-nums;
  }
  .mini-cell.off { visibility: hidden; }
  .mini-cell.has { background: var(--accent-dim); color: var(--text); font-weight: 600; }
  .mini-cell.has:hover { background: var(--accent); color: var(--accent-ink); }
  .mini-cell.today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
  .mini-cell.past { opacity: 1; }
  .mini-legend { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-1); color: var(--muted); margin-top: var(--s-3); }
  .dot-has { width: 10px; height: 10px; border-radius: 3px; background: var(--accent-dim); }

  .month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s-3); }
  .month-tile {
    display: flex; flex-direction: column; gap: var(--s-1);
    background: var(--surface); border-radius: var(--r-2);
    padding: var(--s-4); transition: background var(--d-fast) var(--ease);
  }
  .month-tile:hover { background: var(--surface-2); }
  .month-tile.now { background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
  .month-tile b { font-size: var(--t-4); font-weight: 600; }
  .month-tile i { font-style: normal; font-size: var(--t-1); color: var(--muted); }
  .month-tile:hover b { color: var(--accent); }

  /* ---------- Новости и блог ---------- */
  .news-list { display: grid; gap: var(--s-3); }
  .news-item {
    position: relative;
    display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-5); align-items: stretch;
    background: var(--surface); border-radius: var(--r-2); overflow: hidden;
    transition: background var(--d-fast) var(--ease);
  }
  .news-item:hover { background: var(--surface-2); }
  .news-item:hover h3 { color: var(--accent); }
  .news-body { padding: var(--s-4) var(--s-5) var(--s-4) 0; min-width: 0; }
  /* Здесь пропорцию задавать нельзя: карточка растягивает превью по высоте,
     высота становится определённой, и aspect-ratio пересчитывает из неё
     ширину — блок вылезал из своей колонки и накрывал текст.
     Превью просто заполняет колонку, а картинка обрезается по центру. */
  .news-thumb { position: relative; overflow: hidden; min-height: 112px; }
  .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .news-thumb .art-letters { font-size: 30px; right: auto; left: var(--s-3); bottom: var(--s-1); }
  .news-top { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
  .news-tag {
    font-size: var(--t-1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-dim); padding: 2px var(--s-2); border-radius: var(--r-pill);
  }
  .news-date { font-size: var(--t-1); color: var(--muted); }
  .news-item h3 { font-size: var(--t-5); font-weight: 600; margin-bottom: var(--s-2); letter-spacing: -.025em; transition: color var(--d-fast); }
  .news-item h3 a::after { content: ''; position: absolute; inset: 0; }
  .news-item p { color: var(--soft); font-size: var(--t-2); line-height: 1.55; }

  /* ---------- Статья ---------- */
  .back { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-3); margin-bottom: var(--s-5); transition: color var(--d-fast); }
  .back:hover { color: var(--text); }

  .article { max-width: 700px; }
  .article h1 { font-size: var(--t-7); margin: var(--s-3) 0 var(--s-5); }
  .article-body p { color: var(--soft); font-size: var(--t-4); line-height: 1.72; margin-bottom: var(--s-4); }
  .article-body p:first-child { color: var(--text); }
  .article-hero { width: 100%; border-radius: var(--r-2); margin-bottom: var(--s-5); }
  .lede { font-size: var(--t-4); color: var(--text); margin-bottom: var(--s-5); }
  .rel-head { font-size: var(--t-6); margin: var(--s-7) 0 var(--s-5); }

  .byline {
    display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
    background: var(--surface); border-radius: var(--r-pill);
    padding: var(--s-2) var(--s-4); margin-bottom: var(--s-5); font-size: var(--t-2); color: var(--muted);
  }
  .byline .who { color: var(--text); font-weight: 550; }
  .byline .dot { color: var(--line-2); }
  .byline a { color: var(--accent); }
  .byline a:hover { text-decoration: underline; }

  /* ---------- Страница игры ---------- */
  .detail-hero {
    position: relative; border-radius: var(--r-2); overflow: hidden;
    padding: var(--s-8) var(--s-6) var(--s-6); margin-bottom: var(--s-5);
    display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); min-height: 260px;
  }
  .detail-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, oklch(15.5% 0.014 var(--h) / .92)); }
  .detail-hero-inner { position: relative; }
  .detail-hero .badges { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-4); position: static; }
  .detail-hero.is-hype { box-shadow: inset 0 0 0 1px var(--hype-line); }
  .detail-hero h1 { font-size: var(--t-7); letter-spacing: -.04em; }
  .detail-sub { position: relative; color: var(--soft); margin-top: var(--s-3); font-size: var(--t-3); }
  .detail-score {
    position: relative; flex-shrink: 0; width: 76px; min-height: 76px; border-radius: var(--r-2);
    display: grid; place-items: center; align-content: center; padding: var(--s-2);
    background: oklch(18% 0.01 var(--h) / .8); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
    text-align: center;
  }
  .detail-score b { font-size: var(--t-6); font-weight: 600; }
  .detail-score span { font-size: var(--t-1); color: var(--muted); }
  .detail-score.high { border-color: color-mix(in oklch, var(--good) 45%, transparent); color: var(--good); }
  .detail-score.mid  { border-color: color-mix(in oklch, var(--warn) 45%, transparent); color: var(--warn); }
  .detail-score.low  { border-color: color-mix(in oklch, var(--bad) 45%, transparent);  color: var(--bad); }
  /* Оценки может не быть — блок остаётся на месте, чтобы шапка не «съезжала». */
  .detail-score.none { color: var(--muted); }
  .detail-score.none span { display: block; line-height: 1.3; }

  .detail-main h2, .detail-side h2 { font-size: var(--t-5); margin: var(--s-6) 0 var(--s-4); }
  .detail-main h2:first-child { margin-top: 0; }
  .detail-desc p { color: var(--soft); font-size: var(--t-4); line-height: 1.7; margin-bottom: var(--s-4); }
  .detail-desc p:last-child { margin-bottom: 0; }

  .info-table { margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
  .info-table > div { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-3) var(--s-4); font-size: var(--t-2); }
  .info-table > div + div { border-top: 1px solid var(--line); }
  .info-table span { color: var(--muted); }
  .info-table b { font-weight: 500; text-align: end; }

  .tag-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .tag-row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
  .tag-row-label { font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-inline-end: var(--s-1); }
  .tag-chip {
    font-size: var(--t-2); font-weight: 500; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
    border: 1px solid var(--line); color: var(--soft); transition: border-color var(--d-fast), color var(--d-fast);
  }
  .tag-chip:hover { border-color: var(--accent); color: var(--accent); }

  .store-list { display: flex; gap: var(--s-2); flex-wrap: wrap; }
  .store {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--t-3); font-weight: 550; padding: var(--s-3) var(--s-4); border-radius: var(--r-pill);
    background: var(--accent-dim); color: var(--accent);
    transition: background var(--d-fast) var(--ease), color var(--d-fast);
  }
  .store:hover { background: var(--accent); color: var(--accent-ink); }
  .store-note { font-size: var(--t-1); color: var(--muted); margin-top: var(--s-3); }

  /* Соседние релизы — чтобы страница игры не была тупиком */
  .neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-6); }
  .neighbour {
    display: flex; flex-direction: column; gap: var(--s-1);
    border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4);
    transition: border-color var(--d-fast);
  }
  .neighbour:hover { border-color: var(--line-2); }
  .neighbour span { font-size: var(--t-1); color: var(--muted); display: inline-flex; align-items: center; gap: var(--s-1); }
  .neighbour b { font-size: var(--t-3); font-weight: 550; }
  .neighbour:hover b { color: var(--accent); }
  .neighbour.next { text-align: end; }
  .neighbour.next span { justify-content: end; }

  .source {
    margin-top: var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-1);
    border: 1px solid var(--line); font-size: var(--t-2); color: var(--muted);
  }
  .source a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .source.unverified { border-color: color-mix(in oklch, var(--warn) 35%, transparent); color: color-mix(in oklch, var(--warn) 70%, var(--soft)); }

  /* ---------- О проекте ---------- */
  .prose { max-width: 700px; }
  .prose h2 { font-size: var(--t-5); margin: var(--s-7) 0 var(--s-4); }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { font-size: var(--t-4); margin: var(--s-5) 0 var(--s-2); }
  .prose p, .prose li { color: var(--soft); font-size: var(--t-4); line-height: 1.72; }
  .prose p { margin-bottom: var(--s-4); }
  .prose ul { margin: 0 0 var(--s-4); padding-inline-start: var(--s-5); }
  .prose li { margin-bottom: var(--s-2); }
  .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .prose strong { color: var(--text); font-weight: 600; }

  .editor-card {
    display: flex; gap: var(--s-5); align-items: start;
    background: var(--surface); border-radius: var(--r-2); padding: var(--s-5); margin-bottom: var(--s-3);
  }
  .editor-avatar {
    flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; font-size: var(--t-5); font-weight: 500;
    background: var(--accent-dim); color: var(--accent);
  }
  .editor-card h3 { font-size: var(--t-4); margin-bottom: var(--s-1); }
  .editor-card p { font-size: var(--t-2); margin-bottom: var(--s-2); }
  .editor-card p:last-child { margin-bottom: 0; }
  .todo {
    font-size: var(--t-1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--warn);
    border: 1px dashed color-mix(in oklch, var(--warn) 45%, transparent);
    border-radius: var(--r-pill); padding: 0 var(--s-2); margin-inline-start: var(--s-2); white-space: nowrap;
  }

  .faq { margin-top: var(--s-6); border-top: 1px solid var(--line); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding: var(--s-4) 0; cursor: pointer; font-size: var(--t-4); font-weight: 550;
    list-style: none; transition: color var(--d-fast);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .i { color: var(--muted); transition: transform var(--d-slow) var(--ease), color var(--d-fast); }
  .faq details[open] summary { color: var(--accent); }
  .faq details[open] summary .i { transform: rotate(45deg); color: var(--accent); }
  .faq summary:hover { color: var(--accent); }
  .faq-body { padding: 0 0 var(--s-5); }
  .faq-body p { font-size: var(--t-3); margin-bottom: 0; }

  /* ---------- Боковая колонка ---------- */
  .rail { position: sticky; top: 80px; display: grid; gap: var(--s-3); }
  .rail-card { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4) var(--s-5); }
  .rail-card h3 { font-size: var(--t-1); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); }
  .rail-card > p { font-size: var(--t-2); color: var(--soft); line-height: 1.55; margin-bottom: var(--s-4); }
  .rail-card .btn { width: 100%; justify-content: center; }
  .rail-card .link-more { display: inline-flex; margin-top: var(--s-3); }
  .rail-list { display: grid; }
  .rail-list a { display: block; padding: var(--s-2) 0; border-top: 1px solid var(--line); transition: color var(--d-fast); }
  .rail-list a:first-child { border-top: none; padding-top: 0; }
  .rail-list b { display: block; font-size: var(--t-2); font-weight: 550; line-height: 1.35; }
  .rail-list i { font-style: normal; font-size: var(--t-1); color: var(--muted); }
  .rail-list a:hover b, .rail-list.plain a:hover { color: var(--accent); }
  .rail-list.plain a { font-size: var(--t-2); font-weight: 500; }
  .rail-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .rail-chips .tag-chip { display: inline-flex; align-items: baseline; gap: var(--s-2); }
  .rail-chips .tag-chip span { font-size: var(--t-1); color: var(--muted); }

  /* ---------- Пустое состояние ---------- */
  .empty-state { padding: var(--s-7) 0; text-align: center; color: var(--muted); }
  .empty-state p { margin-bottom: var(--s-4); }

  /* ---------- Подвал ---------- */
  .site-footer { border-top: 1px solid var(--line); margin-top: var(--s-8); color: var(--muted); font-size: var(--t-2); }
  .footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .9fr)); gap: var(--s-7); padding: var(--s-7) 0 var(--s-6); }
  .footer-brand .logo { margin-bottom: var(--s-4); }
  .footer-brand p { line-height: 1.65; max-width: 40ch; }
  .footer-col h4 { font-size: var(--t-1); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: var(--s-4); }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: var(--s-2); }
  .footer-col a { transition: color var(--d-fast); }
  .footer-col a:hover { color: var(--accent); }
  .footer-plats a { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
  .footer-plats i { font-style: normal; font-size: var(--t-1); color: var(--line-2); }
  .footer-bottom { border-top: 1px solid var(--line); padding: var(--s-4) 0 var(--s-5); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-1); }
  .footer-legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }
  .disclaimer { font-size: var(--t-1); line-height: 1.65; color: color-mix(in oklch, var(--muted) 75%, var(--bg)); padding-bottom: var(--s-6); max-width: 92ch; }

  /* ---------- Общее с админкой: переключатель разделов и поля форм ---------- */
  .seg { display: flex; background: var(--surface); border-radius: var(--r-pill); padding: var(--s-1); gap: var(--s-1); }
  .seg-btn { background: none; border: none; color: var(--muted); font-size: var(--t-3); font-weight: 500; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); cursor: pointer; transition: background var(--d-fast), color var(--d-fast); }
  .seg-btn.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
  textarea.input { resize: vertical; }
  .icon-btn {
    display: inline-grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--soft);
    width: 34px; height: 34px; border-radius: var(--r-1); cursor: pointer;
    transition: border-color var(--d-fast), color var(--d-fast);
  }
  .icon-btn:hover { border-color: var(--line-2); color: var(--text); }
  .icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .card, .news-item {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 34%;
      }
      @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: none; }
      }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .cell-headline, .cell-month { grid-column: span 12; }
  .layout, .detail-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .rail { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .grid.mini { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
/* Меню: раскрывающаяся панель вместо строки, которая ломалась на три ряда */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: var(--s-3); }
  .nav-toggle { display: inline-grid; }
  .nav {
    display: none; width: 100%; flex-direction: column; gap: 2px;
    margin-inline-start: 0; padding-bottom: var(--s-3);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav-btn { padding: var(--s-3) var(--s-4); border-radius: var(--r-1); font-size: var(--t-3); }
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
@media (max-width: 640px) {
  .header-inner { min-height: 0; padding-block: var(--s-3); flex-wrap: wrap; gap: var(--s-3); }
  .nav { margin-inline-start: 0; width: 100%; overflow-x: auto; }
  .cell-month { padding: var(--s-4); }

  /* Календарь на телефоне: день уходит строкой над релизами, полоса месяцев
     прокручивается вбок — двенадцать колонок в 360px нечитаемы. */
  .day-group { grid-template-columns: 1fr; gap: var(--s-2); }
  .day-mark { position: static; display: flex; align-items: baseline; gap: var(--s-2); text-align: start; padding-top: 0; }
  .day-mark b { font-size: var(--t-5); }
  .strip-months { display: flex; overflow-x: auto; gap: var(--s-2); padding-bottom: var(--s-2); }
  .strip-m { flex: 0 0 auto; min-width: 56px; }
  .rel-card { grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s-3); }

  /* На узком экране платформы съедали ширину, и название обрезалось до
     «Cozy G…». Убираем их: дата и название важнее, платформы есть в карточке. */
  .rel-row { grid-template-columns: 38px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; }
  .rel-plats { display: none; }
  .rel-main b { white-space: normal; overflow: visible; line-height: 1.3; }
  .rel-main i { display: block; margin-top: 2px; }
  .cal-grid { grid-template-columns: 1fr; }
  .cal-head { display: none; }
  .cal-cell:not(.has) { display: none; }
  .cal-cell { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
  .news-item { grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-3); }
  .news-body { padding: var(--s-3) var(--s-4) var(--s-3) 0; }
  .neighbours { grid-template-columns: 1fr; }
  .detail-hero { padding: var(--s-7) var(--s-4) var(--s-4); flex-direction: column; align-items: start; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6) 0 var(--s-5); }
}

/* ---------- Юридические страницы и баннер согласия ---------- */
@layer components {
  /* Политика — сплошной текст с нумерацией пунктов. Строки короче, чем
     в статьях: тут читают выборочно, выискивая нужный пункт, а не подряд. */
  .legal p, .legal li { font-size: var(--t-3); line-height: 1.65; }
  .legal h2 { margin-top: var(--s-6); }
  .legal > .muted { font-size: var(--t-2); color: var(--muted); margin-bottom: var(--s-5); }

  .legal-table {
    width: 100%; border-collapse: collapse; margin: 0 0 var(--s-5);
    font-size: var(--t-2); line-height: 1.5;
  }
  .legal-table th, .legal-table td {
    border: 1px solid var(--line); padding: var(--s-2) var(--s-3);
    text-align: start; vertical-align: top;
  }
  .legal-table th { background: var(--surface); color: var(--text); font-weight: 550; }
  .legal-table td { color: var(--soft); }

  /* Кнопка, которая должна выглядеть ссылкой: отзыв согласия — это действие,
     а не переход, поэтому по разметке это button, а не <a href="#">. */
  .linkish {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: inherit; font: inherit; text-decoration: underline;
    text-underline-offset: 2px;
  }
  .linkish:hover { color: var(--text); }

  /* Баннер — одна строка внизу, не модальное окно: закон прямо запрещает
     держать материалы в заложниках до нажатия «Принимаю». */
  .cookie-banner {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line-2);
    box-shadow: 0 -12px 32px oklch(0% 0 0 / .35);
  }
  .cookie-banner[hidden] { display: none; }
  .cookie-inner {
    padding-block: var(--s-3);
    display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  }
  .cookie-text {
    flex: 1 1 320px; min-width: 0;
    font-size: var(--t-2); color: var(--soft); line-height: 1.55;
  }
  .cookie-text p + p { margin-top: var(--s-2); }
  /* Ссылка на политику должна читаться как ссылка. Наследуя цвет абзаца, она
     сливалась с текстом — а это единственный способ прочитать документ, под
     которым посетитель ставит согласие. */
  .cookie-text a {
    color: var(--accent); font-weight: 550;
    text-decoration: underline; text-underline-offset: 2px;
    text-decoration-thickness: 1px;
  }
  .cookie-text a:hover { color: var(--accent-hi); }
  /* «Отказаться» того же размера, что и «Принимаю»: отказ должен даваться так
     же легко, иначе выбор не считается свободным. */
  .cookie-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; flex: none; }
}

/* Editorial videos: no remote requests before playback. */
.video-block { margin: 28px 0; }
.video-stage { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, #192433, #0c1119); border: 1px solid #364252; border-radius: 12px; overflow: hidden; }
.video-play { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border: 1px solid #7d91ad; border-radius: 8px; color: #fff; background: #27384c; font: inherit; cursor: pointer; }
.video-play:hover { background: #354d69; }
.video-play:focus-visible { outline: 3px solid #ffcc66; outline-offset: 4px; }
.video-stage iframe { width: 100%; height: 100%; border: 0; }
.video-block figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.5; }
.article-body h2, .detail-desc h2 { margin-top: 1.5em; }
.article-body a, .detail-desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .news-thumb { height: 160px; min-height: 0; }
  .news-thumb:not(:has(img)) { display: none; }
  .news-body { padding: var(--s-4); }
  .news-top { flex-wrap: wrap; }
}

/* Editorial front page: cool graphite and mint. */
:root {
  --h: 255;
  --bg: #0c1119;
  --surface: #141d29;
  --surface-2: #1d2938;
  --line: #293647;
  --line-2: #41566d;
  --text: #f3f7fc;
  --soft: #ccd7e5;
  --muted: #9baec3;
  --accent: #7cf4c4;
  --accent-hi: #adffde;
  --accent-ink: #09291e;
  --accent-dim: #7cf4c414;
  --accent-line: #7cf4c44d;
}
.cell-featured { padding: 0; gap: 12px; justify-content: stretch; }
.hero-story { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: space-between; isolation: isolate; min-height: 440px; overflow: hidden; border-radius: 20px; background: #111d29; color: #fff; border: 1px solid #43536b; }
.hero-story-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 34%; transition: transform .4s ease; }
.hero-story::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #07101d55 0%, #09132012 23%, #09111ec9 57%, #09111ef7 100%); }
.hero-story:hover .hero-story-image { transform: scale(1.025); }
.hero-story:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hero-story-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 24px 28px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #fff; }
.hero-story-kicker span { padding: 5px 9px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.hero-story-copy { padding: 70px 28px 28px; }
.hero-story-copy h1 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; max-width: 18ch; }
.hero-story-copy p { color: #d8e3ee; font-size: 15px; line-height: 1.5; margin: 18px 0 22px; max-width: 49ch; }
.hero-story-cta { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 14px; font-weight: 650; }
.cell-featured .next-up { width: 100%; max-width: none; margin: 0; min-height: 68px; border-radius: 14px; }
.cell-featured .next-up-art { background: var(--accent-dim) !important; }
.next-up-day { display: grid; place-items: center; height: 100%; color: var(--accent); font-size: 22px; font-weight: 650; }
.cell-month { border: 1px solid var(--line); }
.event-trailers { margin: 32px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.event-trailers summary { cursor: pointer; padding: 22px 0; color: var(--accent); font-size: 22px; font-weight: 650; }
.trailer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-bottom: 24px; }
.trailer-grid .video-block { margin: 0; min-width: 0; }
.trailer-grid .video-stage { border-radius: 12px; background: radial-gradient(ellipse at 70% 20%, #27534f, transparent 80%), #172335; }
.trailer-grid figcaption { font-size: 13px; }
.trailer-grid .video-play { font-size: 13px; }
.event-intro { color: var(--soft); font-size: 18px; line-height: 1.6; margin: 16px 0 24px; }
@media (max-width: 900px) { .hero-story { min-height: 440px; } .hero-story-copy h1 { max-width: 23ch; } }
@media (max-width: 540px) {
  .hero-story { min-height: 410px; border-radius: 16px; }
  .hero-story-kicker { padding: 20px; font-size: 10px; }
  .hero-story-copy { padding: 70px 20px 24px; }
  .hero-story-copy h1 { font-size: 33px; }
  .hero-story-copy p { font-size: 14px; margin: 15px 0 19px; }
  .trailer-grid { grid-template-columns: 1fr; }
  .cell-featured .next-up-text b { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .hero-story-image { transition: none; } .hero-story:hover .hero-story-image { transform: none; } }

/* ---------- Медиа карточки игры: трейлер, скриншоты, требования ---------- */
@layer components {
  .game-media { margin: var(--s-4) 0 var(--s-6); }
  .media-note { color: var(--muted); font-size: var(--t-1); margin-top: var(--s-3); }

  /* Трейлер грузится только по клику: на странице их не смотрят по умолчанию,
     а HLS-плеер тянуть заранее незачем. */
  .trailer-play {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
    border: 0; padding: 0; cursor: pointer; border-radius: var(--r-2);
    background: var(--card) center/cover no-repeat;
    box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .07);
  }
  .trailer-play::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: oklch(15% 0.02 var(--h) / .35); transition: background .2s;
  }
  .trailer-play:hover::after { background: oklch(15% 0.02 var(--h) / .15); }
  .trailer-icon {
    position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%;
    width: 68px; height: 68px; border-radius: 50%;
    background: oklch(98% 0 0 / .92);
    box-shadow: 0 8px 28px oklch(0% 0 0 / .45);
    transition: scale .2s;
  }
  .trailer-icon::before {
    content: ''; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
    border-style: solid; border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent oklch(20% 0.02 var(--h));
  }
  .trailer-play:hover .trailer-icon { scale: 1.06; }
  .trailer video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-2); background: #000; display: block; }

  /* Скриншоты: плитка одинаковых кадров, полный размер — в просмотрщике */
  .shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
  .shots .shot { display: block; border-radius: var(--r-1); overflow: hidden; aspect-ratio: 16 / 9; }
  .shots .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .35s; }
  .shots .shot:hover img { scale: 1.05; }

  /* Просмотрщик скриншотов */
  .shot-viewer {
    position: fixed; inset: 0; z-index: 90; display: none;
    align-items: center; justify-content: center;
    background: oklch(8% 0.01 var(--h) / .94);
  }
  .shot-viewer.is-open { display: flex; }
  .shot-viewer img { max-width: 92vw; max-height: 88vh; border-radius: var(--r-1); }
  .shot-viewer button {
    position: absolute; background: none; border: 0; cursor: pointer; padding: var(--s-3);
    color: oklch(100% 0 0 / .72); font-size: 34px; line-height: 1;
  }
  .shot-viewer button:hover { color: #fff; }
  .shot-viewer .sv-close { top: 6px; right: 10px; font-size: 30px; }
  .shot-viewer .sv-prev { left: 4px; top: 50%; translate: 0 -50%; }
  .shot-viewer .sv-next { right: 4px; top: 50%; translate: 0 -50%; }
  .shot-viewer .sv-count {
    position: absolute; bottom: 14px; left: 50%; translate: -50% 0;
    color: oklch(100% 0 0 / .6); font-size: var(--t-1); letter-spacing: .06em;
  }
  body.sv-open { overflow: hidden; }

  /* Системные требования: две колонки, внутри пары «параметр — значение» */
  .reqs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-4); }
  .reqs-col { background: var(--card); border-radius: var(--r-2); padding: var(--s-4); }
  .reqs-col h3 { font-size: var(--t-3); margin-bottom: var(--s-3); }
  .reqs-col dl { display: grid; gap: var(--s-2); margin: 0; }
  .reqs-col dl > div { display: grid; grid-template-columns: 116px 1fr; gap: var(--s-3); align-items: start; }
  .reqs-col dt { color: var(--muted); font-size: var(--t-1); }
  .reqs-col dd { margin: 0; font-size: var(--t-2); }

  /* История переносов даты */
  .date-history { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
  .date-history li {
    display: grid; gap: 2px; padding-left: var(--s-4); position: relative;
    border-left: 2px solid oklch(100% 0 0 / .12);
  }
  .date-history li::before {
    content: ''; position: absolute; left: -5px; top: 7px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
  }
  .date-history li:first-child::before { background: var(--accent, #d8a24a); }
  .date-history time { font-weight: 600; }
  .date-history span { color: var(--soft); font-size: var(--t-2); }
  .date-history i { color: var(--muted); font-size: var(--t-1); font-style: normal; }
}

@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
  .reqs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .reqs-col dl > div { grid-template-columns: 1fr; gap: 0; }
  .trailer-icon { width: 54px; height: 54px; }
}

/* Editorial rich text */
.article-body img,.detail-desc img{display:block;max-width:100%;height:auto;border-radius:12px;margin:24px auto}.article-body figure{margin:28px 0}.article-body figcaption{font-size:13px;color:var(--muted);line-height:1.6;margin-top:8px}.article-body h2{margin-top:52px;scroll-margin-top:100px}.article-body blockquote{border-left:3px solid #7cf4c4;padding-left:20px;margin:24px 0}.article-body ul,.article-body ol{padding-left:26px}.article-body li{margin:8px 0}.ql-align-center{text-align:center}.ql-align-right{text-align:right}.ql-align-justify{text-align:justify}.ql-indent-1{padding-left:2em}.ql-indent-2{padding-left:4em}.ql-indent-3{padding-left:6em}

.video-stage{position:relative;overflow:hidden}.article-body .video-stage .video-poster,.detail-desc .video-stage .video-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0;opacity:.72}.video-play{position:relative;z-index:1;background:#d91424!important;color:white!important}.video-stage iframe{position:absolute;inset:0;z-index:2}

.video-play:hover{background:#b80918!important}.video-play:focus-visible{outline:3px solid white;outline-offset:4px}
.youtube-play-icon{flex:none}.video-play small{display:block;font-size:11px;opacity:.9;text-align:left}.video-play span{line-height:1.35;text-align:left}.video-stage iframe{width:100%;height:100%;border:0}.region-tag,.rel-tags .region-tag{display:inline-flex;align-items:center;max-width:100%;padding:5px 8px;border:1px solid #906c31;border-radius:5px;background:#352a1a;color:#ffd58a;font-size:11px;font-weight:600;line-height:1.4;text-transform:none;letter-spacing:0}.card-body>.region-tag{margin:0 0 10px}.region-notice{margin:0 0 24px;padding:18px 20px;border:1px solid #906c31;border-left:4px solid #e9b353;border-radius:8px;background:#241e15;color:#f6e8cf}.region-notice strong{display:block;color:#ffd58a;font-size:16px}.region-notice p{margin:8px 0 12px;line-height:1.6}.region-notice-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:#c6bba7}.region-notice-meta a{color:#ffd58a;text-decoration:underline}

/* News outline: generated from the article headings, usable without scripts. */
.article-toc{margin:28px 0 36px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.article-toc summary{cursor:pointer;font-size:18px;font-weight:650;color:var(--text);line-height:1.5}
.article-toc summary span{margin-left:10px;font-size:12px;font-weight:400;color:var(--muted)}
.article-body .article-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 24px;max-height:320px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:16px 0 0;padding:2px 8px 2px 0;list-style:none}
.article-body .article-toc li{margin:0;min-width:0}
.article-body .article-toc a{display:block;padding:7px 8px;border-radius:6px;font-size:14px;line-height:1.45;color:var(--soft);text-decoration:none;overflow-wrap:anywhere}
.article-body .article-toc a:hover{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}
.article-body .article-toc a:focus-visible,.article-toc summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.article-body .article-toc-level-3 a{padding-left:20px;font-size:13px}
.article-body h2[id],.article-body h3[id]{scroll-margin-top:110px}
.article-body h2[id]:target,.article-body h3[id]:target{color:var(--accent)}
.article-body>p:first-child{font-size:20px;line-height:1.65}
.article-body>ul:first-of-type{margin:18px 0 26px;line-height:1.65;color:var(--soft)}
@media(max-width:600px){.article-toc{padding:16px}.article-body .article-toc ol{grid-template-columns:minmax(0,1fr);max-height:260px}.article-toc summary span{display:none}.article-body>p:first-child{font-size:18px}}
.detail-desc .article-toc ol{grid-template-columns:minmax(0,1fr)}.calendar-overview-head,.home-release-head{flex-wrap:wrap}#choose-month,#current-month-releases{scroll-margin-top:110px}.calendar-overview-head a{font-size:14px}.home-release-head h2{font-size:clamp(28px,4vw,52px)}

.game-reception{margin:32px 0;padding:24px;border:1px solid #363636;border-radius:18px;scroll-margin-top:110px}.game-reception h2{margin-top:0}.game-reception p{line-height:1.65}.reception-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.reception-metrics>div{padding:18px;background:#202020;border-radius:12px}.reception-metrics span{display:block;color:#ccc;font-size:14px}.reception-metrics strong{display:block;color:#3fffe0;font-size:38px;margin-top:8px}.reception-metrics strong small{font-size:15px;color:#ddd;font-weight:400}.reception-metrics p{margin-bottom:0;color:#ddd;font-size:14px}.reception-scope{padding-left:14px;border-left:3px solid #3fffe0;color:#ddd}.card-ratings{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.card-ratings>span{font-size:12px;padding:7px 9px;border:1px solid #414141;border-radius:8px;color:#ddd}.card-ratings b{color:#3fffe0}.card-ratings small{display:block;font-size:10px;color:#bbb;margin-top:3px}.reception-sources a{color:#3fffe0}@media(max-width:600px){.reception-metrics{grid-template-columns:1fr}.game-reception{padding:16px}}
.game-reception h3{margin:22px 0 8px}.game-reception>p{margin:14px 0}.game-reception .media-note{margin-top:24px}.card-ratings:empty{display:none}
