/* Salmonberry: the website's one stylesheet.
 *
 * Pixel rules: the game's font (Field Pixel, 1em = 10 game pixels) is set at
 * multiples of 10px so every pixel is a whole square. Pixel images scale by
 * whole numbers with image-rendering: pixelated; site.js picks the largest
 * whole multiple that fits a screenshot frame, in device pixels.
 *
 * The hero's colours come from <html data-time="dawn|day|dusk|night">, set by
 * js/early.js from the visitor's clock before the first paint. The palette
 * block below is written by tools/website/hero-scene.mjs, which also draws
 * the landscape and the og card from the same colours.
 */

@font-face {
  font-family: 'Field Pixel';
  src: url('/assets/fonts/field-pixel.ttf?v=35ff5609') format('truetype');
  font-display: swap;
}

/* Scene colours animate between periods (a visitor who stays past sunset sees it set). */
@property --sky-1 { syntax: '<color>'; inherits: true; initial-value: #1a1630; }
@property --sky-2 { syntax: '<color>'; inherits: true; initial-value: #5a3a62; }
@property --sky-3 { syntax: '<color>'; inherits: true; initial-value: #e08a5e; }

:root {
  --ink: #0b1f20;
  --ink-2: #0e2628;
  --ink-3: #133034;
  --panel: #10292f;
  --panel-2: #163a40;
  --line: #2c5458;
  --cream: #f6efdc;
  --text: #dbe5dc;
  --muted: #a4bbb2;
  --berry: #ef7d45;
  --berry-hi: #f8a868;
  --berry-deep: #b9482a;
  --berry-ink: #2b1214;
  --pink: #f2958a;
  --moss: #8fd06a;
  --gold: #f2d68c;
  --t-grove: #5fb84c;
  --t-ember: #ee6a3c;
  --t-tide: #45a6dc;
  --pixel: 'Field Pixel', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  /* One unit of the hero landscape (480 units across, never narrower than 1000px). */
  --u: calc(max(100vw, 1000px) / 480);
  --notch: 3px;
  color-scheme: dark;
}

/* scene:palette:start (tools/website/hero-scene.mjs) */
[data-time='dawn'] {
  --sky-1: #34457a; --sky-2: #c48aa8; --sky-3: #ffc69c; --sun: #ffe6b0; --sun-glow: rgba(255, 186, 140, 0.65); --sun-on: 1; --moon-on: 0; --sun-x: 24%; --sun-y: 47%; --stars: 0.15; --haze: #b9a3c4; --haze-snow: #fbe2e2; --far: #9a8fb6; --far-shade: #8478a4; --snow: #ffe7df; --snow-shade: #dbbfd2; --ridge: #6a6f98; --ridge-lit: #7d82aa; --water: #ecb8bc; --glint: #fff3e8; --mid: #3d4f6f; --mid-lit: #4a5c7d; --near: #16283a; --near-lit: #1e3346; --mist: #fde9ec; --mist-back: 0.42; --mist-front: 0.34;
}
[data-time='day'] {
  --sky-1: #3d8bcd; --sky-2: #86c5e8; --sky-3: #dcf1ea; --sun: #fff7d8; --sun-glow: rgba(255, 248, 214, 0.55); --sun-on: 1; --moon-on: 0; --sun-x: 77%; --sun-y: 16%; --stars: 0; --haze: #a9c9d8; --haze-snow: #eef7fb; --far: #8eb4ca; --far-shade: #7ba2ba; --snow: #f6fbff; --snow-shade: #c8dae8; --ridge: #4f8a85; --ridge-lit: #5e9a90; --water: #97d1e4; --glint: #ffffff; --mid: #2a6151; --mid-lit: #34715f; --near: #12302c; --near-lit: #1a3e37; --mist: #ffffff; --mist-back: 0.2; --mist-front: 0.14;
}
html, [data-time='dusk'] {
  --sky-1: #2a2452; --sky-2: #a14f7b; --sky-3: #ff9b5c; --sun: #ffd27c; --sun-glow: rgba(255, 146, 84, 0.75); --sun-on: 1; --moon-on: 0; --sun-x: 80%; --sun-y: 50%; --stars: 0.35; --haze: #9a6a8c; --haze-snow: #ffc2a2; --far: #7a5881; --far-shade: #664a74; --snow: #ffc8a0; --snow-shade: #c98c91; --ridge: #4b3a64; --ridge-lit: #5b4670; --water: #f2a37b; --glint: #ffe2b4; --mid: #2c2a49; --mid-lit: #373357; --near: #141a2b; --near-lit: #1c2237; --mist: #f8c4b2; --mist-back: 0.24; --mist-front: 0.18;
}
[data-time='night'] {
  --sky-1: #050a18; --sky-2: #0e1c38; --sky-3: #203956; --sun: #ffffff; --sun-glow: rgba(200, 220, 255, 0.35); --sun-on: 0; --moon-on: 1; --sun-x: 70%; --sun-y: 30%; --stars: 1; --haze: #1a2a44; --haze-snow: #5d7392; --far: #1f3049; --far-shade: #1a2841; --snow: #8aa1be; --snow-shade: #6a7f9f; --ridge: #142339; --ridge-lit: #1a2b43; --water: #2b4a6e; --glint: #c9dcff; --mid: #0d1a29; --mid-lit: #13223a; --near: #081219; --near-lit: #0c1a23; --mist: #8ea6c8; --mist-back: 0.16; --mist-front: 0.12;
}
.l-haze { bottom: calc(92 * var(--u)); --k: 0.46; aspect-ratio: 480 / 90; }
.l-far { bottom: calc(64 * var(--u)); --k: 0.4; aspect-ratio: 480 / 140; }
.l-ridge { bottom: calc(34 * var(--u)); --k: 0.3; aspect-ratio: 480 / 100; }
.mist-back { bottom: calc(50 * var(--u)); --k: 0.26; aspect-ratio: 480 / 40; }
.l-mid { bottom: calc(2 * var(--u)); --k: 0.18; aspect-ratio: 480 / 84; }
.mist-front { bottom: calc(8 * var(--u)); --k: 0.12; aspect-ratio: 480 / 40; }
.l-near { bottom: calc(-4 * var(--u)); --k: 0.06; aspect-ratio: 480 / 100; }
/* scene:palette:end */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--cream); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
@supports (image-rendering: pixelated) { .px { image-rendering: pixelated; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--berry-ink); padding: 10px 16px;
  font: 20px/1 var(--pixel); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- pixel box */

/* Clipped corners like the game's boxes. Borders are inset shadows (a clip-path would cut an outer one). */
.notch {
  clip-path: polygon(0 var(--notch), var(--notch) var(--notch), var(--notch) 0, calc(100% - var(--notch)) 0,
    calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%,
    var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}
.btn, .chip, .dialog, .starter, .frame-link, .tod-tab, .trail-map, .presskit-card, .fact, .lightbox-btn {
  clip-path: polygon(0 var(--notch), var(--notch) var(--notch), var(--notch) 0, calc(100% - var(--notch)) 0,
    calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%,
    var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --b: var(--berry); --b-hi: var(--berry-hi); --b-lo: var(--berry-deep); --b-ink: var(--berry-ink);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 15px; min-height: 52px;
  border: 0; background: var(--b); color: var(--b-ink);
  font: 20px/1 var(--pixel); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.28), inset 0 -5px 0 var(--b-lo);
  cursor: pointer; user-select: none;
  transition: transform 0.12s steps(2), background-color 0.15s;
}
.btn:hover { background: var(--b-hi); color: var(--b-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 var(--b-lo); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 6px var(--cream), inset 0 -5px 0 var(--b-lo); }
.btn-ghost { --b: var(--panel-2); --b-hi: #1f4a51; --b-lo: #0c2226; --b-ink: var(--cream); }
.btn-ghost:hover { color: var(--cream); }
/* The second button (Gob Industries) always sits back beside the Steam one. */
.btn-alt { --b: var(--panel-2); --b-hi: #1f4a51; --b-lo: #0c2226; --b-ink: var(--cream); }
.btn-alt:hover { color: var(--cream); }
.btn-small { padding: 9px 14px 10px; min-height: 40px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -4px 0 var(--b-lo); }
.btn.is-soon {
  /* "Wishlist soon": the Steam button keeps its colours but is not a link yet. */
  --b-hi: var(--berry);
  cursor: default; transform: none;
}
.btn.is-soon:hover { transform: none; }
.btn-icon { width: 10px; height: 10px; flex: none; background: currentColor; }
.btn.is-soon .btn-icon {
  background: var(--berry-ink);
  clip-path: polygon(0 40%, 40% 40%, 40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%);
  animation: twinkle 2.4s steps(4) infinite;
}
.btn-steam:not(.is-soon) .btn-icon { clip-path: polygon(0 40%, 50% 40%, 50% 10%, 100% 50%, 50% 90%, 50% 60%, 0 60%); }
@keyframes twinkle { 50% { opacity: 0.35; } }

.chip {
  display: inline-block; padding: 7px 12px 8px; background: var(--panel-2); color: var(--cream);
  font: 20px/1.2 var(--pixel); --notch: 2px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips-center { justify-content: center; margin-top: 48px; }
.chip-grove { background: var(--t-grove); color: #0c2410; }
.chip-ember { background: var(--t-ember); color: #2b0f06; }
.chip-tide { background: var(--t-tide); color: #071d2c; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(9, 25, 27, 0.9); border-bottom: 2px solid rgba(44, 84, 88, 0.6);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.js .nav:not(.is-solid) { background: transparent; border-color: transparent; }
.nav.is-solid { backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.nav-inner {
  height: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-home { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font: 20px/1 var(--pixel); }
.nav-home img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font: 20px/1 var(--pixel); }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav-links a:not(.btn):hover { color: var(--cream); text-decoration: underline; }
@media (max-width: 640px) { .nav-wide { display: none; } }
@media (max-width: 480px) {
  .nav-home span, .nav-links li:nth-child(3) { display: none; }
}

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 760px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(var(--nav-h) + clamp(24px, 6vh, 72px)) 0 calc(66 * var(--u));
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 46%, var(--sky-3) 78%);
  transition: --sky-1 3s, --sky-2 3s, --sky-3 3s;
}
.hero::after { /* melt into the page below */
  content: ''; position: absolute; inset: auto 0 0 0; height: calc(14 * var(--u)); z-index: 3;
  background: linear-gradient(180deg, rgba(11, 31, 32, 0), var(--ink));
  pointer-events: none;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-stars, .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hero-stars { opacity: var(--stars, 0); transition: opacity 3s; }
.layer, .mist-strip {
  position: absolute; left: 50%; width: calc(480 * var(--u)); height: auto;
  transform: translate3d(-50%, calc(var(--scroll, 0px) * var(--k, 0)), 0);
  will-change: transform;
}
.layer path { transition: fill 3s; }
.mist-strip { overflow: hidden; }
.mist-strip .layer { position: static; width: 200%; transform: none; animation: drift 140s linear infinite; aspect-ratio: 960 / 40; }
.mist-back { opacity: var(--mist-back); }
.mist-front { opacity: var(--mist-front); }
.mist-front .layer { animation-duration: 95s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(-50%); } }
.l-mist .c1 { fill: var(--mist); opacity: 0.55; }
.l-mist .c2 { fill: var(--mist); }
.glint { animation: glint 3.2s steps(3) infinite; }
@keyframes glint { 50% { opacity: 0.3; } }

.sky-body {
  position: absolute; width: calc(18 * var(--u)); height: calc(18 * var(--u));
  transform: translate3d(-50%, calc(var(--scroll, 0px) * 0.5), 0);
  transition: opacity 2s, left 3s, top 3s;
  filter: drop-shadow(0 0 calc(10 * var(--u)) var(--sun-glow));
}
.sun .c1 { fill: var(--sun); }
.sun .c2 { fill: #fffbe8; }
.moon .c1 { fill: #e9edf2; }
.moon .c2 { fill: #c3cbd8; }
.sun { opacity: var(--sun-on, 1); left: var(--sun-x, 70%); top: var(--sun-y, 20%); }
.moon { opacity: var(--moon-on, 0); left: 22%; top: 14%; --sun-glow: rgba(200, 220, 255, 0.35); }

.l-haze .c1 { fill: var(--haze); } .l-haze .c2 { fill: var(--haze-snow); }
.l-far .c1 { fill: var(--far); } .l-far .c2 { fill: var(--far-shade); }
.l-far .c3 { fill: var(--snow); } .l-far .c4 { fill: var(--snow-shade); }
.l-ridge .c1 { fill: var(--ridge); } .l-ridge .c2 { fill: var(--ridge-lit); }
.l-ridge .c3 { fill: var(--water); } .l-ridge .c4 { fill: var(--glint); }
.l-mid .c1 { fill: var(--mid); } .l-mid .c2 { fill: var(--mid-lit); }
.l-near .c1 { fill: var(--near); } .l-near .c2 { fill: var(--near-lit); } .l-near .c3 { fill: var(--ink); }

.hero-content { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wordmark { margin: 0 0 clamp(14px, 2.2vh, 24px); }
.wordmark img { width: 600px; height: 120px; } /* ×8 */
@media (max-width: 700px) { .wordmark img { width: 450px; height: 90px; } } /* ×6 */
@media (max-width: 500px) { .wordmark img { width: 300px; height: 60px; } } /* ×4 */
.hook {
  font: 40px/1.2 var(--pixel); color: var(--cream);
  text-shadow: 0 4px 0 rgba(8, 20, 22, 0.55);
  margin-bottom: clamp(20px, 3.5vh, 36px);
}
@media (max-width: 600px) { .hook { font-size: 30px; } }
@media (max-width: 360px) { .hook { font-size: 20px; } }

.dialog {
  --notch: 4px;
  position: relative; background: #0a1a1c; color: var(--cream);
  box-shadow: inset 0 0 0 4px #e6dcc0, inset 0 0 0 8px #0d2326;
  padding: 22px 28px 24px;
}
.hero-dialog { max-width: 620px; text-align: left; }
.dialog-text { margin: 0; font: 20px/1.5 var(--pixel); display: grid; }
.dialog-text > * { grid-area: 1 / 1; }
.dialog.is-typing .dialog-full { color: transparent; }
.dialog-typed { color: var(--cream); }
.dialog-more {
  position: absolute; right: 18px; bottom: 12px; width: 12px; height: 8px; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 25%, 83% 25%, 83% 50%, 67% 50%, 67% 75%, 50% 75%, 50% 100%, 50% 100%, 33% 75%, 33% 50%, 17% 50%, 17% 25%, 0 25%);
  animation: bob 1s steps(2) infinite;
}
.dialog.is-typing .dialog-more { visibility: hidden; }
@keyframes bob { 50% { transform: translateY(3px); } }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(24px, 4vh, 36px); }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 20px 0 0;
  font: 20px/1.4 var(--pixel); color: var(--cream); text-shadow: 0 2px 0 rgba(8, 20, 22, 0.6);
}
.hero-meta span + span::before, .hero-meta a::before { content: '·'; margin-right: 18px; color: var(--gold); }
.hero-meta a { color: var(--gold); }
@media (max-width: 600px) {
  .hero-meta { gap: 4px 10px; }
  .hero-meta span + span::before { margin-right: 10px; }
  .hero-meta a { flex-basis: 100%; }
  .hero-meta a::before { content: none; }
  .tod-tabs { gap: 6px; }
  .tod-tab { padding: 12px 12px 13px; }
}

/* ------------------------------------------------------------------ bands */

.band { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.band-starters { padding-top: clamp(56px, 8vw, 110px); }
.band-catch, .band-light, .band-gallery { background: var(--ink-2); }
.band + .band::before {
  /* a ragged pixel treeline between bands */
  content: ''; position: absolute; left: 0; right: 0; top: -11px; height: 12px;
  background:
    linear-gradient(90deg, transparent 0 8px, currentColor 8px 16px, transparent 16px 40px, currentColor 40px 44px, transparent 44px 64px) 0 0 / 64px 4px repeat-x,
    linear-gradient(90deg, currentColor 0 24px, transparent 24px 28px, currentColor 28px 60px, transparent 60px 64px) 0 4px / 64px 4px repeat-x,
    linear-gradient(currentColor, currentColor) 0 8px / 100% 4px no-repeat;
  color: var(--ink-2);
}
.band-catch::before, .band-light::before, .band-gallery::before { color: var(--ink-2) !important; }
.band-arena::before, .band-north::before, .band-launch::before { color: var(--ink) !important; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.eyebrow { font: 20px/1 var(--pixel); color: var(--berry-hi); margin-bottom: 18px; }
h2 { font: 40px/1.2 var(--pixel); margin-bottom: 18px; text-wrap: balance; }
@media (max-width: 600px) { h2 { font-size: 30px; } }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--cream); text-wrap: pretty; }
h3 { font: 20px/1.2 var(--pixel); }

/* starters */
.starters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 860px) { .starters { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.starter {
  --t: var(--t-grove); --notch: 4px;
  background: var(--panel); padding: 10px 10px 26px;
  box-shadow: inset 0 0 0 3px var(--line);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s;
}
.starter.t-ember { --t: var(--t-ember); }
.starter.t-tide { --t: var(--t-tide); }
.starter:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 3px var(--t); }
.starter-stage {
  position: relative; height: 236px; display: grid; place-items: end center; padding-bottom: 30px;
  background: radial-gradient(ellipse at 50% 72%, color-mix(in srgb, var(--t) 34%, transparent), transparent 66%), #0b2023;
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% 100%, 0 100%);
}
.starter-stage::before { /* a stepped pixel platform */
  content: ''; position: absolute; left: 50%; bottom: 22px; width: 176px; height: 32px; transform: translateX(-50%);
  background: linear-gradient(180deg, #a9c47e 0 33%, #86a65f 33% 66%, #5f7e48 66%);
  clip-path: polygon(22% 0, 78% 0, 78% 12.5%, 90% 12.5%, 90% 25%, 97% 25%, 97% 37.5%, 100% 37.5%, 100% 62.5%, 97% 62.5%,
    97% 75%, 90% 75%, 90% 87.5%, 78% 87.5%, 78% 100%, 22% 100%, 22% 87.5%, 10% 87.5%, 10% 75%, 3% 75%, 3% 62.5%, 0 62.5%,
    0 37.5%, 3% 37.5%, 3% 25%, 10% 25%, 10% 12.5%, 22% 12.5%);
}
.starter .sprite { position: relative; width: 192px; height: 192px; }
.starter:hover .sprite { animation: hop 0.5s steps(3) 1; }
@keyframes hop { 40% { transform: translateY(-12px); } }
.starter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 18px 12px; }
.starter-head h3 { font-size: 30px; }
.starter p { padding: 0 18px; margin: 0; color: var(--text); }

/* split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.split > .frame { max-width: 100%; }
/* Wide enough for a 2x screenshot (640px + frame) beside the copy. */
@media (min-width: 1100px) {
  .split { grid-template-columns: 656px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .split.flip { grid-template-columns: minmax(0, 1fr) 656px; }
  .split.flip > .frame { order: 2; }
  .band-north .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1099px) { .split-copy { max-width: 680px; } }
.split-copy > p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 26px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps h3 { color: var(--cream); margin: 8px 0 6px; }
.steps p { margin: 0; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; background: var(--berry); color: var(--berry-ink);
  font: 20px/1 var(--pixel); box-shadow: inset 0 -4px 0 var(--berry-deep);
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
}

/* screenshot frames */
.frame { margin: 0; display: grid; min-width: 0; }
.frame.is-fit { justify-content: center; } /* site.js sized the image: the column hugs it */
.frame-link {
  --notch: 4px;
  display: block; padding: 8px; background: #061415; max-width: 100%;
  box-shadow: inset 0 0 0 4px var(--line);
  cursor: zoom-in; transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s;
}
.frame-link:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 4px var(--berry); }
.frame-link:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--gold); }
.frame img { width: 100%; height: auto; }
.frame figcaption {
  display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 4px 0;
  font: 20px/1.2 var(--pixel); color: var(--muted);
}
.frame figcaption span:last-child:not(:first-child) { color: var(--gold); }
.frame-small figcaption { justify-content: center; }

/* time of day */
.tod-tabs { display: none; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tod.is-live .tod-tabs { display: flex; }
.tod-tab {
  border: 0; padding: 12px 18px 13px; background: var(--panel-2); color: var(--text);
  font: 20px/1 var(--pixel); cursor: pointer; box-shadow: inset 0 -4px 0 #0c2226;
  transition: background-color 0.15s, transform 0.12s steps(2);
}
.tod-tab:hover { background: #1f4a51; transform: translateY(-2px); }
.tod-tab[aria-selected='true'] { background: var(--gold); color: var(--berry-ink); box-shadow: inset 0 -4px 0 #b99a4c; }
.tod-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 6px var(--cream); }
.tod-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .tod-frames { grid-template-columns: 1fr; } }
.tod.is-live .tod-frames { grid-template-columns: minmax(0, 1fr); }
.tod.is-live .tod-frame { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0s 0.6s; }
.tod.is-live .tod-frame.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s; }
.tod-frame .frame-link, .tod-frame > img { cursor: default; }
.tod-frame > img { padding: 8px; background: #061415; box-shadow: inset 0 0 0 4px var(--line); clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)); }
.tod-note { text-align: center; margin: 22px 0 0; font: 20px/1.4 var(--pixel); color: var(--muted); }

/* the road north */
.trail { display: flex; justify-content: center; }
.trail-map {
  --notch: 4px;
  position: relative; width: 360px; max-width: 100%; aspect-ratio: 120 / 160;
  background: linear-gradient(180deg, #24474a 0%, #183a36 45%, #12302b 100%);
  box-shadow: inset 0 0 0 4px var(--line);
  overflow: hidden;
}
.trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-river { fill: #3f8fb0; }
.tm-trees { fill: #0d2622; }
.tm-dots { fill: var(--cream); }
.tm-pin { fill: var(--berry); }
.tm-north { fill: var(--gold); }
/* Fog in hard bands, thickening northward: the road goes on, the map does not. */
.trail-fog {
  position: absolute; inset: 0 0 auto 0; height: 72%; animation: fog 9s steps(6) infinite alternate;
  background: linear-gradient(180deg,
    rgba(206, 222, 216, 0.97) 0 22%, rgba(196, 214, 208, 0.86) 22% 34%, rgba(184, 204, 198, 0.66) 34% 46%,
    rgba(170, 194, 188, 0.44) 46% 58%, rgba(160, 186, 180, 0.24) 58% 70%, rgba(150, 178, 172, 0.1) 70% 82%, transparent 82%);
}
.trail { flex-direction: column; align-items: center; }
.trail-label { position: absolute; margin: 0; font: 20px/1.3 var(--pixel); }
.trail-end { top: 9%; left: 0; right: 0; text-align: center; }
.trail-end b { font-weight: 400; color: #46645f; font-size: 30px; }
.tm-north { fill: #6d8a84; }
.trail-caption {
  display: flex; justify-content: space-between; gap: 12px; width: 360px; max-width: 100%; margin: 12px 0 0; padding: 0 4px;
  font: 20px/1.2 var(--pixel);
}
.trail-caption b { font-weight: 400; color: var(--muted); }
.trail-caption span { color: var(--gold); }

@keyframes fog { to { opacity: 0.86; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* launch */
.band-launch {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 22%, #f6efdc 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 30%, #f6efdc 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%),
    radial-gradient(ellipse at 50% 120%, rgba(239, 125, 69, 0.22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0a1a2a 100%);
}
.launch { text-align: center; display: flex; flex-direction: column; align-items: center; }
.launch-sprites { display: flex; gap: clamp(8px, 3vw, 40px); margin-bottom: 28px; }
.launch-sprites img { width: 128px; height: 128px; animation: idle 2.4s steps(2) infinite; }
.launch-sprites img:nth-child(2) { animation-delay: -0.8s; }
.launch-sprites img:nth-child(3) { animation-delay: -1.6s; }
@keyframes idle { 50% { transform: translateY(-4px); } }
@media (max-width: 420px) { .launch-sprites img { width: 64px; height: 64px; } }
.launch .lead { max-width: 560px; }
.cta-center { margin-top: 8px; }

  --notch: 3px;
  flex: 1; min-width: 0; min-height: 52px; padding: 12px 16px; border: 0;
  background: #f3ecd9; color: var(--berry-ink); font: 1.05rem/1.2 var(--body);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.18);
}

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

.footer { border-top: 2px solid var(--ink-3); padding: 48px 0 40px; background: #08181a; font-size: 0.97rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand p { margin: 0 0 4px; color: var(--muted); }
.footer-title { font: 20px/1.4 var(--pixel); color: var(--cream) !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 20px/1.4 var(--pixel); }
.footer-links a, .footer-links span { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; }
.legal { margin: 32px auto 0; color: #7f9890; font-size: 0.9rem; }

/* --------------------------------------------------------------- lightbox */

.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--cream);
  max-width: 100vw; max-height: 100vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 12, 13, 0.92); }
.lightbox[open] { animation: lb-in 0.2s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px; }
.lightbox-img { background: #061415; }
.lightbox-caption { margin: 0; max-width: 72ch; text-align: center; font: 20px/1.4 var(--pixel); }
.lightbox-bar { display: flex; align-items: center; gap: 12px; }
.lightbox-count { min-width: 80px; text-align: center; font: 20px/1 var(--pixel); color: var(--muted); }
.lightbox-btn {
  --notch: 3px;
  width: 48px; height: 48px; border: 0; background: var(--panel-2); color: var(--cream);
  font: 20px/1 var(--pixel); cursor: pointer; box-shadow: inset 0 -4px 0 #0c2226;
}
.lightbox-btn:hover { background: #1f4a51; }
.lightbox-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.lightbox-close { margin-left: 16px; }

/* ----------------------------------------------------------- inner pages */

.page { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(72px, 10vw, 120px); }
.page-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.page-head h1 { font: 40px/1.2 var(--pixel); margin-bottom: 18px; }
@media (max-width: 600px) { .page-head h1 { font-size: 30px; } }
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1em; }
.prose li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 0.65em; width: 8px; height: 8px; background: var(--berry); }
.prose strong { color: var(--cream); }
.updated { color: var(--muted); font: 20px/1 var(--pixel); }

.pk-section { margin-top: clamp(56px, 8vw, 96px); }
.pk-section > h2 { font-size: 30px; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.fact { --notch: 3px; background: var(--panel); padding: 16px 18px; box-shadow: inset 0 0 0 3px var(--ink-3); margin: 0; }
.fact dt { font: 20px/1 var(--pixel); color: var(--berry-hi); margin-bottom: 8px; }
.fact dd { margin: 0; color: var(--cream); }
.copy-block { --notch: 3px; background: var(--panel); padding: 22px 24px; box-shadow: inset 0 0 0 3px var(--ink-3); max-width: 820px; clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px)); }
.copy-block + h3 { margin-top: 28px; }
.copy-block p:last-child { margin: 0; }
.pk-sub { font: 20px/1 var(--pixel); color: var(--gold); margin: 0 0 12px; }
.presskit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.presskit-card { --notch: 4px; background: var(--panel); box-shadow: inset 0 0 0 3px var(--ink-3); padding: 10px 10px 16px; margin: 0; }
.presskit-card .swatch { display: grid; place-items: center; height: 180px; padding: 16px; }
.presskit-card .swatch img { max-height: 100%; width: auto; max-width: 100%; height: auto; }
.presskit-card .swatch img[width='64'] { width: 128px; height: 128px; }
.presskit-card .swatch img[width='256'] { width: 128px; height: 128px; }
.presskit-grid > li, .shots > li { min-width: 0; }
.download .btn { flex: none; }
.swatch-dark { background: #10292f; }
.swatch-light { background: #f3ecd9; }
.swatch-scene { background: #0a1a1c; }
.presskit-card figcaption { padding: 12px 8px 0; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.95rem; }
.presskit-card figcaption b { font: 20px/1.2 var(--pixel); font-weight: 400; color: var(--cream); }
.presskit-card figcaption span { color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.shots a { display: block; text-decoration: none; }
.shots img { width: 100%; height: auto; image-rendering: pixelated; background: #061415; }
.shots span { display: block; padding-top: 8px; font: 20px/1.2 var(--pixel); color: var(--muted); }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.download p { margin: 0; color: var(--muted); }

/* 404 */
.lost { min-height: 100svh; }
.lost .hero-content { padding-top: 2vh; }
.lost-sprite { flex: none; max-width: none; width: 128px; height: 128px; margin: 0 auto 8px; scale: -1 1; animation: idle 2.4s steps(2) infinite; }

/* ---------------------------------------------------------------- reveal */

.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
.reveal-on [data-reveal] { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal-on .starters [data-reveal]:nth-child(2), .reveal-on .gallery [data-reveal]:nth-child(3n + 2) { transition-delay: 0.1s; }
.reveal-on .starters [data-reveal]:nth-child(3), .reveal-on .gallery [data-reveal]:nth-child(3n) { transition-delay: 0.2s; }

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layer, .mist-strip, .sky-body { transform: translate3d(-50%, 0, 0) !important; }
  .mist-strip .layer { transform: none !important; }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .btn:hover, .starter:hover, .frame-link:hover, .tod-tab:hover { transform: none; }
}
