/* Shared design tokens and chrome used by the landing page and every game.
   The site is dark-themed only, by design: there is no light palette. */
:root {
  /* Dark "toy arcade" palette: shared by the landing page and every game. */
  --bg: #10121a;
  --surface: #191c26;
  --surface-2: #232735;
  --text: #eef0f7;
  --muted: #9ba1b6;
  --border: #2b3040;
  --dot: #262a39;
  --pink: #ff6fae;
  --cyan: #2ec4e6;
  --lime: #9bd531;
  --orange: #f39237;
  --yellow: #ffd23f;
  --accent: var(--pink);
  --accent-contrast: #10121a;
  --shadow: 0 2px 4px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
  --radius: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Titan One", "Arial Rounded MT Bold", var(--font);
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

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

html, body { margin: 0; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.5px, transparent 1.6px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Monetization ---------- */

.ad-slot {
  margin: 40px auto;
  max-width: 970px;
  text-align: center;
}
.ad-slot[hidden] { display: none; }

.ad-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 90px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.support-link:hover { border-color: var(--accent); color: var(--accent); }

.legal-link {
  color: var(--muted);
  font-size: 13px;
}
.legal-link:hover { color: var(--accent); }

/* ---------- Game page chrome ---------- */

.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.game-bar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.back-link:hover { color: var(--accent); }

.game-bar .spacer { min-width: 80px; display: flex; justify-content: flex-end; }

.game-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
}

.game-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px 32px;
}
