/* Off the Map — playotm.com. Direction "Canopy" (docs/superpowers/specs/2026-09-25-playotm-website-design.md). */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0C180D;       /* the forest at night, the icon's ground */
  --moss: #152617;        /* raised panels */
  --moss-line: #26402A;
  --parchment: #ECE6D6;   /* text */
  --lichen: #BDB6A3;      /* quiet text */
  --brass: #B8955A;       /* the compass ring */
  --brass-light: #D8B97A;
  --mist: #9FB0A6;        /* the icon's morning sky */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--night);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--night);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
picture { display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

a { color: var(--brass-light); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--parchment); color: var(--night); padding: 10px 14px;
}
.skip:focus { top: 12px; }

/* ---- Buttons -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font: 600 1rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: var(--brass); color: var(--night); }
.btn-brass:hover { background: var(--brass-light); color: var(--night); }
.btn-ghost { background: rgba(12, 24, 13, 0.35); color: var(--parchment); border-color: rgba(236, 230, 214, 0.55); }
.btn-ghost:hover { background: rgba(236, 230, 214, 0.12); border-color: var(--parchment); color: var(--parchment); }
.btn-outline { background: transparent; color: var(--parchment); border-color: rgba(216, 185, 122, 0.7); }
.btn-outline:hover { background: var(--brass); border-color: var(--brass); color: var(--night); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.icon-play { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform 180ms var(--ease); }
.btn:hover .icon-play { transform: translateX(2px); }

.linklike {
  background: none; border: 0; padding: 0; color: var(--brass-light); font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.linklike:hover { color: var(--parchment); }

/* ---- Header --------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid { background: rgba(12, 24, 13, 0.92); border-bottom-color: var(--moss-line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--parchment); text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand picture, .footer-brand picture { display: block; }
.brand span { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.brand:hover { color: var(--brass-light); }
.site-nav { display: none; gap: 28px; }
.site-nav a { color: var(--parchment); text-decoration: none; font-weight: 500; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--brass-light); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease);
}
.site-nav a:hover { color: var(--brass-light); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---- Hero ----------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  isolation: isolate;
}
/* The picture is sized by the screen, never by the hero's content: when "Other versions" opens, the hero
   grows taller, and a layer sized by the hero (inset in %) grew with it, so the cover-fitted image zoomed.
   Now it keeps one size (16% taller than the screen, for the parallax); below it the night ground shows,
   and its lower edge fades into that ground. */
.hero { background: var(--night); }
.hero-media { position: absolute; top: -8vh; top: -8svh; left: 0; right: 0; height: 116vh; height: 116svh; z-index: -2; will-change: transform; }
.hero-media picture { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10%;
  background: linear-gradient(to bottom, rgba(12, 24, 13, 0), var(--night));
}
/* The entrance: a layer of night over the forest lifts. The image itself is never animated,
   so it counts as painted from its first frame (Largest Contentful Paint). */
