/* Shared by every game's site. Each game's /theme.css sets --accent, --bg and --glow. */
:root {
  color-scheme: dark;
  --bg: #111014;
  --accent: #f08a3c;
  --glow: #f08a3c;
  --text: #f6f2ec;
  --muted: rgba(246, 242, 236, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.06);
  --good: #8be39a;
  --bad: #ff9a8a;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero: the whole first screen ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
}
/* Dark at the top for the logo, clear in the middle, solid at the bottom for the form. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg) 55%, transparent) 0%,
    transparent 22%, transparent 42%,
    color-mix(in srgb, var(--bg) 85%, transparent) 68%,
    var(--bg) 100%);
}
/* No key art yet: a themed glow with a fan of hero cards. */
.hero:not(.has-image) {
  background:
    radial-gradient(60% 40% at 50% 28%, color-mix(in srgb, var(--glow) 38%, transparent), transparent 70%),
    radial-gradient(80% 50% at 50% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    var(--bg);
}
.hero-art {
  position: absolute; z-index: -2; left: 50%; top: 8%;
  width: min(92vw, 520px); height: 40svh; transform: translateX(-50%);
}
.hero-fig {
  position: absolute; bottom: 0; width: 42%; aspect-ratio: 440 / 768; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.hero-fig.f0 { left: 29%; z-index: 2; width: 46%; }
.hero-fig.f1 { left: 2%; transform: rotate(-8deg) translateY(4%); filter: brightness(0.8); }
.hero-fig.f2 { right: 2%; transform: rotate(8deg) translateY(4%); filter: brightness(0.8); }
.hero:not(.has-image)::after {
  background: linear-gradient(to bottom, transparent 40%, color-mix(in srgb, var(--bg) 92%, transparent) 64%, var(--bg) 100%);
}

.hero-top { display: flex; justify-content: center; }
.logo { width: min(64vw, 300px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6)); }
.wordmark {
  font-weight: 800; font-size: 22px; letter-spacing: 0.16em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-copy { width: 100%; max-width: 520px; margin: 0 auto; text-align: center; }
.hook {
  margin: 0 0 10px;
  font-size: clamp(38px, 11vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}
.sub { margin: 0 auto 18px; max-width: 34em; color: var(--muted); font-size: 17px; text-wrap: pretty; }

/* ---------- Sign-up ---------- */
.waitlist-form { margin: 0; }
.field {
  display: flex; gap: 6px; padding: 6px;
  background: rgba(10, 10, 12, 0.6); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.field input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: 17px; text-align: center;
}
.field input::placeholder { color: rgba(246, 242, 236, 0.55); }
.field input:focus { outline: none; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn {
  appearance: none; border: 0; border-radius: 999px; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: #140b04; font: 800 16px/1 system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.waitlist-form.done .field { display: none; }
@media (max-width: 360px) {
  .field { flex-direction: column; border-radius: 20px; }
  .btn { width: 100%; }
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.4em; margin: 8px 0 0; font-weight: 700; }
.status.ok { color: var(--good); font-size: 18px; }
.status.err { color: var(--bad); }

.reward { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.reward svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

.platforms { display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platforms li {
  display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; min-width: 146px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); border-radius: 12px; text-align: left;
}
.platforms svg { width: 24px; height: 24px; flex: none; }
.platforms span { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.15; }
.platforms small { font-weight: 500; font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
main { max-width: 960px; margin: 0 auto; }
.section { padding: 40px 16px 8px; }
.section h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; text-align: center; }
.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: none; scroll-snap-align: center; }
.shot { width: min(64vw, 260px); }
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.card { width: min(40vw, 170px); }
.card img { width: 100%; aspect-ratio: 440 / 768; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.card figcaption { margin-top: 8px; text-align: center; line-height: 1.25; }
.card strong { display: block; }
.card span { color: var(--muted); font-size: 13px; }
@media (min-width: 720px) { .rail { justify-content: center; flex-wrap: wrap; overflow: visible; } }

.features { display: grid; gap: 12px; margin: 0 auto; padding: 0; list-style: none; max-width: 560px; }
.features li { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.features strong { display: block; font-size: 17px; }
.features span { color: var(--muted); font-size: 15px; }


footer { padding: 40px 16px max(32px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 13px; }
footer p { margin: 4px 0; }

/* Privacy and other text pages. */
.prose { max-width: 640px; margin: 0 auto; padding: 32px 16px; }
.prose h1 { font-size: 34px; }
.prose a { color: var(--accent); }

/* Legal drafts (tools/legal-pages.mjs) */
.legal h2 { font-size: 22px; margin-top: 28px; }
.legal li { margin: 6px 0; }
.legal .draft { display: inline-block; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 6px; font-size: 14px; }
.legal .legal-nav { margin-top: 40px; font-size: 14px; }
mark.todo { background: #ffd54a; color: #111; padding: 0 4px; border-radius: 3px; }
