/* Скрытое атрибутом hidden скрыто всегда — даже если у элемента в стилях задан display (flex, grid и т. п.) */
[hidden] { display: none !important; }

/* Сайт тёмный: системные галочки, переключатели, календари и списки браузер рисует в тёмной теме, отмеченное — фирменным красным */
:root { color-scheme: dark; }
input[type=checkbox], input[type=radio] { accent-color: #E0153A; }

/* ═══════════════════════════════════════════════
   GAME GENESIS — дизайн-система «Арена»
   Подключается на всех страницах первым стилем:
   <link rel="stylesheet" href="/css/arena.css">
   ═══════════════════════════════════════════════ */

/* Шрифты лежат на нашем сервере (public/fonts, лицензия SIL OFL), а не грузятся с Google:
   так IP посетителей не уходит за границу. Источник — fontsource 5.1.1 */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/unbounded-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/unbounded-latin-600.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: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/unbounded-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/unbounded-latin-700.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: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/unbounded-cyrillic-800.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/unbounded-latin-800.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: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/onest-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/onest-latin-400.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: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/onest-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/onest-latin-500.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: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/onest-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/onest-latin-600.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: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/onest-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/onest-latin-700.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; }

:root {
  /* Поверхности */
  --bg: #0A0A0C;
  --bg-raised: #0E0E11;
  --surface: #141418;
  --surface-2: #1D1D23;
  --surface-3: #26262E;

  /* Линии */
  --border: #26262E;
  --border-strong: #3A3A45;

  /* Текст */
  --text: #F2F2F5;
  --text-dim: #9C9CA8;
  --text-muted: #6B6B78;

  /* Акцент */
  --accent: #E0153A;
  --accent-hover: #F21E45;
  --accent-text: #FF4D66;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(224, 21, 58, .12);
  --accent-line: rgba(224, 21, 58, .38);

  /* Состояния */
  --success: #2BD576;
  --success-soft: rgba(43, 213, 118, .12);
  --danger: #FF4D66;
  --danger-soft: rgba(255, 77, 102, .12);
  --warning: #F5A524;
  --warning-soft: rgba(245, 165, 36, .12);
  --info: #7DB4FF;
  --info-soft: rgba(125, 180, 255, .12);
  --medal-gold: #F5C451;
  --medal-silver: #C0C4CC;
  --medal-bronze: #CD8A4E;

  /* Форма */
  --radius: 4px;
  --radius-sm: 3px;
  --clip-btn: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  --clip-card: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  --header-h: 68px;

  /* Шрифты */
  --font-display: 'Unbounded', 'Onest', sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ── Старые имена переменных, которые используют страницы ── */
  --bg2: var(--bg-raised);
  --card: var(--surface);
  --card2: var(--surface-2);
  --bg-card: var(--surface);
  --bg-card2: var(--surface-2);
  --bg-input: var(--bg-raised);
  --input: var(--bg-raised);
  --border-hi: var(--border-strong);
  --err: var(--danger);
  --blue: var(--info);
  --green: var(--success);
  --purple: var(--info);
  --muted: var(--text-dim);
  --card-accent: var(--accent);
}

/* ── База ── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--on-accent); }
img, svg { max-width: 100%; }
a { color: var(--accent-text); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
/* Заголовки страниц — в характере Арены */
h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }

/* Иконки из спрайта: <svg class="i"><use href="/icons.svg#trophy"/></svg> */
svg.i {
  width: 1.1em; height: 1.1em; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.18em;
}

/* Фон-сетка, который есть на многих страницах, — в стиле Арены */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 28px, rgba(255, 255, 255, .018) 28px 29px),
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(224, 21, 58, .10), transparent 70%) !important;
}

/* Остатки старой разметки, которые больше не нужны */
body > header:not(.gg-header), .page > header, aside.sidebar { display: none !important; }
.page { margin-left: 0 !important; padding-top: 0 !important; }

/* ── Одна ширина на весь сайт ──
   Шапка, подвал и содержимое страниц стоят в одной колонке --gg-wrap по центру.
   --gg-band — боковой отступ для полос на всю ширину экрана (фон до краёв, а текст в колонке):
   100% в нём считается от ширины полосы, поэтому края совпадают со шапкой на любом экране. */