.hero-dawn { position: absolute; inset: 0; z-index: -1; background: var(--night); opacity: 0; pointer-events: none; }
/* Legibility where the words sit: a flat, dark band rising from the bottom, not a wash. */
.hero-shade {   /* from 38% of the screen down to the hero's end: a taller hero doesn't darken the picture more */
  position: absolute; inset: 38vh 0 0 0; inset: 38svh 0 0 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(12, 24, 13, 0) 0, rgba(12, 24, 13, 0.82) 34vh, rgba(12, 24, 13, 0.94) 62vh);
  background: linear-gradient(to bottom, rgba(12, 24, 13, 0) 0, rgba(12, 24, 13, 0.82) 34svh, rgba(12, 24, 13, 0.94) 62svh);
}
.hero-top {
  position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1;
  background: linear-gradient(to bottom, rgba(12, 24, 13, 0.7), rgba(12, 24, 13, 0));
}
.hero-inner {
  width: 100%; max-width: 1180px;
  padding: 0 var(--gutter) clamp(40px, 9vh, 96px);
  display: flex; flex-direction: column; gap: 14px;
}
.hero-alpha {
  align-self: flex-start;
  font-size: 0.875rem; font-weight: 500; color: var(--brass-light);
  border: 1px solid rgba(216, 185, 122, 0.6); border-radius: 999px; padding: 5px 12px;
  background: rgba(12, 24, 13, 0.45);
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(3.6rem, 13vw, 9.5rem); line-height: 0.9; letter-spacing: -0.01em;
  margin-top: 6px;
}
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4.2vw, 2.6rem); line-height: 1.1; color: var(--parchment); }
.hero-lede { max-width: 38ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #D9D2BF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-fine { font-size: 0.9rem; color: var(--lichen); }

/* The one orchestrated moment: the forest comes up out of the dark, then the words. */
@media (prefers-reduced-motion: no-preference) {
  .hero-dawn { animation: dawn 2.2s var(--ease) both; }
  .hero-inner > * { animation: settle 1.1s var(--ease) both; }
  .hero h1 { animation-name: rise; }  /* no fade: the title paints at once */
  .hero-inner > :nth-child(1) { animation-delay: 0.7s; }
  .hero-inner > :nth-child(2) { animation-delay: 0.85s; }
  .hero-inner > :nth-child(3) { animation-delay: 1.05s; }
  .hero-inner > :nth-child(4) { animation-delay: 1.2s; }
  .hero-inner > :nth-child(5) { animation-delay: 1.35s; }
  .hero-inner > :nth-child(6) { animation-delay: 1.5s; }
}
@keyframes dawn { from { opacity: 0.85; } to { opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* ---- Sections ------------------------------------------------------------------------- */
main > section:not(.hero) { padding: clamp(72px, 12vw, 150px) var(--gutter) 0; max-width: 1320px; margin: 0 auto; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 5vw, 48px); max-width: var(--measure); }
.section-head h2, .emblem h2, .alpha h2 { font-family: var(--serif); font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; }
.section-head p { color: var(--lichen); font-size: 1.125rem; }

/* ---- Emblem --------------------------------------------------------------------------- */
.emblem { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; justify-items: center; text-align: center; }
.emblem-mark { width: min(62vw, 320px); position: relative; }
.emblem-mark img { width: 100%; height: auto; border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(216, 185, 122, 0.18); }
.emblem-text { display: flex; flex-direction: column; gap: 18px; max-width: 34rem; }
.emblem-text p { font-size: 1.1875rem; line-height: 1.7; color: #D9D2BF; }

/* ---- Pillars -------------------------------------------------------------------------- */
.pillars { display: grid; gap: 36px 32px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
.pillar { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--moss-line); }
.pillar svg { fill: none; stroke: var(--brass-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.pillar svg circle[r="1.6"] { fill: var(--brass-light); stroke: none; }
.pillar h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.pillar p { color: var(--lichen); max-width: 32ch; }

/* ---- Worlds --------------------------------------------------------------------------- */
.world-open {
  display: grid; overflow: hidden; border-radius: 6px;
  background: var(--moss); border: 1px solid var(--moss-line);
}
.world-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.world-media .slides { position: absolute; inset: -10% 0; }
.world-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.world-open:hover .world-media img { transform: scale(1.04); }
/* The card's pictures, up the trail (site.js). Only the one showing and the next are laid out,
   so each lazy image loads just before its turn; without the script the first stays. The one
   coming in fades over the one going, which stays until it is covered. */
.slide { position: absolute; inset: 0; display: none; opacity: 0; transition: opacity 1100ms var(--ease); }
.slide picture { height: 100%; }
.slide.is-current, .slide.is-next, .slide.is-leaving { display: block; }
.slide.is-current { opacity: 1; z-index: 2; }
.slide.is-leaving { opacity: 1; z-index: 1; }
.slides-caption {
  position: absolute; top: 14px; left: 14px; z-index: 3; max-width: calc(100% - 28px);
  font-size: 0.875rem; font-weight: 500; color: var(--parchment);
  border: 1px solid rgba(216, 185, 122, 0.5); border-radius: 999px; padding: 4px 12px;
  background: rgba(12, 24, 13, 0.55); transition: opacity 400ms var(--ease);
}
.slides-caption.is-changing { opacity: 0; }
.slides-controls {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: flex; align-items: center; gap: 2px; padding: 0 6px 0 2px; border-radius: 999px;
  background: rgba(12, 24, 13, 0.55);
}
.slides-controls[hidden] { display: none; }
.slides-controls button { display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--parchment); }
.slides-controls button:focus-visible { outline-offset: -2px; border-radius: 999px; }
.slides-pause { width: 34px; height: 34px; }
.slides-pause svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slides-pause:hover { color: var(--brass-light); }
.slides-pause .icon-resume, [data-paused] .slides-pause .icon-pause { display: none; }
[data-paused] .slides-pause .icon-resume { display: block; }
.slides-dots { display: flex; }
.slides-dots button { width: 24px; height: 34px; }
.slides-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(236, 230, 214, 0.5);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.slides-dots button:hover::before { background: var(--parchment); }
.slides-dots button[aria-selected="true"]::before { background: var(--brass-light); transform: scale(1.4); }
.world-body { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 48px); }
.world-status { display: flex; align-items: center; gap: 10px; color: var(--brass-light); font-weight: 600; font-size: 0.95rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass-light); box-shadow: 0 0 0 4px rgba(216, 185, 122, 0.2); }
.world-body h3 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.02; }
.world-body > p { color: #D9D2BF; max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 6px 0 4px; }
.facts div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--moss-line); padding-top: 10px; }
.facts dt { color: var(--lichen); font-size: 0.875rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.text-link { align-self: flex-start; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(216, 185, 122, 0.5); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--parchment); }

