@font-face {
  font-family: Fusion Pixel;
  src: url(/fonts/FusionPixel.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src: url(/fonts/PressStart2P-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #fff4dc;
  --muted: #c9b29a;
  --paper: #2a1824;
  --line: #6a4030;
  --gold: #e8b04a;
  --ember: #ff5a3c;
  --void: #120a10;
  --green: #50c88c;
  --sky: #5aa8ff;
  --pixel-shadow: 4px 4px 0 #000;
  --pixel-shadow-lg: 6px 6px 0 #000;
  font-family: Fusion Pixel, "Press Start 2P", PingFang SC, Microsoft YaHei, monospace;
  color: var(--ink);
  background: var(--void);
  image-rendering: pixelated;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--void);
  background-image: url(/tile.png), linear-gradient(180deg, #1a0c14, #120a10 40%, #0a0608);
  background-size: 64px 64px, auto;
  background-blend-mode: soft-light, normal;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
button { font: inherit; }

.bar { position: sticky; top: 0; z-index: 5; padding: 10px 12px 0; }
.bar-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 10px;
  background: #1e1018;
  border: 4px solid var(--gold);
  box-shadow: inset 0 0 0 2px #6a4030, 0 6px #000;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--gold);
  background: #120a10;
  box-shadow: 3px 3px #000;
  overflow: hidden;
}
.brand-mark img { width: 38px; height: 38px; }
.brand-text { display: grid; gap: 2px; line-height: 1.1; }
.brand-text strong { font-size: 16px; font-weight: 400; color: #fff4dc; }
.brand-text small { font-family: "Press Start 2P", monospace; font-size: 8px; color: var(--gold); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border: 2px solid transparent;
}
.nav a:hover { color: #fff; border-color: var(--gold); background: #e8b04a1f; }
.bar-tap { flex-shrink: 0; filter: drop-shadow(3px 3px 0 #000); }
.bar-tap:hover { transform: translate(-1px, -1px); }

.btn:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  background: #1e1018;
  border: 4px solid var(--gold);
  box-shadow: inset 0 0 0 2px #6a4030, var(--pixel-shadow-lg);
}
.hero-art {
  margin: 0;
  padding: 6px;
  background: #08060a;
  border: 4px solid var(--gold);
  box-shadow: 4px 4px #000;
}
.hero-art img { display: block; width: 100%; height: auto; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.studio, .new-pill, .age {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 3px solid var(--gold);
  background: #1e1018;
  color: var(--gold);
  font-size: 12px;
  box-shadow: 3px 3px #000;
}
.new-pill { background: var(--ember); border-color: #fff4dc; color: #fff4dc; }
.age {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  color: #fff4dc;
  text-shadow: 4px 4px 0 #000, -1px 0 0 var(--ember);
}
.lede {
  font-size: clamp(16px, 2vw, 20px);
  margin: 12px 0 8px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}
.body { color: var(--muted); text-shadow: 1px 1px 0 #000; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 10px; align-items: flex-end; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.stats li {
  padding: 12px 10px;
  border: 3px solid var(--gold);
  background: #120a10;
  box-shadow: 3px 3px #000;
}
.stat-b { border-color: var(--ember); }
.stat-c { border-color: var(--sky); }
.stats strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 400;
}
.stat-b strong { color: var(--ember); }
.stat-c strong { color: var(--sky); }
.stats span { font-size: 12px; color: var(--muted); }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.panel, .desk, .shots, .note, .promos {
  margin-top: 28px;
  padding: 22px 18px;
  background: #1e1018;
  border: 4px solid var(--gold);
  box-shadow: inset 0 0 0 2px #6a4030, var(--pixel-shadow-lg);
}
h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.5vw, 30px);
  color: #fff4dc;
  text-shadow: 3px 3px 0 #000;
  font-weight: 400;
}
.section-lede { margin: 0 0 18px; color: var(--muted); max-width: 40em; }
.promos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-card {
  margin: 0;
  border: 3px solid #6a4030;
  background: #120a10;
  box-shadow: 4px 4px #000;
}
.promo-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px #000; }
.promo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}
.promo-card figcaption {
  padding: 10px 12px 12px;
  border-top: 3px solid #6a4030;
  color: var(--ink);
  font-size: 14px;
}
.promo-card figcaption strong { display: block; color: var(--gold); margin-bottom: 4px; font-weight: 400; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards article {
  padding: 16px 14px 18px;
  background: #2a1824;
  border: 3px solid #6a4030;
  box-shadow: 4px 4px #000;
}
.cards article:hover { border-color: var(--gold); }
.num { margin: 0; font-family: "Press Start 2P", monospace; font-size: 12px; color: var(--ember); }
.cards h3 { margin: 8px 0; color: #fff4dc; font-size: 18px; font-weight: 400; }
.cards p { margin: 0; color: var(--muted); font-size: 14px; }
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 22px;
  align-items: center;
}
.desk p { color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.chips li {
  padding: 6px 10px;
  border: 3px solid var(--gold);
  background: #120a10;
  color: var(--gold);
  font-size: 12px;
  box-shadow: 2px 2px #000;
}
.screen {
  margin: 0;
  padding: 6px;
  background: #08060a;
  border: 4px solid var(--gold);
  box-shadow: 4px 4px #000;
}
.screen img { display: block; width: 100%; }
.shots-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 8px; }
.shots-head p { margin: 0 0 4px; color: #b79a78; font-size: 13px; }
.reel { position: relative; }
.film {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 10px;
  scrollbar-width: none;
}
.film::-webkit-scrollbar { display: none; }
.reel-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 3px solid var(--gold);
  background: #1e1018;
  color: #fff4dc;
  box-shadow: 3px 3px #000;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}
.reel-nav.prev { left: -4px; }
.reel-nav.next { right: -4px; }
.reel-nav:hover { background: var(--ember); }
.film button {
  flex: 0 0 180px;
  scroll-snap-align: start;
  padding: 4px;
  border: 3px solid #6a4030;
  background: #08060a;
  cursor: zoom-in;
  box-shadow: 3px 3px #000;
}
.film button:hover { border-color: var(--gold); }
.film img { display: block; width: 100%; }
.note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
blockquote { margin: 0; max-width: 40em; }
blockquote p { margin: 0; font-size: 18px; line-height: 1.7; color: #fff4dc; text-shadow: 2px 2px 0 #000; }
blockquote footer { margin-top: 10px; color: var(--gold); font-family: "Press Start 2P", monospace; font-size: 10px; }
.foot { padding: 28px 16px 96px; text-align: center; color: var(--muted); }
.health {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 14px 16px;
  border: 3px solid #6a4030;
  background: #1e1018;
  box-shadow: 3px 3px #000;
  line-height: 1.7;
  font-size: 12px;
  color: #e8dccf;
  text-align: left;
}
.fine { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; font-size: 12px; }
.fine a { color: var(--gold); }
.tap-dl { display: inline-flex; line-height: 0; }
.tap-dl img { height: 40px; width: auto; image-rendering: auto; }
.tap-dl-lg img { height: 56px; }
.qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 4px solid var(--gold);
  text-decoration: none;
  box-shadow: 4px 4px #000;
}
.qr img { width: 104px; height: 104px; image-rendering: pixelated; }
.qr span { font-size: 11px; color: #3a2a20; }
.side-link { margin: 10px 0 0; color: #b79a78; font-size: 13px; }
.side-link a { color: var(--gold); }
.live { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bar, main, .foot { position: relative; z-index: 1; }
.ember { position: absolute; width: 8px; height: 8px; background: var(--ember); box-shadow: 0 0 0 2px #000; animation: drift 12s steps(8) infinite alternate; opacity: 0.7; }
.ember.e1 { left: 8vw; top: 18vh; }
.ember.e2 { right: 12vw; top: 40vh; background: var(--gold); animation-duration: 16s; }
.ember.e3 { left: 40vw; bottom: 20vh; background: var(--green); animation-duration: 14s; }
@keyframes drift { to { transform: translate(24px, -20px); } }
.dock { display: none; }
dialog {
  width: min(420px, calc(100vw - 24px));
  padding: 10px;
  border: 4px solid var(--gold);
  background: #120a10;
  box-shadow: 6px 6px #000;
}
dialog::backdrop { background: #000000d9; }
dialog img { width: 100%; }
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 3px solid #000;
  padding: 6px 10px;
  background: #fff4dc;
  color: #120a10;
  cursor: pointer;
  font-size: 12px;
  box-shadow: 3px 3px #000;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .bar { padding: 8px 8px 0; }
  .bar-shell { gap: 8px; padding: 6px 8px; }
  .brand-text small { display: none; }
  .bar-tap { margin-left: auto; }
  .hero, .promos-grid, .cards, .desk { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .desk .screen { width: min(280px, 100%); justify-self: center; }
  .note { flex-direction: column; align-items: flex-start; }
  .dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #1e1018;
    border-top: 4px solid var(--gold);
    box-shadow: 0 -4px #000;
  }
  .dock .tap-dl { width: 100%; justify-content: center; }
  .dock .tap-dl img, .tap-dl-lg img { height: 48px; }
}
