:root {
  --sky: #070914;
  --sky-low: #15112E;
  --bone: #EFE8D8;
  --soft: #C9CBE0;
  --muted: #A9ADCB;
  --dim: #7A7FA8;
  --line: #2A2850;
  --accent: #FF3FB8;
  --pixel: 'Silkscreen', 'Courier New', monospace;
  --title: 'Press Start 2P', 'Courier New', monospace;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--bone); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pixel { font-family: var(--pixel); }

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--sky) 0px, var(--sky) 55%, var(--sky-low) 100%);
}
.wrap { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* The sky */
#sky { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 3px; height: 3px; }
/* Some plain stars flicker faintly, so the whole sky feels alive. */
.star.flicker { animation: flicker var(--d) ease-in-out var(--delay) infinite; }
@keyframes flicker { 0%, 100% { opacity: var(--a); } 50% { opacity: 1; } }

/* Sparkles: a pixel plus whose arms grow, with a glow and diagonal glints at the peak. */
.spark {
  --m: color-mix(in srgb, var(--c) 80%, transparent);
  --o2: color-mix(in srgb, var(--c) 55%, transparent);
  --o3: color-mix(in srgb, var(--c) 30%, transparent);
  --o4: color-mix(in srgb, var(--c) 14%, transparent);
  --dg: color-mix(in srgb, var(--c) 40%, transparent);
  position: absolute; width: var(--p); height: var(--p);
  background: #FFFFFF;
  box-shadow:
    calc(var(--p) * -1) 0 0 var(--m), var(--p) 0 0 var(--m),
    0 calc(var(--p) * -1) 0 var(--m), 0 var(--p) 0 var(--m);
  filter: drop-shadow(0 0 4px var(--c));
  animation: twinkle var(--d) ease-in-out var(--delay) infinite;
}
.spark::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  box-shadow:
    calc(var(--p) * -2) 0 0 var(--o2), calc(var(--p) * 2) 0 0 var(--o2),
    0 calc(var(--p) * -2) 0 var(--o2), 0 calc(var(--p) * 2) 0 var(--o2),
    calc(var(--p) * -3) 0 0 var(--o3), calc(var(--p) * 3) 0 0 var(--o3),
    0 calc(var(--p) * -3) 0 var(--o3), 0 calc(var(--p) * 3) 0 var(--o3),
    calc(var(--p) * -4) 0 0 var(--o4), calc(var(--p) * 4) 0 0 var(--o4),
    0 calc(var(--p) * -4) 0 var(--o4), 0 calc(var(--p) * 4) 0 var(--o4),
    calc(var(--p) * -1) calc(var(--p) * -1) 0 var(--dg), var(--p) calc(var(--p) * -1) 0 var(--dg),
    calc(var(--p) * -1) var(--p) 0 var(--dg), var(--p) var(--p) 0 var(--dg);
  animation: flare var(--d) ease-in-out var(--delay) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes flare { 0%, 20%, 80%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Header and hero */
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; }
.brand { font-family: var(--pixel); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; color: var(--bone); text-decoration: none; padding: 12px 0; }
.brand span { color: var(--accent); }
.nav-link { font-family: var(--pixel); font-size: 13px; letter-spacing: 0.14em; color: var(--muted); padding: 12px 0; text-decoration: none; }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 0; }
.mark { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.5em; font-size: clamp(30px, 6.4vw, 92px); font-weight: 400; }
.mark .line { display: block; white-space: nowrap; line-height: 1; font-family: var(--pixel); }
.mark .studio { font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 22px rgba(239, 232, 216, 0.18); }
.mark .games {
  font-size: 0.4em; letter-spacing: 0.6em; margin-right: -0.6em;
  color: var(--accent); text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}