:root {
  --gg-wrap: 1280px;
  --gg-gutter: clamp(16px, 3vw, 40px);
  --gg-max: calc(var(--gg-wrap) + 2 * var(--gg-gutter));
  --gg-band: max(var(--gg-gutter), calc((100% - var(--gg-wrap)) / 2));
}

/* ── Контейнер и заголовки страниц ── */
.gg-container { max-width: var(--gg-max); margin: 0 auto; padding: 0 var(--gg-gutter); }
.gg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text);
}
.gg-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); }
.gg-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1.02; margin: 0;
}
.gg-lead { color: var(--text-dim); font-size: 18px; max-width: 620px; }

/* ── Кнопки ── */
.gg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.gg-btn:disabled, .gg-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.gg-btn--primary { background: var(--accent); color: var(--on-accent); clip-path: var(--clip-btn); }
.gg-btn--primary:hover:not(:disabled) { background: var(--accent-hover); }
.gg-btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.gg-btn--secondary:hover:not(:disabled) { border-color: var(--text); }
.gg-btn--ghost { background: transparent; color: var(--text-dim); padding: 0 12px; }
.gg-btn--ghost:hover:not(:disabled) { color: var(--text); }
.gg-btn--danger { background: transparent; color: var(--danger); border-color: rgba(255, 77, 102, .4); }
.gg-btn--danger:hover:not(:disabled) { background: var(--danger-soft); }
.gg-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.gg-btn--icon { min-width: 40px; min-height: 40px; padding: 0; }

/* ── Чипы статусов ── */
.gg-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); color: var(--text-dim);
}
.gg-chip--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gg-chip--open { color: var(--success); border-color: rgba(43, 213, 118, .4); background: var(--success-soft); }
.gg-chip--live { color: var(--danger); border-color: rgba(255, 77, 102, .45); background: var(--danger-soft); }
.gg-chip--live::before { animation: gg-pulse 1.6s ease-in-out infinite; }
.gg-chip--soon { color: var(--info); border-color: rgba(125, 180, 255, .4); }
.gg-chip--game { color: var(--text); background: var(--surface-2); border-color: var(--border); }
@keyframes gg-pulse { 50% { opacity: .25; } }

/* ── Карточки и панели ── */
.gg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.gg-card--cut { clip-path: var(--clip-card); }
.gg-panel-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* ── Формы ── */
.gg-input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s;
}
.gg-input:focus { outline: none; border-color: var(--accent-text); }

/* ── Пустые состояния ── */
.gg-empty { text-align: center; padding: 56px 20px; color: var(--text-dim); }
.gg-empty svg.i { width: 40px; height: 40px; color: var(--text-muted); margin-bottom: 12px; }
.gg-empty h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 6px; text-transform: uppercase; }

/* Полосы вкладок на страницах: на узких экранах прокручиваются, а не растягивают страницу */
.tabs, .tabs-bar { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .tabs-bar::-webkit-scrollbar { display: none; }
.tabs > *, .tabs-bar > * { flex-shrink: 0; }

/* ═════════ ШАПКА (рисует nav.js) ═════════ */
.gg-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  background: rgba(10, 10, 12, .72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
  animation: gg-header-in .7s cubic-bezier(.2, .8, .2, 1) both;
}
/* Прокрутили страницу — шапка плотнее и с тенью */
.gg-header.scrolled { background: rgba(10, 10, 12, .94); border-bottom-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
/* Полоса прогресса прокрутки */
.gg-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ff5c7a);
  transform-origin: 0 50%; transform: scaleX(var(--gg-progress, 0));
  box-shadow: 0 0 12px rgba(224, 21, 58, .8);
}
.gg-header-inner { height: 100%; max-width: var(--gg-max); margin: 0 auto; padding: 0 var(--gg-gutter); display: flex; align-items: center; gap: 24px; }

.gg-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.gg-logo-mark {
  position: relative; width: 42px; height: 42px; display: block; flex-shrink: 0;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .4s;
}
.gg-logo-mark img { display: block; width: 100%; height: 100%; }
/* Блик, пробегающий по знаку */
.gg-logo-mark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(50% 4%, 91% 27%, 91% 73%, 50% 96%, 9% 73%, 9% 27%);
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .3) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; animation: gg-mark-shine 5s ease-in-out 1.2s infinite;
}
/* Наведение: знак слегка поворачивается и вспыхивает */
.gg-logo:hover .gg-logo-mark { transform: rotate(-8deg) scale(1.1); filter: drop-shadow(0 0 10px rgba(224, 21, 58, .6)); }
.gg-logo-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.gg-logo-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.gg-logo-sub { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }

