/* Hallmark · shape: Bento Grid · genre: atmospheric · theme: Ribbon (deal 3/3, seed nightspire-games-solo-independent-de8d·2b20ebb1·2026-11-22·r0) · job: try · draw: 631c74
 * hero: Counter · nav: edge-aligned · footer: letter close · imagery: the product, captured in the game (four hour loops of one cove, clip stills, real screens) · signature: the home cove at your hour, a machined hour control over four real loops of one locked-off view · ribbon: two-in-the-morning
 * axes: dark/grotesk-sans/chromatic-amber · posture: committed · contrast: pass · fold: pass · brand: Mosswake (spec 2026-11-22) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a calm game page argues little; it argues for slowness by letting the visitor set the hour on one real cove instead of a sizzle reel */
/* Hallmark · hero-review: fix · 5 findings · 4 resolved 1 partial (the drawn night now shows its horizon, lit windows and glints, but stays quiet behind the panel by design) */
/* Hallmark · finish-review: subagent · 7 findings · 7 resolved · gap: the hour lives mostly in the cove panel; below the hero it returns only as the 12:30 on the weather compare */
/* Hallmark · answered F7 · the pill radius sits on the hour dial's own parts (its sunk slot, the glow inside it and the now mark), which are one control */
/* Hallmark · dismissed 25 · .tile p and .place p hold one-sentence captions of ten words or fewer, which the gate lets sit from 28ch */
@import url("./tokens.css");
@import url("./base.css");

/* The game's captures are the product: they keep their own colour (the theme's photo treatment is for library photographs). */
[data-slot][data-kind="product"] > img, [data-kind="product"] img { filter: none; }

/* ------------------------------------------------------------ chrome */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-part); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.nav { position: relative; z-index: var(--z-sticky-nav); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 76px; }
.wordmark { font: 500 var(--text-lg)/1 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--color-ink-2); }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-part); }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links > a:not(.btn) { color: var(--color-muted); font-size: var(--text-md); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav__links > a:not(.btn):hover, .nav__links > a[aria-current="page"] { color: var(--color-ink); }
.nav__links > a:not(.btn):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-part); }
.nav__menu { display: none; position: relative; }
.nav__menu > summary { list-style: none; }
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__sheet { position: absolute; right: 0; top: calc(100% + var(--space-xs)); display: grid; min-width: 14rem; padding: var(--space-xs); border-radius: var(--radius-card); background: linear-gradient(var(--color-paper-2), var(--color-paper-3)); box-shadow: var(--edge-light), var(--shadow-panel); z-index: var(--z-dropdown); }
.nav__sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-inner); color: var(--color-ink); text-decoration: none; }
.nav__sheet a:hover { background: var(--color-paper); }
.nav__sheet a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
@media (max-width: 44rem) { .nav__links { display: none; } .nav__menu { display: block; } }

/* ------------------------------------------------------------ controls: machined pills, lit from above */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: linear-gradient(var(--color-paper-3), var(--color-paper-2)); box-shadow: var(--edge-light), var(--shadow-part); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--color-muted); color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--edge-lit), var(--shadow-part); }
.btn--primary:hover { border-color: var(--color-focus); background: var(--color-focus); color: var(--color-accent-ink); }
.btn--quiet { background: linear-gradient(var(--color-paper-3), var(--color-paper-2)); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear, color var(--dur-short) linear; } }

.grain { position: absolute; inset: 0; pointer-events: none; background-image: var(--grain, none); background-size: 160px; mix-blend-mode: soft-light; opacity: 0.4; }

