:root {
  --bg: #0b0f15;
  --panel: #161d27;
  --panel-hi: #202a36;
  --chip: #121821;
  --chip-hi: #1f2935;
  --stroke: #06090d;
  --ink: #eef2f6;
  --dim: #8c9ab0;
  --gold: #ffd94d;
  --accent: #ffd94d;
  --wrap: 1180px;
}

/* Press Start 2P, SIL Open Font License 1.1 — see assets/fonts/OFL.txt.
   The same face the games set their wordmarks in. */
@font-face {
  font-family: 'Press Start 2P';
  src: url('fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, .card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }

.dim { color: var(--dim); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

.wordmark {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
}

.ph {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px dashed var(--dim);
  border-radius: 6px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.pip {
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 9px;
  background: var(--accent);
  border-radius: 2px;
  vertical-align: middle;
}

/* --- nav --------------------------------------------------------------- */
.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav nav { display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.nav a[aria-current] { color: var(--gold); }

/* --- hero -------------------------------------------------------------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero__line { font-size: 20px; max-width: 30ch; }
.hero__note { font-size: 14px; }
.hero__art { display: flex; gap: 18px; justify-content: center; align-items: center; }
.hero__art .phone { --phone-w: 196px; }
.hero__art .phone:nth-child(2) { --phone-w: 224px; z-index: 1; }

.phone {
  margin: 0;
  /* a screenshot is 540 px wide; without an explicit width the figure sizes to
     the image and the hero grid blows out sideways */
  width: var(--phone-w, 210px);
  padding: 7px;
  background: #121a24;
  border-radius: 26px;
  box-shadow: 0 8px 0 var(--stroke), 0 22px 44px rgba(0,0,0,0.55),
              0 0 0 1px var(--chip-hi), 0 0 54px color-mix(in srgb, var(--glow) 26%, transparent);
  flex-shrink: 0;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* --- promises ---------------------------------------------------------- */
.promises {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.promise {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: inset 0 3px 0 var(--panel-hi), 0 4px 0 var(--stroke);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.promise h3 { font-size: 17px; }
.promise p { font-size: 15px; }

/* --- sections ---------------------------------------------------------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section h2 { font-size: 30px; max-width: 26ch; letter-spacing: -0.3px; }
.section__lede { max-width: 62ch; font-size: 16px; }

.cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: inset 0 3px 0 var(--panel-hi), 0 4px 0 var(--stroke);
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 3px 0 var(--panel-hi), 0 7px 0 var(--stroke),
              0 0 44px color-mix(in srgb, var(--accent) 22%, transparent);
}
.card__hit { position: absolute; inset: 0; border-radius: 18px; z-index: 1; }
.card__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--chip-hi);
}
.card__art--empty {
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  border: 1px dashed var(--dim);
}
.card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__tagline { font-size: 15px; font-weight: 700; color: var(--accent); }
.card__blurb { font-size: 14.5px; color: var(--dim); }
.card__content { font-size: 13.5px; font-weight: 700; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; position: relative; z-index: 2; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 156px;
  padding: 8px 16px;
  background: var(--chip);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--stroke), inset 0 2px 0 var(--chip-hi);
  cursor: not-allowed;
}
.store--compact { min-width: 132px; padding: 6px 12px; }
.store__label { font-size: 14px; font-weight: 800; }
.store--compact .store__label { font-size: 12.5px; }
.store__note { font-size: 11px; color: var(--dim); letter-spacing: 0.4px; }

/* --- steam ------------------------------------------------------------- */
.section--steam {
  background: linear-gradient(180deg, transparent, rgba(85,182,255,0.05), transparent);
}
.steam__row { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.steam__capsule {
  aspect-ratio: 460 / 215;
  border: 1px dashed var(--dim);
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.steam__meta { display: flex; flex-direction: column; gap: 12px; justify-content: center; font-size: 15px; }

/* --- a game's own page -------------------------------------------------- */
.game { max-width: var(--wrap); margin: 0 auto; padding: 0 28px 40px; }
.game__hero {
  padding: 32px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.game__hero > div { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.game__tagline { font-size: 21px; font-weight: 700; color: var(--accent); }
.game__blurb { font-size: 17px; max-width: 52ch; color: var(--dim); }
.beats {
  margin: 0;
  padding: 22px 24px;
  list-style: none;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: inset 0 3px 0 var(--panel-hi), 0 4px 0 var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15.5px;
}
.beats li { padding-left: 22px; position: relative; }
.beats li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 2px;
}
.gallery { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 30px; }
.gallery .phone { --glow: var(--accent); --phone-w: 232px; }
.back { padding: 16px 0 0; font-weight: 700; }

/* --- prose (privacy, terms) --------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: 34px; }
.prose h2 { font-size: 20px; padding-top: 12px; }
.prose p, .prose li { color: var(--dim); font-size: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* --- footer ------------------------------------------------------------- */
.footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 28px 56px;
  border-top: 1px solid var(--panel-hi);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer__row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer__row p { font-size: 14px; padding-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 14px; font-weight: 700; }
.footer__legal { font-size: 12.5px; }

/* --- phones ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 44px; }
  .hero__art { gap: 12px; }
  .hero__art .phone:nth-child(3) { display: none; }
  .promises { grid-template-columns: minmax(0, 1fr); padding-bottom: 44px; }
  .steam__row, .game__hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .nav nav { gap: 18px; }
  .hero { padding: 24px 20px 36px; }
  .hero h1 { font-size: 34px !important; }
  .hero__line { font-size: 18px; }
  .hero__art .phone:nth-child(2) { display: none; }
  .hero__art .phone { transform: none !important; --phone-w: min(62vw, 240px); }
  .promises, .section, .footer, .game { padding-left: 20px; padding-right: 20px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .section h2 { font-size: 24px; }
  .gallery .phone { --phone-w: min(66vw, 220px); }
  .store, .store--compact { min-width: 0; flex: 1 1 46%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
