/* ==========================================================================
   Раздел «Играть» — страница-заглушка
   Палитра взята с референса интерфейса приложения
   ========================================================================== */

:root {
  /* Цвета */
  --bg: #04131c;
  --bg-deep: #020c13;
  --surface: #0a2130;
  --surface-2: #0d2b3e;
  --surface-3: #103449;
  --line: rgba(139, 191, 214, 0.16);
  --line-strong: rgba(139, 191, 214, 0.3);

  --mint: #2ed3b7;
  --cyan: #4fc3dc;
  --yellow: #ffe42b;
  --yellow-deep: #f4c752;

  --text: #eff2f7;
  --text-muted: #9bb2c2;
  --text-dim: #7a94a6;
  --on-yellow: #05181f;

  /* Типографика */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Отступы и размеры */
  --container: 1120px;
  --gutter: clamp(16px, 5vw, 32px);
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: clamp(24px, 5vw, 40px);
  --space-xl: clamp(40px, 9vw, 88px);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px rgba(1, 8, 13, 0.35);
  --shadow-md: 0 18px 42px rgba(1, 8, 13, 0.45);
  --shadow-yellow: 0 10px 26px rgba(255, 228, 43, 0.22);

  --transition: 0.22s ease;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(47, 198, 180, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus-visible { top: 12px; text-decoration: none; }

/* ---------- Каркас ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-xl); }
.section[id] { scroll-margin-top: 80px; }
.section--tight { padding-block: clamp(28px, 6vw, 60px); }

.section__head {
  max-width: 62ch;
  margin-bottom: var(--space-lg);
}

.section__title {
  font-size: clamp(1.4rem, 1.15rem + 1.6vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.section__text {
  margin-top: 10px;
  color: var(--text-muted);
}

/* ---------- Дисклеймер «в разработке» ---------- */
.dev-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--on-yellow);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 70%) -200% 0 / 60% 100% no-repeat,
    linear-gradient(120deg, var(--yellow) 0%, #ffd83a 55%, var(--yellow-deep) 100%);
  box-shadow: 0 8px 28px rgba(255, 228, 43, 0.28);
  animation: banner-shine 5s ease-in-out infinite;
}

/* Полоса «стройка» по нижнему краю */
.dev-banner::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--on-yellow) 0 10px, transparent 10px 20px);
  background-size: 28.28px 100%;
  opacity: 0.85;
  animation: banner-stripes 1.2s linear infinite;
}

.dev-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 60px;
  padding-block: 10px 14px;
}

.dev-banner__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--yellow);
  background: var(--on-yellow);
  animation: banner-pulse 2s ease-in-out infinite;
}

.dev-banner__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}

.dev-banner__title {
  font-size: clamp(0.95rem, 0.85rem + 0.6vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.005em;
}

.dev-banner__sub {
  display: none;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.78;
}

.dev-banner__tag {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--on-yellow);
}

.dev-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(46, 211, 183, 0.25);
}

@keyframes banner-shine {
  0%, 55% { background-position: -200% 0, 0 0; }
  100% { background-position: 300% 0, 0 0; }
}

@keyframes banner-stripes {
  to { background-position: 28.28px 0; }
}

@keyframes banner-pulse {
  50% { box-shadow: 0 0 0 6px rgba(5, 24, 31, 0.12); }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: linear-gradient(140deg, var(--yellow), var(--yellow-deep));
  color: var(--on-yellow);
  box-shadow: var(--shadow-yellow);
}
.btn--primary:hover { filter: brightness(1.06); }

.btn--outline {
  border-color: var(--line-strong);
  background: rgba(13, 43, 62, 0.5);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(46, 211, 183, 0.1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(36px, 9vw, 84px) var(--space-xl);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset-inline: -20%;
  top: -220px;
  height: 420px;
  pointer-events: none;
  background:
    radial-gradient(45% 55% at 30% 60%, rgba(79, 195, 220, 0.2), transparent 70%),
    radial-gradient(40% 55% at 72% 45%, rgba(255, 228, 43, 0.14), transparent 70%);
  filter: blur(6px);
}

.hero__inner { position: relative; }

.hero__content { min-width: 0; }

/* Превью будущего экрана (только широкие экраны) */
.preview { display: none; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 6px 14px;
  border: 1px solid rgba(79, 195, 220, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(79, 195, 220, 0.1);
}

.hero__title {
  max-width: 20ch;
  font-size: clamp(1.75rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__text {
  max-width: 56ch;
  margin-top: var(--space-md);
  color: var(--text-muted);
}

/* Прогресс */
.progress {
  max-width: 560px;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(13, 43, 62, 0.9), rgba(10, 33, 48, 0.75));
  box-shadow: var(--shadow-sm);
}

.progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 10px;
}

.progress__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.progress__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.progress__track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(2, 12, 19, 0.7);
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: var(--progress, 65%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan) 65%, var(--yellow));
  transition: width 1s ease;
}

.progress__meta {
  display: grid;
  gap: 6px;
  margin-top: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.progress__meta li {
  position: relative;
  padding-left: 16px;
}

.progress__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.progress__meta li:first-child::before { background: var(--mint); }
.progress__meta li:nth-child(2)::before { background: var(--yellow); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero__actions .btn { flex: 1 1 240px; }

/* ---------- Карточки возможностей ---------- */
.cards {
  display: grid;
  gap: var(--space-sm);
}

.card {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(13, 43, 62, 0.78), rgba(8, 26, 38, 0.78));
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-sm);
  border-radius: 14px;
  background: rgba(46, 211, 183, 0.12);
  color: var(--mint);
}