/* Меню-«рейка»: пункты с иконками и плашка, которая плавно ездит за курсором */
.gg-nav {
  position: relative; display: flex; align-items: center; gap: 2px; height: 40px; padding: 3px;
  margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02);
}
.gg-nav a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px;
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 9px; white-space: nowrap;
  transition: color .25s;
}
.gg-nav a svg.i { width: 17px; height: 17px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), color .25s; }
.gg-nav a:hover { color: var(--text); }
.gg-nav a:hover svg.i { transform: translateY(-2px) scale(1.15); color: var(--accent-text); }
.gg-nav a.on { color: var(--text); }
.gg-nav a.on svg.i { color: var(--accent-text); }
.gg-nav-ind {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 8px;
  background: linear-gradient(180deg, rgba(224, 21, 58, .22), rgba(224, 21, 58, .10));
  border: 1px solid rgba(224, 21, 58, .45);
  box-shadow: 0 0 22px rgba(224, 21, 58, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .25, 1.1), width .45s cubic-bezier(.2, .9, .25, 1.1), opacity .25s;
}
.gg-nav-ind.ready { opacity: 1; }
.gg-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* В шапке все элементы одной высоты и с одинаковым скруглением — без срезанного угла фирменных кнопок */
.gg-header .gg-btn { height: 40px; border-radius: 10px; clip-path: none; }

/* Кнопка «Создать турнир» с бликом */
.gg-cta { position: relative; overflow: hidden; }
.gg-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
  transform: translateX(-130%); animation: gg-logo-shine 4s ease-in-out 2s infinite;
}
.gg-cta svg.i { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.gg-cta:hover svg.i { transform: rotate(90deg) scale(1.15); }

.gg-icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-dim); cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.gg-icon-btn:hover, .gg-icon-btn[aria-expanded="true"] { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.gg-icon-btn.ring svg.i { animation: gg-ring 1.2s ease-in-out 1; transform-origin: 50% 10%; }
.gg-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg); animation: gg-pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.gg-badge[hidden] { display: none; }
.gg-badge::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); animation: gg-ping 2s ease-out infinite; }

.gg-user-btn {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; height: 40px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); cursor: pointer; transition: border-color .2s, background .2s;
}
.gg-user-btn:hover, .gg-user-btn[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-2); }
.gg-avatar {
  width: 30px; height: 30px; border-radius: 7px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #7a0a20);
  font-size: 12px; font-weight: 700; color: #fff;
}
.gg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gg-user-name { font-size: 14px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gg-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; z-index: 600;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); padding: 6px; display: none;
}
.gg-menu.open { display: block; animation: gg-menu-in .22s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top right; }
.gg-menu a, .gg-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; text-align: left; text-decoration: none; cursor: pointer;
}
.gg-menu a:hover, .gg-menu button:hover { background: var(--surface-2); }
.gg-menu .gg-menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.gg-menu .gg-danger { color: var(--danger); }
.gg-menu-head { padding: 10px 12px 8px; }
.gg-menu-head b { display: block; font-size: 14px; }
.gg-menu-head span { font-size: 12px; color: var(--text-dim); }

.gg-notif { width: 340px; padding: 0; }
.gg-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.gg-notif-head b { font-size: 14px; }
.gg-notif-head button { width: auto; padding: 4px 6px; font-size: 12px; color: var(--text-dim); }
.gg-notif-list { max-height: 360px; overflow-y: auto; }
.gg-notif-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.gg-notif-item:last-child { border-bottom: 0; }
.gg-notif-item:hover { background: var(--surface-2); }
.gg-notif-item.unread { background: rgba(224, 21, 58, .05); }
.gg-notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: transparent; }
.gg-notif-item.unread .gg-notif-dot { background: var(--accent); }
.gg-notif-text { font-size: 13px; line-height: 1.45; color: var(--text); }
.gg-notif-item:not(.unread) .gg-notif-text { color: var(--text-dim); }
.gg-notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.gg-notif-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--text-dim); }