.js .mark .line, .js .tagline { visibility: hidden; }
.ch { position: relative; visibility: visible; }
.ch.hidden { visibility: hidden; }
.tagline { margin: 64px 0 0; max-width: 30ch; font-size: 22px; line-height: 1.5; color: var(--soft); text-wrap: balance; }
.cursor {
  position: absolute; left: calc(100% + 0.12em); bottom: 0.18em;
  width: 0.5em; height: 1.05em;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: blink 1s steps(1) infinite;
}
.typing .cursor { animation: none; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }
.cta {
  margin-top: 40px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border: 2px solid var(--accent); color: var(--bone); text-decoration: none;
  font-family: var(--pixel); font-size: 13px; letter-spacing: 0.16em;
}
.cta:hover { background: var(--accent); color: var(--sky); }

.nav-links { display: flex; gap: 28px; }
.nav-link[aria-current="page"] { color: var(--bone); box-shadow: inset 0 -2px 0 var(--accent); }

/* Each page's content sits in the middle of the screen; the footer stays at the bottom. */
main { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.site-footer { position: relative; width: 100%; }

/* About */
#about { position: relative; padding: 80px 0; }
.about { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.eyebrow, .about .eyebrow { margin: 0; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.22em; color: var(--accent); font-weight: 400; }
.about p { margin: 0; font-size: 22px; line-height: 1.55; color: var(--soft); max-width: 36ch; text-wrap: pretty; }
.about .signoff { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.about .signoff .play { font-size: 20px; color: var(--bone); }
.about .sig { font-family: var(--pixel); font-weight: 700; font-size: 36px; line-height: 1; color: var(--accent); text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent); }

/* Contact */
#contact { position: relative; padding: 64px 0; }
.contact { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.contact h1 { margin: 0; font-family: var(--pixel); font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.1; }
.contact h1 span { color: var(--accent); }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
form { display: flex; flex-direction: column; gap: 24px; padding: 32px; background: rgba(21, 17, 46, 0.55); border: 2px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 240px; }
label { font-family: var(--pixel); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--bone);
  background: rgba(7, 9, 20, 0.7); border: 2px solid #3A3868; border-radius: 0; padding: 14px 16px;
}
input::placeholder, textarea::placeholder { color: #6E7299; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.trap { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fallback { font-size: 14px; color: var(--dim); }
button {
  font-family: var(--pixel); font-size: 13px; letter-spacing: 0.16em;
  min-height: 52px; padding: 0 28px; cursor: pointer;
  color: var(--sky); background: var(--accent); border: 2px solid var(--accent); border-radius: 0;
}
button:hover { background: transparent; color: var(--bone); }
button:disabled { opacity: 0.6; cursor: progress; }
.status { margin: 0; font-size: 16px; }
.status:empty { display: none; }
.status.ok { color: #9FE8B0; }
.status.err { color: #FF9AA8; }

footer {
  margin: 0 auto; padding: 20px 0 28px; border-top: 2px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dim);
}
footer .pixel { font-size: 12px; letter-spacing: 0.14em; }

@media (max-width: 560px) {
  .hero { padding: 60px 0; }
  .tagline { font-size: 19px; margin-top: 48px; }
  form { padding: 20px; }
  button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark, .spark::after, .star.flicker { animation: none; }
  .spark::after { opacity: 0.6; }
  .cursor { animation: none; }
}

.about .hi { margin: 0; font-family: var(--pixel); font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.1; color: var(--bone); max-width: none; }

/* Games */
#games { position: relative; padding: 56px 0 72px; }
#games .eyebrow { margin-bottom: 28px; }
.game { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px 48px; }
.game-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.game-title { display: flex; align-items: center; gap: 22px; }
.game-icon {
  width: 104px; height: 104px; flex: none; border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 40px rgba(215, 38, 61, 0.35);
}
.game h1 { margin: 0; font-family: var(--pixel); font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.game-text .status-chip {
  margin: 12px 0 0; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 11px; letter-spacing: 0.18em; color: var(--muted);
}
.game-text p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--soft); }
.game-text .hook { font-size: 24px; line-height: 1.45; color: var(--bone); text-wrap: pretty; }
.game-text .kicker { font-family: var(--pixel); font-size: 14px; letter-spacing: 0.08em; color: var(--accent); }
.release { margin-top: 8px; padding-top: 18px; border-top: 2px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.release-label { font-family: var(--pixel); font-size: 13px; letter-spacing: 0.16em; color: var(--bone); }
.stores { font-size: 16px; color: var(--muted); }

.game-media { flex: 1 1 500px; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.phone-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(250px, 100%); }
.phone-card figcaption { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--pixel); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.phone {
  position: relative; margin: 0; width: 100%; box-sizing: border-box;
  padding: 8px; border-radius: 34px; background: #12151A;
  box-shadow: 0 0 0 2px #2B343D, 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(215, 38, 61, 0.18);
}
.phone-video { display: block; width: 100%; aspect-ratio: 540 / 1172; height: auto; border-radius: 26px; background: #12151A; object-fit: cover; }
.sound-toggle {
  min-height: 40px; padding: 0 12px; font-size: 10px; letter-spacing: 0.14em;
  color: var(--bone); background: rgba(7, 9, 20, 0.75); border: 2px solid var(--line);
}
.sound-toggle:hover { background: rgba(7, 9, 20, 0.9); color: var(--bone); border-color: var(--accent); }
.sound-toggle[aria-pressed="true"] { border-color: var(--accent); }

@media (max-width: 560px) {
  .game-title { flex-direction: column; align-items: flex-start; gap: 16px; }
  .game-icon { width: 88px; height: 88px; border-radius: 20px; }
  .game-text .hook { font-size: 21px; }
  .sound-toggle { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
}

/* The Bone Collector's dancing skeletons */
.kickline { display: block; width: 100%; height: 93px; image-rendering: pixelated; margin: 4px 0 0; filter: drop-shadow(0 0 10px rgba(232, 223, 197, 0.12)); }

/* Footer links */
.footer-links { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.footer-links a { color: var(--muted); text-underline-offset: 4px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--bone); }

/* Privacy policy: a plain, readable column */
#privacy { position: relative; padding: 56px 0 72px; }
.policy { max-width: 680px; margin: 0 auto; padding: 40px; background: rgba(7, 9, 20, 0.82); border: 2px solid var(--line); }
.policy h1 { margin: 0 0 8px; font-family: var(--pixel); font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.policy h2 { margin: 32px 0 8px; font-family: var(--pixel); font-size: 14px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.policy p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: var(--soft); max-width: 62ch; }
.policy .effective { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.policy a { color: var(--bone); text-decoration-color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 560px) { .policy { padding: 22px; } }

/* Titles: Press Start 2P, where every letter (M included) is unmistakable. */
.game h1, .about .hi, .contact h1, .policy h1 { font-family: var(--title); font-weight: 400; letter-spacing: 0; }
.game h1 { font-size: clamp(18px, 2vw, 26px); line-height: 1.5; }
.about .hi { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.4; }
.contact h1 { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.3; }
.policy h1 { font-size: clamp(17px, 2vw, 22px); line-height: 1.55; }
.game h1 .title-line { display: block; white-space: nowrap; }


/* Playtest sign-up (unlisted) */
.playtest-head { display: flex; align-items: center; gap: 22px; }
.playtest-head .eyebrow { margin: 0 0 10px; }
.playtest-head .game-icon { width: 88px; height: 88px; border-radius: 20px; }
.contact .lede em { font-style: normal; color: var(--bone); }
.device { border: 0; padding: 0; margin: 0; flex: none; }
.device legend { padding: 0; margin-bottom: 10px; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; cursor: pointer;
  font-family: var(--body); font-size: 17px; letter-spacing: 0; color: var(--bone);
  border: 2px solid #3A3868; background: rgba(7, 9, 20, 0.7);
}
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { accent-color: #FF3FB8; width: 18px; height: 18px; margin: 0; }
@media (max-width: 560px) { .playtest-head { flex-direction: column; align-items: flex-start; } }
