@font-face {
  font-family: "m5x7";
  src: url("assets/fonts/m5x7.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Intel One Mono";
  src: url("assets/fonts/IntelOneMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Intel One Mono";
  src: url("assets/fonts/IntelOneMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0c0a14;
  --panel: #161424;
  --panel-2: #222034;
  --border: #464a60;
  --text: #e9ecf5;
  --muted: #8a8fa8;
  --glow: #9fd4ff;
  --pixel: "m5x7", monospace;
  --mono: "Intel One Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b { color: #fff; }

/* Faint starfield, like the itch banner */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #5b6080 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 9%, #5b6080 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 44%, #3d4160 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 63%, #3d4160 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 87%, #5b6080 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 92%, #3d4160 50%, transparent 51%);
  background-size: 420px 420px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(12, 10, 20, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1d1b2c;
}
.nav-title {
  font: 28px/1 var(--pixel);
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav nav a {
  font: 22px/1 var(--pixel);
  color: var(--muted);
  text-decoration: none;
}
.nav nav a:hover { color: #fff; }
.nav nav a.nav-cta {
  color: var(--bg);
  background: #fff;
  padding: 4px 12px 6px;
}

/* Hero */
.hero { position: relative; }
.hero-art {
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: cover;
}
.hero-text {
  text-align: center;
  padding: 36px 16px 8px;
}
.tagline {
  font: 36px/1.1 var(--pixel);
  margin: 0 0 24px;
  color: #fff;
}
.meta { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-block;
  font: 24px/1 var(--pixel);
  padding: 10px 20px 12px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  background: transparent;
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); }
.btn-primary { background: #fff; color: var(--bg); }
.btn.soon {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.btn.soon::after { content: "\00a0\00b7\00a0soon"; }

/* Sections */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 24px;
}
.section.narrow { max-width: 760px; }
.pixel-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 400 40px/1 var(--pixel);
  color: #fff;
  margin: 0 0 28px;
  text-align: center;
}
.pixel-heading::before,
.pixel-heading::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 2px dotted var(--border);
}
.pixel-heading span { max-width: 80%; }
.sub {
  font: 400 28px/1 var(--pixel);
  color: #fff;
  margin: 36px 0 12px;
}
.small { font-size: 14px; color: var(--muted); }
.small b { color: var(--text); }

/* Trailer */
.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid var(--border);
  overflow: hidden;
}
.trailer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.trailer-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font: 36px/1 var(--pixel);
  color: #fff;
  text-shadow: 0 0 12px #000, 0 0 4px #000;
}
.trailer iframe,
.trailer video { width: 100%; height: 100%; border: 0; display: block; }

/* Crystal bullet list */
.crystal-list { list-style: none; padding: 0; margin: 0; }
.crystal-list li {
  position: relative;
  padding-left: 32px;
  margin: 8px 0;
}
.crystal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 20px;
  background: url("assets/sprites/crystal.png") no-repeat center / contain;
  image-rendering: pixelated;
}

/* Cast */
.cast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.person { margin: 0; text-align: center; }
.pool {
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
  background: radial-gradient(ellipse 70px 18px at 50% calc(100% - 28px), rgba(159, 212, 255, 0.22), transparent 70%);
}
.sprite {
  --s: 3;
  display: block;
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
  background: var(--img) 0 0 / calc(var(--w) * var(--s) * 2px) 100% no-repeat;
  image-rendering: pixelated;
  animation: idle 1.2s steps(1) infinite;
}
@keyframes idle {
  0% { background-position: 0 0; }
  50% { background-position: calc(var(--w) * var(--s) * -1px) 0; }
}
.person figcaption { font-size: 14px; color: var(--muted); }
.person figcaption b {
  display: block;
  font: 400 26px/1 var(--pixel);
  color: #fff;
  margin-bottom: 6px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.shot {
  padding: 0;
  border: 2px solid #1d1b2c;
  background: #000;
  cursor: zoom-in;
  transition: border-color 0.15s;
}
.shot:hover, .shot:focus-visible { border-color: var(--border); outline: none; }
.shot.wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; width: auto; image-rendering: pixelated; }
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 16px;
  font: 48px/1 var(--pixel);
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Play */
#play > .buttons { justify-content: flex-start; margin: 24px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
  margin: 0;
}
.keys dt { display: flex; gap: 4px; }
.keys dd { margin: 0; font-size: 14px; color: var(--muted); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px 2px;
  font: 20px/1 var(--pixel);
  color: #fff;
  border: 2px solid #fff;
  border-bottom-width: 4px;
}

/* Follow */
.follow { text-align: center; }
.banner { margin: 0 auto 16px; border: 2px solid #1d1b2c; }

/* Footer */
.footer {
  text-align: center;
  padding: 72px 16px 40px;
  color: var(--muted);
}
.footer p { margin: 4px 0; }

/* Phone */
@media (max-width: 760px) {
  .nav { padding: 10px 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .section { padding: 56px 16px 16px; }
  .tagline { font-size: 28px; }
  .pixel-heading { font-size: 32px; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .cast .person:first-child { grid-column: 1 / -1; }
  .pool { height: 170px; }
  .gallery { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
}
