/* Number Puzzle Lab: one static page, no scripts, cookies or web fonts. Light and dark follow the device. */

:root {
  color-scheme: light dark;
  --bg: #fbfaff;
  --surface: #f2effb;
  --text: #1d1a2b;
  --muted: #5b5670;
  --border: #dcd5ee;
  --link: #4e31aa;
  --brand-from: #3a1078;
  --brand-to: #3795bd;
  --accent: #ffd23f;
  --on-accent: #241047;
  --live: #1f8a4c;
  --soon: #b0560b;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019;
    --surface: #1c1829;
    --text: #ece9f5;
    --muted: #aaa4bf;
    --border: #342c4a;
    --link: #bcaaff;
    --brand-from: #2a0f5c;
    --brand-to: #24667f;
    --live: #5fd08f;
    --soon: #ffb36b;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--font);
}

a { color: var(--link); }

.hero {
  background: linear-gradient(180deg, var(--brand-from), var(--brand-to));
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 3.25rem;
}
.hero .logo { display: block; margin: 0 auto 1rem; width: 112px; height: 112px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 7vw, 3rem); font-weight: 900; letter-spacing: -0.01em; }
.hero .tagline { margin: 0.75rem auto 0; max-width: 32rem; font-size: 1.2rem; opacity: 0.95; }

main { max-width: 52rem; margin: 0 auto; padding: 0 16px; }

.game {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.game-head { display: flex; align-items: center; gap: 1rem; }
.game-head img { width: 80px; height: 80px; border-radius: 20px; flex: none; }
.game h2 { margin: 0; font-size: 1.75rem; }
.status { margin: 0.1rem 0 0; font-weight: 700; }
.status.live { color: var(--live); }
.status.soon { color: var(--soon); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.get {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
}
.get:hover, .get:focus-visible { filter: brightness(0.95); }
.more { font-weight: 700; }

.small { font-size: 0.9rem; color: var(--muted); }

.follow { text-align: center; margin: 2.5rem 0; }
.follow h2 { margin-bottom: 0.25rem; }
.follow p { margin-top: 0; color: var(--muted); }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 16px 2.5rem;
}
footer p { margin: 0.3rem 0; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .game { padding: 1.1rem; }
  .shots { gap: 0.5rem; }
  .game-head img { width: 64px; height: 64px; border-radius: 16px; }
}
