:root {
  --bg: #060918;
  --bg-elevated: #0b1228;
  --bg-card: #121a36;
  --bg-card-hover: #182244;
  --line: rgba(140, 170, 255, 0.12);
  --text: #f4f7ff;
  --muted: #93a0c2;
  --green: #22d46a;
  --green-dark: #14b85a;
  --gold: #ffe566;
  --pink: #ff6bd6;
  --blue: #4d8bff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(70, 40, 160, 0.35), transparent 60%),
    radial-gradient(800px 400px at 10% 20%, rgba(40, 90, 180, 0.18), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green);
  color: #052012;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(6, 9, 24, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span:not(.visually-hidden) {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-green {
  background: linear-gradient(180deg, #3ded80, var(--green-dark));
  color: #052012;
  box-shadow: 0 8px 24px rgba(20, 184, 90, 0.28);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 12px;
}

.hero-panel {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(500px 220px at 20% 30%, rgba(180, 40, 160, 0.25), transparent 60%),
    radial-gradient(500px 240px at 85% 20%, rgba(40, 90, 220, 0.28), transparent 55%),
    linear-gradient(180deg, #1a1140 0%, #0d1633 100%);
  border: 1px solid rgba(160, 140, 255, 0.16);
  min-height: 380px;
  padding: 42px 24px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  color: #c9d4ff;
  font-size: 1.05rem;
}

.hero h1 {
  margin: 4px 0 18px;
  font-weight: 800;
}

.hero-amount {
  display: block;
  color: var(--green);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 30px rgba(34, 212, 106, 0.25);
}

.hero-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #fff;
}

.pay-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.pay-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
}

.pay-pill:hover,
.pay-pill:focus-visible {
  border-color: rgba(80, 220, 140, 0.45);
  color: #fff;
}

.hero-art {
  position: absolute;
  bottom: 0;
  width: min(280px, 34vw);
  pointer-events: none;
  z-index: 1;
}

.hero-art-left {
  left: 0;
}

.hero-art-right {
  right: 0;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.promo-card:hover {
  filter: brightness(1.08);
}

.promo-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.story-ring {
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
}

.promo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.promo-card h2,
.promo-card p {
  margin: 0;
}

.promo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.promo-caption,
.promo-card p {
  color: var(--muted);
  font-size: 0.8rem;
}

.caption-short {
  display: none;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 6px;
  scrollbar-width: thin;
}

.chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: #d7def3;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 600;
}

.chip.is-active,
.chip:hover {
  background: #1c2748;
  border-color: rgba(80, 220, 140, 0.35);
  color: #fff;
}

.section {
  padding: 28px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-more {
  color: var(--muted);
  font-size: 0.86rem;
}

.top-games {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.game-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.game-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.thumb {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  font-weight: 800;
  text-align: center;
  padding: 10px;
  position: relative;
}

.thumb small {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.68rem;
}

.game-card h3 {
  margin: 0;
  padding: 10px 10px 4px;
  font-size: 0.88rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0 10px 12px;
}

.t1 { background: linear-gradient(145deg, #5b1d8f, #c43b8c); }
.t2 { background: linear-gradient(145deg, #0e3a2a, #1f8f55); }
.t3 { background: linear-gradient(145deg, #163a7a, #4aa0ff); }
.t4 { background: linear-gradient(145deg, #4a1408, #d95a1f); }
.t5 { background: linear-gradient(145deg, #5a3b08, #f0c14b); color: #1a1204; }
.t6 { background: linear-gradient(145deg, #3a0d12, #c41e3a); }
.t7 { background: linear-gradient(145deg, #102040, #2f6bff); }
.t8 { background: linear-gradient(145deg, #3a2208, #d97706); }
.t9 { background: linear-gradient(145deg, #1b1144, #7c3aed); }
.t10 { background: linear-gradient(145deg, #08241c, #10b981); }
.t11 { background: linear-gradient(145deg, #3f0d2a, #fb7185); }
.t12 { background: linear-gradient(145deg, #111827, #6b7280); }

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.cat-box h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-game {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mini-game:hover .thumb {
  filter: brightness(1.08);
}

.mini-game:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 12px;
}

.mini-game .thumb {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  font-size: 0.72rem;
}

.mini-game p {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo {
  background: rgba(10, 16, 36, 0.7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-inner {
  padding: 40px 0 20px;
}

.seo h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.seo h3 {
  margin: 24px 0 8px;
  font-size: 1.15rem;
}

.seo p,
.seo li {
  color: #c5cee6;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 6px 0;
}

.legal {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.age {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .promo-grid,
  .top-games,
  .cats,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-art {
    opacity: 0.45;
    width: min(210px, 38vw);
  }
}

@media (max-width: 760px) {
  .logo img {
    height: 40px;
  }

  .menu-btn {
    display: flex;
  }

  .header-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle:checked ~ .header-nav,
  .nav-toggle:checked ~ .header-actions {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 8px;
  }

  .header-actions {
    width: 100%;
    padding-bottom: 12px;
  }

  .header-actions .btn {
    flex: 1;
  }

  .top-games,
  .cats,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .top-games,
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel {
    min-height: 250px;
    padding: 22px 16px 20px;
  }

  .hero-art {
    display: none;
  }

  .promo-grid {
    display: flex;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    margin: 14px 0 8px;
    padding: 4px 0 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .promo-grid::-webkit-scrollbar {
    display: none;
  }

  .promo-card {
    flex: 0 0 76px;
    width: 76px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: center;
    scroll-snap-align: start;
  }

  .story-ring {
    padding: 3px;
    background: linear-gradient(135deg, #f9ce34, #ee2a7b 45%, #6228d7);
  }

  .story-ring.ring-2 {
    background: linear-gradient(135deg, #22d46a, #4d8bff);
  }

  .story-ring.ring-3 {
    background: linear-gradient(135deg, #ffe566, #ff6bd6);
  }

  .story-ring.ring-4 {
    background: linear-gradient(135deg, #36e078, #7c5cff);
  }

  .promo-icon {
    width: 62px;
    height: 62px;
    font-size: 1.45rem;
    box-shadow: 0 0 0 2px var(--bg);
  }

  .promo-title {
    display: none;
  }

  .promo-caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.2;
    color: #e8edf8;
    max-width: 76px;
  }

  .caption-full {
    display: none;
  }

  .caption-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
