:root {
  --blue: #1b5cff;
  --blue-deep: #0b3fe0;
  --blue-ink: #062db8;
  --ink: #14141c;
  --muted: #6b6b78;
  --line: #ececf3;
  --paper: #f6f7fd;
  --white: #ffffff;
  --gold: #f5c518;
  --btn: #26262e;
  --cyan: #2ad4ff;
  --lime: #7dff4a;
  --purple: #8b5cff;
  --orange: #ff9f2e;
  --pink: #ff4da6;
  --shadow: 0 28px 70px rgba(27, 92, 255, 0.16);
  --wrap: 1120px;
  --radius: 24px;
  --font: "Nunito", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-deep);
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 20, 28, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--paper);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.play-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip-short {
  display: none;
}

.play-chip:hover {
  background: #111118;
  color: #fff !important;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 20px;
  background:
    radial-gradient(circle at 70% 40%, rgba(42, 212, 255, 0.14), transparent 36%),
    radial-gradient(circle at 20% 10%, rgba(139, 92, 255, 0.1), transparent 28%),
    repeating-conic-gradient(from 0deg at 72% 48%, rgba(27, 92, 255, 0.05) 0 8deg, transparent 8deg 16deg),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.hero-copy {
  padding-top: 56px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 900;
  margin: 10px 0 12px;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 28px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-play {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 260px;
  background: var(--btn);
  color: #fff !important;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px 28px;
  box-shadow: 0 14px 30px rgba(20, 20, 28, 0.18);
  position: relative;
  overflow: hidden;
}

.btn-play::before,
.btn-play::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.btn-play::before {
  background: var(--cyan);
  top: 8px;
  left: 10px;
}

.btn-play::after {
  background: var(--pink);
  right: 12px;
  bottom: 8px;
}

.btn-play strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.btn-play span {
  font-size: 0.82rem;
  color: #c8c8d2;
  font-weight: 700;
}

.btn-play:hover {
  background: #111118;
}

.ghost-link {
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stats {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 0;
  flex: 1 1 140px;
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.04);
}

.stat b {
  display: block;
  font-size: 1.05rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  width: 22px;
  height: 6px;
  border-radius: 6px;
  animation: drift 7s ease-in-out infinite;
}

.confetti i:nth-child(1) { background: var(--cyan); top: 8%; left: 10%; transform: rotate(-28deg); }
.confetti i:nth-child(2) { background: var(--lime); top: 18%; right: 8%; width: 14px; animation-delay: -1s; }
.confetti i:nth-child(3) { background: var(--purple); top: 42%; left: 2%; transform: rotate(40deg); animation-delay: -2s; }
.confetti i:nth-child(4) { background: var(--orange); bottom: 22%; right: 6%; transform: rotate(-18deg); }
.confetti i:nth-child(5) { background: var(--pink); bottom: 12%; left: 16%; width: 10px; height: 10px; border-radius: 50%; }
.confetti i:nth-child(6) { background: var(--gold); top: 6%; right: 28%; width: 8px; height: 8px; border-radius: 50%; animation-delay: -3s; }
.confetti i:nth-child(7) { background: var(--cyan); bottom: 36%; left: 8%; transform: rotate(70deg); }
.confetti i:nth-child(8) { background: var(--lime); top: 58%; right: 0; transform: rotate(-50deg); }

.phone {
  width: min(280px, 72vw);
  max-width: 100%;
  margin: 0;
  background: #16161d;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: floaty 5.5s ease-in-out infinite;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
  border-radius: 28px;
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--paper);
}

.section-head {
  text-align: center;
  max-width: 42ch;
  margin: 0 auto 36px;
}

.section-head p {
  color: var(--muted);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(20, 20, 40, 0.04);
}

.step-no {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.s1 { background: var(--blue); }
.s2 { background: var(--purple); }
.s3 { background: #111118; }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--paper);
}

.rewards {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}

.rewards::before {
  content: "GET REWARDS";
  position: absolute;
  inset: auto 0 18px;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  opacity: 0.12;
  pointer-events: none;
}

.rewards h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 8px;
}

.rewards p {
  margin: 0 0 24px;
  font-weight: 700;
  opacity: 0.92;
}

.btn-play.light {
  background: #fff;
  color: var(--ink) !important;
}

.btn-play.light span {
  color: var(--muted);
}

.btn-play.light::before {
  background: var(--blue);
}

.site-foot {
  background: #0f1020;
  color: #d7d7e2;
  padding: 42px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-foot a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.site-foot a:hover {
  color: var(--cyan);
}

.site-foot h3 {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8da3;
  margin-bottom: 12px;
}

.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.tiny {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 0.85rem;
  color: #8d8da3;
}

.doc {
  padding: 48px 0 80px;
  background:
    radial-gradient(circle at 90% 0, rgba(27, 92, 255, 0.08), transparent 30%),
    #fff;
}

.doc-inner {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 8px;
}

.meta {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 28px;
}

.doc h2 {
  font-size: 1.35rem;
  margin: 32px 0 10px;
}

.doc p,
.doc li {
  color: #3a3a48;
  font-weight: 700;
  overflow-wrap: break-word;
}

.doc ul,
.doc ol {
  padding-left: 1.2rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 16px 0 24px;
}

.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--paper);
}

