/*
 * remake.games: one stylesheet for the landing page and the 404 page.
 * The page is a night sky that bridges the games; each card carries its game's own theme
 * (Sonic CD: 90s sky and gold; FTL: starship console; Hotline Miami: neon sunset), and the
 * coming-soon tiles carry a small scene and the lettering of theirs.
 * System fonts and self-drawn CSS/SVG only. No inline styles (CSP).
 */

:root {
  color-scheme: dark;
  --bg-0: #040716;
  --bg-1: #0a1233;
  --ink: #eef2ff;
  --dim: #b4bedd;
  --faint: #8590b5;
  --line: rgba(160, 180, 255, 0.18);
  --gold: #ffd21f;
  --amber: #ffb43c;
  --pink: #ff4fa3;
  --cyan: #3ee6ff;
  --green: #5ee38a;
  --focus: #fff;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heavy: "Arial Black", "Segoe UI Black", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cond: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font: 16px/1.6 var(--ui);
  color: var(--ink);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, #fff 40%, transparent 100%),
    radial-gradient(1px 1px at 120px 80px, #cfe0ff 40%, transparent 100%),
    radial-gradient(1.6px 1.6px at 70px 150px, #fff1c8 40%, transparent 100%),
    radial-gradient(1px 1px at 40px 60px, #fff 40%, transparent 100%),
    radial-gradient(1.2px 1.2px at 160px 40px, #e6f0ff 40%, transparent 100%),
    radial-gradient(1px 1px at 90px 120px, #fff 40%, transparent 100%),
    radial-gradient(70% 40% at 15% 0%, rgba(70, 60, 170, 0.35), transparent 70%),
    radial-gradient(60% 40% at 90% 10%, rgba(20, 110, 160, 0.25), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-0) 100%);
  background-size: 211px 223px, 173px 191px, 251px 233px, 137px 149px, 293px 271px, 199px 157px, auto, auto, auto;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
}

a {
  color: #9fd0ff;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font: 0.86em var(--mono);
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: #fff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #0a1233;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---- header ------------------------------------------------------------------------- */

.site-head {
  padding: 18px 0;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font: 800 20px/1 var(--ui);
  letter-spacing: -0.01em;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__name span {
  color: var(--dim);
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--dim);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---- hero --------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(24px, 4.5vw, 56px) 0 0;
  text-align: center;
}

/* the illustrated horizon (with a CSS glow underneath, in case the image does not load) */
.panorama {
  position: relative;
  margin: clamp(28px, 4vw, 44px) 0 0;
  height: clamp(240px, 36vw, 600px);
  overflow: hidden;
  background:
    radial-gradient(30% 60% at 18% 100%, rgba(255, 210, 31, 0.35), transparent 70%),
    radial-gradient(30% 70% at 50% 100%, rgba(255, 79, 163, 0.4), transparent 70%),
    radial-gradient(30% 60% at 82% 100%, rgba(62, 230, 255, 0.3), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
}

.panorama img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 18, 51, 0.6);
  color: var(--dim);
  font: 600 13px/1.4 var(--ui);
  letter-spacing: 0.04em;
}

.eyebrow b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  margin: 0 auto;
  max-width: 17ch;
  font: 900 clamp(38px, 6.2vw, 68px)/1.04 var(--ui);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #ff8a3d 30%, var(--pink) 58%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 18px auto 0;
  font: 800 clamp(20px, 2.6vw, 28px)/1.25 var(--ui);
  letter-spacing: -0.01em;
  color: #fff;
}

.lede {
  margin: 12px auto 0;
  max-width: 38em;
  color: var(--dim);
  font-size: clamp(16px, 1.6vw, 18px);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font: 700 16px/1.1 var(--ui);
  text-decoration: none;
  transition: transform 0.12s, background-color 0.12s, border-color 0.12s;
}

.btn--main {
  color: #120a24;
  background: linear-gradient(180deg, #fff, #dfe6ff);
  box-shadow: 0 8px 24px rgba(160, 180, 255, 0.25);
}

.btn--main:hover {
  color: #120a24;
  transform: translateY(-1px);
}

.btn--ghost {
  color: #fff;
  border: 1.5px solid rgba(200, 212, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---- sections ----------------------------------------------------------------------- */

.section {
  padding: clamp(48px, 7vw, 88px) 0 0;
}

#games {
  padding-top: clamp(32px, 4vw, 48px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font: 900 clamp(28px, 3.6vw, 40px)/1.1 var(--ui);
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  max-width: 34em;
  color: var(--dim);
  text-wrap: pretty;
}

/* ---- game cards: shared skeleton ---------------------------------------------------- */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.games__item {
  display: flex;
  min-width: 0;
}

/* the FTL frame is clipped, so its shadow sits on the list item */
.games__item--ftl {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
}

.game {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.game__art {
  position: relative;
  aspect-ratio: 400 / 210;
  overflow: hidden;
}

.game__art > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* the illustration covers the CSS/SVG fallback art; the logotype/HUD/title sit on top */
.game__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

.game__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
}

.game__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 12px/1.3 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge--live {
  color: var(--green);
  background: rgba(94, 227, 138, 0.12);
  border: 1px solid rgba(94, 227, 138, 0.45);
}

.badge--dev {
  color: #ffc4e3;
  background: rgba(255, 79, 163, 0.14);
  border: 1px solid rgba(255, 79, 163, 0.55);
}

.game__host {
  font: 600 13px/1.3 var(--mono);
  color: var(--dim);
}

.game__title {
  margin: 0;
}

.game__desc {
  margin: 0;
  color: #dfe5f7;
}

.game__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game__features li {
  padding: 4px 11px;
  font-size: 13.5px;
  line-height: 1.4;
}

.game__byo {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--dim);
}

.game__byo svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

.game__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: auto;
  padding: 12px 20px;
  text-decoration: none;
  text-align: center;
}

.game__cta svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---- Sonic CD: bright 90s sky, gold, chunky gloss ----------------------------------- */

.game--sonic {
  --navy: #0a1450;
  border: 2px solid #3a63d8;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #13308f, #071552 60%, #050f3d);
  box-shadow: 0 0 0 3px var(--navy), 0 18px 40px rgba(3, 8, 40, 0.55);
}

.game--sonic .game__art {
  background:
    radial-gradient(1.4px 1.4px at 23px 31px, #fff 40%, transparent 100%) 0 0 / 120px 90px,
    radial-gradient(1.1px 1.1px at 71px 63px, #dbe8ff 40%, transparent 100%) 0 0 / 151px 97px,
    radial-gradient(90% 60% at 50% 110%, rgba(255, 224, 140, 0.55), transparent 70%),
    linear-gradient(180deg, #050b3a 0%, #0c2a8f 40%, #1d5fe0 72%, #6fb9ff 100%);
}

.sonic-logo {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 82%;
  aspect-ratio: 520 / 200;
  transform: translateX(-50%);
}

.sonic-logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 12px rgba(2, 6, 40, 0.45));
}

.disc {
  position: absolute;
  left: 65.96%;
  top: 8.5%;
  width: 30.77%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px rgba(255, 255, 255, 0.18), 0 0 30px rgba(140, 200, 255, 0.55);
}

.disc::before,
.disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.disc::before {
  background: conic-gradient(from 10deg, #e3ebf8, #9ee8ff, #b9a6ff, #ffaee2, #fff0a6, #b5f7c8, #9ee8ff, #e3ebf8, #c8b6ff, #ffc1e8, #fff3b8, #c2f5ff, #e3ebf8);
  animation: spin 14s linear infinite;
}

.disc::after {
  background:
    radial-gradient(circle, #0a1450 0 9%, #eef2fa 9.6% 14%, #a9b5ca 14.6% 19%, rgba(255, 255, 255, 0.6) 19.6% 21%, transparent 21.6%),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 34%);
}

.sonic-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 36%;
}

.game--sonic .game__title {
  font: italic 900 26px/1.1 var(--heavy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--navy);
}

.game--sonic .game__desc {
  color: #e4ecff;
}

.game--sonic .game__features li {
  border-radius: 999px;
  border: 1.5px solid rgba(255, 210, 31, 0.55);
  background: rgba(255, 210, 31, 0.08);
  color: #fff3c4;
  font-weight: 600;
}

.game--sonic .game__byo {
  border-top-color: rgba(150, 190, 255, 0.3);
  color: #c9d6f5;
}

.game--sonic .game__byo svg {
  color: var(--gold);
}

.game--sonic .game__cta {
  border: 2px solid var(--navy);
  border-radius: 16px;
  color: var(--navy);
  font: italic 900 19px/1.1 var(--heavy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, #fff8bf 0%, #ffe345 42%, #ffc300 56%, #ffd43b 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 0 rgba(120, 60, 0, 0.25), 0 5px 0 var(--navy), 0 12px 20px rgba(2, 8, 40, 0.45);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}

.game--sonic .game__cta:hover {
  filter: brightness(1.06);
  color: var(--navy);
}

.game--sonic .game__cta:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 1px 0 var(--navy);
}

.game--sonic .game__cta:focus-visible {
  outline-offset: 5px;
}

/* ---- FTL: starship console, chamfered steel frame, amber accents -------------------- */

.game--ftl {
  --steel: #c9d8e2;
  --cut: 22px;
  padding: 2px;
  background: var(--steel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.game--ftl .game__inner {
  --cut: 21px;
  display: flex;
  flex: 1;
  flex-direction: column;
  background: linear-gradient(180deg, #1b252e, #11181e);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.game--ftl .game__art {
  border-bottom: 2px solid #6d8392;
  background:
    radial-gradient(1.3px 1.3px at 20px 30px, #fff 40%, transparent 100%) 0 0 / 113px 87px,
    radial-gradient(1px 1px at 80px 60px, #cfe6ff 40%, transparent 100%) 0 0 / 151px 101px,
    radial-gradient(60% 70% at 20% 30%, rgba(88, 58, 140, 0.45), transparent 70%),
    radial-gradient(50% 60% at 85% 20%, rgba(30, 110, 140, 0.35), transparent 70%),
    linear-gradient(180deg, #04060a, #0a121b);
}

.ftl-planet {
  position: absolute;
  right: -18%;
  bottom: -62%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-linear-gradient(-24deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 26px),
    radial-gradient(circle at 30% 26%, #7fb3c4 0%, #3b6f86 20%, #1a3a4c 44%, #0a1820 66%, #05090d 80%);
  box-shadow: inset -14px -18px 40px rgba(0, 0, 0, 0.8), 0 0 40px 4px rgba(80, 170, 215, 0.25);
}

.ftl-hud {
  position: absolute;
  left: 7%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.ftl-hud__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font: 700 34px/1 var(--cond);
  font-stretch: condensed;
  letter-spacing: 0.26em;
  margin-right: -0.26em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(140, 200, 235, 0.45);
}

.ftl-hud__brand svg {
  width: 46px;
  height: 28px;
  color: var(--amber);
}

.ftl-hud__brand b {
  font-weight: 400;
  color: var(--steel);
}

.ftl-hud__status {
  padding: 4px 10px;
  border: 1px solid rgba(255, 180, 60, 0.6);
  background: rgba(10, 16, 21, 0.75);
  color: var(--amber);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ftl-hud__status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  vertical-align: 1px;
  animation: blink 1.6s ease-in-out infinite;
}

.game--ftl .game__title {
  font: 700 23px/1.15 var(--cond);
  font-stretch: condensed;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.game--ftl .game__desc {
  color: #d3dee5;
}

.game--ftl .game__features li {
  padding: 4px 10px;
  border: 1px solid #6d8392;
  background: rgba(0, 0, 0, 0.25);
  color: #e4edf2;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
}

.game--ftl .badge {
  border-radius: 0;
}

.game--ftl .game__byo {
  border-top-color: rgba(201, 216, 226, 0.22);
  color: #a3b5c1;
}

.game--ftl .game__byo svg {
  color: var(--amber);
}

.game--ftl .game__cta {
  --c: 12px;
  border: 2px solid #ffe2a6;
  color: #1b1206;
  font: 700 18px/1.1 var(--cond);
  font-stretch: condensed;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffc562, #f39b1f);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.game--ftl .game__cta:hover {
  color: #1b1206;
  background: linear-gradient(180deg, #ffd68a, #ffab36);
}

/* clip-path hides outlines: an inset ring instead */
.game--ftl .game__cta:focus-visible {
  outline: none;
  border-color: #fff;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #0a1015;
}

/* ---- Hotline Miami: neon sunset, scanlines ------------------------------------------ */

.game--hotline {
  border: 2px solid var(--pink);
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c0730, #10041d 60%, #0b0314);
  box-shadow: 0 0 0 1px rgba(62, 230, 255, 0.35), 0 0 28px rgba(255, 79, 163, 0.35), 0 18px 40px rgba(0, 0, 0, 0.55);
}

.game--hotline .game__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.hm-title {
  position: absolute;
  left: 50%;
  top: 7%;
  transform: translateX(-50%) rotate(-4deg);
  margin: 0;
  color: #fff;
  font: italic 900 33px/0.95 var(--heavy);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 3px 3px 0 #2ad8ff;
}

.hm-title span {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  margin-top: 4px;
  color: #fff;
  text-shadow: 0 0 2px #fff, 0 0 8px var(--cyan), 0 0 16px var(--cyan), 2px 2px 0 #7a0f5c;
}

.game--hotline .game__title {
  font: italic 900 25px/1.1 var(--heavy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffd6ec;
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.65);
}

.game--hotline .game__desc {
  color: #f1dcf0;
}

.game--hotline .game__features li {
  border-radius: 4px;
  border: 1.5px solid rgba(62, 230, 255, 0.55);
  background: rgba(62, 230, 255, 0.07);
  color: #d4fbff;
  font-weight: 600;
}

.game--hotline .game__byo {
  border-top-color: rgba(255, 79, 163, 0.3);
  color: #d8bcd8;
}

.game--hotline .game__byo svg {
  color: var(--pink);
}

.game--hotline .game__cta {
  border: 2px solid #ffd6ec;
  border-radius: 6px;
  color: #1a0433;
  font: italic 900 18px/1.1 var(--heavy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff8cc4, var(--pink) 55%, #e2337f);
  box-shadow: 0 0 0 1px rgba(62, 230, 255, 0.6), 0 0 18px rgba(255, 79, 163, 0.55);
  transition: box-shadow 0.15s, filter 0.15s;
}

.game--hotline .game__cta:hover {
  color: #1a0433;
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(255, 79, 163, 0.8);
}

.game--hotline .game__cta:focus-visible {
  outline-offset: 5px;
}

.game__soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: auto;
  padding: 12px 20px;
  border: 2px dashed rgba(255, 79, 163, 0.6);
  border-radius: 6px;
  color: #ffc4e3;
  font: italic 800 15px/1.2 var(--heavy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* ---- coming soon: compact tiles, one small scene per game -------------------------- */

.soon-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin: clamp(44px, 6vw, 64px) 0 20px;
}

.soon-head h3 {
  margin: 0;
  font: 900 clamp(22px, 2.6vw, 28px)/1.15 var(--ui);
  letter-spacing: -0.02em;
}

.soon-head p {
  margin: 0;
  color: var(--dim);
}

.soon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soon__item {
  display: flex;
  min-width: 0;
}

/* the next game takes two columns, so seven tiles fill two rows of four */
@media (min-width: 600px) {
  .soon__item--next {
    grid-column: span 2;
  }
}

.tile {
  --accent: var(--ink);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 27, 68, 0.85), rgba(8, 13, 38, 0.9));
}

.tile__art {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
}

.tile__art svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px 18px;
}

.tile__title {
  margin: 2px 0 0;
  color: var(--accent);
}

.tile__desc {
  margin: 0;
  color: #dfe5f7;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.tile__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.tile__features li {
  padding: 3px 11px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.badge--soon {
  color: var(--dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.badge--next {
  color: #ffe2ad;
  background: rgba(255, 180, 60, 0.14);
  border: 1px solid rgba(255, 180, 60, 0.55);
}

/* each title borrows its game's lettering: carved Roman capitals, cartoon heavies,
   storybook italics, thin and wide, and blocky pixel type */
.tile--sands {
  --accent: #f2b45c;
}

.tile--sands .tile__title,
.tile--caesar .tile__title {
  font: 700 23px/1.15 "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile--sands .tile__features li {
  background: rgba(242, 180, 92, 0.12);
}

.tile--worms {
  --accent: #ff8a65;
}

.tile--worms .tile__title,
.tile--aquarium .tile__title {
  font: 900 21px/1.15 var(--heavy);
  letter-spacing: 0.01em;
}

.tile--braid {
  --accent: #f7dc9c;
}

.tile--braid .tile__title {
  font: italic 400 27px/1.1 Georgia, "Times New Roman", serif;
}

.tile--caesar {
  --accent: #c7b5ff;
}

.tile--limbo {
  --accent: #d9d9d9;
}

.tile--limbo .tile__title {
  font: 300 22px/1.15 var(--ui);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
}

.tile--aquarium {
  --accent: #57d6ff;
}

.tile--stardew {
  --accent: #9fdc6b;
}

.tile--stardew .tile__title {
  font: 700 19px/1.2 var(--mono);
  letter-spacing: 0.02em;
}

/* ---- how it works ------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 30, 75, 0.7), rgba(10, 16, 44, 0.7));
  counter-increment: step;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.step__icon svg {
  width: 26px;
  height: 26px;
}

.step:nth-child(1) .step__icon {
  color: var(--gold);
}

.step:nth-child(2) .step__icon {
  color: var(--green);
}

.step:nth-child(3) .step__icon {
  color: var(--cyan);
}

.step:nth-child(4) .step__icon {
  color: var(--pink);
}

.step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 20px;
  top: 18px;
  font: 700 13px/1 var(--mono);
  color: var(--faint);
}

.step h3 {
  margin: 0 0 6px;
  font: 800 18px/1.3 var(--ui);
}

.step p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
}

/* ---- footer ------------------------------------------------------------------------- */

.site-foot {
  margin-top: clamp(56px, 8vw, 96px);
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 16, 0.55);
  color: var(--faint);
  font-size: 14px;
}

.site-foot .wrap {
  display: grid;
  gap: 14px;
}

.site-foot p {
  margin: 0;
  max-width: 62em;
}

.site-foot strong {
  color: var(--dim);
}

.site-foot .brand {
  font-size: 17px;
}

.site-foot .brand svg {
  width: 28px;
  height: 28px;
}

/* ---- 404 ---------------------------------------------------------------------------- */

.lost {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 40px 0;
  text-align: center;
}

.lost .lost__code {
  margin: 0;
  font: 900 clamp(88px, 22vw, 180px)/0.9 var(--ui);
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--gold), var(--pink) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lost h1 {
  margin: 12px 0 8px;
  font: 900 clamp(26px, 4vw, 36px)/1.15 var(--ui);
  letter-spacing: -0.02em;
}

.lost p {
  margin: 0 auto;
  max-width: 30em;
  color: var(--dim);
}

/* ---- responsive & motion ------------------------------------------------------------ */

@media (max-width: 520px) {
  .site-nav a {
    padding: 0 8px;
    font-size: 14px;
  }

  .brand {
    font-size: 18px;
  }

  .game__body {
    padding: 18px 18px 20px;
  }

  .ftl-hud__brand {
    font-size: 30px;
  }

  .hm-title {
    font-size: 30px;
  }
}

/* the hero repeats "How it works" as a button */
@media (max-width: 440px) {
  .site-nav a[href="#how"] {
    display: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