/* ------------------------------------------------------------ hero: the hour drawn as light, the cove as the instrument */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: calc(100dvh - 76px); padding-block: var(--space-lg) var(--space-xl); --hz: 87%; --horizon: var(--horizon-dusk);
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper) 36%, var(--horizon) calc(var(--hz) - 0.2%), var(--color-land) calc(var(--hz) + 0.2%), var(--color-land) 100%); }
.hero[data-hour="dawn"] { --horizon: var(--horizon-dawn); }
.hero[data-hour="day"] { --horizon: var(--horizon-day); }
.hero[data-hour="dusk"] { --horizon: var(--horizon-dusk); }
.hero[data-hour="night"] { --horizon: var(--horizon-night); }
.hero__night { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__grain { z-index: -1; opacity: 0.22; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: var(--space-2xl); }
.hero__text { display: grid; justify-items: start; gap: var(--space-lg); }
.hero__title { display: grid; gap: var(--space-lg); max-width: none; font-size: var(--text-display-s); line-height: 1.02; }
.hero__logo { width: clamp(11rem, 15vw, 14rem); height: auto; }
.hero__tag { display: block; max-width: 12ch; color: var(--color-ink); }
.hero__lead { color: var(--color-ink-2); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding-top: var(--space-xs); }
.hero__note { color: var(--color-muted); font-size: var(--text-sm); }

.panel { position: relative; margin: 0; border-radius: var(--radius-card); background: linear-gradient(var(--color-paper-3), var(--color-paper-2)); box-shadow: var(--edge-light), var(--shadow-panel); }
.cove { display: grid; gap: var(--space-sm); padding: var(--space-sm) var(--space-sm) var(--space-md); }
.cove__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding: var(--space-2xs) var(--space-xs) 0; }
.cove__name { font: 500 var(--text-md)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.cove__clock { color: var(--color-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.cove__screen { aspect-ratio: 7 / 5; border-radius: var(--radius-inner); box-shadow: var(--shadow-bed); background: var(--color-slot); }
.cove__layer { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-hour) var(--ease-in-out); }
.cove__layer > img, .cove__layer > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.cove__layer > video { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.cove__layer > video.is-playing { opacity: 1; }
.cove:has(#h-dawn:checked) [data-layer="dawn"], .cove:has(#h-day:checked) [data-layer="day"],
.cove:has(#h-dusk:checked) [data-layer="dusk"], .cove:has(#h-night:checked) [data-layer="night"] { opacity: 1; }
.cove__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: 0 var(--space-xs) var(--space-2xs); }

/* the hour dial: a 24-hour scale, a sunk slot whose glow fills to the hour, a knurled cap that travels to it */
.dial { position: relative; flex: 1; min-width: 0; margin: 0; padding: 0 var(--space-xs); border: 0; --p: 0.731; }
.dial:has(#h-dawn:checked) { --p: 0.264; }
.dial:has(#h-day:checked) { --p: 0.521; }
.dial:has(#h-dusk:checked) { --p: 0.731; }
.dial:has(#h-night:checked) { --p: 0.933; }
.dial__stops { position: relative; height: 48px; }
.dial__stops input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dial__stop { position: absolute; bottom: 0; display: grid; justify-items: center; align-content: end; gap: var(--space-3xs); min-width: 44px; min-height: 44px; padding: 0 var(--space-2xs) var(--space-2xs); transform: translateX(-50%); border-radius: var(--radius-part); color: var(--color-muted); font-size: var(--text-sm); line-height: 1.1; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.dial__stop > span:first-child { font-weight: 500; }
.dial__stop .num { font-size: var(--text-xs); }
.dial__stop--dawn { left: 26.4%; } .dial__stop--day { left: 52.1%; } .dial__stop--dusk { left: 73.1%; } .dial__stop--night { left: 93.3%; }
.dial__stop:hover { color: var(--color-ink); }
.dial__stops input:checked + .dial__stop { color: var(--color-ink); }
.dial__stops input:focus-visible + .dial__stop { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.dial__bed { position: relative; container-type: inline-size; height: 10px; margin-top: var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: var(--shadow-bed); }
.dial__fill { position: absolute; inset: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--color-accent-soft), var(--color-glow)); transform: scaleX(var(--p)); transform-origin: left center; transition: transform var(--dur-hour) var(--ease-in-out); }
.dial__rail { position: absolute; inset: 0; pointer-events: none; }
.dial__cap { position: absolute; left: -14px; top: -11px; width: 28px; height: 32px; transform: translateX(calc(var(--p) * 100cqw)); transition: transform var(--dur-hour) var(--ease-in-out); border-radius: var(--radius-part); background: repeating-linear-gradient(90deg, transparent 0 3px, var(--knurl) 3px 4px), linear-gradient(var(--metal-hi), var(--metal-lo)); box-shadow: var(--edge-light), var(--shadow-part); }
.dial__cap::after { content: ""; position: absolute; left: 50%; top: var(--space-2xs); bottom: var(--space-2xs); width: 2px; margin-left: -1px; border-radius: var(--radius-pill); background: var(--color-accent); }
.dial__now { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; margin-left: -1px; border-radius: var(--radius-pill); background: var(--color-ink); opacity: 0.55; transform: translateX(var(--now-x, 0px)); }
.dial__scale { display: flex; justify-content: space-between; margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); }
.dial__scale > span { width: 2ch; text-align: center; }
.dial__scale > span:first-child { margin-left: -1ch; } .dial__scale > span:last-child { margin-right: -1ch; }
.cove__pause { flex-shrink: 0; }
html:not(.js) .cove__pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cove__layer, .cove__layer > video, .dial__fill, .dial__cap { transition: none; }
  .cove__pause { display: none; }
}

@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-lg) var(--space-2xl); --hz: 46%; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
}
@media (max-width: 40rem) {
  .hero__grid { gap: var(--space-lg); }
  .hero__text { display: contents; }
  .hero__title { order: 1; }
  .cove { order: 2; }
  .hero__lead { order: 3; }
  .hero__actions { order: 4; padding-top: 0; }
  .hero__note { order: 5; }
  .cove__head { padding-top: 0; }
  .cove__controls { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .cove__screen { aspect-ratio: 4 / 3; }
  .cove__layer > img, .cove__layer > video { object-position: 70% 50%; }
}

/* ------------------------------------------------------------ sections */
.section { padding-block: var(--section-gap-s) 0; }
.section--l { padding-top: var(--section-gap); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--gap-columns); }
.head .lead { color: var(--color-muted); }
.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.22em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-part); }
p a:not(.btn) { color: var(--color-ink); text-decoration-color: var(--color-rule); text-underline-offset: 0.22em; }
p a:not(.btn):hover { text-decoration-color: var(--color-accent); }
p a:not(.btn):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-part); }