.toc {
  background: var(--paper);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 28px;
}

.toc a {
  font-weight: 800;
  text-decoration: none;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: #16161d;
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cookie[hidden] {
  display: none !important;
}

.cookie p {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.cookie p a {
  color: var(--cyan);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.cookie .accept {
  background: var(--blue);
  color: #fff;
}

.cookie .decline {
  background: #2a2a36;
  color: #fff;
}

.mobile-cta {
  display: none;
}

.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

@media (max-width: 860px) {
  .hero-grid,
  .steps,
  .features,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: none !important;
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar-inner .play-chip {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 10px 14px;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    border: 0;
    background: transparent;
    padding: 0 0 12px;
    gap: 10px 16px;
  }

  .chip-full {
    display: none;
  }

  .chip-short {
    display: inline;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-play {
    min-width: 0;
    width: 100%;
  }

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

  .hero-copy {
    padding-top: 8px;
  }

  .brand span {
    font-size: 1.02rem;
  }

  .hero {
    padding-top: 20px;
  }

  .stage {
    min-height: 0;
    order: -1;
  }

  .hero-grid {
    gap: 12px;
  }

  .phone {
    width: min(250px, 70vw);
  }

  .mobile-cta {
    display: block;
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.94);
    padding: 10px 16px 14px;
    border-top: 1px solid var(--line);
    z-index: 30;
  }

  .mobile-cta .btn-play {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
    max-width: calc(100vw - 32px);
  }

  .cookie p,
  .section-head,
  .card,
  .doc-inner,
  .lede {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  body:has(.mobile-cta) .cookie {
    bottom: 108px;
  }

  .doc table {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone,
  .confetti i {
    animation: none;
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.hub-hero {
  padding: 72px 0 24px;
}

.hub-hero-inner {
  max-width: 40rem;
}

.hub-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 10px 0 14px;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 20, 40, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.game-card.coming-soon {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-style: dashed;
  box-shadow: none;
  background: #fbfcff;
}

.game-card.coming-soon p {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.game-card-media {
  display: grid;
  place-items: center;
  padding: 28px 20px 8px;
  background:
    radial-gradient(circle at 70% 30%, rgba(42, 212, 255, 0.16), transparent 42%),
    var(--paper);
}

.game-card-media img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.game-card-body {
  padding: 8px 22px 22px;
}

.game-card-body h3 {
  font-size: 1.45rem;
  margin: 4px 0 8px;
}

.game-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.game-card-body h3 a:hover {
  color: var(--blue);
}

.game-card-body > p {
  color: var(--muted);
  font-weight: 700;
}

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.game-card-legal {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.legal-game {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 22px 0;
}

.legal-game h2 {
  margin-top: 0;
}

.legal-game code {
  font-size: 0.85em;
  color: var(--muted);
}