.gg-burger { display: none; }
/* Шторка меню на телефоне: выезжает справа, пункты появляются по очереди */
.gg-mobile-panel {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(88vw, 360px); z-index: 499;
  background: rgba(14, 14, 17, .98); border-left: 1px solid var(--border); padding: 16px 20px 110px; overflow-y: auto;
  display: none; box-shadow: -30px 0 60px rgba(0, 0, 0, .5);
}
/* Закрытая шторка полностью скрыта: сдвинутая за край, она раздувала бы страницу по ширине */
.gg-mobile-panel.open { display: block; animation: gg-drawer-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.gg-mobile-panel a.gg-m-link {
  display: flex; align-items: center; gap: 14px; padding: 15px 6px;
  color: var(--text); text-decoration: none; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border);
}
.gg-mobile-panel a.gg-m-link svg.i { width: 20px; height: 20px; color: var(--text-dim); }
.gg-mobile-panel a.gg-m-link.on, .gg-mobile-panel a.gg-m-link.on svg.i { color: var(--accent-text); }
.gg-mobile-panel.open > * { animation: gg-slide-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.gg-mobile-panel.open > *:nth-child(2) { animation-delay: .04s; } .gg-mobile-panel.open > *:nth-child(3) { animation-delay: .08s; }
.gg-mobile-panel.open > *:nth-child(4) { animation-delay: .12s; } .gg-mobile-panel.open > *:nth-child(5) { animation-delay: .16s; }
.gg-mobile-panel.open > *:nth-child(6) { animation-delay: .2s; } .gg-mobile-panel.open > *:nth-child(7) { animation-delay: .24s; }
.gg-mobile-panel.open > *:nth-child(n+8) { animation-delay: .28s; }
.gg-mobile-actions { display: grid; gap: 10px; margin-top: 20px; }
.gg-scrim { position: fixed; inset: var(--header-h) 0 0 0; z-index: 498; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.gg-scrim.open { opacity: 1; pointer-events: auto; }

/* Нижняя панель вкладок (только телефон и планшет) */
.gg-tabbar { display: none; }
@media (max-width: 980px) {
  .gg-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 497;
    height: 62px; padding: 0 6px; border-radius: 18px;
    background: rgba(16, 16, 20, .9); border: 1px solid var(--border-strong);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    animation: gg-tabbar-in .6s cubic-bezier(.2, .8, .2, 1) .15s both;
  }
  .gg-tabbar a {
    position: relative; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--text-muted); text-decoration: none; font-size: 10.5px; font-weight: 600; -webkit-tap-highlight-color: transparent;
  }
  .gg-tab-ic { display: grid; place-items: center; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
  .gg-tab-ic svg.i { width: 21px; height: 21px; }
  .gg-tabbar a.on { color: var(--text); }
  .gg-tabbar a.on .gg-tab-ic { color: var(--accent-text); transform: translateY(-2px); }
  .gg-tabbar a.on::before {
    content: ''; position: absolute; top: 6px; width: 34px; height: 3px; border-radius: 3px; background: var(--accent);
    box-shadow: 0 0 12px var(--accent); animation: gg-pop .4s cubic-bezier(.34, 1.56, .64, 1) both;
  }
  .gg-tabbar a:active .gg-tab-ic { transform: scale(.85); }
  .gg-tabbar a.gg-tab-main .gg-tab-ic {
    width: 50px; height: 50px; margin-top: -26px; border-radius: 16px; color: #fff;
    background: linear-gradient(140deg, #ff3358, var(--accent) 55%, #9e0d2a);
    box-shadow: 0 10px 24px rgba(224, 21, 58, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
    animation: gg-float 3.2s ease-in-out infinite;
  }
  .gg-tabbar a.gg-tab-main .gg-tab-ic svg.i { width: 24px; height: 24px; }
  .gg-tabbar a.gg-tab-main::before { display: none; }
  /* Место под нижнюю панель, чтобы она не закрывала подвал и кнопки */
  body.gg-has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  #gg-toast { bottom: calc(90px + env(safe-area-inset-bottom)) !important; }
}

/* Средние экраны: прячем вторичное, чтобы шапка не вылезала за край (у гостя в меню шесть пунктов) */
@media (max-width: 1400px) {
  .gg-nav a { padding: 0 12px; }
  .gg-cta span { display: none; }
  .gg-cta { padding: 0 12px; }
}
@media (max-width: 1300px) {
  .gg-header-inner { gap: 16px; }
  .gg-logo-sub { display: none; }
  .gg-nav a svg.i { display: none; }
}
@media (max-width: 1160px) {
  .gg-nav, .gg-header-right .gg-hide-md { display: none; }
  .gg-burger { display: grid; margin-left: 0; }
  .gg-header-right { margin-left: auto; }
  .gg-user-name { display: none; }
  .gg-user-btn { padding: 4px; }
  .gg-logo-sub { display: block; }
}
@media (max-width: 480px) {
  .gg-header-inner { padding: 0 16px; gap: 12px; }
  .gg-logo-name { font-size: 13px; }
  .gg-logo-mark { width: 36px; height: 36px; }
  .gg-notif { position: fixed; top: calc(var(--header-h) + 8px); left: 12px; right: 12px; width: auto; }
  /* У вошедшего справа четыре кнопки (сообщения, уведомления, профиль, меню) — компактнее, чтобы влезли */
  .gg-header-right { gap: 4px; }
  .gg-header-right .gg-icon-btn, .gg-header-right .gg-burger { width: 36px; height: 36px; }
  .gg-user-btn { padding: 2px; }
}
/* Узкий телефон у гостя: «Регистрация» и меню должны влезть рядом с логотипом */
@media (max-width: 400px) {
  .gg-header-inner { gap: 8px; }
  .gg-header-right { gap: 6px; }
  .gg-header-right .gg-btn--sm { padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
  .gg-logo-sub { letter-spacing: .08em; }
}
@media (max-width: 360px) { .gg-logo-text { display: none; } }

/* ═════════ ПОДВАЛ ═════════ */
.gg-footer {
  position: relative; z-index: 1; margin-top: 72px; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(224, 21, 58, .05), transparent 160px);
}
.gg-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 220px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: gg-footer-line 7s linear infinite;
}
@keyframes gg-footer-line { from { transform: translateX(-220px); } to { transform: translateX(100vw); } }
.gg-footer-inner {
  max-width: var(--gg-max); margin: 0 auto; padding: 48px var(--gg-gutter) 32px;
  display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px;
}
.gg-footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.gg-footer-brand p { margin: 0; max-width: 300px; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.gg-footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.gg-footer-mail .i { width: 16px; height: 16px; color: var(--accent-text); }
.gg-footer-mail:hover { color: var(--accent-text); }
.gg-footer-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gg-footer-col h4 {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.gg-footer-col a {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-dim); text-decoration: none; font-size: 14px;
  transition: color .2s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.gg-footer-col a .i { width: 16px; height: 16px; flex-shrink: 0; opacity: .55; transition: opacity .2s, color .2s; }
.gg-footer-col a:hover { color: var(--text); transform: translateX(4px); }
.gg-footer-col a:hover .i { opacity: 1; color: var(--accent-text); }
.gg-footer-bottom {
  margin: 0 var(--gg-band); padding: 18px 0 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--text-muted); font-size: 13px;
}
.gg-footer-bottom span { display: flex; gap: 20px; }
.gg-footer-bottom a { color: inherit; text-decoration: none; }
.gg-footer-bottom a:hover { color: var(--text); }
@media (max-width: 960px) { .gg-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gg-footer-brand { grid-column: 1 / -1; } }

/* ═════════ УВЕДОМЛЕНИЯ-ТОСТЫ ═════════ */
#gg-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 9999; max-width: 360px;
  padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--success); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transition: opacity .3s;
}
#gg-toast.err { border-left-color: var(--danger); }

@media (max-width: 640px) {
  .gg-container { padding: 0 16px; }
  .gg-lead { font-size: 16px; }
  .gg-footer-inner { padding: 32px 16px 24px; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .gg-footer-col:last-child { grid-column: 1 / -1; }
  .gg-footer-bottom { margin: 0 16px; padding: 16px 0; }
}

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

/* ═════════ ДВИЖЕНИЕ ═════════
   Классы ставит js/motion.js. Без JS и при «уменьшить движение» всё видно сразу и стоит на месте */
@keyframes gg-header-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes gg-mark-shine { 0%, 70% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@keyframes gg-logo-shine { 0%, 70% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@keyframes gg-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes gg-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes gg-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes gg-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gg-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes gg-slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes gg-tabbar-in { from { opacity: 0; transform: translateY(120%); } to { opacity: 1; transform: none; } }
@keyframes gg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes gg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gg-ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes gg-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes gg-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 600px, 600px 0; } }
@keyframes gg-orb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(8vw, 6vh) scale(1.15); } 66% { transform: translate(-6vw, 10vh) scale(.9); } }

