/* Self-hosted fonts (SIL Open Font License) */
@font-face{font-family:'Cinzel';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/cinzel-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/cinzel-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/oswald-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/oswald-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Caveat';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/caveat-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ZAYVN Studios design system
   VOICE   cinematic, quiet, confident; the art does the talking
   IDEA    a film-festival programme: each game gets its own poster, one studio frame holds them
   PICTURE the games' own key art, large, edge to edge
   COLOUR  studio: night black, warm ivory, ZAYVN gold. Each game keeps its own palette (below)
   TYPE    studio: Cinzel titles + Inter text. Games: Oswald (Under Zero), Cormorant + Caveat (Postcard), Cinzel (Amber)
   LAYOUT  1240px content, full-bleed bands, generous air, stacks below 760px */

:root {
  color-scheme: dark;
  /* Studio palette */
  --ground: #0b0a08;
  --surface: #15130f;
  --surface-2: #1c1914;
  --line: #2b261e;
  --ink: #ede6d8;
  --muted: #a89f8e;
  --accent: #d9a441;
  --accent-ink: #0b0a08;

  /* Type */
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 700;
  --display-case: none;
  --display-track: 0.01em;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  /* Scale: four text sizes */
  --t-hero: clamp(40px, 6.2vw, 84px);
  --t-title: clamp(30px, 3.6vw, 48px);
  --t-lead: clamp(18px, 1.5vw, 20px);
  --t-small: 14px;

  /* Space and shape */
  --wrap: 1240px;
  --gutter: max(5vw, 18px);
  --band: clamp(72px, 9vw, 136px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Each game keeps its own identity. Put data-game="…" on any element to switch. */
[data-game='under-zero'] {
  --ground: #07090c;
  --surface: #0f1318;
  --surface-2: #151b22;
  --line: #232a33;
  --ink: #e9e6e1;
  --muted: #9aa3ad;
  --accent: #e5483f;
  --accent-ink: #0b0a08;
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --display-weight: 700;
  --display-case: uppercase;
  --display-track: 0.02em;
}

[data-game='postcard'] {
  --ground: #150b11;
  --surface: #21121a;
  --surface-2: #2a1721;
  --line: #3b2330;
  --ink: #f4e7d7;
  --muted: #c4aa9f;
  --accent: #f08a3c;
  --accent-ink: #150b11;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --display-weight: 600;
  --display-case: none;
  --display-track: 0;
}

[data-game='amber'] {
  --ground: #0c0a06;
  --surface: #17130b;
  --surface-2: #1f1a0f;
  --line: #30281a;
  --ink: #efe5cf;
  --muted: #aca08a;
  --accent: #e8b04b;
  --accent-ink: #0c0a06;
  --font-display: 'Cinzel', Georgia, serif;
  --display-weight: 700;
  --display-case: none;
  --display-track: 0.02em;
}

/* Base: reset, type, links, buttons, motion */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-track);
  line-height: 1.05;
  text-wrap: balance;
}
.title { font-size: var(--t-title); }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.small { font-size: var(--t-small); color: var(--muted); }
.prose p { max-width: 66ch; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); font-size: 17px; }
.prose p + p { margin-top: 1em; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.band { padding-block: var(--band); }
.band + .band { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.label { font-size: var(--t-small); font-weight: 600; color: var(--accent); margin-bottom: 14px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 86%, white); transform: translateY(-1px); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Status chip: development state is always labelled */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.chip-status { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.chip-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-planned { border-style: dashed; color: var(--muted); }

/* Scroll reveal: content is visible without JS; JS adds .js to <html> first */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.section-aside { max-width: 44ch; }

/* Header and navigation */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-solid { background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 700 21px/1 'Cinzel', Georgia, serif; letter-spacing: 0.08em; }
.brand-name span { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: var(--muted); margin-top: 5px; }
.brand:hover { color: var(--ink); }

.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-list a { text-decoration: none; font-size: 15px; font-weight: 500; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); padding: 10px 0; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--ink); }
.nav-list a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 76px 0 auto; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current] { box-shadow: none; color: var(--accent); }
  .site-header.menu-open { background: var(--ground); border-bottom-color: var(--line); }
}

