:root {
  /* Тёмная — тема по умолчанию: с ней браузер рисует и свой фон, и полосы
     прокрутки, и системные элементы форм, пока не загрузился этот файл. */
  color-scheme: dark;
  --bg: #10141b;
  --panel: #1a212c;
  --panel-2: #222b38;
  --ink: #ffffff;
  --muted: #8d98a8;
  --accent: #45aef5;
  --accent-2: #2f8ee0;
  --accent-soft: #7cc8fa;
  --accent-dim: rgba(69, 174, 245, 0.16);
  --red: #f0806f;
  --green: #39cc83;
  --green-dim: rgba(57, 204, 131, 0.16);
  --violet: #7a6ff0;
  --teal: #2fae90;
  --coral: #f0806f;
  --amber: #f2b23e;
  --line: rgba(255, 255, 255, 0.07);
  --line-accent: rgba(69, 174, 245, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  /* Подложки поверх фона: три ступени прозрачности вместо трёх десятков
     мест, где цвет был вбит в правило напрямую. Светлая тема меняет их
     на затемнение — и все плашки переворачиваются вместе с ней. */
  --tint-1: rgba(255, 255, 255, 0.025);
  --tint-2: rgba(255, 255, 255, 0.07);
  --tint-3: rgba(255, 255, 255, 0.17);
  --on-accent: #06121d;
  --accent-deep: #1c63a8;
  --teal-deep: #1c7a68;
  --status-off: #a3adba;
  --sat: #a79eff;
  --sat-dim: rgba(122, 111, 240, 0.26);
  --pko: #ffb0a1;
  --pko-dim: rgba(240, 128, 111, 0.28);
  --hr-dim: rgba(242, 178, 62, 0.24);
  --aurora: radial-gradient(40% 36% at 15% 3%, rgba(47, 142, 224, 0.16), transparent 62%),
    radial-gradient(42% 38% at 88% 0%, rgba(69, 174, 245, 0.1), transparent 60%), #10141b;
  --featured-bg: linear-gradient(160deg, #23324a, #18202c 64%);
  --noise-opacity: 0.07;
}

/* ——— светлая тема ———
   Меняются только цвета: вёрстка, шрифты, размеры и расположение те же.
   Синий и зелёный на светлом фоне взяты темнее — иначе цифры гарантии и
   слово «Регистрация» бледнеют. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9eef6;
  --panel: #ffffff;
  --panel-2: #dfe7f2;
  --ink: #0d1a2b;
  --muted: #5c6c82;
  --accent: #1878cf;
  --accent-2: #115fa8;
  --accent-soft: #115fa8;
  --accent-dim: rgba(24, 120, 207, 0.13);
  --red: #cf5641;
  --green: #0d9159;
  --green-dim: rgba(13, 145, 89, 0.15);
  --violet: #544ad0;
  --teal: #0f7f6b;
  --coral: #cf5641;
  --amber: #bd7f0c;
  --line: rgba(13, 26, 43, 0.11);
  --line-accent: rgba(24, 120, 207, 0.32);
  --shadow: 0 14px 38px rgba(20, 40, 70, 0.12);
  --tint-1: rgba(13, 26, 43, 0.025);
  --tint-2: rgba(13, 26, 43, 0.065);
  --tint-3: rgba(13, 26, 43, 0.15);
  --on-accent: #ffffff;
  --accent-deep: #115fa8;
  --teal-deep: #0f7f6b;
  --status-off: #5c6c82;
  --sat: #544ad0;
  --sat-dim: rgba(84, 74, 208, 0.14);
  --pko: #b8402b;
  --pko-dim: rgba(207, 86, 65, 0.15);
  --hr-dim: rgba(189, 127, 12, 0.16);
  --aurora: radial-gradient(40% 36% at 15% 3%, rgba(24, 120, 207, 0.13), transparent 62%),
    radial-gradient(42% 38% at 88% 0%, rgba(24, 120, 207, 0.09), transparent 60%), #e9eef6;
  --featured-bg: linear-gradient(160deg, #dbe7f7, #ffffff 64%);
  --noise-opacity: 0.028;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px 52px;
}

html.tg-miniapp body {
  padding-top: calc(16px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-bottom: calc(24px + var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background: var(--aurora);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: var(--noise-opacity);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 180px;
  height: 28px;
}

/* Надпись в логотипе одноцветная, поэтому светлой теме нужен свой файл.
   Оба лежат в разметке и переключаются стилями — так на первой отрисовке
   не мелькает белая надпись на белом фоне. */
.brand-logo.is-light,
:root[data-theme="light"] .brand-logo.is-dark {
  display: none;
}

:root[data-theme="light"] .brand-logo.is-light {
  display: block;
}

/* Переход между сайтом и мини-аппом. Форма та же, что у соседей по шапке,
   но цвет акцентный: это не настройка, а ссылка в другое место. */
.platform-switch {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font: 800 10px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.platform-switch[hidden] {
  display: none;
}

.platform-switch-icon {
  display: inline-flex;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .platform-switch:hover {
    border-color: var(--line-accent);
  }
}

/* Переключатель темы — той же формы, что переключатель языка: они стоят
   рядом и делают одно и то же, только с разным. */
.theme-toggle {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font: 800 10px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.theme-toggle-icon {
  font-size: 12px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    border-color: var(--line-accent);
    color: var(--accent-soft);
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: linear-gradient(150deg, #45aef5, #2f8ee0);
  box-shadow: 0 8px 24px rgba(198, 128, 27, 0.22);
  font-size: 22px;
}

.brand-mark i {
  font-style: normal;
  transform: translateY(-1px);
}

.brand-copy {
  display: grid;
  line-height: 1;
  gap: 5px;
}

.brand-copy b {
  font-size: 16px;
  letter-spacing: 0.15em;
}

.brand-copy small {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 8px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
}

h1 {
  margin: 2px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(103, 212, 166, 0.6);
  animation: pulse 2.2s infinite;
}

.dot.is-demo {
  background: var(--accent);
  animation: none;
}

#clock {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.timezone {
  font-size: 9px;
  color: var(--muted);
}

.header-events-link {
  color: var(--accent-soft);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.timezone-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  max-width: min(52vw, 190px);
  padding: 0 10px;
  border: 1px solid var(--line-accent);
  border-radius: 8px;
  background: rgba(69, 174, 245, 0.07);
  color: var(--accent-soft);
  font: 600 9px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.timezone-control:focus,
.timezone-control:focus-visible,
.timezone-control:active {
  outline: none;
  box-shadow: none;
}

.timezone-picker {
  position: relative;
}

.timezone-menu {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 8px);
  width: min(92vw, 280px);
  max-height: min(70vh, 440px);
  padding: 6px;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.timezone-group-label {
  padding: 8px 10px 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timezone-group + .timezone-group {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.timezone-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 10px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.timezone-menu button:hover,
.timezone-menu button.is-on {
  color: var(--ink);
  background: rgba(69, 174, 245, 0.09);
}

.timezone-menu button.is-on b {
  color: var(--accent-soft);
}

.timezone-menu b {
  font-size: 11px;
}

.timezone-menu span {
  color: var(--muted);
  font-size: 8px;
}

.timezone-control i {
  color: var(--accent);
  font-style: normal;
}

#timezone-control-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint-1);
}

.lang-switch button {
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: 700 9px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.lang-switch button.is-on {
  color: var(--on-accent);
  background: var(--accent);
}

.language-toggle {
  min-width: 52px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-soft);
  font: 800 10px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .language-toggle:hover {
    border-color: var(--line-accent);
    background: rgba(69, 174, 245, 0.08);
  }
}

.language-toggle:focus,
.language-toggle:focus-visible,
.language-toggle:active {
  outline: none;
  box-shadow: none;
  background: var(--panel);
  border-color: var(--line);
  color: var(--accent-soft);
}

.language-toggle-icon {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 860px) {
  .language-toggle-icon {
    display: none;
  }

  .language-toggle {
    min-width: 44px;
    height: 32px;
    padding: 0 11px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 52px 0 34px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  margin: 5px 0 8px;
}

.lede {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.hero-card {
  min-width: 180px;
  padding: 19px 22px;
  border: 1px solid var(--line-accent);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent-dim), var(--tint-1));
  text-align: right;
}

.hero-card span,
.hero-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  color: var(--accent-soft);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 46px;
  line-height: 1;
  font-weight: 400;
  margin: 5px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.stat {
  background: rgba(15, 16, 19, 0.97);
  padding: 15px 20px;
}

.stat b {
  display: block;
  font-size: 20px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby {
  margin-top: 25px;
}

.featured-strip {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 0;
  border-radius: 20px;
  background: var(--featured-bg);
}

.featured-strip::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 174, 245, 0.28), transparent 68%);
  pointer-events: none;
}

.featured-slides {
  display: flex;
  align-items: stretch;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-slides.is-instant {
  transition: none;
}

.featured-main-banner {
  position: relative;
  display: grid;
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 26px 46px;
}

.featured-main-banner.is-clone {
  pointer-events: none;
}

.featured-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.featured-title,
.featured-main-copy h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font: 800 30px/1.15 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: -0.025em;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.featured-tag {
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--tint-2);
  color: var(--muted);
  font: 600 11px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.featured-tag.is-value {
  background: var(--accent-dim);
  color: var(--accent);
}

.featured-tag.is-main {
  background: var(--hr-dim);
  color: var(--amber);
}

.featured-stats {
  display: contents;
}

/* Бай-ин и старт — одной группой у правого края. */
.featured-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-width: 0;
}

.featured-metric {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.featured-metric > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-metric b,
.featured-metric strong,
.featured-metric .chip-value {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font: 700 20px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.featured-metric-buyin,
.featured-metric-when {
  padding: 0;
}

.featured-metric-buyin b,
.featured-metric-buyin .chip-value {
  color: var(--ink);
  font-size: 20px;
}

.featured-metric-when b,
.featured-metric-when .chip-value {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}


.featured-metric-gtd {
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  text-align: center;
}

.featured-metric-gtd > span {
  color: var(--muted);
  letter-spacing: 0.16em;
}

.featured-metric-gtd strong,
.featured-metric-gtd .chip-value {
  justify-content: center;
  color: var(--ink);
  font-size: clamp(44px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.featured-metric-gtd .chip-icon,
.featured-metric-buyin .chip-icon {
  color: inherit;
}


.featured-metric-when {
  align-items: flex-end;
  text-align: right;
}

/* Полная дата с годом — для широкого экрана, короткая — для телефона. */
.featured-metric-when .when-full,
.featured-metric-when .when-short {
  font-style: normal;
}

.featured-metric-when .when-short {
  display: none;
}

.featured-metric-when > span {
  color: var(--muted);
  font: 700 10px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-nav {
  position: absolute;
  z-index: 4;
  left: 26px;
  right: 26px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tint-2);
  color: var(--ink);
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.featured-arrow svg {
  display: block;
}

.featured-arrow:hover {
  background: var(--tint-3);
}

.featured-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-dots button {
  width: 18px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--tint-3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.featured-dots button.is-on {
  background: var(--accent);
}

/* Значок валюты — обычная часть суммы: тот же кегль, тот же цвет, вплотную
   к цифрам, как в макете. */
.chip-icon {
  flex: 0 0 auto;
  color: inherit;
  font-weight: inherit;
}

.chip-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}

.lobby > .day-strip {
  margin-top: 0;
}

.lobby-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.lobby-head h1 {
  margin: 3px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
}

.schedule-note {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-tabs {
  display: flex;
  gap: 5px;
  margin-top: 22px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* старый Edge/IE */
}

.schedule-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari — на десктопе не показываем полосу прокрутки */
}

.schedule-tabs button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 11px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.schedule-tabs .events-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 8px;
  color: var(--accent-soft);
  font: 700 11px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  text-decoration: none;
}

.schedule-tabs .events-link:hover {
  background: rgba(69, 174, 245, 0.08);
}

.schedule-tabs button.is-on {
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
}

.search {
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
}

.search > span {
  color: var(--muted);
  font-size: 20px;
}

.search input,
.view-toggle button,
.filters button {
  color: var(--ink);
  font: inherit;
}

.search input {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  border: 0;
  background: transparent;
  outline: none;
}

.search:focus-within {
  border-color: var(--line-accent);
}

.search kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 9px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

.day-strip {
  display: flex;
  gap: 6px;
  margin: 23px 0 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-btn {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: 600 11px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.day-btn span {
  display: block;
  color: inherit;
  margin-top: 2px;
  font-size: 9px;
  opacity: 0.65;
}

.day-btn.is-on {
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  border-color: transparent;
}

.status-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* старый Edge/IE */
}

.status-filters::-webkit-scrollbar {
  display: none; /* Chrome/Safari — на десктопе не показываем полосу прокрутки */
}

.status-filters button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 10px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.status-filters i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.status-filters button[data-phase="upcoming"] i {
  background: var(--accent);
}

.status-filters button[data-phase="late"] i {
  background: var(--green);
  box-shadow: 0 0 8px rgba(103, 212, 166, 0.5);
}

.status-filters button[data-phase="finished"] i {
  background: #6b7684;
}

.status-filters button.is-on {
  color: var(--ink);
  border-color: var(--line-accent);
  background: rgba(69, 174, 245, 0.08);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.left-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Тумблер и кнопка подписки делят одну строку: на узком экране кнопка
   уходит к правому краю, в пустое место рядом с «Показать завершённые». */
.toggle-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px 12px;
}

.finished-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
  white-space: nowrap;
}

.finished-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 30px;
  height: 17px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-track i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.finished-toggle input:checked + .toggle-track {
  border-color: var(--line-accent);
  background: rgba(69, 174, 245, 0.12);
}

.finished-toggle input:checked + .toggle-track i {
  transform: translateX(13px);
  background: var(--accent);
}

.filters {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* старый Edge/IE */
}

.filters::-webkit-scrollbar {
  display: none; /* Chrome/Safari — на десктопе не показываем полосу прокрутки */
}

.filters button,
.view-toggle button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 11px;
  cursor: pointer;
}

.filters button.is-on,
.view-toggle button.is-on {
  color: var(--accent-soft);
  background: rgba(69, 174, 245, 0.1);
  border-color: var(--line-accent);
}

.right-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sort-select {
  position: relative;
}

.sort-select > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sort-select select {
  appearance: none;
  padding: 8px 31px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%238f9298'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--muted);
  font: 10px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

/* Выгрузка в Excel стоит в строке «9 турниров · открытая регистрация»:
   кнопка действует ровно на эту выборку, и в ленте фильтров ей тесно —
   она выдавливала оттуда последний фильтр. */
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 11px;
}

.export-btn {
  flex: 0 0 auto;
  padding: 8px 13px 8px 26px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='12'%3E%3Cpath d='M5.5 0v8m0 0L2 4.8M5.5 8 9 4.8M0 11h11' fill='none' stroke='%2339cc83' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 10px center;
  color: var(--green);
  font: 700 10px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.export-btn:hover:not(:disabled) {
  border-color: var(--green);
}

.export-btn:disabled {
  color: var(--muted);
  cursor: default;
}

.settings-open {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--accent);
  cursor: pointer;
}

.banner {
  border: 1px solid rgba(124, 200, 250, 0.35);
  background: rgba(143, 107, 43, 0.16);
  color: #cfe8fb;
  border-radius: 14px;
  padding: 12px 16px;
}

.board {
  min-height: 240px;
}

.result-meta {
  color: var(--muted);
  font-size: 11px;
}

.result-meta strong {
  color: var(--ink);
}

.group-title {
  margin: 22px 0 10px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 15px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-accent);
  background: var(--panel-2);
}

.card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -48px;
  background: radial-gradient(circle, rgba(69, 174, 245, 0.12), transparent 70%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.when {
  font-variant-numeric: tabular-nums;
  color: var(--accent-soft);
  font-size: 13.5px;
  font-weight: 700;
}

.status {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Открытая регистрация — приглушённая зелёная плашка с зелёными буквами:
   заметно, но не спорит с гарантией за внимание. */
.status.live,
.status.late {
  border-color: transparent;
  background: var(--green-dim);
  color: var(--green);
}

.status.finished {
  color: var(--status-off);
  background: var(--tint-1);
}

.card-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 11px 0 9px;
  min-height: 42px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* Слева от названия — кружок с игрой, справа — пилюля подвида. */
.game-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.game-badge.is-nlh {
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
}

.game-badge.is-plo {
  background: linear-gradient(150deg, var(--teal), var(--teal-deep));
}

.kind-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 2px;
  white-space: nowrap;
}

.kind-badge.is-sat {
  background: var(--sat-dim);
  color: var(--sat);
}

.kind-badge.is-pko {
  background: var(--pko-dim);
  color: var(--pko);
}

.kind-badge.is-hr {
  background: var(--hr-dim);
  color: var(--amber);
}

.kind-badge.is-value {
  background: var(--accent-dim);
  color: var(--accent);
}

.kind-badge.is-plain {
  background: var(--tint-2);
  color: var(--muted);
}

/* Метрики карточки — в отдельной рамке: бай-ин, гарантия, регистрация до. */
.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--tint-1);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.meta > div:nth-child(2) {
  text-align: center;
}

.meta > div:last-child {
  text-align: right;
}

.meta small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* В карточке турнира полей четыре, поэтому там сетка два на два
   и всё по левому краю — три колонки списка тут не подходят. */
.tournament-modal .meta {
  grid-template-columns: 1fr 1fr;
  gap: 11px 12px;
}

.tournament-modal .meta > div:nth-child(2),
.tournament-modal .meta > div:last-child {
  text-align: left;
}

.meta-gtd {
  color: var(--accent);
}

/* В рамке метрик значок доллара идёт цветом самой суммы: бай-ин и
   регистрация белые, гарантия синяя целиком. */
.meta .chip-icon {
  color: inherit;
}

.free-badge {
  display: inline-block;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}

.overlay-hot {
  color: var(--green);
  font-weight: 700;
}

/* ——— «Позвать, когда появится» ——— */

/* Кнопка стоит в ряду фильтров, но заметно отличается от них: это не ещё
   один фильтр, а действие. */
.alert-cta {
  flex: none;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid rgba(69, 174, 245, 0.55);
  border-radius: 999px;
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(69, 174, 245, 0.07);
  color: var(--accent);
  font: 700 13px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.alert-cta:hover {
  background: rgba(69, 174, 245, 0.26);
}

.alert-cta.is-solid {
  margin: 0 0 10px;
  box-shadow: none;
  padding: 13px 20px;
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
}

.empty-alert-hint {
  margin: 0 auto 14px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.alert-modal {
  width: min(560px, calc(100vw - 24px));
}

.alert-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.alert-field {
  margin-top: 18px;
}

.alert-field > label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alert-field > label span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 500;
}

.alert-chips,
.alert-toggle-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.alert-chip {
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font: 600 13px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.alert-chip.is-on {
  background: var(--accent-dim);
  border-color: rgba(69, 174, 245, 0.4);
  color: var(--accent);
}

/* Галочки «когда уведомить»: столбиком, чтобы читались как список. */
.alert-checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.alert-check {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 0;
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--muted);
  font: 600 13.5px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.alert-check i {
  width: 19px;
  height: 19px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--tint-3);
  border-radius: 6px;
}

.alert-check.is-on {
  color: var(--ink);
}

.alert-check.is-on i {
  border-color: transparent;
  background: var(--accent);
}

.alert-check.is-on i::after {
  content: "✓";
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
}

.alert-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--green-dim);
  color: #9ce6c1;
  font-size: 12.5px;
  line-height: 1.5;
}

/* Два ползунка на одной дорожке: нижний слой — заливка выбранного куска,
   сверху лежат сами input'ы с прозрачными дорожками. */
.alert-range-vals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.alert-range-vals i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.alert-range-inputs {
  position: relative;
  height: 22px;
}

.alert-track {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-2);
}

.alert-track span {
  position: absolute;
  top: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.alert-range-inputs input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.alert-range-inputs input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  pointer-events: auto;
}

.alert-range-inputs input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  pointer-events: auto;
}

.alert-range.is-off {
  opacity: 0.4;
}

.alert-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.alert-input {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
}

.alert-input small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.alert-input input {
  width: 100%;
  margin-top: 3px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 14px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.alert-match {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.alert-match.is-empty {
  color: var(--muted);
}

.alert-danger {
  width: 100%;
  margin-top: 9px;
  padding: 13px;
  border: 0;
  border-radius: 15px;
  background: rgba(240, 128, 111, 0.14);
  color: var(--coral);
  font: 700 14px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

/* Приглашение в мини-приложение — то, что видит посетитель сайта. */
.alert-invite {
  padding: 4px 0 18px;
  text-align: center;
}

.alert-invite-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-dim);
  font-size: 24px;
}

/* Текста стало на несколько абзацев: по центру такой блок читается
   рвано, поэтому выравниваем по левому краю. Колокольчик остаётся
   посередине. */
.alert-invite p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.6;
  text-align: left;
}

.alert-invite p + p {
  margin-top: 12px;
}

/* Перечисление критериев — списком и по левому краю: так его читают
   глазами сверху вниз, а не как сплошной абзац. */
.alert-invite ul {
  margin: 12px auto;
  padding: 0;
  max-width: 42ch;
  list-style: none;
  text-align: left;
}

.alert-invite li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.alert-invite li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ——— сохранённые запросы ——— */
.alert-saved {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.alert-saved > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alert-saved > label span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 500;
}

.alert-saved-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 13px;
  border: 0;
  border-radius: 14px;
  background: var(--panel-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.alert-saved-row:hover {
  background: var(--panel-2);
}

.alert-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.alert-saved-row.is-off .alert-dot {
  background: #4a5666;
}

.alert-saved-row.is-off .alert-saved-main {
  opacity: 0.55;
}

.alert-saved-main {
  flex: 1;
  min-width: 0;
}

.alert-saved-main b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.alert-saved-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-go {
  color: var(--muted);
  font-size: 15px;
}

/* Статус в таблице цветом: открытая регистрация должна быть видна сразу. */
.row-status.is-late {
  color: var(--green);
  font-weight: 700;
}

.row-status.is-upcoming {
  color: var(--muted);
}

.row-status.is-finished {
  color: #6b7684;
}

.row-title {
  display: flex;
  gap: 9px;
  align-items: center;
}

.row-title .game-badge {
  width: 32px;
  height: 32px;
  font-size: 9px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  position: sticky;
  top: 0;
  background: var(--panel);
}

tr:hover td {
  background: rgba(124, 200, 250, 0.05);
}

.banner-info {
  border-color: rgba(126, 224, 200, 0.35);
  background: rgba(126, 224, 200, 0.1);
  color: #b6f0d3;
}

.banner-warn {
  border-color: rgba(69, 174, 245, 0.45);
  background: rgba(120, 70, 20, 0.25);
  color: #cfe8fb;
}

.stat em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.stat-delta {
  margin-left: 6px;
  font-size: 14px;
  color: var(--teal);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(12, 13, 18, 0.55);
}

.empty-state p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.empty-state small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.reset-filters {
  margin-top: 18px;
  padding: 11px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  color: var(--on-accent);
  font: 800 12px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.reset-filters:hover {
  filter: brightness(1.06);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.skeleton-card {
  height: 180px;
  border-radius: 22px;
  background: linear-gradient(90deg, var(--tint-1), var(--tint-2), var(--tint-1));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.empty {
  color: var(--muted);
  padding: 48px 8px;
  text-align: center;
}

footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  gap: 12px;
}

.footer-mark {
  color: var(--accent);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 25px auto 0;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-arrow,
.page-number {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font: 600 11px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.page-arrow:hover,
.page-number:hover {
  color: var(--accent-soft);
  border-color: var(--line-accent);
}

.page-number.is-on {
  color: var(--on-accent);
  border-color: transparent;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
}

.page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-ellipsis {
  width: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.page-summary {
  flex-basis: 100%;
  margin-top: 4px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.settings-dialog {
  width: min(430px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
}

.settings-dialog::backdrop {
  background: rgba(2, 3, 5, 0.76);
  backdrop-filter: blur(7px);
}

.settings-dialog form {
  padding: 22px;
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.settings-head h2 {
  margin: 4px 0 0;
  font: 800 32px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

.settings-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.settings-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.settings-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: 12px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  text-transform: none;
}

.settings-help {
  margin: 16px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.settings-save {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  color: var(--on-accent);
  font: 800 11px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.tournament-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
}

.tournament-modal::backdrop {
  background: rgba(2, 3, 5, 0.76);
  backdrop-filter: blur(7px);
}

.tournament-modal:focus,
.tournament-modal:focus-visible {
  outline: none;
}

.tournament-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.tournament-modal-close:hover {
  color: var(--ink);
  border-color: var(--line-accent);
}

.tournament-modal-close:focus,
.tournament-modal-close:focus-visible,
.tournament-modal-close:active {
  outline: none;
  box-shadow: none;
  color: var(--ink);
  border-color: var(--line);
}

.modal-head {
  padding-right: 40px;
}

.modal-when {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tournament-modal h2 {
  margin: 6px 0 8px;
  font: 800 22px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Гарантия — главное число карточки, по центру, под ней бай-ин и статус. */
.modal-hero {
  padding: 16px 0 14px;
  text-align: center;
}

.hero-amount {
  display: flex;
  justify-content: center;
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-pill {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.hero-pill.is-upcoming {
  background: var(--tint-2);
  color: var(--muted);
}

.hero-pill.is-finished {
  background: var(--tint-2);
  color: var(--muted);
}

/* Стек, блайнды и поздняя регистрация — плитками с волосяными швами. */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--line);
  overflow: hidden;
}

.stat {
  padding: 12px 14px;
  background: var(--panel-2);
}

.stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.stat b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat.is-wide {
  grid-column: 1 / -1;
}

.reminder-toggle {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 15px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Выключенная кнопка не должна выглядеть нажимаемой: пока не отмечен ни
   один момент уведомления, она гаснет до фона панели. */
.reminder-toggle:disabled {
  background: var(--panel-2);
  color: var(--muted);
  cursor: default;
}

.reminder-toggle.is-on {
  background: var(--green-dim);
  border: 0;
  color: var(--green);
}

.modal-details h3 {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-detail-grid {
  border-radius: 16px;
  background: var(--panel-2);
  overflow: hidden;
}

.modal-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  min-width: 0;
}

.modal-detail-row:first-child {
  border-top: 0;
}

.modal-detail-row span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.modal-detail-row b {
  font-weight: 700;
  overflow-wrap: break-word;
}

/* .chip-value — тоже <span>, иначе попадает под общее .modal-detail-row
   span (стиль мелкой подписи-лейбла над значением). */
.modal-detail-row b .chip-value {
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 520px) {
  .modal-detail-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(126, 224, 200, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-slides {
    transition: none;
  }
}

@media (max-width: 860px) {
  .featured-main-banner {
    display: grid;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "copy copy"
      "gtd gtd"
      "buyin when";
    gap: 0 6px;
    align-items: center;
    padding: 16px 16px 12px;
  }

  .featured-copy {
    grid-area: copy;
    flex: none;
    max-width: none;
    gap: 8px;
  }

  .featured-stats,
  .featured-side {
    display: contents;
    margin-left: 0;
  }

  .featured-title,
  .featured-main-copy h2 {
    font-size: 17px;
    letter-spacing: -0.01em;
  }

  .featured-tags {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }

  .featured-tag {
    padding: 3px 8px;
    font-size: 10px;
  }

  .featured-metric {
    flex: none;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .featured-metric-buyin,
  .featured-metric-when {
    padding: 0;
  }

  .featured-metric-buyin {
    grid-area: buyin;
  }

  /* Бай-ин, дата и время идут одной приглушённой строкой под гарантией:
     «Бай-ин $240 · пн, 21.09 · 00:00». */
  .featured-metric-buyin,
  .featured-metric-when {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .featured-metric > span {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .featured-metric-buyin b,
  .featured-metric-when b,
  .featured-metric-buyin .chip-value,
  .featured-metric-when .chip-value {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
  }

  .featured-metric-gtd {
    grid-area: gtd;
    min-height: 0;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
  }

  /* На узком экране гарантия и так самое крупное число — подпись лишняя. */
  .featured-metric-gtd > span {
    display: none;
  }

  .featured-metric-gtd strong,
  .featured-metric-gtd .chip-value {
    justify-content: flex-start;
    font-size: clamp(32px, 12.5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .featured-metric-gtd {
    margin-top: 12px;
  }

  .featured-metric-buyin,
  .featured-metric-when {
    margin-top: 6px;
  }

  .featured-metric-when {
    grid-area: when;
    justify-content: flex-start;
    text-align: left;
  }

  .featured-metric-when .when-full {
    display: none;
  }

  .featured-metric-when .when-short {
    display: inline;
  }

  .featured-metric-when > span,
  .featured-metric-buyin > span {
    color: var(--muted);
    font: 400 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
  }

  /* Точка-разделитель перед датой — как в макете. */
  .featured-metric-when::before {
    content: "·";
    color: var(--muted);
    font-size: 13px;
  }

  .featured-metric-when b,
  .featured-metric-when .chip-value {
    line-height: 1.35;
  }

  /* Стрелки и точки живут под слайдом обычной строкой, а не поверх него. */
  .featured-nav {
    position: static;
    padding: 0 16px 12px;
  }

  .featured-arrow {
    width: 30px;
    height: 30px;
  }

  .featured-dots button {
    width: 16px;
  }

  body {
    padding: 16px 16px 40px;
  }

  .hero {
    padding: 38px 0 24px;
  }

  .hero-card {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .left-controls {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .toggle-row {
    /* Кнопка держится правого края строки, а на совсем узких экранах
       переносится вниз, а не вылезает за него. */
    width: 100%;
    flex-wrap: wrap;
  }

  .right-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  body {
    padding: 12px 12px 32px;
  }

  /* В шапке телефона подпись не помещается рядом с языком и поясом —
     оставляем один значок. */
  #theme-toggle-label,
  #platform-switch-label {
    display: none;
  }

  .platform-switch {
    padding: 0 9px;
  }

  .theme-toggle {
    padding: 0 9px;
  }

  .top {
    padding-bottom: 13px;
  }

  .featured-strip {
    margin-top: 12px;
    border-radius: 14px;
  }

  .featured-main-banner {
    padding: 14px 14px 10px;
    gap: 0 6px;
  }

  .featured-nav {
    padding: 0 14px 12px;
  }

  .featured-title,
  .featured-main-copy h2 {
    font-size: 20px;
  }

  .featured-metric-buyin b,
  .featured-metric-when b {
    font-size: 12.5px;
  }

  .featured-metric-gtd {
    padding: 0;
  }

  .featured-metric-gtd strong {
    font-size: clamp(30px, 12.5vw, 52px);
  }

  .header-events-link {
    font-size: 0;
  }

  .header-events-link::after {
    content: "★";
    font-size: 15px;
  }

  .timezone-control {
    height: 32px;
    padding: 0 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-logo {
    width: 145px;
    height: auto;
  }

  .brand-copy b {
    font-size: 13px;
  }

  .sync {
    display: none;
  }

  #clock {
    font-size: 14px;
  }

  .hero {
    padding: 29px 2px 21px;
  }

  .hero-copy h1 {
    font-size: 43px;
    line-height: 0.98;
    max-width: 310px;
  }

  .lede {
    margin-top: 12px;
    font-size: 12px;
    max-width: 330px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .stat {
    min-width: 0;
    padding: 12px 14px;
  }

  .stat b {
    font-size: 17px;
  }

  .lobby {
    margin-top: 30px;
  }

  .lobby-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .search {
    width: 100%;
  }

  .search kbd,
  .view-toggle {
    display: none;
  }

  .day-strip {
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px;
  }

  .schedule-tabs {
    width: 100%;
  }

  .schedule-tabs button {
    flex: 1 0 auto;
  }

  .day-btn {
    min-width: 72px;
    padding: 9px 10px;
  }

  .controls {
    padding: 10px 0;
  }

  .filters {
    width: calc(100vw - 24px);
    margin-right: -12px;
    padding-right: 12px;
  }

  .finished-toggle {
    padding: 2px 0;
  }

  .toggle-row {
    gap: 8px;
  }

  .alert-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .status-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .status-filters button {
    justify-content: center;
  }

  .sort-select,
  .sort-select select {
    width: 100%;
  }

  .right-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .export-btn {
    padding: 8px 11px 8px 24px;
    background-position: left 9px center;
  }

  .view-toggle {
    display: none;
  }

  .pagination {
    gap: 5px;
  }

  .page-arrow,
  .page-number {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
  }

  .page-numbers {
    gap: 3px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .card-title {
    gap: 9px;
    margin: 9px 0 7px;
    min-height: 0;
  }

  .card h3 {
    font-size: 17px;
  }

  .game-badge {
    width: 38px;
    height: 38px;
    font-size: 10px;
  }

  .meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 11px;
    font-size: 13.5px;
  }

  .meta small {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .group-title {
    margin-top: 17px;
  }

  footer {
    flex-direction: column;
    gap: 7px;
  }
}

.share-button {
  width: 100%;
  margin-top: 9px;
  padding: 14px;
  border: 0;
  border-radius: 15px;
  background: var(--panel-2);
  color: var(--ink);
  font: 700 15px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.share-button:hover {
  background: var(--panel-2);
}

.share-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.share-option {
  flex: 1 1 30%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 700 12px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.share-option:hover {
  border-color: var(--line-accent);
  color: var(--accent-soft);
}

/* Основной способ — отправить в Telegram: занимает всю строку и выделен. */
.share-option.is-primary {
  flex: 1 1 100%;
  border-color: var(--line-accent);
  color: var(--accent-soft);
  font-weight: 800;
}

.share-url {
  flex: 1 1 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 600 11px -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}