/* Появление блоков при прокрутке: используется свойство translate, чтобы не ломать transform самих элементов */
.gg-rv { opacity: 0; translate: 0 26px; transition: opacity .7s cubic-bezier(.2, .8, .2, 1), translate .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--gg-d, 0s); }
.gg-rv.gg-in { opacity: 1; translate: none; }

/* Вкладки и панели появляются мягко */
.panel.active, .tab-panel.active, .fp.active, .form-section.active { animation: gg-rise .45s cubic-bezier(.2, .8, .2, 1); }

/* Подсветка за курсором на карточках */
.gg-spot { --mx: 50%; --my: 50%; }
.gg-spot:hover {
  background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(224, 21, 58, .12), transparent 45%) !important;
}
/* Карточки турниров и рейтинга приподнимаются */
.t-card, .tcard, .gcard, .featured-card, .doc-list a, .club-row, .team-card {
  transition: translate .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.t-card:hover, .tcard:hover, .gcard:hover, .featured-card:hover, .doc-list a:hover, .team-card:hover {
  translate: 0 -5px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(224, 21, 58, .35), 0 0 30px rgba(224, 21, 58, .12);
}

/* Блик по главным кнопкам и «волна» от нажатия */
.gg-btn--primary, .btn-gold, .btn-primary, .btn-sub, .btn-next, .btn-submit { position: relative; overflow: hidden; }
.gg-btn--primary:hover, .btn-gold:hover, .btn-primary:hover, .btn-sub:hover, .btn-next:hover, .btn-submit:hover {
  background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%) !important;
  background-size: 250% 100% !important; animation: gg-shine .9s ease-out;
}
.gg-ripple {
  position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .35); transform: translate(-50%, -50%) scale(0); animation: gg-ripple .6s ease-out forwards;
}
.gg-btn, button { transition: transform .15s ease, background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.gg-btn:active, .btn-gold:active, .btn-primary:active, .btn-outline:active { transform: scale(.97); }

/* Живой фон: сетка медленно плывёт, два красных пятна дышат */
.grid-bg { animation: gg-drift 60s linear infinite; }
.gg-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gg-aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 21, 58, .16), transparent 62%);
  animation: gg-orb 26s ease-in-out infinite;
}
.gg-aurora i:first-child { top: -25vmax; right: -20vmax; }
.gg-aurora i:last-child { bottom: -35vmax; left: -25vmax; animation-duration: 34s; animation-direction: reverse; background: radial-gradient(circle, rgba(120, 20, 60, .14), transparent 62%); }

