/* Electric Crust: Galactic Pizza Delivery, electriccrustgame.com.
   The look comes from the swampcityrecs.com stylesheet: the same palette,
   fonts, drifting starfield, CRT scanlines and neon type, trimmed to what
   these pages use. No inline styles anywhere, so the Content-Security-Policy
   in _headers can allow styles from this file only. */

/* Self-hosted fonts: no third-party CDN, no external requests.
   Press Start 2P and Chakra Petch are SIL Open Font License; the licence
   texts sit beside the font files. */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/press-start-2p-400.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/chakra-petch-400.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/chakra-petch-500.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/chakra-petch-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg:        #08110f;
  --bg-2:      #0c1a17;
  --ink:       #e7fbf4;
  --ink-dim:   #8fb3aa;
  --cyan:      #7df9ff; /* Tier 1 */
  --purple:    #b44dff; /* Tier 2 */
  --orange:    #ff6b35; /* Tier 3 */
  --line:      rgba(125, 249, 255, 0.14);
  --display:   "Press Start 2P", monospace;
  --body:      "Chakra Petch", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

/* Drifting starfield (space-shooter motion), drawn by /assets/site.js */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* CRT scanlines + vignette overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
nav {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; max-width: 1040px; margin: 0 auto;
}
.brand {
  font-family: var(--display); font-size: 13px; letter-spacing: 1px;
  color: var(--cyan); text-decoration: none;
  text-shadow: 0 0 10px rgba(125,249,255,0.6);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 2px; transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cyan); }

/* ---------- HERO ---------- */
header.hero {
  position: relative; z-index: 1;
  min-height: 86vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 60px 24px;
}
header.hero.hero-compact { min-height: 0; padding: 70px 24px 50px; }
.marquee {
  font-family: var(--display);
  font-size: clamp(1.6rem, 7vw, 4.4rem);
  line-height: 1.15; letter-spacing: 2px; color: #fff;
  text-shadow:
    0 0 7px var(--cyan), 0 0 18px rgba(125,249,255,0.7),
    0 0 38px rgba(125,249,255,0.35);
  animation: flicker 6s infinite;
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .72; } 94% { opacity: 1; } 96% { opacity: .85; }
}
.tagline {
  margin-top: 26px; font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--ink); max-width: 34ch; font-weight: 500;
}
.sub {
  margin-top: 14px; color: var(--ink-dim); max-width: 52ch;
  font-size: 1.02rem;
}
.cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block;
  font-family: var(--display); font-size: 0.66rem; letter-spacing: 1px;
  padding: 16px 22px; text-decoration: none; text-transform: uppercase;
  border: 2px solid var(--cyan); color: var(--cyan); background: transparent;
  transition: all .2s; box-shadow: inset 0 0 0 rgba(125,249,255,0);
}
.btn:hover { background: var(--cyan); color: var(--bg); box-shadow: 0 0 24px rgba(125,249,255,0.55); }
.btn.ghost { border-color: var(--ink-dim); color: var(--ink-dim); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; box-shadow: none; }

/* ---------- SECTIONS ---------- */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.eyebrow {
  font-family: var(--display); font-size: 0.62rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow.cyan   { color: var(--cyan); }
.eyebrow.purple { color: var(--purple); }
.eyebrow.orange { color: var(--orange); }
h2 { font-family: var(--display); font-size: clamp(1.1rem, 3.2vw, 1.7rem); line-height: 1.4; margin-bottom: 22px; }
section p, section li { color: var(--ink-dim); max-width: 60ch; font-size: 1.05rem; }
section p + p, section p + ul, section ul + p { margin-top: 16px; }
section ul { padding-left: 1.3em; }
section li + li { margin-top: 8px; }
.lead-in { color: var(--ink); }
.btn-row { margin-top: 26px; }

.game {
  margin-top: 30px; padding: 30px; border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  background: linear-gradient(180deg, rgba(180,77,255,0.05), transparent);
}
.platforms { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
/* Not uppercased, unlike swampcityrecs.com, so "iOS" keeps Apple's spelling. */
.chip {
  font-size: 0.78rem; letter-spacing: 1px;
  padding: 7px 13px; border: 1px solid var(--line); color: var(--ink-dim);
}

/* ---------- SCREENSHOTS ---------- */
.stills {
  margin-top: 28px; display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
.stills img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border: 1px solid var(--line);
}
.stills img:first-child { grid-column: 1 / -1; border-top: 3px solid var(--cyan); }

/* ---------- SUPPORT ---------- */
.mail {
  font-family: var(--display); font-size: 0.8rem; color: var(--orange);
  text-decoration: none; text-shadow: 0 0 12px rgba(255,107,53,0.5);
  word-break: break-all;
}
.mail:hover { text-decoration: underline; }
.mail-line { margin-top: 18px; }

/* ---------- FOOTER ---------- */
footer {
  position: relative; z-index: 1;
  padding: 50px 24px; text-align: center; border-top: 1px solid var(--line);
  color: var(--ink-dim); font-size: 0.85rem;
}
footer p + p { margin-top: 10px; }
footer .foot-links { margin-bottom: 20px; }
footer .tm { font-size: 0.78rem; opacity: 0.7; }
footer a { color: var(--ink-dim); }
footer a:hover { color: var(--cyan); }
.foot-link {
  text-decoration: none;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem;
  transition: color .2s;
}

/* ---------- PHONE ---------- */
@media (max-width: 640px) {
  .stills { grid-template-columns: 1fr; }
  .game { padding: 22px; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  nav { padding: 18px 16px; }
  .wrap { padding: 0 16px; }
  header.hero { padding: 50px 16px; }
  header.hero.hero-compact { padding: 56px 16px 40px; }
  .brand { font-size: 11px; }
  .nav-links { gap: 16px; }
  .nav-links a { letter-spacing: 1px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  #stars { display: none; }
  html { scroll-behavior: auto; }
}
