:root {
  --bg: #0e1220;
  --bg-2: #161b2e;
  --card: #1c2238;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #9aa3c2;
  --blue: #3b82f6;
  --cyan: #5ee7ff;
  --purple: #7c5cff;
  --gold: #f5c16c;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.page-glow {
  position: fixed;
  inset: -20% 20% auto;
  height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(14, 18, 32, 0.82);
  border-bottom: 1px solid var(--line);
}
.header .container { position: relative; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8fd8ff;
}
.logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 22px; color: var(--muted); font-weight: 600; }
.nav a:hover { color: #fff; }
.header__actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  text-align: center;
}
.btn--ghost { background: #2a334d; }
.btn--primary { background: linear-gradient(180deg, #8b6cff, var(--purple)); }
.btn--cyan { background: linear-gradient(180deg, #6ecbff, var(--blue)); }
.btn--soft { background: rgba(255,255,255,0.08); }
.btn--lg { padding: 14px 22px; }
.btn--full { width: 100%; }
.btn:hover { filter: brightness(1.08); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #2a334d;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.hero { position: relative; z-index: 1; padding: 28px 0 10px; }
.hero__banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 460px;
  box-shadow: var(--shadow);
  background: #101628 url("../assets/hero-banner.jpg") center 28% / cover no-repeat;
}
.hero__image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 28%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  background: linear-gradient(90deg, rgba(8, 10, 20, 0.82) 0%, rgba(8, 10, 20, 0.2) 70%);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
.hero__lead { max-width: 520px; color: #d7def5; margin: 0 0 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.countdown-card {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
}
.countdown-card__label { margin: 0; font-weight: 800; }
.countdown-card__hint { margin: 4px 0 0; color: var(--muted); }
.timer { display: flex; gap: 8px; }
.timer__cell {
  min-width: 64px;
  background: #12172a;
  border-radius: 12px;
  text-align: center;
  padding: 8px 6px;
}
.timer__cell strong { display: block; font-size: 22px; }
.timer__cell span { color: var(--muted); font-size: 12px; }

.modes { padding: 28px 0; }
.modes__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.mode {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
}
.mode b { display: block; }
.mode small { color: var(--muted); }
.mode.is-active, .mode:hover { border-color: #4c8dff; background: #222b46; }
.mode__icon { font-size: 22px; }
.gold { color: var(--gold); font-weight: 700; }

.games, .features, .faq { padding: 36px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.games__tools { min-width: 260px; }
.search input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; }
.chip {
  border: 0;
  background: #232a42;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  cursor: pointer;
}
.chip.is-active { background: var(--blue); }

.games__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.game {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 230px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: #12182b;
}
.game img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.82));
}
.game__meta { position: relative; z-index: 1; padding: 14px; }
.game small { color: #c9d2ee; }
.game b { display: block; font-size: 16px; }
.game .play {
  display: inline-block;
  margin-top: 10px;
  align-self: flex-start;
  background: rgba(255,255,255,0.14);
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.feature__num { color: var(--cyan); font-weight: 800; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); }

.trust { padding: 10px 0 50px; }
.trust__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  background: linear-gradient(180deg, #1a2140, #14192c);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.trust__stats { display: flex; gap: 24px; margin-top: 18px; }
.trust__stats strong { display: block; font-size: 28px; color: var(--gold); }
.trust__stats span { color: var(--muted); }
.trust__card {
  background: #101628;
  border-radius: 18px;
  padding: 22px;
}

.faq__list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq__list summary { cursor: pointer; font-weight: 700; }
.faq__list p { color: var(--muted); margin: 10px 0 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__legal { font-size: 13px; }
.footer a { color: #c9d7ff; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 40; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.62); }
.modal__panel {
  position: relative;
  width: min(440px, calc(100% - 24px));
  margin: 12vh auto 0;
  background: #171d32;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.modal label { display: block; margin: 12px 0; color: var(--muted); }
.modal input {
  width: 100%;
  margin-top: 6px;
  background: #101628;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
}
.modal__note { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #12182b;
    padding: 16px;
  }
  .burger { display: block; }
  .header__actions .btn--ghost { display: none; }
  .modes__grid { grid-template-columns: repeat(4, 1fr); }
  .games__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid, .trust__inner, .countdown-card, .section-head {
    grid-template-columns: 1fr;
  }
  .section-head { display: grid; }
  .games__tools { min-width: 0; }
  .hero__banner, .hero__image { min-height: 420px; height: 420px; }
  .hero__overlay {
    position: absolute;
    background: linear-gradient(180deg, rgba(8, 10, 20, 0.15), rgba(8, 10, 20, 0.88));
    padding: 22px;
  }
  h1 { font-size: 32px; }
  .timer { justify-content: space-between; }
  .timer__cell { flex: 1; }
}