/* Responsive picture frames */
.frame { position: relative; overflow: hidden; background: var(--surface-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { aspect-ratio: 3 / 4; }
.frame-wide { aspect-ratio: 16 / 9; }

/* Featured game (homepage). The whole block is one link. */
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) + 6px); overflow: hidden; isolation: isolate; }
.feature + .feature { margin-top: clamp(24px, 3vw, 40px); }
.feature:nth-child(even) .feature-art { order: 2; }
.feature-art { min-height: 100%; }
.feature-art.frame { aspect-ratio: 3 / 4; }
.feature-art img { transition: transform 1.2s var(--ease); }
.feature:hover .feature-art img { transform: scale(1.035); }
.feature-body { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(32px, 5vw, 72px); }
.feature-num { font-size: var(--t-small); font-weight: 600; color: var(--accent); }
.feature-series { display: block; font-size: 0.42em; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.35em; }
.feature h3 { font-size: var(--t-title); }
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-body .lead { color: color-mix(in srgb, var(--ink) 80%, var(--muted)); }
.feature .btn { align-self: flex-start; }
.feature .stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.feature:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.feature .stretch:focus-visible { outline: none; }
.feature-tagline { font-size: var(--t-lead); color: var(--muted); font-style: italic; }
[data-game='postcard'] .feature-tagline { font: 500 clamp(24px, 2.2vw, 30px)/1.2 var(--font-hand); font-style: normal; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art.frame { aspect-ratio: 4 / 3; }
}

/* Update entries */
.update { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.update:last-child { border-bottom: 1px solid var(--line); }
.update .frame { aspect-ratio: 1; border-radius: 10px; }
.update-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-small); color: var(--muted); margin-bottom: 6px; }
.update-meta strong { color: var(--accent); font-weight: 600; }
.update h3 { font: 600 19px/1.3 var(--font-body); margin-bottom: 6px; }
.update p { color: var(--muted); font-size: 15px; }
.update a { text-decoration: none; }
@media (max-width: 520px) { .update { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; } }

/* Social links */
.social { display: flex; flex-wrap: wrap; gap: 12px; }
.social-item { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); }
.social-item svg { width: 22px; height: 22px; flex: none; }
.social-item small { display: block; font-size: 12px; color: var(--muted); }
a.social-item:hover { border-color: var(--accent); color: var(--ink); }
.social-item.is-pending { border-style: dashed; color: var(--muted); background: transparent; }

/* Related projects (game pages) */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.related-card { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.related-card .frame { border-radius: 10px; }
.related-card h3 { font-size: 22px; margin: 6px 0 8px; }
.related-card a { text-decoration: none; }
.related-card a::after { content: ''; position: absolute; inset: 0; }
.related-card:hover { border-color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--ground); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-grid h2 { font: 600 var(--t-small)/1 var(--font-body); color: var(--muted); margin-bottom: 16px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid .footer-sub { margin-top: 28px; }
.footer-grid a { text-decoration: none; }
.footer-note { max-width: 36ch; margin-top: 16px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.related-card .chip { white-space: normal; }
@media (max-width: 520px) { .related-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }

/* Homepage */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; background: #050403; }
.hero-slides, .hero-slides .frame { position: absolute; inset: 0; }
.hero-slides .frame { background: transparent; opacity: 0; transition: opacity 2.4s var(--ease); }
.hero-slides .frame.is-active { opacity: 1; }
.hero-slides .frame:first-child { opacity: 1; }
.js .hero-slides .frame:first-child:not(.is-active) { opacity: 0; }
.hero-slides img { transform: scale(1.06); transition: transform 12s linear; }
.hero-slides .is-active img { transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 4 3 / 0.55) 0%, rgb(5 4 3 / 0.15) 35%, rgb(5 4 3 / 0.55) 62%, var(--ground) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 160px clamp(56px, 8vw, 104px); }
.hero h1 { font-size: var(--t-hero); max-width: 13ch; }
.hero .lead { margin-top: 24px; color: color-mix(in srgb, var(--ink) 86%, transparent); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 28px; z-index: 1; font-size: 13px; color: color-mix(in srgb, var(--ink) 70%, transparent); text-align: right; }
@media (max-width: 760px) { .hero-caption { display: none; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pillars { display: grid; gap: 0; margin-top: 8px; }
.pillar { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar h3 { font: 700 22px/1.2 'Cinzel', Georgia, serif; color: var(--accent); }
.pillar p { color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pillar { grid-template-columns: 1fr; gap: 6px; } }

/* Updates + social */
.updates-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.trailer-note { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trailer-note h3 { font: 600 19px/1.3 var(--font-body); margin: 6px 0 10px; }
.trailer-note .frame { border-radius: 10px; margin-bottom: 18px; }
@media (max-width: 960px) { .updates-grid { grid-template-columns: 1fr; } }

.contact { background: var(--surface); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: center; }
.contact-inner .display { font-size: var(--t-title); max-width: 18ch; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }
.contact-lead { margin-top: 18px; }
.hero h1 { max-width: none; }
.hero h1 span { display: block; }
.band.contact { padding-block: var(--band); }

/* 404 */
.notfound { padding-top: 180px; min-height: 80svh; }
.notfound .lead { margin-top: 18px; }
.notfound-games { margin-top: 64px; }

/* Game detail pages. Colours and type come from the [data-game] theme. */
.game-hero { position: relative; overflow: hidden; padding: 112px var(--gutter) clamp(40px, 5vw, 72px); background: var(--ground); }
.game-hero .wash { position: absolute; inset: -40px; }
.game-hero .wash img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transform: scale(1.1); }
.game-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--ground) 60%, transparent), color-mix(in srgb, var(--ground) 35%, transparent) 45%, var(--ground)); }
.game-hero .art { position: relative; z-index: 1; margin-inline: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); }
.game-hero .art.frame-wide { width: min(100%, var(--wrap)); }
.game-hero .art.frame-tall { width: min(100%, calc(min(78svh, 760px) * 0.75)); }
.game-hero .art img { animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.04); opacity: 0.2; } to { transform: none; opacity: 1; } }

