@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #060809;
  --panel: #0b1114;
  --stroke: #24363b;
  --text: #f1f8f7;
  --muted: #a7babd;
  --mint: #7dffcd;
  --blue: #79d8f6;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --content: 73rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  transform: translateY(calc(-100% - 1rem));
  background: var(--mint);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); color: var(--ink); }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--stroke);
  background: var(--ink);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.header-inner { min-height: 4.75rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.15;
}

.brand img {
  flex: none;
  border: 1px solid #334955;
  border-radius: .55rem;
}

.brand small {
  display: block;
  margin-top: .24rem;
  color: var(--muted);
  font: .77rem var(--mono);
}

.top-nav,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem clamp(.95rem, 2.5vw, 2.15rem);
}

.top-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

.top-nav a:hover,
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--mint); }

.top-nav .nav-support {
  padding: .4rem .8rem;
  border: 1px solid var(--stroke);
  border-radius: .35rem;
  color: var(--text);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(38rem, 54vw, 47rem);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 max(0px, calc(50% - 46rem)) 0 auto;
  width: min(76%, 67rem);
  overflow: hidden;
}

.hero-art img,
.hero-art::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art img {
  object-fit: cover;
  object-position: 52% 43%;
}

.hero-art::after {
  content: "";
  background:
    linear-gradient(0deg, var(--ink) 1%, #06080900 33%),
    linear-gradient(90deg, var(--ink) 0%, #060809dd 11%, #0608093b 45%, transparent 72%);
}

.hero-content { padding-block: 4.25rem 5rem; }

.eyebrow {
  margin-bottom: .8rem;
  color: var(--mint);
  font: .85rem/1.45 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  font-family: var(--display);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: .79;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.hero h1 span { color: #c8f7fc; }

.hero h1 small {
  display: block;
  margin-top: 1.45rem;
  color: var(--mint);
  font: clamp(1rem, 2vw, 1.45rem)/1.2 var(--mono);
  letter-spacing: .22em;
}

.hero-lead {
  margin-top: 1.85rem;
  font-size: clamp(1.2rem, 2.55vw, 1.65rem);
  font-weight: 700;
}

.hero-description {
  max-width: 36ch;
  margin-top: .5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--mint);
  color: #052016;
}

.button-primary:hover {
  background: var(--blue);
  color: #052016;
}

.hero .button { margin-top: 1.55rem; }

.section {
  padding-block: clamp(3.15rem, 7vw, 6.5rem);
  scroll-margin-top: 1rem;
}

.section h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -.014em;
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 1.85rem;
}

.section-intro > p:last-child,
.soundtrack-copy > p:not(.eyebrow) {
  margin-top: .9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.gameplay { padding-top: clamp(2.75rem, 5vw, 4.75rem); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(15rem, 24vw, 21rem);
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: .55rem;
  background: var(--panel);
}

.feature img,
.feature::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature img { object-fit: cover; object-position: center 54%; }

.feature::after {
  content: "";
  background: linear-gradient(0deg, #060809 3%, #060809d9 30%, #0608091a 100%);
}

.feature-copy { padding: clamp(1.15rem, 3vw, 2rem); }

.feature h3 {
  font: 800 clamp(1.9rem, 3.4vw, 2.95rem)/1 var(--display);
}

.feature p {
  max-width: 37ch;
  margin-top: .45rem;
  color: #c6d6d8;
}

.gallery-section {
  border-block: 1px solid #17292e;
  background: radial-gradient(ellipse at 50% 0%, #112429 0%, #090e11 57%);
}

.screen-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4.8rem) / 5);
  gap: 1.2rem;
  margin-top: 1.75rem;
  padding: .1rem .1rem .6rem;
  overflow-x: auto;
  scrollbar-color: #46646c var(--panel);
  scroll-snap-type: x proximity;
}

.screen-gallery figure {
  min-width: 0;
  scroll-snap-align: start;
}

.screen-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 1px dashed #4b646d;
  border-radius: 1rem;
  background:
    linear-gradient(#1b34394a 1px, transparent 1px) center / 1.1rem 1.1rem,
    linear-gradient(90deg, #1b34394a 1px, transparent 1px) center / 1.1rem 1.1rem,
    radial-gradient(ellipse, #0e242b, #080d10 75%);
}

.screen-slot::before {
  content: "";
  width: 2.1rem;
  aspect-ratio: 5 / 4;
  border: 1px solid #79d8f69c;
  border-radius: .25rem;
  background:
    radial-gradient(circle at 72% 27%, #79d8f6ae 0 2px, transparent 3px),
    linear-gradient(142deg, transparent 53%, #79d8f675 55% 59%, transparent 61%) 0 100% / 61% 82% no-repeat,
    linear-gradient(43deg, transparent 54%, #79d8f675 56% 60%, transparent 62%) 100% 100% / 74% 62% no-repeat;
}

.screen-slot:has(img) { border-style: solid; }
.screen-slot:has(img)::before { display: none; }

.screen-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ink);
}

.screen-gallery figcaption {
  margin-top: .6rem;
  color: var(--muted);
  font: .875rem/1.45 var(--mono);
}

.soundtrack {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(1.65rem, 5vw, 5.25rem);
}

.soundtrack-art {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: .55rem;
  background: var(--panel);
}

.soundtrack-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 39%;
}

.track-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.track-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: .62rem;
  border-block-start: 1px solid var(--stroke);
  font-weight: 600;
}

.track-list li:last-child { border-block-end: 1px solid var(--stroke); }

.track-list span {
  color: var(--blue);
  font: .83rem/1.4 var(--mono);
}

.site-footer { border-top: 1px solid var(--stroke); }

.footer-inner {
  min-height: 5.75rem;
  padding-block: 1rem;
}

.site-footer p { color: var(--muted); font-size: .9rem; }

.simple-page { display: flex; flex-direction: column; }

.document {
  width: min(calc(100% - var(--gutter) * 2), 48rem);
  flex: 1 0 auto;
  margin-inline: auto;
  padding-block: clamp(2.75rem, 7vw, 5.25rem);
}

.document-support { max-width: 42rem; }

.document h1 {
  margin-bottom: .9rem;
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.document-intro { color: var(--muted); }

.legal-copy {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--stroke);
  color: #d8e3e4;
  line-height: 1.68;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.75rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--stroke);
  border-radius: .7rem;
  background: linear-gradient(145deg, #111e21, var(--panel) 62%);
}

.support-fields {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.support-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field { display: grid; gap: .35rem; }
.form-field label { font-weight: 650; }
.form-hint { color: var(--muted); font-size: .875rem; font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #40565d;
  border-radius: .35rem;
  padding: .65rem .75rem;
  background: #080e10;
  color: var(--text);
  font: inherit;
}

.form-field select {
  appearance: none;
  padding-inline-end: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: right 1.15rem center, right .85rem center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}

.form-field select:invalid { color: var(--muted); }
.form-field option { color: var(--text); }
.form-field textarea { min-height: 10rem; resize: vertical; }
.support-form .button { justify-self: start; }
.support-form .button:disabled { opacity: .65; cursor: wait; }

.support-status:not(:empty) {
  padding: .7rem .85rem;
  border: 1px solid var(--stroke);
  border-radius: .35rem;
  background: #090e11;
  color: var(--muted);
}

.support-status:empty { margin-block-start: -1.2rem; }
.support-status[data-state="success"] { color: var(--mint); border-color: #2d6852; }
.support-status[data-state="error"] { color: #ffc0b8; border-color: #754945; }

@media (max-width: 520px) {
  .support-contact { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .screen-gallery { grid-auto-columns: 23.5%; }
  .hero-art { width: 86%; }
}

@media (max-width: 650px) {
  .home-page .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: .85rem;
    padding-block: .85rem;
  }

  .top-nav { gap: .5rem 1rem; }
  .top-nav .nav-support { padding: .2rem .5rem; }
  .hero { min-height: 0; }
  .hero-content { padding-block: 4.15rem 3.65rem; }
  .hero h1 { font-size: clamp(4rem, 15vw, 6rem); }

  .hero-art { width: 100%; }
  .hero-art img { object-position: 59% 42%; }

  .hero-art::after {
    background:
      linear-gradient(0deg, var(--ink), #060809e6 13%, #06080912 100%),
      linear-gradient(90deg, #060809d9, #06080918 93%);
  }

  .feature-grid,
  .soundtrack { grid-template-columns: 1fr; }

  .feature { min-height: 16rem; }
  .screen-gallery { grid-auto-columns: min(43%, 12rem); gap: .85rem; }

  .soundtrack-art img { aspect-ratio: 16 / 9; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .6rem; }
}
