:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.07);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --accent: #44d7b6;
  --accent-2: #ffc857;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(68, 215, 182, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 200, 87, 0.14), transparent 25%),
    linear-gradient(180deg, #0a1526 0%, var(--bg) 100%);
  color: var(--text);
}

body {
  padding: 24px 16px 40px;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-bar,
.hero,
.section-head,
.content-grid {
  display: grid;
  gap: 16px;
}

.site-bar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 300;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, #0f1c35 0%, #08111f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.28);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #1d68f3 0 36%, #bde93b 36% 66%, #08111f 66% 100%);
  opacity: 0.95;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-switcher button,
.pill,
.stat,
.legend-swatch {
  border: 0;
  border-radius: 999px;
}

.language-switcher button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
  transition: 180ms ease;
}

.language-switcher button.active {
  background: rgba(68, 215, 182, 0.18);
  color: var(--accent);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  align-items: stretch;
  margin-bottom: 16px;
}

.hero-copy,
.hero-side,
.board-section,
.content-grid > .panel {
  padding: 24px;
}

.hero-head,
.stats,
.section-head,
.content-grid {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-head {
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.pill.accent {
  background: rgba(68, 215, 182, 0.16);
  color: var(--accent);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 10px;
}

.lead,
.panel p,
.bullet-list,
.activity-item small {
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  gap: 14px;
  margin-top: 22px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(29, 104, 243, 0.24), rgba(68, 215, 182, 0.18)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(68, 215, 182, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(68, 215, 182, 0.45);
  background:
    linear-gradient(135deg, rgba(29, 104, 243, 0.3), rgba(68, 215, 182, 0.22)),
    rgba(255, 255, 255, 0.1);
}

.store-button-label {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.store-button-title {
  font-size: 1.35rem;
  line-height: 1;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.stat {
  min-width: 124px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat span,
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.stat strong {
  font-size: 1.8rem;
  line-height: 1;
}

.board-section {
  margin-bottom: 16px;
}

.hero-single {
  grid-template-columns: 1fr;
}

.section-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-swatch {
  width: 22px;
  height: 22px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.board-card {
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#board-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: white;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.content-grid {
  gap: 16px;
  align-items: start;
}

.content-grid > .panel {
  flex: 1 1 320px;
}

.bullet-list {
  padding-left: 20px;
}

.bullet-list li + li {
  margin-top: 10px;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
}

.activity-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 6px;
}

.activity-item strong {
  display: block;
  margin-bottom: 4px;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-rank {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 200, 87, 0.14);
  color: var(--accent-2);
  font-weight: 700;
}

.leaderboard-copy strong,
.leaderboard-score strong {
  display: block;
}

.leaderboard-copy small,
.leaderboard-score small {
  color: var(--muted);
}

.leaderboard-score {
  text-align: right;
}

.videos-section {
  padding: 24px;
  margin-bottom: 16px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.video-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.video-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  image-rendering: pixelated;
}

.video-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.video-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

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

.site-footer a,
.privacy-content a {
  color: var(--accent);
}

.privacy-content {
  display: grid;
  gap: 18px;
}

.privacy-content h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.privacy-content h2 {
  margin-top: 10px;
}

.privacy-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

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

  .site-bar {
    grid-template-columns: 1fr;
  }

  .language-switcher {
    justify-content: flex-start;
  }
}