/* the trailer: one wide frame, YouTube only after a press */
.trailer__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-card); background: var(--color-slot); box-shadow: var(--shadow-panel); }
.trailer__frame > img, .trailer__frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.trailer__frame.is-playing > img, .trailer__frame.is-playing > button { display: none; }
.trailer__play { position: absolute; left: var(--space-xl); bottom: var(--space-xl); display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 52px; padding: 0 var(--space-lg) 0 var(--space-md); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--edge-lit), var(--shadow-part); font: 500 var(--text-md)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.trailer__play:hover { background: var(--color-focus); }
.trailer__play:active { transform: translateY(1px); }
.trailer__play:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.trailer__play svg { flex-shrink: 0; }
.trailer__note { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }

/* moments: the bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { display: grid; grid-template-rows: auto auto; align-content: start; gap: var(--space-md); margin: 0; }
.tile__img { position: relative; overflow: hidden; height: 280px; border-radius: var(--radius-card); background: var(--color-slot); }
.tile__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { display: grid; gap: var(--space-2xs); }
.tile h3 { font-size: var(--text-title); color: var(--color-ink); }
.tile p { color: var(--color-muted); max-width: 46ch; }
.tile:nth-child(1) { grid-column: span 7; }
.tile:nth-child(2) { grid-column: span 5; }
.tile:nth-child(1) .tile__img, .tile:nth-child(2) .tile__img { height: 500px; }
.tile:nth-child(1) p { max-width: 64ch; }
.tile:nth-child(3), .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 4; }
.tile:nth-child(6) { grid-column: span 7; }
.tile:nth-child(7) { grid-column: span 5; }
.tile:nth-child(6) .tile__img, .tile:nth-child(7) .tile__img { height: 340px; }
.bento { row-gap: var(--space-2xl); }
.moments__more { margin-top: var(--space-xl); }
.js [data-reveal] .tile { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.tile:nth-child(1) { --i: 0; } .tile:nth-child(2) { --i: 1; } .tile:nth-child(3) { --i: 2; } .tile:nth-child(4) { --i: 3; } .tile:nth-child(5) { --i: 4; } .tile:nth-child(6) { --i: 5; } .tile:nth-child(7) { --i: 6; }
.js [data-reveal].is-in .tile { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] .tile { opacity: 1; transform: none; transition: none; } }

/* weather: the same view, clear and in a storm */
.weather__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; gap: var(--gap-columns) var(--space-2xl); }
.weather__text { grid-column: 2; grid-row: 1; display: grid; gap: var(--space-lg); }
.weather__text p { color: var(--color-muted); }
.compare { grid-column: 1; grid-row: 1; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-card); background: var(--color-slot); box-shadow: var(--shadow-panel); --split: 50%; }
.compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare__tag { position: absolute; top: var(--space-md); z-index: 2; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-scrim); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.compare__tag--before { left: var(--space-md); }
.compare__tag--after { right: var(--space-md); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 2; width: 2px; margin-left: -1px; background: var(--color-ink); pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: var(--radius-pill); background: repeating-linear-gradient(90deg, transparent 0 3px, var(--knurl) 3px 4px), linear-gradient(var(--metal-hi), var(--metal-lo)); box-shadow: var(--edge-light), var(--shadow-part); }
.compare__knob::after { content: ""; position: absolute; left: 50%; top: var(--space-xs); bottom: var(--space-xs); width: 2px; margin-left: -1px; border-radius: var(--radius-pill); background: var(--color-accent); }
.compare input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) .compare__knob { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* the close: a band of the second paper, one last screen and the store */
.band { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-band); color: var(--color-band-ink); }
.close__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--space-3xl); }
.close__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; min-height: 440px; border-radius: var(--radius-card); background: var(--color-slot); }
.close__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close__text { display: grid; gap: var(--space-xl); }
.close__action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.close__note { color: var(--color-muted); font-size: var(--text-sm); }
.close__lead { color: var(--color-muted); max-width: 40ch; }