.game-intro { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 88px); text-align: center; }
.game-intro .series { font-size: var(--t-small); font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.game-intro h1 { font-size: var(--t-hero); max-width: 18ch; margin-inline: auto; }
.game-intro .tagline { margin: 22px auto 0; font-size: var(--t-lead); color: var(--muted); font-style: italic; max-width: 40ch; }
[data-game='postcard'] .game-intro .tagline { font: 500 clamp(26px, 2.6vw, 34px)/1.25 var(--font-hand); font-style: normal; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.game-intro .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.game-intro .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Section links under the intro */
.page-links { position: sticky; top: 76px; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.page-links .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.page-links .wrap::-webkit-scrollbar { display: none; }
.page-links a { flex: none; padding: 16px 0; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.page-links a:hover, .page-links a.is-current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 900px) { .page-links { position: static; } }

.game-section { padding-block: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.game-section h2 { font-size: var(--t-title); margin-bottom: clamp(24px, 3vw, 40px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.split h2 { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.note { margin-top: 20px; font-size: var(--t-small); color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.note::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); }

/* Trailer */
.trailer { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.trailer .frame img { filter: brightness(0.5) saturate(0.85); }
.trailer-state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.trailer-state .play { width: 72px; height: 72px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); display: grid; place-items: center; color: var(--ink); opacity: 0.7; }
.trailer-state .play svg { width: 26px; height: 26px; margin-left: 4px; }
.trailer-state strong { font: var(--display-weight) clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); text-transform: var(--display-case); letter-spacing: var(--display-track); }
.trailer-state p { color: var(--muted); max-width: 40ch; }
.trailer iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* Story: large set lines */
.story-lines p { font: var(--display-weight) clamp(24px, 2.8vw, 38px)/1.2 var(--font-display); text-transform: var(--display-case); letter-spacing: var(--display-track); max-width: 26ch; text-wrap: balance; }
.story-lines p + p { margin-top: 0.6em; color: var(--muted); }
[data-game='postcard'] .story-lines p { font-style: italic; font-weight: 500; }

/* Gameplay + features */
.pillars-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pillars-row li { padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-item { background: var(--ground); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature-item h3 { font: 600 19px/1.3 var(--font-body); }
.feature-item p { color: var(--muted); font-size: 15px; flex-grow: 1; }
.feature-item .chip { align-self: flex-start; }

/* Gallery: native sideways scroller */
.gallery-group + .gallery-group { margin-top: 48px; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gallery-head h3 { font: 600 19px/1.3 var(--font-body); }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.gallery-nav button:hover { border-color: var(--accent); }
.gallery-nav svg { width: 18px; height: 18px; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--line) transparent; }
.gallery figure { flex: none; scroll-snap-align: start; }
.gallery .frame { border-radius: 12px; height: clamp(240px, 34vw, 440px); }
.gallery .frame-wide { aspect-ratio: 16 / 9; }
.gallery .frame-tall { aspect-ratio: 3 / 4; }
.gallery .frame img { object-fit: contain; background: #000; }
.gallery figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--muted); max-width: 46ch; }
.empty { padding: 40px 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 24px; padding: 0 0 32px 32px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: -12px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--ground); border: 2px solid var(--muted); }
.timeline .is-done::after { background: var(--muted); }
.timeline .is-now::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline .is-next::after { border-style: dashed; }
.timeline time, .timeline .when { font-size: var(--t-small); font-weight: 600; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.timeline .is-now .when { color: var(--accent); }
.timeline h3 { font: 600 18px/1.3 var(--font-body); margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Platform + release facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 24px; }
.facts dt { font-size: var(--t-small); color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font: var(--display-weight) 22px/1.25 var(--font-display); text-transform: var(--display-case); letter-spacing: var(--display-track); }