/* Всплывающее сообщение выезжает снизу */
#gg-toast { transition: opacity .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .gg-rv { opacity: 1 !important; translate: none !important; }
  .gg-aurora { display: none; }
}

/* ═════════ РОЛИКИ: карточка с обложкой и всплывающий плеер (js/clip-player.js) ═════════ */
.vc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
/* Лента: на широком экране сетка по 3, на телефоне листается пальцем слева направо */
.vc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vc { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.vc:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.vc-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, rgba(224, 21, 58, .28), transparent 60%), linear-gradient(160deg, var(--surface-2), var(--bg-raised));
}
.vc-thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.vc-ph { position: absolute; right: -6%; bottom: -14%; color: rgba(255, 255, 255, .07); transform: rotate(-12deg); }
.vc-ph .i { width: 150px; height: 150px; }
.vc-thumb::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)); pointer-events: none; }
.vc-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center;
  background: var(--accent); color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .2s;
}
.vc-play svg { width: 22px; height: 22px; margin-left: 2px; }
.vc-thumb:hover img, .vc-thumb:focus-visible img { transform: scale(1.06); filter: brightness(1.1); }
.vc-thumb:hover .vc-play, .vc-thumb:focus-visible .vc-play { transform: scale(1.14); background: var(--accent-hover); }
.vc-thumb:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.vc-prov, .vc-dur {
  position: absolute; z-index: 2; bottom: 8px; padding: 3px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: rgba(0, 0, 0, .72); color: #fff;
}
.vc-prov { left: 8px; }
.vc-dur { right: 8px; font-variant-numeric: tabular-nums; }
.vc-prov--vk { box-shadow: inset 2px 0 0 #0077FF; }
.vc-prov--rutube { box-shadow: inset 2px 0 0 #00A2FF; }
.vc-prov--youtube { box-shadow: inset 2px 0 0 #FF0033; }
.vc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vc-title { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vc-meta { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-meta a { color: inherit; text-decoration: none; }
.vc-meta a:hover { color: var(--text); }

.vp-bg {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 5, 7, .82); backdrop-filter: blur(6px); animation: vp-fade .2s ease-out;
}
.vp { width: min(960px, 100%, calc((100vh - 150px) * 16 / 9)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; animation: vp-pop .3s cubic-bezier(.2, .8, .2, 1); }
.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; }
.vp-head b { display: block; font-size: 15px; }
.vp-head span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-dim); }
.vp-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 18px; font-size: 12px; color: var(--text-muted); }
.vp-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; }
.vp-foot a .i { width: 14px; height: 14px; }
.vp-foot a:hover { color: var(--accent-text); }
@keyframes vp-fade { from { opacity: 0; } }
@keyframes vp-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