/* the footer: a letter close */
.letter { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule-2); }
.letter__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 1fr) minmax(0, 4fr); gap: var(--space-xl) var(--gap-columns); }
.letter__body { display: grid; gap: var(--space-lg); }
.letter__text { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 46ch; }
.letter__sign { display: grid; gap: var(--space-2xs); }
.letter__sign time { color: var(--color-muted); font-size: var(--text-sm); }
.letter__links { grid-column: 3; display: grid; align-content: start; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.letter__links a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.letter__links a:hover { color: var(--color-accent); }
.letter__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-part); }
.letter__legal { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 60rem) {
  .head--split { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(n) { grid-column: span 1; }
  .tile:nth-child(1), .tile:nth-child(6) { grid-column: 1 / -1; }
  .tile:nth-child(n) .tile__img { height: 260px; }
  .tile:nth-child(1) .tile__img, .tile:nth-child(6) .tile__img { height: 360px; }
  .weather__grid, .close__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .weather__text, .compare { grid-column: 1; grid-row: auto; }
  .close__img { min-height: 0; }
  .letter__grid { grid-template-columns: minmax(0, 1fr); }
  .letter__links { grid-column: 1; }
  .trailer__play { left: var(--space-md); bottom: var(--space-md); }
}
@media (max-width: 40rem) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile:nth-child(n) { grid-column: 1; }
  .tile:nth-child(n) .tile__img { height: 240px; }
  .tile:nth-child(1) .tile__img { height: 300px; }
}