.worlds-next { display: grid; gap: 20px; margin-top: 20px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
.world-locked { display: flex; flex-direction: column; gap: 10px; }
.locked-media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 7; background: var(--moss); }
.locked-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.35) brightness(0.5); transform: scale(1.06); }
.lock { position: absolute; top: 50%; left: 50%; translate: -50% -50%; fill: none; stroke: var(--lichen); stroke-width: 1.5; stroke-linecap: round; }
.world-locked h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-top: 4px; }
.world-locked p { color: var(--lichen); max-width: 40ch; }

/* ---- Trailer -------------------------------------------------------------------------- */
.video-frame { position: relative; border-radius: 6px; overflow: hidden; background: #050A05; border: 1px solid var(--moss-line); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-credit { margin-top: 10px; font-size: 0.875rem; color: var(--lichen); }
.video-missing {
  position: absolute; inset: auto 0 0 0; padding: 18px 22px;
  background: rgba(12, 24, 13, 0.85); color: var(--parchment); font-weight: 500;
}

/* ---- Gallery -------------------------------------------------------------------------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* two columns: an odd last one goes wide */
.shot {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: var(--moss); cursor: zoom-in; aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), filter 300ms var(--ease); filter: saturate(0.92); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); filter: saturate(1.05); }

.lightbox {
  width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: 6px;
  background: #050A05; color: var(--parchment); overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 10, 5, 0.9); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox-caption { padding: 12px 18px 16px; color: var(--lichen); }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(12, 24, 13, 0.7); color: var(--parchment);
  transition: background-color 160ms var(--ease);
}
.lightbox button:hover { background: var(--brass); color: var(--night); }
.lightbox button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { top: 42%; left: 12px; }
.lightbox-next { top: 42%; right: 12px; }