.card__icon--cyan { background: rgba(79, 195, 220, 0.12); color: var(--cyan); }
.card__icon--yellow { background: rgba(255, 228, 43, 0.12); color: var(--yellow); }

.card__title {
  font-size: 1.05rem;
  line-height: 1.3;
}

.card__text {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Этапы ---------- */
.roadmap {
  display: grid;
  gap: var(--space-sm);
  counter-reset: step;
}

.roadmap__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 33, 48, 0.6);
}

.roadmap__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  background: rgba(2, 12, 19, 0.5);
}

.roadmap__item.is-done .roadmap__icon {
  border-color: transparent;
  color: var(--on-yellow);
  background: var(--mint);
}

.roadmap__item.is-active .roadmap__icon {
  border-color: transparent;
  color: var(--on-yellow);
  background: var(--yellow);
}

.roadmap__body { min-width: 0; }

.roadmap__title {
  font-size: 1rem;
  line-height: 1.35;
}

.roadmap__text {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tag {
  grid-column: 2;
  justify-self: start;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.tag--done {
  border-color: rgba(46, 211, 183, 0.4);
  color: var(--mint);
  background: rgba(46, 211, 183, 0.1);
}

.tag--active {
  border-color: rgba(255, 228, 43, 0.4);
  color: var(--yellow);
  background: rgba(255, 228, 43, 0.1);
}

/* ---------- Ссылки на разделы ---------- */
.links {
  display: grid;
  gap: var(--space-sm);
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 72px;
  padding: 14px var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 33, 48, 0.6);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.link-card:hover {
  border-color: var(--line-strong);
  background: rgba(16, 52, 73, 0.75);
}
.link-card:active { transform: translateY(1px); }

.link-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(79, 195, 220, 0.1);
  color: var(--cyan);
}

.link-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-card__title {
  font-weight: 600;
  line-height: 1.3;
}

.link-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-card__arrow {
  width: 22px;
  height: 22px;
  color: var(--text-dim);
  transition: transform var(--transition), color var(--transition);
}

.link-card:hover .link-card__arrow {
  color: var(--mint);
  transform: translateX(3px);
}

/* ---------- Уведомление о запуске ---------- */
.notify {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(46, 211, 183, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(16, 52, 73, 0.9), rgba(8, 26, 38, 0.9));
  box-shadow: var(--shadow-md);
}

.notify__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--yellow);
  background: rgba(255, 228, 43, 0.12);
}

.notify__title {
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  line-height: 1.25;
}

.notify__text {
  margin-top: 8px;
  color: var(--text-muted);
}

.notify-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.notify-form__row {
  display: grid;
  gap: var(--space-xs);
}

.notify-form__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(2, 12, 19, 0.6);
  transition: border-color var(--transition), background var(--transition);
}

.notify-form__input::placeholder { color: var(--text-dim); }
.notify-form__input:hover { border-color: var(--mint); }
.notify-form__input:focus { outline: none; border-color: var(--cyan); background: rgba(2, 12, 19, 0.85); }
.notify-form__input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.notify-form__row .btn { width: 100%; }

.notify-form__status {
  min-height: 1.3em;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notify-form__status.is-error { color: #ff9b8a; }
.notify-form__status.is-success { color: var(--mint); }

.notify-form__input.is-invalid { border-color: #ff9b8a; }

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, 16px);
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(16, 52, 73, 0.96);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

/* Узкие телефоны 320–359px */
@media (max-width: 359px) {
  .dev-banner__icon { width: 34px; height: 34px; border-radius: 10px; }
  .btn { padding-inline: 16px; }
  .card__icon { width: 42px; height: 42px; }
  .roadmap__item { padding: 14px; }
  .link-card { padding: 12px 14px; }
}

/* Телефоны 400px+ */
@media (min-width: 400px) {
  .dev-banner__tag { display: inline-flex; }
  .roadmap__item {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .tag { grid-column: auto; justify-self: end; }
}

/* Крупные телефоны 520px+ — поле и кнопка в одну строку */
@media (min-width: 520px) {
  .notify-form__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .notify-form__row .btn { width: auto; }
}

/* Планшеты 600px+ */
@media (min-width: 600px) {
  .dev-banner__sub { display: block; }
  .cards,
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .hero__actions .btn { flex: 0 1 auto; }
}

/* Планшеты 768px+ */
@media (min-width: 768px) {
  .notify {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--space-md);
  }
  .notify-form { grid-column: 1 / -1; }
}

/* Ноутбуки 1024px+ */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notify {
    grid-template-columns: auto minmax(0, 1fr) minmax(320px, 420px);
  }
  .notify-form { grid-column: auto; }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
  }

  .preview {
    display: block;
    padding: var(--space-md);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(16, 52, 73, 0.92), rgba(5, 20, 29, 0.92));
    box-shadow: var(--shadow-md);
  }

  .preview__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-xs);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--text-dim);
  }

  .preview__league { color: var(--cyan); font-weight: 600; }

  .preview__score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-xs);
    padding-block: var(--space-md);
  }

  .preview__team {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .preview__team--right { text-align: right; }

  .preview__value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }

  .preview__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .preview__options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
    margin-top: var(--space-xs);
  }

  .preview__option {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    background: rgba(2, 12, 19, 0.5);
  }

  .preview__option.is-active {
    border-color: transparent;
    color: var(--on-yellow);
    background: linear-gradient(140deg, var(--yellow), var(--yellow-deep));
  }

  .preview__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--text-dim);
  }

  .preview__points { color: var(--mint); font-weight: 600; }
}

/* Большие экраны 1440px+ */
@media (min-width: 1440px) {
  :root { --container: 1200px; }
}

/* ---------- Доступность: меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover,
  .btn:active,
  .link-card:hover .link-card__arrow { transform: none; }
}