@media (max-width: 900px) {
  .vc-row {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -24px; padding: 0 24px 4px; scroll-padding: 0 24px;
  }
  .vc-row::-webkit-scrollbar { display: none; }
  .vc-row > .vc { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .vc-row { margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .vp-bg { padding: 0; align-items: center; }
  .vp { border-radius: 0; border-left: 0; border-right: 0; }
}

/* ═════════ СПОНСОРЫ И ПАРТНЁРЫ (js/sponsors.js) ═════════
   .sp-mark — подпись маркировки, если у спонсора есть erid: её нельзя прятать и делать нечитаемой */
.sp-mark { display: block; font-size: 10px; line-height: 1.4; color: var(--text-muted); overflow-wrap: anywhere; }
/* Название вместо логотипа: переносится только между словами */
.sp-noimg { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.25; color: var(--text); white-space: normal; overflow-wrap: break-word; max-width: 100%; height: auto; filter: none; }

/* Строка в шапках турнира, матча и рейтинга */
/* Подписи и названия стоят на одной линии текста: у титульного спонсора шрифт крупнее, по центру он бы «подпрыгивал» */
.sp-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.sp-group { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; max-width: 100%; }
.sp-line-pre { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.sp-line-pre.is-title { color: var(--warning); }
.sp-line-item { display: flex; flex-direction: column; gap: 2px; max-width: 100%; }
.sp-line-a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.sp-line-a b { font-size: 13px; font-weight: 700; }
a.sp-line-a:hover b { color: var(--accent-text); }
.sp-line-logo { height: 22px; max-width: 120px; object-fit: contain; }
.sp-line-item.is-title .sp-line-logo { height: 32px; max-width: 160px; }
.sp-line-item.is-title .sp-line-a b, .sp-line-item.is-title .sp-noimg { font-size: 16px; }
.mh-sp .sp-line, .mh-sp .sp-group { justify-content: center; }
.mh-sp .sp-line-item { align-items: center; text-align: center; }

/* Полоса логотипов: подвал и «Партнёры сезона» на главной */
.gg-footer-sp { max-width: var(--gg-max); margin: 0 auto; padding: 28px var(--gg-gutter) 0; }
.sp-strip { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.sp-strip-title { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.sp-strip-row { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); align-items: center; gap: 16px 28px; }
.sp-strip-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
@media (max-width: 900px) { .sp-strip-row { grid-template-columns: repeat(var(--cols-md, 3), minmax(0, 1fr)); } }
@media (max-width: 560px) { .sp-strip { flex-direction: column; align-items: stretch; } .sp-strip-row { grid-template-columns: repeat(var(--cols-sm, 2), minmax(0, 1fr)); } }
.sp-strip-a { display: inline-flex; align-items: center; min-height: 32px; opacity: .7; transition: opacity .2s; text-decoration: none; }
a.sp-strip-a:hover { opacity: 1; }
.sp-strip-logo { max-height: 32px; max-width: 140px; object-fit: contain; filter: grayscale(1) brightness(1.6); transition: filter .2s; }
a.sp-strip-a:hover .sp-strip-logo { filter: none; }
.sp-strip-tier { display: none; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
/* На главной — крупнее, в цвете и с подписью уровня; титульный спонсор первым */
.sp-strip.is-big { flex-direction: column; align-items: flex-start; gap: 18px; margin: 8px 0 72px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(120deg, var(--surface), var(--bg-raised)); }
.sp-strip.is-big .sp-strip-row { gap: 20px 40px; align-items: end; width: 100%; }
.sp-strip.is-big .sp-strip-a { opacity: 1; min-height: 44px; }
.sp-strip.is-big .sp-strip-logo { max-height: 44px; max-width: 180px; filter: none; }
.sp-strip.is-big .sp-strip-tier { display: block; }
.sp-strip.is-big .is-title .sp-strip-logo { max-height: 60px; max-width: 240px; }
.sp-strip.is-big .is-title .sp-noimg { font-size: 18px; }
.sp-strip.is-big .is-title .sp-strip-tier { color: var(--warning); }
/* Название вместо логотипа: ограничения размера картинки к тексту не применяем (иначе текст сжимается и рвётся) */
.sp-line-logo.sp-noimg, .sp-strip-logo.sp-noimg { max-width: 100%; max-height: none; height: auto; filter: none; }

@media (max-width: 640px) {
  .sp-strip.is-big { padding: 18px 16px; margin-bottom: 56px; }
  .gg-footer-sp { padding: 24px 16px 0; }
}

/* ── Призы турнира: редактор (мастер, настройки) и карточки (страница турнира, предпросмотр) ── */
.pz-list { display: grid; gap: 10px; }
.pz-row { display: grid; grid-template-columns: 52px 150px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.pz-row input { width: 100%; height: 44px; background: var(--input, #0E0E11); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; color: var(--text); font: inherit; font-size: 13px; outline: none; box-sizing: border-box; }
.pz-row input:focus { border-color: var(--accent); }
.pz-photo { width: 52px; height: 44px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--text-muted); display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0; }
.pz-photo.has { border-style: solid; }
.pz-photo img { width: 100%; height: 100%; object-fit: cover; }
.pz-photo svg.i { width: 18px; height: 18px; }
.pz-del { width: 36px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 20px; cursor: pointer; }
.pz-del:hover { color: var(--accent-text); border-color: var(--accent-line, var(--accent)); }
.pz-unphoto { grid-column: 2 / -1; justify-self: start; background: none; border: 0; padding: 0; margin-top: -4px; color: var(--text-muted); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline; }
.pz-add { margin-top: 10px; background: transparent; border: 1px dashed var(--border-strong); color: var(--text-dim); border-radius: var(--radius); padding: 10px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; }
.pz-add:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 560px) { .pz-row { grid-template-columns: 52px minmax(0, 1fr) 36px; } .pz-row .pz-place { grid-column: 2 / 3; } .pz-row .pz-title { grid-column: 1 / -1; } .pz-row .pz-del { grid-row: 1; grid-column: 3; } }

.pz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pz-card { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface, #141418); overflow: hidden; }
.pz-card.gold { border-color: rgba(245, 196, 81, .55); box-shadow: 0 0 24px rgba(245, 196, 81, .12); }
.pz-card.silver { border-color: rgba(200, 200, 210, .45); }
.pz-card.bronze { border-color: rgba(205, 127, 50, .5); }
.pz-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.06), transparent 70%), var(--surface-2); color: var(--text-muted); }
.pz-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pz-img svg.i { width: 42px; height: 42px; }
.pz-card.gold .pz-img svg.i { color: #F5C451; } .pz-card.silver .pz-img svg.i { color: #C8C8D2; } .pz-card.bronze .pz-img svg.i { color: #CD7F32; }
.pz-txt { padding: 12px 14px 14px; }
.pz-place-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.pz-card.gold .pz-place-tag { color: #F5C451; } .pz-card.silver .pz-place-tag { color: #C8C8D2; } .pz-card.bronze .pz-place-tag { color: #CD7F32; }
.pz-name { margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.pz-cards.small { grid-template-columns: 1fr; gap: 8px; }
.pz-cards.small .pz-card { flex-direction: row; align-items: center; }
.pz-cards.small .pz-img { width: 56px; height: 56px; aspect-ratio: auto; flex-shrink: 0; }
.pz-cards.small .pz-img svg.i { width: 22px; height: 22px; }
.pz-cards.small .pz-txt { padding: 8px 12px; }
.pz-cards.small .pz-name { font-size: 13px; margin-top: 2px; }