/* ---- Roadmap -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.timeline li { position: relative; padding-left: 34px; display: flex; flex-direction: column; gap: 8px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--brass-light); background: var(--night);
}
.timeline li.now::before { background: var(--brass-light); box-shadow: 0 0 0 5px rgba(216, 185, 122, 0.18); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 26px; bottom: -30px; width: 1px; background: var(--moss-line); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.timeline p { color: #D9D2BF; max-width: 34ch; }

/* ---- Alpha ---------------------------------------------------------------------------- */
.alpha { padding-bottom: clamp(72px, 12vw, 150px); }
.alpha-panel {
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  padding: clamp(28px, 6vw, 72px); border-radius: 6px;
  background: var(--moss); border: 1px solid rgba(216, 185, 122, 0.45);
}
.alpha-panel > p { max-width: var(--measure); color: #D9D2BF; font-size: 1.125rem; }
.asks { margin: 0 0 8px; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 1.125rem; }
.asks li::marker { color: var(--brass-light); }
.fine { font-size: 0.9375rem; color: var(--lichen); }
.alpha-actions { width: 100%; margin-top: 4px; }

/* ---- Downloads: one button for this visitor's platform, every build under "Other versions" ----
   Written by web/make_downloads.py from web/downloads.json. Without script the list is simply open;
   site.js adds the button and turns the list into a disclosure. */
.hero-actions { align-items: flex-start; }
.hero.is-open { align-items: flex-start; }  /* site.js keeps the words where they were */
.get { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; max-width: 100%; }
.get-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.get-pick[hidden], .get-toggle[hidden], .get-list[hidden] { display: none; }
.get-pick-note { font-size: 0.9rem; color: var(--lichen); max-width: 46ch; }
.get-soon { font-weight: 500; color: var(--parchment); }
.get-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 0;
  background: none; border: 0; color: var(--parchment); font: inherit; font-size: 0.9375rem; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(216, 185, 122, 0.6); text-underline-offset: 4px;
}
.get-toggle::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.5px solid var(--brass-light); border-bottom: 1.5px solid var(--brass-light);
  transform: rotate(45deg); transition: transform 200ms var(--ease), margin 200ms var(--ease);
}
.get-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.get-toggle:hover { color: var(--brass-light); }
.get-toggle:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; border-radius: 2px; }
.get-list {
  width: min(100%, 620px);
  background: rgba(21, 38, 23, 0.94); border: 1px solid rgba(216, 185, 122, 0.45); border-radius: 6px;
}
/* One group per platform: its name and requirements once, then its builds, the recommended one first. */
.get-os { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; border-top: 1px solid var(--moss-line); }
.get-os:first-child { border-top: 0; }
.get-os-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.1; color: var(--parchment); }
.get-req { font-size: 0.9375rem; color: #D9D2BF; max-width: 60ch; }
.get-builds { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.get-build { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-left: 14px; border-left: 2px solid var(--moss-line); }
.get-name { font-weight: 600; color: var(--parchment); }
.get-meta { margin-left: 6px; font-weight: 400; color: var(--lichen); }
.get-tag {
  margin-left: 8px; padding: 1px 8px; border: 1px solid rgba(216, 185, 122, 0.6); border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; color: var(--brass-light); vertical-align: 1px;
}
.get-note { font-size: 0.875rem; color: var(--lichen); max-width: 60ch; }
.get-sha { font-size: 0.8125rem; color: var(--lichen); max-width: 100%; }
.get-sha summary { cursor: pointer; width: max-content; text-decoration: underline; text-decoration-color: rgba(189, 182, 163, 0.5); text-underline-offset: 3px; }
.get-sha summary:hover { color: var(--parchment); }
.get-sha code { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--parchment); word-break: break-all; }
.get-link { margin: 4px 0 2px; }
.get-build.is-soon .get-meta { font-style: italic; }
/* Wider screens: the link beside the build's name, the notes below both. */
@media (min-width: 720px) {
  .get-build { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center; }
  .get-build > * { grid-column: 1 / -1; }
  .get-build > .get-name { grid-column: 1; }
  .get-build > .get-link { grid-column: 2; grid-row: 1; margin: 0; }
  /* In the hero the open list must not widen the column (the trailer button beside it would jump right):
     it adds no width to it and opens below the button, clear of the trailer button. */
  .hero .get.is-ready .get-list { --w: min(620px, calc(100vw - 2 * var(--gutter))); width: var(--w); margin-right: calc(-1 * var(--w)); }
}
@media (prefers-reduced-motion: no-preference) {
  .get.is-ready .get-list:not([hidden]) { animation: settle 0.35s var(--ease) both; }
}

/* ---- Footer --------------------------------------------------------------------------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--moss-line); color: var(--lichen); font-size: 0.9375rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--parchment); margin-right: auto; }
.footer-brand img { border-radius: 7px; }
.footer-brand span { font-family: var(--serif); font-size: 1.25rem; }
.site-footer > p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.footer-nav a, .footer-nav .linklike { padding: 0; margin: 0; font: inherit; line-height: 1.5; white-space: nowrap; }

/* ---- Consent -------------------------------------------------------------------------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 560px; padding: 18px 20px; border-radius: 6px;
  background: rgba(21, 38, 23, 0.97); border: 1px solid var(--moss-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 0.975rem;
}
.consent[hidden] { display: none; }
/* Asked before any script runs (an inline check in <head>), so the question is there with the first paint. */
.ask-consent .consent[hidden] { display: flex; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* ---- Wider screens -------------------------------------------------------------------- */
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .gallery-grid li:last-child:nth-child(odd) { grid-column: auto; }
  .worlds-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .timeline li { padding-left: 0; padding-top: 40px; }
  .timeline li::before { top: 0; left: 0; }
  .timeline li::after { left: 20px; right: -26px; top: 6px; bottom: auto; width: auto; height: 1px; }
  .consent { left: auto; right: 24px; bottom: 24px; }
}
@media (min-width: 1100px) {
  .emblem { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); text-align: left; justify-items: start; }
  .emblem-mark { width: 100%; max-width: 380px; justify-self: center; }
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .world-open { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .world-media { aspect-ratio: auto; min-height: 520px; }
}

/* ---- Reduced motion: still, and nothing slides -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .hero-media, .world-media .slides { transform: none !important; }
}

/* ---- Legal pages ---------------------------------------------------------------------- */
.legal-page { max-width: 46rem; margin: 0 auto; padding: 120px var(--gutter) 80px; display: flex; flex-direction: column; gap: 16px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; margin-bottom: 8px; }
.legal-page h2 { font-family: var(--serif); font-size: 1.75rem; margin-top: 18px; }
.legal-page p { color: #D9D2BF; }
/* The shared Triplemind imprint (www.triplemind.com/imprint.js writes an <h1> and a table). */
.imprint h1 { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; margin: 8px 0 18px; }
.imprint table { border-collapse: collapse; color: #D9D2BF; }
.imprint td { padding: 8px 18px 8px 0; border-top: 1px solid var(--moss-line); vertical-align: top; }
.imprint td:first-child { color: var(--parchment); white-space: nowrap; }
.legal-lede { color: var(--lichen); }
/* The credits page (web/make_credits.py from data/game/credits.json). */
.credit-group { display: flex; flex-direction: column; gap: 16px; }
.credit-group h2 { margin-top: 28px; }
.legal-page .credit-intro { color: var(--lichen); }
.credit { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--moss-line); }
.credit h3, .software-head { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.15; }
.legal-page .credit-role { color: var(--lichen); }
.legal-page .credit-text { color: var(--parchment); overflow-wrap: anywhere; }
.legal-page .credit-meta { color: var(--lichen); font-size: 0.9375rem; overflow-wrap: anywhere; }
.software-head { margin-top: 10px; }
.software-list { list-style: none; margin: 0; padding: 0; }
.software-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 9px 0; border-top: 1px solid var(--moss-line); }
.sw-name { color: var(--parchment); }
.sw-version, .sw-meta { color: var(--lichen); }
.sw-meta { font-size: 0.9375rem; }
@media (max-width: 560px) { .imprint td { display: block; padding: 4px 0; border-top: 0; } .imprint td:first-child { padding-top: 14px; border-top: 1px solid var(--moss-line); } }
@media (max-width: 719px) {
  .consent { padding: 14px 16px; gap: 10px; font-size: 0.875rem; line-height: 1.5; }
  .consent .btn-small { min-height: 38px; }
}