/* ------------------------------------------------------------ the Mosswake page */
.game-hero { padding-block: var(--space-xl) var(--space-2xl); }
.game-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-3xl); min-height: calc(100dvh - 76px - var(--space-xl) - var(--space-2xl)); }
.game-hero__img { color: var(--color-ink); position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 76dvh; border-radius: var(--radius-card); background: var(--color-slot); box-shadow: var(--shadow-panel); }
.game-hero__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero__text { display: grid; justify-items: start; gap: var(--space-lg); }
.game-hero__logo { width: clamp(11rem, 16vw, 15rem); height: auto; }
.game-hero__text .lead { color: var(--color-ink-2); max-width: 34ch; }

/* how the days go: one screen held while the steps pass */
.pinned { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns) var(--space-3xl); }
.pinned__stage { display: none; }
.pinned__steps { display: grid; gap: var(--space-3xl); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { display: grid; gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.step p { color: var(--color-muted); max-width: 46ch; }
.step__img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin-top: var(--space-xs); border-radius: var(--radius-card); background: var(--color-slot); }
.step__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 60.01rem) {
  .js .pinned__stage { display: block; position: sticky; top: var(--space-2xl); align-self: start; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-card); background: var(--color-slot); box-shadow: var(--shadow-panel); }
  .js .pinned__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-long) var(--ease-in-out); }
  .js .pinned__stage > img.is-on { opacity: 1; }
  .js .step { min-height: 62dvh; align-content: center; border-top: 0; }
  .js .step h3 { color: var(--color-muted); transition: color var(--dur-long) var(--ease-out); }
  .js .step.is-on h3 { color: var(--color-ink); }
  .js .step__img { display: none; }
  .js .pinned__steps { gap: 0; }
  html:not(.js) .pinned { grid-template-columns: minmax(0, 1fr); }
  html:not(.js) .pinned__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
}
@media (prefers-reduced-motion: reduce) { .js .pinned__stage > img, .js .step h3 { transition: none; } }

/* fish: a ledger of levels */
.fish__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.fish__head { display: grid; gap: var(--space-md); position: sticky; top: var(--space-2xl); }
.fish__head .lead { color: var(--color-muted); }
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { padding: var(--space-md) var(--space-sm) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.ledger thead th { padding-top: 0; color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; white-space: nowrap; }
.ledger tbody th { font: 400 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--color-ink); }
.ledger td { color: var(--color-muted); }
.ledger .num { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tbody td.num { font: 400 var(--text-title)/1.2 var(--font-display); color: var(--color-ink); }

/* places: a rail past the edge */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 22%); gap: var(--gap-columns); margin: 0; padding: var(--space-2xs) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) var(--space-lg); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); overscroll-behavior-x: contain; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.place { display: grid; align-content: start; gap: var(--space-xs); }
.place__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: var(--space-xs); border-radius: var(--radius-card); background: var(--color-slot); }
.place__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place h3 { font-size: var(--text-title); }
.place p { color: var(--color-muted); max-width: 32ch; }

.game-close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-xl) var(--gap-columns); }
.game-close__grid h2 { font-size: var(--text-display-s); max-width: 16ch; }
.game-close__action { display: grid; justify-items: start; gap: var(--space-lg); }

@media (max-width: 60rem) {
  .game-hero__grid, .pinned, .fish__grid, .game-close__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .game-hero__img { aspect-ratio: 4 / 3; max-height: none; }
  .fish__head { position: static; }
  .rail { grid-auto-columns: minmax(14rem, 70%); }
  .ledger thead th:nth-child(3), .ledger tbody td:nth-child(3) { display: none; }
}
@media (max-width: 40rem) {
  .ledger thead th:nth-child(2), .ledger tbody td:nth-child(2) { display: none; }
}


/* ------------------------------------------------------------ 404 */
.lost { padding-block: var(--space-2xl) var(--space-3xl); }
.lost__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--space-3xl); min-height: calc(100dvh - 76px - var(--space-2xl) - var(--space-3xl)); }
.lost__text { display: grid; justify-items: start; gap: var(--space-lg); }
.lost__text .lead { color: var(--color-muted); }
.lost__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 72dvh; border-radius: var(--radius-card); background: var(--color-slot); }
.lost__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 60rem) { .lost__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; } .lost__img { aspect-ratio: 4 / 3; } }
