:root {
  --bg: #06101f;
  --bg-top: #0e2038;
  --panel: rgba(10, 19, 34, 0.78);
  --panel-strong: rgba(10, 19, 34, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f8ff;
  --muted: #afbdd4;
  --accent: #5eead4;
  --accent-strong: #22c55e;
  --accent-soft: rgba(94, 234, 212, 0.14);
  --gold: #f6c65b;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top, rgba(94, 234, 212, 0.16), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(246, 198, 91, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(6, 16, 31, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Arial Black", "Avenir Next Condensed", sans-serif;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #041019;
  font-size: 20px;
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.24);
}

.brand-copy span {
  display: block;
}

.brand-title {
  font-size: 18px;
}

.brand-subtitle {
  font-size: 11px;
  font-family: "Avenir Next", "Segoe UI Variable", sans-serif;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.8);
}

.hero h1 {
  margin: 18px 0 14px;
  font-family: "Arial Black", "Avenir Next Condensed", sans-serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #041019;
  box-shadow: 0 18px 38px rgba(34, 197, 94, 0.22);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost {
  color: var(--muted);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -25% -35% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.22), transparent 65%);
}

.phone-shell {
  padding: 18px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scoreboard {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.players {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.player-chip {
  flex: 1;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.player-chip strong,
.metric strong {
  display: block;
  font-size: 16px;
}

.player-chip span,
.metric span {
  color: var(--muted);
  font-size: 13px;
}

.guess-board {
  display: grid;
  gap: 12px;
}

.guess-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.guess-digits {
  display: flex;
  gap: 8px;
}

.digit {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 20px;
  font-weight: 900;
}

.guess-meta {
  display: flex;
  gap: 8px;
}

.meta-badge {
  min-width: 44px;
  padding: 8px 10px;
  text-align: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.meta-green {
  color: #03220d;
  background: #86efac;
}

.meta-yellow {
  color: #3b2500;
  background: #fde68a;
}

.meta-red {
  color: #3a0812;
  background: #fda4af;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section {
  padding: 34px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 12px;
  font-family: "Arial Black", "Avenir Next Condensed", sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.feature-grid,
.live-grid,
.mode-grid,
.steps-grid,
.legal-grid {
  display: grid;
  gap: 18px;
}

.live-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mode-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.legal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-bottom: 10px;
}

.stats-card {
  min-height: 100%;
}

.stats-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stats-card-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stats-rank {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.stats-flag {
  font-size: 22px;
}

.stats-copy {
  min-width: 0;
}

.stats-copy strong {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-copy span {
  color: var(--muted);
  font-size: 12px;
}

.stats-points {
  text-align: right;
}

.stats-points strong {
  display: block;
  font-size: 18px;
}

.stats-points span {
  color: var(--muted);
  font-size: 12px;
}

.loading-state {
  padding: 16px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.icon-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 900;
}

.cta {
  padding: 36px 0 56px;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
  padding: 28px;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.store-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 26px 0 46px;
  color: var(--muted);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-shell {
  padding: 46px 0 54px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.page-card {
  padding: 28px;
}

.page-card + .page-card {
  margin-top: 18px;
}

.page-card p + p,
.page-card p + ul,
.page-card ul + p {
  margin-top: 12px;
}

.page-card ul {
  padding-left: 18px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .cta-card,
  .feature-grid,
  .mode-grid,
  .steps-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 68px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 13px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero p,
  .section p {
    font-size: 16px;
  }

  .players,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .players {
    flex-direction: column;
  }

  .guess-row {
    flex-direction: column;
    align-items: stretch;
  }

  .guess-meta {
    justify-content: flex-start;
  }
}
