/* Colorbars: the game's page and its privacy policy. */
:root {
  --hero-bg: radial-gradient(120% 90% at 50% 0%, #4A3270 0%, #2C1F45 50%, #1F1733 100%);
  --hero-text: #F2EFF8;
  --text: #16141C;
  --muted: #5E5A6B;
  --line: #E7E4EE;
  --page: #FFFFFF;
  --rounded: "SF Pro Rounded", ui-rounded, "Nunito", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* Hero: dark, the wordmark and tagline, then the bars sorting. */
.hero { background: var(--hero-bg); color: var(--hero-text); text-align: center; padding: 88px 16px 72px; overflow: hidden; }
.hero h1 { margin: 0; font-family: var(--rounded); font-weight: 900; font-size: clamp(52px, 11vw, 104px);
  letter-spacing: -0.03em; line-height: 1; }
.hero .tagline { margin: 16px auto 0; max-width: 30ch; font-size: clamp(18px, 2.6vw, 22px); font-weight: 500;
  opacity: .72; text-wrap: balance; }
/* Taller than the bars, and faded at the top, so they drop in and flick away through the fade. */
.sort { display: block; width: min(100%, 760px); aspect-ratio: 760 / 460; margin: 8px auto 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
.availability { display: inline-block; margin-top: 28px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); font-family: var(--rounded); font-weight: 700; font-size: 17px;
  letter-spacing: .01em; }

/* The three modes. */
.modes { max-width: 1080px; margin: 0 auto; padding: 88px 24px 96px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 56px; }
.mode canvas { display: block; width: 120px; height: 64px; }
.mode h2 { margin: 20px 0 4px; font-family: var(--rounded); font-weight: 900; font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.mode .line { margin: 0 0 12px; font-weight: 600; color: var(--text); }
.mode p { margin: 0; color: var(--muted); }
@media (max-width: 820px) {
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .modes { grid-template-columns: 1fr; gap: 48px; padding: 64px 16px 72px; max-width: 560px; }
}

/* Footer. */
footer { border-top: 1px solid var(--line); padding: 28px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Privacy policy: a short dark bar, then the text. */
.bar { background: var(--hero-bg); color: var(--hero-text); padding: 20px 0; }
.bar .inner { padding: 0 16px; }
.bar a { font-family: var(--rounded); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
.bar .inner, .policy { max-width: 680px; margin: 0 auto; }
.policy { padding: 56px 16px 80px; }
.policy h1 { margin: 0 0 4px; font-family: var(--rounded); font-weight: 900; font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.policy .effective { margin: 0 0 32px; color: var(--muted); }
.policy h2 { margin: 36px 0 8px; font-size: 20px; }
.policy p { margin: 0 0 12px; }

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