/* ==========================================================
   TIDE 1944 — official site
   Modern CSS: @layer, OKLCH + color-mix, container queries, :has(),
   scroll-driven animations (with an IntersectionObserver fallback), popover,
   <dialog>, view transitions, text-wrap: balance, dynamic viewport units.
   ========================================================== */
@layer reset, tokens, base, layout, components, sections, motion;

@font-face { font-family: 'JetBrains Mono'; src: url('../media/fonts/JetBrainsMono.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, ol, ul, figure { margin: 0; }
  ol, ul { padding: 0; list-style: none; }
  img, picture, svg, video, canvas { display: block; max-width: 100%; }
  img, video { height: auto; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; }
}

@layer tokens {
  /* dark palette: the default, and kept on photographic bands (hero, cinematic, final CTA, player, map) in the light theme */
  :root, :root[data-theme="light"] :is(.hero, .cine, .final, .player, .lightbox, .map, .video, .nav:not(.solid)) {
    --ink: oklch(0.165 0.012 140);
    --ink-2: oklch(0.2 0.014 140);
    --ink-3: oklch(0.25 0.016 135);
    --text: oklch(0.95 0.015 90);
    --muted: oklch(0.74 0.02 100);
    --dim: oklch(0.62 0.02 105);   /* >= 4.5:1 on --ink (WCAG AA) */
    --sand: oklch(0.83 0.065 82);
    --brass: oklch(0.76 0.105 75);
    --brass-2: oklch(0.68 0.11 65);
    --paper: oklch(0.89 0.035 86);
    --paper-ink: oklch(0.3 0.03 70);
    --flare: oklch(0.78 0.16 55);
    --blood: oklch(0.55 0.15 28);
    --line: color-mix(in oklch, var(--text) 13%, transparent);
    --line-2: color-mix(in oklch, var(--text) 22%, transparent);
  }
  :root[data-theme="light"] :is(.hero, .cine, .final, .player, .lightbox, .map, .video, .nav:not(.solid)) { color: var(--text); color-scheme: dark; }
  /* light theme: old parchment, sepia ink; accents darkened to keep WCAG AA on the paper */
  :root[data-theme="light"] {
    --ink: oklch(0.945 0.024 86);
    --ink-2: oklch(0.91 0.03 84);
    --ink-3: oklch(0.87 0.036 82);
    --text: oklch(0.25 0.03 62);
    --muted: oklch(0.38 0.03 66);
    --dim: oklch(0.45 0.03 70);
    --sand: oklch(0.37 0.06 52);
    --brass: oklch(0.49 0.1 58);
    --brass-2: oklch(0.44 0.1 52);
    --paper: oklch(0.885 0.04 80);
    --flare: oklch(0.58 0.16 48);
    --blood: oklch(0.47 0.15 28);
  }
  :root {
    /* per-language stacks: the bundled subsets (game/assets/fonts, tools/build_fonts.py) first, then platform fonts */
    --serif: 'Omaha Serif', 'Omaha Serif KR', 'Noto Serif KR', 'AppleMyungjo', Georgia, serif;
    --sans: 'Omaha Sans KR', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --wrap: min(1240px, 100% - 2 * var(--gut));
    --gut: clamp(18px, 4vw, 44px);
    --nav-h: 72px;
    --r: 3px;
    --ease: cubic-bezier(.2, .7, .1, 1);
  }
  @media (max-width: 760px) { :root { --nav-h: 60px; } }
  html:lang(ja) { --serif: 'Omaha Serif', 'Omaha Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', Georgia, serif;
                  --sans: 'Omaha Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', system-ui, sans-serif; }
  html:lang(en) { --sans: 'Omaha Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); background: var(--ink); color-scheme: dark; }
  html[data-theme="light"] { color-scheme: light; }
  html[data-theme="light"] .contour { background-blend-mode: multiply; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { font-family: var(--sans); color: var(--text); background: var(--ink); line-height: 1.6; font-size: clamp(15px, 0.35vw + 14px, 17px); -webkit-font-smoothing: antialiased; overflow-x: clip; }
  :lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
  :lang(ja) body { line-break: strict; overflow-wrap: break-word; }
  ::selection { background: var(--brass); color: var(--ink); }
  :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
  h1, h2, h3 { text-wrap: balance; font-weight: 700; }
  p { text-wrap: pretty; }
  kbd { font: 600 .82em var(--mono); padding: .1em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: color-mix(in oklch, var(--text) 6%, transparent); white-space: nowrap; }
  .skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--r); transition: top .2s; }
  .skip:focus { top: 12px; }
}

@layer layout {
  .wrap { width: var(--wrap); margin-inline: auto; position: relative; }
  .sect { padding-block: clamp(64px, 10vw, 140px); position: relative; }
  .sect-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: end; }
  .sect-head .lead { margin-top: 0; }
  @media (max-width: 860px) { .sect-head { grid-template-columns: 1fr; } .sect-head .lead { margin-top: 4px; } }
  .contour { background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%23e8dcc0' stroke-opacity='.045' stroke-width='1.2'%3E%3Cpath d='M0 40 C120 10 220 80 330 50 S520 10 600 40'/%3E%3Cpath d='M0 95 C140 60 240 130 350 100 S520 70 600 95'/%3E%3Cpath d='M0 150 C110 120 230 190 340 158 S500 120 600 150'/%3E%3Cpath d='M0 205 C130 175 250 245 360 212 S520 180 600 205'/%3E%3Cpath d='M0 260 C120 232 240 300 350 266 S510 236 600 260'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 600px 300px,
      var(--ink); }
}

@layer components {
  .eyebrow { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
  .eyebrow::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .5; }
  .eyebrow .num { color: var(--brass); }
  .eyebrow.ink { color: color-mix(in oklch, var(--paper-ink) 80%, transparent); }
  .eyebrow.ink .num { color: oklch(0.47 0.15 28); }   /* darker blood: AA on parchment */
  .kicker { font: 600 13px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
  .h2 { font-family: var(--serif); font-weight: 760; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.06; letter-spacing: -.012em; font-optical-sizing: auto; max-width: 18ch; }
  :lang(ko) .h2, :lang(ja) .h2 { letter-spacing: -.02em; line-height: 1.18; max-width: 20ch; }
  .h3 { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
  .lead { color: var(--muted); font-size: clamp(16px, .5vw + 14px, 19px); max-width: 60ch; margin-top: 22px; }
  .fine { color: var(--dim); font-size: 13px; line-height: 1.6; max-width: 90ch; }
  .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px color-mix(in oklch, var(--brass) 18%, transparent); }
  .dot.live { background: var(--blood); box-shadow: 0 0 0 4px color-mix(in oklch, var(--blood) 22%, transparent); animation: pulse 2s infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in oklch, var(--blood) 0%, transparent); } }
  .chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 100px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--sand); }
  .chip svg { width: 16px; height: 16px; }

  .btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--b); border-radius: var(--r); font-weight: 700; letter-spacing: .01em; text-decoration: none; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
  .btn svg { width: 14px; height: 14px; flex: none; }
  @media (max-width: 420px) { .btn:not(.btn-sm) { white-space: normal; max-width: 100%; padding-inline: 18px; text-align: center; line-height: 1.25; } }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--sand); color: var(--ink); --b: var(--sand); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
  .btn-primary:hover { background: var(--brass); --b: var(--brass); }
  .btn-ghost { background: color-mix(in oklch, var(--ink) 30%, transparent); backdrop-filter: blur(6px); }
  .btn-ghost:hover { --b: var(--sand); background: color-mix(in oklch, var(--sand) 12%, transparent); }
  .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
  .btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
  .btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
  .link { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sand); text-decoration: underline; text-underline-offset: 4px; }
  .link:hover { color: var(--brass); }
  .icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); transition: background .2s, border-color .2s; }
  .icon-btn:hover { border-color: var(--sand); background: color-mix(in oklch, var(--sand) 10%, transparent); }
  .icon-btn svg { width: 16px; height: 16px; }
  .card { border: 1px solid var(--line); background: color-mix(in oklch, var(--ink-2) 80%, transparent); padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); container-type: inline-size; }
  .card-h { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }
  .card-h svg { width: 26px; height: 26px; color: var(--brass); flex: none; }
  .feat-k { font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }

  /* ---------- nav ---------- */
  .nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50; display: flex; align-items: center; gap: 24px; padding-inline: var(--gut); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, backdrop-filter .35s; }
  .nav.solid { background: color-mix(in oklch, var(--ink) 84%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 21px var(--serif); letter-spacing: .02em; color: var(--text); white-space: nowrap; }
  .brand-mark { width: 34px; height: 34px; color: var(--brass); flex: none; }
  .brand { min-width: 0; }
  .links { display: flex; gap: clamp(14px, 2vw, 30px); margin-inline: auto; }
  .links a, .mnav a { display: flex; align-items: baseline; gap: 6px; text-decoration: none; font-weight: 600; font-size: 15px; color: color-mix(in oklch, var(--text) 86%, transparent); position: relative; padding-block: 6px; white-space: nowrap; }
  .links a i, .mnav a i { font: 500 10px var(--mono); color: var(--brass); font-style: normal; }
  .links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .links a:hover::after, .links a[aria-current]::after { transform: scaleX(1); }
  .links a[aria-current] { color: var(--text); }
  .nav-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
  .links + .nav-end { margin-left: 0; }
  .lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); padding: 3px; gap: 2px; }
  .lang button { font: 600 13px/1 var(--mono); min-width: 32px; height: 32px; padding: 0 7px; border-radius: 2px; color: var(--muted); letter-spacing: .04em; }
  .lang button:lang(ja), .lang button:lang(ko) { font-family: 'Omaha Label', var(--sans); font-size: 14px; font-weight: 700; }   /* 1 KB label subsets (tools/build_fonts.py) */
  .lang button:hover:not([aria-pressed="true"]) { color: var(--text); }
  .theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); flex: none; transition: border-color .2s, background .2s; }
  .theme-btn:hover { border-color: var(--sand); }
  .theme-btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
  .theme-btn[aria-pressed="true"] svg { transform: rotate(180deg); }
  .lang button[aria-pressed="true"] { background: var(--sand); color: var(--ink); }
  .menu-btn { display: none; width: 40px; height: 40px; flex: none; border: 1px solid var(--line-2); border-radius: var(--r); place-content: center; gap: 4px; }
  .menu-btn span { display: block; width: 18px; height: 1.6px; background: currentColor; }
  .mnav { inset: var(--nav-h) var(--gut) auto auto; margin: 0; width: min(320px, calc(100vw - 2 * var(--gut))); padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: color-mix(in oklch, var(--ink) 94%, transparent); backdrop-filter: blur(14px); color: var(--text); }
  .mnav:popover-open { display: grid; gap: 4px; }
  .mnav a { font-size: 18px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .mnav a.mnav-play { margin-top: 14px; display: none; justify-content: center; align-items: center; padding: 0 24px; font-size: 16px; color: var(--ink); border-bottom: 0; }
  @media (max-width: 1240px) { .links { display: none; } .menu-btn { display: grid; } }
  @media (max-width: 760px) { .nav-play { display: none; } .mnav a.mnav-play { display: flex; } }
  @media (max-width: 480px) {
    .nav { gap: 8px; } .nav-end { gap: 6px; } .brand { gap: 8px; } .brand-mark { width: 30px; height: 30px; }
    .brand span { font-size: 17px; } .lang button { min-width: 30px; padding: 0 5px; }
  }
  @media (max-width: 389px) { .brand span { font-size: 15px; } .nav-end { gap: 4px; } }   /* 375px phones: 4px short at 17px */
  @media (max-width: 374px) { .brand span { display: none; } }   /* small phones: the mark alone, the title is in the hero */
}

@layer sections {
  /* ---------- hero ---------- */
  .hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: clip; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 clamp(70px, 10vh, 120px); }
  .hero-img, .hero-img img, #heroGL { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 40%; z-index: -3; }
  @media (max-aspect-ratio: 4/5) { .hero-img img { object-position: 70% 40%; } .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, color-mix(in oklch, var(--ink) 70%, transparent) 45%, color-mix(in oklch, var(--ink) 20%, transparent) 75%, color-mix(in oklch, var(--ink) 60%, transparent) 100%); } }
  #heroGL { z-index: -2; opacity: 0; transition: opacity .9s; }
  .hero.gl #heroGL { opacity: 1; }
  .hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, color-mix(in oklch, var(--ink) 88%, transparent) 0%, color-mix(in oklch, var(--ink) 55%, transparent) 38%, transparent 68%),
                linear-gradient(0deg, var(--ink) 0%, color-mix(in oklch, var(--ink) 40%, transparent) 26%, transparent 50%),
                linear-gradient(180deg, color-mix(in oklch, var(--ink) 70%, transparent), transparent 22%); transition: opacity 1s; }
  .hero-inner { transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
  .hero-title { font-family: var(--serif); font-weight: 860; font-size: clamp(64px, 12.5vw, 188px); line-height: .86; letter-spacing: -.03em; font-optical-sizing: auto; color: var(--text); text-shadow: 0 6px 40px rgb(0 0 0 / .45); }
  .hero-title span { display: inline-block; }
  .hero-title span:last-child { color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklch, var(--text) 85%, transparent); }
  .rule { width: 58px; border: 0; height: 2px; background: var(--brass); margin: 30px 0 26px; }
  .tagline { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.01em; }
  .tagline em { font-style: normal; color: var(--sand); }
  .hero-sub { max-width: 54ch; color: color-mix(in oklch, var(--text) 82%, transparent); margin-top: 16px; font-size: clamp(15px, .4vw + 14px, 18px); }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .hero-links { margin-top: 12px; }
  .scroll-cue { position: absolute; right: var(--gut); bottom: 30px; display: grid; justify-items: center; gap: 10px; font: 500 10px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none; writing-mode: vertical-rl; }
  .scroll-cue i { width: 1px; height: 60px; background: linear-gradient(var(--brass), transparent); animation: cue 2.4s infinite var(--ease); transform-origin: top; }
  @keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
  /* opening sequence */
  .hero-intro { position: absolute; inset: 0; z-index: 2; display: none; place-content: center; text-align: center; gap: 10px; pointer-events: none; }
  .hero.intro .hero-intro { display: grid; }
  .hero.intro .hero-inner, .hero.intro .scroll-cue { opacity: 0; transform: translateY(24px); pointer-events: none; }
  .hero.intro .hero-shade { opacity: .25; }
  .cap { font: 600 clamp(13px, 1.2vw, 16px) var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--text); opacity: 0; text-shadow: 0 2px 16px rgb(0 0 0 / .8); transition: opacity .9s, transform 1.2s var(--ease); transform: translateY(8px); }
  .cap2 { font: italic 500 clamp(20px, 2.6vw, 34px) var(--serif); letter-spacing: 0; text-transform: none; }
  .cap3, .cap4 { font: 700 clamp(26px, 4vw, 54px) var(--serif); letter-spacing: -.01em; text-transform: none; position: absolute; inset: auto 0 22vh; }
  .cap.on { opacity: 1; transform: none; }
  .intro-skip { pointer-events: auto; position: absolute; right: var(--gut); bottom: 32px; font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgb(0 0 0 / .35); backdrop-filter: blur(6px); }
  .intro-skip:hover { border-color: var(--sand); }
  .hero-intro::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 11svh 0 0 #000, inset 0 -11svh 0 0 #000; }
  .hero-intro > .cap { position: relative; z-index: 1; }
  .hero-intro > .intro-skip { z-index: 2; }   /* stays position:absolute (bottom right), above the letterbox bars */
  .hero-intro > .cap3, .hero-intro > .cap4 { position: absolute; }


  /* opening shots (added by JS inside #heroIntro) */
  .intro-shot { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease, transform 9s linear; z-index: -1; }
  .intro-shot.on { opacity: 1; transform: scale(1.02); }
  .intro-shot::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 50%, transparent 40%, rgb(0 0 0 / .7)); }
  .hero-intro { isolation: isolate; }
  /* difficulty segmented control */
  .seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r); padding: 3px; gap: 2px; justify-self: start; }
  .seg button { padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-radius: 2px; }
  .seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--sand); color: var(--ink); }
  .seg button:hover:not([aria-checked="true"]) { color: var(--text); }
  /* subtitle styles per speaker type */
  .pl-line[data-style="narr"] .pl-text { font-style: italic; color: var(--sand); }
  :lang(ko) .pl-line[data-style="narr"] .pl-text, :lang(ja) .pl-line[data-style="narr"] .pl-text { font-style: normal; }
  .pl-line[data-style="radio"] .pl-text { font-family: var(--mono); font-size: clamp(16px, 1.7vw, 22px); letter-spacing: .02em; }
  /* ---------- cinematic ---------- */
  .cine { position: relative; padding-block: clamp(70px, 10vw, 150px); overflow: clip; isolation: isolate; }
  .cine-bg { position: absolute; inset: -10% 0; z-index: -1; background: url('../media/st-flares.webp') center / cover; filter: blur(2px) saturate(.6) brightness(.32); transform: scale(1.06); }
  .cine-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--ink), transparent 30%, transparent 70%, var(--ink)); }
  .cine-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
  @media (max-width: 860px) { .cine-head { grid-template-columns: 1fr; gap: 14px; } .cine-head .lead { margin-top: 0; } }
  .chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; margin-top: clamp(30px, 5vw, 54px); counter-reset: ch; }
  .chap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); container-type: inline-size; }
  .chap button { display: grid; width: 100%; text-align: left; }
  .chap .thumb { aspect-ratio: 16/8; overflow: hidden; position: relative; }
  .chap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .5s; filter: saturate(.75) brightness(.86); }
  .chap:hover img { transform: scale(1.06); filter: none; }
  .chap .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink-2), transparent 60%); }
  @media (min-width: 900px) { .chap:first-child { grid-column: span 2; } .chap:first-child .thumb { aspect-ratio: 16/6.2; } .chap:first-child h3 { font-size: 34px; } }
  .chap .lc { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; color: var(--dim); }
  .chap .lc svg { width: 12px; height: 12px; }
  .chap .play { position: absolute; right: 14px; top: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklch, var(--ink) 55%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: background .25s, color .25s; }
  .chap:hover .play { background: var(--sand); color: var(--ink); }
  .chap .play svg { width: 12px; height: 12px; margin-left: 2px; }
  .chap .meta { padding: 4px 18px 20px; position: relative; }
  .chap .n { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
  .chap h3 { font-family: var(--serif); font-size: 24px; margin: 6px 0 2px; letter-spacing: .02em; }
  .chap p { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .06em; }
  .chap.skel { min-height: 240px; background: linear-gradient(100deg, var(--ink-2) 40%, var(--ink-3) 50%, var(--ink-2) 60%) 0 0 / 300% 100%; animation: skel 1.4s infinite; }
  @keyframes skel { to { background-position: -150% 0; } }
  .cast-title { margin: clamp(40px, 6vw, 64px) 0 20px; }
  .cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
  @media (max-width: 960px) { .cast { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .cast { grid-template-columns: 1fr; } }
  .person { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-2); display: grid; grid-template-rows: auto 1fr; }
  .person .ph { aspect-ratio: 4/3; overflow: hidden; }
  .person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(.35) contrast(1.05); transition: filter .5s, transform 1.2s var(--ease); }
  .person:hover img { filter: none; transform: scale(1.04); }
  .person .body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
  .person h4 { margin: 0; font-family: var(--serif); font-size: 20px; }
  .person .role { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
  .person blockquote { margin: 6px 0 0; font: italic 500 15px/1.5 var(--serif); color: var(--sand); }
  :lang(ko) .person blockquote, :lang(ja) .person blockquote { font-style: normal; }
  .person .listen { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 100px; }
  .person .listen:hover, .person .listen[aria-pressed="true"] { background: var(--sand); color: var(--ink); border-color: var(--sand); }
  .person .listen svg { width: 14px; height: 14px; }

  /* ---------- 00 the day: paper dispatch ---------- */
  .paper { position: relative; color: var(--paper-ink); padding-block: clamp(70px, 10vw, 140px);
    background:
      repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in oklch, var(--paper-ink) 7%, transparent) 31px 32px),
      radial-gradient(120% 80% at 80% 20%, transparent 50%, color-mix(in oklch, var(--paper-ink) 14%, transparent)),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      var(--paper);
    box-shadow: inset 0 30px 60px -30px rgb(0 0 0 / .45), inset 0 -40px 60px -30px rgb(0 0 0 / .5); }
  .paper .h2 { color: oklch(0.25 0.03 70); }
  .paper .lead { color: color-mix(in oklch, var(--paper-ink) 85%, transparent); }
  .day-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
  @media (max-width: 860px) { .day-head { grid-template-columns: 1fr; gap: 14px; } .day-head .lead { margin-top: 0; } }
  .timeline { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid color-mix(in oklch, var(--paper-ink) 70%, transparent); }
  .timeline li { position: relative; padding: 26px 22px 30px 0; border-right: 1px dashed color-mix(in oklch, var(--paper-ink) 30%, transparent); margin-right: 22px; }
  .timeline li:nth-child(4n) { border-right: 0; margin-right: 0; }
  .timeline li:nth-child(n+5) { border-top: 1px dashed color-mix(in oklch, var(--paper-ink) 30%, transparent); }
  .timeline li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--paper-ink); }
  .timeline li:nth-child(n+5)::before { top: -7px; }
  .timeline li.key::before { background: var(--blood); border-color: var(--blood); }
  .timeline time { font: 700 28px var(--mono); letter-spacing: -.02em; color: oklch(0.28 0.03 70); display: block; margin-top: 4px; }
  .timeline li.key time { color: var(--blood); }
  .timeline h3 { font-family: var(--serif); font-size: 20px; margin: 8px 0 8px; color: oklch(0.25 0.03 70); }
  .timeline p { font-size: 15px; line-height: 1.6; }
  @media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline li:nth-child(2n) { border-right: 0; margin-right: 0; } .timeline li:nth-child(n+3) { border-top: 1px dashed color-mix(in oklch, var(--paper-ink) 30%, transparent); } }
  @media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } .timeline li { border-right: 0; margin-right: 0; } .timeline li:nth-child(n+2) { border-top: 1px dashed color-mix(in oklch, var(--paper-ink) 30%, transparent); } }
  .day-foot { margin-top: clamp(30px, 4vw, 50px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 26px; border-top: 2px solid color-mix(in oklch, var(--paper-ink) 70%, transparent); font-weight: 600; }
  .respect { font: italic 500 17px var(--serif); }
  :lang(ko) .respect, :lang(ja) .respect { font-style: normal; }

  /* ---------- 01 gameplay ---------- */
  .game-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(22px, 3.4vw, 50px); margin-top: clamp(34px, 5vw, 60px); align-items: start; }
  @media (max-width: 960px) { .game-top { grid-template-columns: 1fr; } }
  .trailer { margin: 0; }
  .trailer figcaption { margin-top: 12px; font-family: var(--serif); font-size: 17px; }
  .trailer figcaption .feat-k { margin: 0 8px 0 0; }
  .features { display: grid; border-top: 1px solid var(--line-2); counter-reset: feat; }
  .feat { padding: 16px 0 17px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.6em 1fr; column-gap: 12px; }
  .feat::before { counter-increment: feat; content: counter(feat, upper-alpha); grid-row: span 2; padding-top: 4px; font: 600 13px var(--mono); color: var(--brass); }
  .feat h3 { font-family: var(--serif); font-size: 20px; line-height: 1.25; margin-bottom: 5px; }
  .feat p:last-child { color: var(--muted); font-size: 15px; line-height: 1.55; }
  @media (min-width: 600px) and (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
  .gallery { margin-top: clamp(44px, 6vw, 70px); }
  .gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
  .gal-count { font: 500 13px var(--mono); letter-spacing: .1em; color: var(--muted); }
  .gal-count b { color: var(--text); font-size: 18px; }
  .gal-k { margin-left: 14px; text-transform: uppercase; color: var(--brass); }
  @media (max-width: 480px) { .gal-k { display: none; } }
  .gal-ctl { display: flex; gap: 8px; }
  .gal-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 1040px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; border-radius: var(--r); }
  .gal-track::-webkit-scrollbar { display: none; }
  .gal-track li { scroll-snap-align: start; }
  .gal-track button { display: block; width: 100%; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
  .gal-track img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 1.2s var(--ease); }
  .gal-track button:hover img { transform: scale(1.025); }
  .gal-track button::after { content: '⤢'; position: absolute; right: 14px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .5); font-size: 18px; opacity: 0; transition: opacity .3s; }
  .gal-track button:hover::after { opacity: 1; }
  .gal-cap { margin-top: 14px; font-family: var(--serif); font-size: 19px; min-height: 1.6em; }
  .video { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; }
  .video img, .video video { width: 100%; height: 100%; object-fit: cover; }
  .video-na { position: absolute; inset: auto 0 0; margin: 0; padding: 40px 20px 18px; text-align: center; font: 600 13px var(--mono); letter-spacing: .08em; color: var(--sand); background: linear-gradient(transparent, rgb(0 0 0 / .8)); }
  .video.na img { filter: saturate(.7) brightness(.8); }
  .play-big[hidden] { display: none; }
  .play-big { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; background: radial-gradient(circle, rgb(0 0 0 / .1), rgb(0 0 0 / .5)); }
  .play-big svg { width: 84px; height: 84px; padding: 28px 26px 28px 30px; border-radius: 50%; background: var(--sand); color: var(--ink); transition: transform .35s var(--ease), background .3s; }
  .play-big:hover svg { transform: scale(1.08); background: var(--brass); }

  /* ---------- 02 arsenal ---------- */
  .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 50px; border-bottom: 1px solid var(--line); }
  @media (max-width: 760px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); gap: 0; } .tabs::-webkit-scrollbar { display: none; } .tabs button { white-space: nowrap; padding: 14px 14px; } }
  .tabs button { padding: 14px 18px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
  .tabs button:hover { color: var(--text); }
  .tabs button[aria-selected="true"] { color: var(--text); border-color: var(--brass); }
  .tabs button i { font: 500 10px var(--mono); color: var(--brass); font-style: normal; margin-right: 6px; }
  .versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: stretch; margin: 40px 0 26px; view-transition-name: versus; }
  .vs { align-self: center; font: 800 clamp(28px, 4vw, 52px) var(--serif); font-style: italic; color: var(--brass); }
  .unit { container-type: inline-size; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--ink-2), var(--ink)); padding: clamp(20px, 2.4vw, 32px); display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; }
  .unit.us { background: linear-gradient(180deg, color-mix(in oklch, var(--ink-2) 80%, oklch(0.3 0.03 240)), var(--ink)); }
  .unit .side { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .unit .side::before { content: ''; width: 18px; height: 3px; background: var(--brass); }
  .unit.us .side::before { background: oklch(0.7 0.06 240); }
  .unit figure { height: clamp(180px, 22vw, 260px); display: grid; place-items: center; margin: 6px 0 4px; }
  .unit figure { min-height: 0; overflow: hidden; }
  .unit figure img { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgb(0 0 0 / .55)); }
  .unit figure.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); filter: none; }
  .unit h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); }
  .unit p { color: var(--muted); font-size: 15px; }
  .specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
  .specs div { padding: 12px 10px 0 0; }
  .specs dt { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
  .specs dd { margin: 4px 0 0; font: 700 16px var(--mono); color: var(--text); }
  @container (max-width: 340px) { .specs { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 860px) { .versus { grid-template-columns: 1fr; } .vs { justify-self: center; } }

  /* ---------- 03 strongpoints ---------- */
  .sp-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 50px; align-items: start; }
  @media (max-width: 1000px) { .sp-grid { grid-template-columns: 1fr; } }
  @media (min-width: 1001px) { .map { position: sticky; top: calc(var(--nav-h) + 24px); } }
  .map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #1d2a2c; }
  .map svg { width: 100%; height: auto; }
  .map-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  @media (max-width: 760px) { .map svg { width: 760px; max-width: none; } }
  .map figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 18px; border-top: 1px solid var(--line); font: 500 12px var(--mono); color: var(--muted); align-items: center; }
  .map figcaption > span { display: inline-flex; align-items: center; gap: 8px; }
  .map figcaption .fine { flex-basis: 100%; font-family: var(--sans); color: var(--muted); }   /* the map panel is lighter than the page: --dim falls under AA here */
  .lg { width: 12px; height: 12px; display: inline-block; border-radius: 50%; }
  .lg-game { background: var(--brass); box-shadow: 0 0 0 3px color-mix(in oklch, var(--brass) 30%, transparent); }
  .lg-other { background: #6f6a5a; }
  .lg-draw { border-radius: 0; width: 14px; height: 3px; background: #c8b98f; }
  .map-sea { font: italic 500 24px var(--serif); fill: #9fb8b4; fill-opacity: .55; letter-spacing: .1em; }
  .map-sectors text { font: 600 12px var(--mono); fill: #d8d2c0; fill-opacity: .6; letter-spacing: .04em; }
  .map-towns text { font: italic 500 18px var(--serif); fill: #d8d2c0; fill-opacity: .7; }
  .map-towns circle { fill: #d8d2c0; fill-opacity: .55; }
  .compass text { font: 600 11px var(--mono); fill: #c8b98f; }
  .draw-lbl { font: 700 15px var(--mono); fill: #c8b98f; }
  .wn-other circle { fill: #6f6a5a; stroke: #1d2a2c; stroke-width: 2; }
  .wn-other text { font: 500 13px var(--mono); fill: #a39d88; }
  .wn-game { cursor: pointer; outline: none; }
  .wn-game .halo { fill: var(--brass); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2.4s infinite var(--ease); }
  .wn-game .core { fill: var(--brass); stroke: #1d2a2c; stroke-width: 3; transition: r .3s; }
  .wn-game text { font: 800 20px var(--mono); fill: var(--text); paint-order: stroke; stroke: #1d2a2c; stroke-width: 4px; }
  .wn-game.on .core { fill: var(--flare); }
  .wn-game:hover .core, .wn-game:focus-visible .core { r: 11; }
  .wn-game:focus-visible text { fill: var(--brass); }
  @keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
  .map-craft rect { fill: #cfd6cf; fill-opacity: .55; }
  .map-craft .boat { offset-rotate: 0deg; animation: run var(--d, 14s) linear infinite; animation-delay: var(--dl, 0s); }
  @keyframes run { from { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
  .sp-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-2); view-transition-name: spcard; }
  .sp-card picture img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
  .sp-card .body { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 12px; }
  .sp-card h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); }
  .sp-card .sub { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
  .sp-card p { color: var(--muted); font-size: 15px; }
  .sp-card .hist { color: var(--sand); font-style: italic; font-family: var(--serif); font-size: 16px; }
  .guns { display: flex; flex-wrap: wrap; gap: 6px; }
  .guns li { font: 600 12px var(--mono); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--text); }
  .guns-h { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
  .sp-card .btn { justify-self: start; margin-top: 8px; }

  /* ---------- 04 medals ---------- */
  .more { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in oklch, var(--ink-2) 70%, transparent); }
  .more summary { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 20px; cursor: pointer; font-weight: 700; list-style: none; }
  .more summary::-webkit-details-marker { display: none; }
  .more summary img { margin-left: auto; width: 28px; height: 28px; border-radius: 4px; }
  .more-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 600 16px/1 var(--mono); color: var(--brass); transition: transform .3s var(--ease); }
  .more[open] .more-ic { transform: rotate(45deg); }
  .more summary:hover { color: var(--brass); }
  .more > .lead { margin: 0 20px; font-size: 15px; }
  .more > .medals { margin: 18px 20px 22px; }
  .medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; margin-top: 50px; }
  .medal { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); transition: border-color .3s, transform .3s var(--ease); }
  .medal:hover { border-color: color-mix(in oklch, var(--brass) 60%, transparent); transform: translateY(-2px); }
  .medal img { width: 64px; height: 64px; border-radius: 6px; }
  .medal b { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.25; }
  .medal span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

  /* ---------- 05 setup ---------- */
  .setup { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: clamp(30px, 5vw, 50px); align-items: start; }
  .setup-side { display: grid; gap: 16px; }
  @media (max-width: 900px) { .setup { grid-template-columns: 1fr; } }
  @media (min-width: 600px) and (max-width: 900px) { .setup-side { grid-template-columns: 1fr 1fr; } }
  .set-main { display: grid; gap: 12px; }
  .set-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; }
  .set-tabs svg { width: 20px; height: 20px; flex: none; }
  .set-panel[hidden] { display: none; }
  .keys { display: grid; gap: 12px; }
  .keys li { font-size: 15px; color: color-mix(in oklch, var(--text) 88%, transparent); padding-bottom: 12px; border-bottom: 1px solid var(--line); line-height: 1.75; }
  .keys li:last-child { border-bottom: 0; padding-bottom: 0; }
  .keys b { color: var(--sand); }
  .steps { counter-reset: s; display: grid; gap: 12px; margin-bottom: 22px; }
  .steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 26px; font-size: 15px; color: var(--muted); }
  .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); color: var(--ink); background: var(--sand); }
  .steps b { color: var(--text); }
  .req { display: grid; gap: 10px; }
  .req li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
  .req li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--brass); }
  .steam { background: radial-gradient(120% 120% at 100% 0%, color-mix(in oklch, oklch(0.45 0.08 240) 30%, transparent), transparent 60%), var(--ink-2); }
  .steam p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
  .steam .btn svg { width: 20px; height: 20px; }

  /* ---------- final ---------- */
  .final { position: relative; isolation: isolate; text-align: center; padding-block: clamp(96px, 15vw, 210px); overflow: clip; }
  .final-bg { position: absolute; inset: 0; z-index: -1; background: url('../media/open-2.webp') center 60% / cover; filter: saturate(.7) brightness(.45); }
  .final-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent, var(--ink) 92%), linear-gradient(var(--ink), transparent 25%, transparent 75%, var(--ink)); }
  .final .kicker { margin-bottom: 22px; }
  .final-title { font-family: var(--serif); font-size: clamp(48px, 8vw, 116px); line-height: .98; letter-spacing: -.025em; }
  .final-title em { font-style: italic; font-weight: 500; color: var(--sand); }
  :lang(ko) .final-title em, :lang(ja) .final-title em { font-style: normal; font-weight: 700; }
  .final .lead { margin: 26px auto 38px; }

  /* ---------- phone rails ---------- */
  .cine-filters { display: none; }
  .chap[hidden] { display: none !important; }
  .swipe { display: none; }
  @media (max-width: 760px) {
    .rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 330px); gap: 12px;
            overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
            margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
    .cine { padding-block: 52px 60px; }
    .cine .eyebrow { margin-bottom: 18px; }
    .cine-head { gap: 10px; }
    .cine-head .h2 { font-size: clamp(25px, 7.3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
    .cine-head .lead { font-size: 14px; line-height: 1.5; }
    .cine-head .chip { margin-top: 13px; padding: 6px 10px; font-size: 11px; max-width: 100%; }
    .cine-filters { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; }
    .cine-filters button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 13px; color: var(--muted); }
    .cine-filters button[aria-pressed="true"] { background: var(--sand); color: var(--ink); border-color: var(--sand); font-weight: 700; }
    .cine .chapters.rail { margin-top: 14px; grid-auto-columns: min(72%, 285px); }
    .cine .chap .meta { padding: 4px 14px 14px; }
    .cine .chap h3 { font-size: 21px; }
    .cine .cast-title { margin: 26px 0 14px; }
    .cine .cast.rail { grid-auto-columns: min(66%, 260px); margin-bottom: 18px; }
    .cine .person .ph { aspect-ratio: 16 / 10; }
    .cine .person .body { padding: 14px; }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * { scroll-snap-align: start; }
    .cast.rail { grid-auto-columns: min(72%, 300px); }
    .timeline.rail { grid-auto-columns: min(74%, 290px); gap: 0; border-top: 0; }
    .timeline.rail li { margin-right: 18px; padding: 26px 18px 6px 0; border-top: 2px solid color-mix(in oklch, var(--paper-ink) 70%, transparent) !important; border-right: 1px dashed color-mix(in oklch, var(--paper-ink) 30%, transparent) !important; }
    .timeline.rail li:last-child { border-right: 0 !important; }
    .swipe { display: block; margin-top: 12px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
    .paper .swipe { color: color-mix(in oklch, var(--paper-ink) 85%, transparent); }
  }

  /* ---------- footer ---------- */
  .foot { border-top: 1px solid var(--line); padding: 50px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--ink); }
  .foot-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 30px; align-items: start; }
  @media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
  .foot-logo { width: 220px; height: auto; margin-bottom: 10px; }
  .foot-links { display: grid; gap: 10px; justify-items: end; }
  @media (max-width: 860px) { .foot-links { justify-items: start; } }
  .foot-links a { color: var(--sand); text-underline-offset: 4px; font-size: 14px; }

  /* ---------- story player ---------- */
  .player { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--text); display: none; grid-template-rows: 1fr auto; overflow: hidden; }
  .player[open] { display: grid; }
  .player::backdrop { background: #000; }
  .pl-stage { position: relative; overflow: hidden; cursor: pointer; outline: none; }
  :lang(ko) .pl-sub, :lang(ja) .pl-sub, :lang(ko) .cap2, :lang(ja) .cap2 { font-style: normal; }
  .pl-img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
  .pl-img.on { opacity: 1; animation: kb 14s linear forwards; }
  @keyframes kb { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); } }
  .pl-img.g-fog { filter: saturate(.55) brightness(.9) contrast(.85); }
  .pl-img.g-rain { filter: saturate(.5) brightness(.75) hue-rotate(-8deg); }
  .pl-img.g-dusk { filter: sepia(.35) saturate(1.1) brightness(.78) hue-rotate(-12deg); }
  .pl-img.g-night { filter: brightness(.55) saturate(.6) hue-rotate(10deg); }
  .pl-img.g-dark { filter: brightness(.5) saturate(.4); }
  .pl-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(0 0 0 / .85), transparent 40%), radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .65)); box-shadow: inset 0 9vh 0 #000; }
  .pl-card { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; gap: 10px; padding: 0 6vw; opacity: 0; transition: opacity .8s; pointer-events: none; background: #000; }
  .pl-card.on { opacity: 1; }
  .pl-kicker { font: 600 13px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
  .pl-title { font: 800 clamp(40px, 7vw, 96px)/1 var(--serif); letter-spacing: .04em; }
  .pl-sub { font: italic 500 clamp(18px, 2vw, 26px) var(--serif); color: var(--sand); }
  .pl-small { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--muted); margin-top: 14px; }
  .pl-line { position: absolute; z-index: 3; left: 50%; bottom: clamp(26px, 6vh, 70px); transform: translateX(-50%); width: min(980px, 90vw); text-align: center; opacity: 0; transition: opacity .4s; }
  .pl-line.on { opacity: 1; }
  .pl-who { font: 600 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
  .pl-text { font: 500 clamp(19px, 2.1vw, 28px)/1.45 var(--serif); text-shadow: 0 2px 14px #000; min-height: 2.9em; }
  :lang(ko) .pl-text, :lang(ja) .pl-text { font-family: var(--sans); font-weight: 600; }
  /* Same hierarchy and reading treatment as the in-game story player. */
  .pl-card { gap: 10px; padding: 56px 6vw; }
  .pl-kicker { font: 700 12px/1.4 var(--sans); letter-spacing: .15em; }
  .pl-title { font-size: clamp(30px, 5vw, 64px); line-height: 1.16; letter-spacing: .035em; text-wrap: balance; }
  .pl-sub { font: 500 clamp(14px, 1.6vw, 20px)/1.65 var(--sans); letter-spacing: 0; white-space: pre-line; text-wrap: balance; }
  .pl-small { font: 500 clamp(12px,1.2vw,14px)/1.55 var(--sans); letter-spacing: 0; color: #c3b9a5; }
  .pl-line { width: min(860px, 88vw); bottom: max(8vh, 30px); padding: clamp(12px,1.7vw,20px) clamp(16px,2.5vw,28px); text-align: left; background: rgb(8 10 10 / .86); border-left: 3px solid var(--brass); box-shadow: 0 8px 28px #0008; }
  .pl-who { font: 700 clamp(11px,1vw,13px)/1.35 var(--sans); letter-spacing: .06em; margin-bottom: 6px; }
  .pl-text, .pl-line[data-style="narr"] .pl-text, .pl-line[data-style="radio"] .pl-text { font: 500 clamp(16px,1.65vw,22px)/1.55 var(--sans); font-style: normal; letter-spacing: 0; color: #f8f4ea; min-height: 0; white-space: pre-line; overflow-wrap: break-word; text-wrap: pretty; }
  :lang(ko) .pl-text, :lang(ja) .pl-text { font-weight: 500; }
  :lang(ko) .pl-text, :lang(ko) .pl-sub { word-break: keep-all; overflow-wrap: break-word; }
  :lang(ja) .pl-text, :lang(ja) .pl-sub { line-break: strict; }
  @media(max-height:500px) { .pl-line { padding: 8px 14px; bottom: 8vh; } .pl-who { font-size: 11px; margin-bottom: 3px; } .pl-text, .pl-line[data-style="narr"] .pl-text, .pl-line[data-style="radio"] .pl-text { font-size: clamp(14px,2.7vh,17px); line-height: 1.4; } .pl-title { font-size: clamp(25px,7vh,38px); } .pl-sub { font-size: clamp(13px,3vh,17px); } }
  .pl-text .cur { display: inline-block; width: .5ch; color: var(--brass); animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .pl-end { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 24px; background: rgb(0 0 0 / .72); }
  .pl-end[hidden] { display: none; }
  .pl-end-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .pl-loading { position: absolute; z-index: 5; left: 50%; top: 50%; translate: -50% -50%; font: 600 13px var(--mono); letter-spacing: .2em; color: var(--muted); display: none; }
  .player.loading .pl-loading { display: block; }
  .pl-bar { background: #050605; border-top: 1px solid var(--line); padding: 0 var(--gut) env(safe-area-inset-bottom); }
  .pl-prog { display: flex; gap: 4px; padding-top: 12px; }
  .pl-prog i { flex: 1; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; position: relative; }
  .pl-prog i.done { background: var(--sand); }
  .pl-prog i.now::after { content: ''; position: absolute; inset: 0; background: var(--brass); transform-origin: left; animation: prog var(--dur, 6s) linear forwards; }
  .player.paused .pl-prog i.now::after { animation-play-state: paused; }
  @keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .pl-ctl { display: flex; align-items: center; gap: 8px; padding: 10px 0 14px; }
  .pl-hint { margin-left: auto; margin-right: 10px; font: 500 11px var(--mono); color: var(--dim); letter-spacing: .06em; white-space: pre; }
  @media (max-width: 700px), (pointer: coarse) { .pl-hint { display: none; } #plClose { margin-left: auto; } }
  #plPause .i-play, .player.paused #plPause .i-pause { display: none; }
  .player.paused #plPause .i-play { display: block; }
  #plMute .i-off, .player.muted #plMute .i-on { display: none; }
  .player.muted #plMute .i-off { display: block; }

  /* ---------- lightbox ---------- */
  .lightbox { padding: 0; border: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 96dvh; overflow: visible; color: var(--text); }
  .lightbox::backdrop { background: rgb(5 6 5 / .92); backdrop-filter: blur(6px); }
  .lightbox img { max-height: 86dvh; width: auto; border-radius: var(--r); box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
  .lightbox p { margin-top: 12px; font-family: var(--serif); font-size: 18px; text-align: center; }
  .lb-close { position: absolute; top: -54px; right: 0; background: rgb(0 0 0 / .4); }
}

@layer motion {
  /* reveal on scroll - native scroll-driven animation where supported, IO fallback adds .in */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .reveal { opacity: 1; transform: none; transition: none; animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
    .cine-bg { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
    .final-bg { animation: drift linear both; animation-timeline: view(); }
    .hero-inner { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes heroOut { to { opacity: 0; transform: translateY(-60px); } }
  }
  /* view transitions (language switch, arsenal tabs, strongpoint card) */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
  ::view-transition-old(versus) { animation: vt-out .25s ease both; }
  ::view-transition-new(versus) { animation: vt-in .45s var(--ease) both; }
  ::view-transition-old(spcard) { animation: vt-out .2s ease both; }
  ::view-transition-new(spcard) { animation: vt-in .4s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .hero-inner { animation: none !important; }
  }
}

/* Keep content readable even if animation or script initialization fails. */
.reveal, .reveal.in { opacity: 1 !important; transform: none !important; animation: none !important; }

/* Five-map launch and optional detail sections. Contents remain accessible and expanded on desktop. */
.battlefields { padding: clamp(48px, 6vw, 82px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.battle-heading { display:flex; justify-content:space-between; align-items:end; gap:16px; }
.battle-kicker { color:var(--brass); font:700 11px var(--mono); letter-spacing:.12em; margin-bottom:8px; }
.battle-heading h2 { font-family:var(--serif); font-size:clamp(26px,3.2vw,44px); line-height:1.15; }
.battle-all { color:var(--sand); font-size:14px; text-decoration:underline; text-underline-offset:4px; white-space:nowrap; }
.battle-intro { color:var(--muted); margin-top:12px; font-size:15px; }
.battle-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:24px; }
.battle-card { display:flex; flex-direction:column; background:var(--ink); border:1px solid var(--line-2); color:var(--text); text-decoration:none; border-radius:var(--r); overflow:hidden; transition:border-color .2s,transform .2s; }
.battle-card:hover,.battle-card:focus-visible { border-color:var(--brass); transform:translateY(-2px); }
.battle-card img { display:block; width:100%; aspect-ratio: 2.35 / 1; object-fit:cover; }
.battle-card-body { display:flex; flex-direction:column; padding:12px 14px; gap:2px; min-height:68px; }
.battle-card strong { font:700 17px var(--mono); color:var(--sand); }
.battle-card-body span { font-size:13px; color:var(--muted); }
.battle-note { margin-top:14px; color:var(--muted); font-size:12px; }
.mobile-fold-summary { display:none; }
.new-arsenal { border-top:1px solid var(--line); margin-top:32px; padding-top:26px; }
.new-arsenal h3 { font-family:var(--serif); font-size:25px; }
.new-arsenal > p { color:var(--muted); margin-top:7px; }
.new-arsenal-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.new-arsenal-grid article { display:flex; align-items:center; gap:14px; padding:14px; min-width:0; border:1px solid var(--line); border-radius:var(--r); background:var(--ink-2); }
.new-arsenal-grid img { width:78px; height:64px; object-fit:contain; flex:none; }
.new-arsenal-grid article div { display:flex; flex-direction:column; gap:5px; }
.new-arsenal-grid article strong { font-size:15px; line-height:1.25; }
.new-arsenal-grid article span { color:var(--muted); font-size:12px; line-height:1.45; }
@media (max-width:760px) {
  .hero { min-height: min(88svh,780px); padding-bottom:58px; }
  .hero-cta { margin-top:22px; } .hero-note { margin-top:18px; }
  .battlefields { padding-block:34px; }
  .battle-heading { align-items:start; flex-wrap:wrap; gap:10px; }
  .battle-heading h2 { font-size:26px; }
  .battle-intro { margin-top:8px; font-size:13px; }
  .battle-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:16px; }
  .battle-card-body { min-height:52px; padding:8px; }
  .battle-card strong { font-size:14px; }.battle-card-body span { font-size:11px; line-height:1.3; }
  .battle-note { margin-top:10px; line-height:1.45; }
  .mobile-group.sect,.mobile-group.cine,.mobile-group.paper { padding-block:0; border-bottom:1px solid var(--line); }
  .mobile-fold-summary { list-style:none; min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; padding:16px 0; font-weight:700; font-size:16px; }
  .mobile-fold-summary::-webkit-details-marker { display:none; }
  .fold-toggle { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px solid currentColor; border-radius:50%; opacity:.8; }
  .fold-toggle::before { content:'+'; font-size:22px; line-height:1; font-weight:400; }
  .mobile-fold[open] > .mobile-fold-summary .fold-toggle::before { content:'−'; }
  .mobile-fold-content { padding:22px 0 48px; }
  .mobile-fold-summary:focus-visible { outline:2px solid var(--brass); outline-offset:3px; }
  .new-arsenal-grid { grid-template-columns:1fr; }
  .new-arsenal-grid article { padding:10px 14px; }
}
@media (max-width:360px) { .battle-card-body { padding:7px 5px; } .battle-heading h2 { font-size:23px; } }

.hero-maps { margin-top:16px; }
.hero-maps a { color:var(--sand); font-weight:700; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.cine-filters { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.cine-filters button { min-height:44px; padding:8px 14px; border:1px solid var(--line-2); border-radius:3px; color:var(--muted); }
.cine-filters button[aria-pressed="true"] { background:var(--sand); color:var(--ink); border-color:var(--sand); font-weight:700; }
@media(max-width:760px) { .cine-filters { flex-wrap:nowrap; } .hero-maps { margin-top:13px; } }

/* 12.25 — a clear first visit: context, real gameplay, then position selection. */
.hero-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:17px; }
.hero-meta span { padding:5px 8px; color:#e4d9c0; background:rgba(11,14,12,.65); border:1px solid rgba(231,215,180,.27); font-size:11px; line-height:1.2; font-weight:700; letter-spacing:.03em; }
.hero-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; margin-top:14px; }
.hero-music { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid rgba(227,211,177,.45); background:rgba(9,12,10,.67); color:#eee6d6; border-radius:3px; font-size:13px; font-weight:700; }
.hero-music:hover,.hero-music[aria-pressed="true"] { border-color:var(--brass); color:var(--sand); }
.hero-music svg { width:18px; height:18px; flex:none; }
.hero-replay { min-height:44px; }
.music-status { color:#f4d2c2; font-size:12px; max-width:28em; }
.hero-tools .music-status:empty { display:none; }
.core-fold > .mobile-fold-summary { display:none; }
.gallery-more { margin-top:30px; }
.gallery-more .gallery { margin-top:26px; }
.fold-label { display:flex; flex-direction:column; gap:3px; min-width:0; }
.fold-label strong { font-size:16px; line-height:1.3; }
.fold-label small { color:var(--muted); font-weight:400; font-size:12px; line-height:1.4; }
.battle-card-body { gap:3px; }
.battle-card-body small { color:var(--muted); font-size:12px; line-height:1.4; }
.battle-card strong { letter-spacing:.03em; }
@media(max-width:760px) {
  .hero { min-height:min(94svh,800px); padding:calc(var(--nav-h) + 35px) 0 38px; }
  .hero-inner { width:var(--wrap); }
  .hero-meta { margin-top:13px; gap:6px; }
  .hero-meta span { font-size:10px; padding:5px 7px; }
  .hero-cta { margin-top:18px; }
  .hero-note { margin-top:14px; font-size:11px; letter-spacing:0; }
  .hero-tools { margin-top:8px; gap:6px 14px; }
  .hero-music { min-height:42px; font-size:12px; }
  .hero-replay { font-size:12px; }
  .scroll-cue { display:none; }
  #game.mobile-group { padding-block:46px; }
  #game .core-fold > .mobile-fold-content { padding:0; }
  #game .sect-head { gap:10px; }
  #game .game-top { margin-top:24px; gap:22px; }
  #game .feat { padding:12px 0; }
  #game .feat h3 { font-size:18px; }
  #game .feat p:last-child { font-size:14px; }
  .battlefields { padding-block:42px; }
  .battle-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .battle-card img { aspect-ratio:2.05/1; }
  .battle-card-body { min-height:80px; padding:10px 11px; }
  .battle-card strong { font-size:16px; }
  .battle-card-body span { font-size:12px; }
  .battle-card-body small { font-size:11px; }
  .mobile-fold-summary { min-height:82px; }
}
@media(max-width:360px) { .hero-meta span { font-size:9px; } .battle-card-body { padding:9px; } }
@media(max-height:500px) and (orientation:landscape) {
  .hero { min-height:100svh; padding:calc(var(--nav-h) + 20px) 0 28px; }
  .hero-title { font-size:clamp(52px,11vw,88px); }
}
@media (min-width:1021px) { .links { display:flex; } .menu-btn { display:none; } }
@media (max-width:760px) { .hero-music { min-height:44px; } }
/* Short landscape phones: keep the primary action visible beside the title. */
@media (max-width:760px) and (max-height:500px) and (orientation:landscape) {
  .hero { align-items:flex-start; padding:calc(var(--nav-h) + 12px) 0 20px; min-height:100svh; }
  .hero-inner { position:relative; padding-right:180px; }
  .hero-title { font-size:clamp(46px,9vw,68px); }
  .hero .kicker { font-size:10px; }
  .hero .rule { margin:10px 0; }
  .hero .tagline { font-size:17px; line-height:1.3; }
  .hero-sub { font-size:13px; line-height:1.35; margin-top:6px; }
  .hero-meta { display:none; }
  .hero-cta { position:absolute; top:3px; right:0; width:165px; margin:0; gap:7px; flex-direction:column; }
  .hero-cta .btn { min-height:44px; padding:0 10px; font-size:13px; }
  .hero-maps { margin-top:6px; }
  .hero-note { margin-top:6px; font-size:10px; }
  .hero-tools { position:absolute; top:105px; right:0; width:165px; margin:0; gap:0 8px; }
  .hero-music { min-height:40px; }
  .hero-replay { min-height:36px; }
}

/* Hero key art: mobile composition and an image-independent contrast treatment. */
.hero { min-height:100svh; padding-bottom:clamp(64px,9vh,108px); }
.hero-img img { object-position:center center; }
.hero-shade { background:linear-gradient(90deg,rgba(8,13,15,.90) 0%,rgba(8,13,15,.70) 35%,rgba(8,13,15,.08) 82%),linear-gradient(0deg,rgba(8,13,15,.88),transparent 38%),linear-gradient(180deg,rgba(8,13,15,.52),transparent 25%); }
.hero-inner { max-width: none; }
.hero-sub { max-width:48ch; line-height:1.65; }
.hero-note { margin-top:22px; color:#e0dbd1; text-shadow:0 1px 5px #000; }
@media (max-aspect-ratio:4/5) {
  .hero { min-height:100svh; align-items:flex-start; padding-top:calc(var(--nav-h) + clamp(32px,8svh,80px)); padding-bottom:48px; }
  .hero-img img { object-position:center center; }
  .hero-shade { background:linear-gradient(180deg,rgba(8,13,15,.58) 0%,rgba(8,13,15,.43) 43%,rgba(8,13,15,.18) 70%,rgba(8,13,15,.58) 100%); }
  .hero-inner { width:var(--wrap); }
  .hero .rule { margin:18px 0; }
  .hero-sub { max-width:35ch; }
  .hero-cta { margin-top:24px; }
}
@media (max-width:760px) and (max-height:500px) and (orientation:landscape) {
  .hero { min-height:100svh; padding-top:calc(var(--nav-h) + 12px); padding-bottom:18px; }
  .hero-inner { padding-right:180px; }
  .hero-cta { position:absolute; top:3px; right:0; width:165px; margin:0; }
  .hero-note { margin-top:8px; }
}

/* Actual gameplay rules, distinct from historical comparison specifications. */
.field-manual{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}
.field-manual h3{font:700 clamp(24px,4vw,36px)/1.25 var(--serif);margin:10px 0 16px}
.manual-note,.manual-controls,.manual-save{font-size:14px;line-height:1.85;color:var(--sand);overflow-wrap:anywhere}
.manual-controls,.manual-save{padding:18px;border:1px solid var(--line);margin:18px 0}
#fieldGuide details{border-top:1px solid var(--line)}#fieldGuide details:last-child{border-bottom:1px solid var(--line)}
#fieldGuide summary{display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:54px;padding:12px 4px;cursor:pointer;font-size:17px;font-weight:700;list-style:none}
#fieldGuide summary::-webkit-details-marker{display:none}#fieldGuide summary>span{transition:transform .2s}#fieldGuide details[open]>summary>span{transform:rotate(45deg)}
.manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:8px 0 20px}
.manual-grid article{padding:18px;background:color-mix(in srgb,var(--sand) 4%,transparent);border:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
.manual-grid h4{font-size:17px;color:var(--brass);margin:0 0 9px}.manual-grid p{font-size:14px;line-height:1.9;margin:0;color:var(--sand)}
@media(max-width:680px){.manual-grid{grid-template-columns:1fr}.field-manual{margin-top:28px}#fieldGuide summary{font-size:15px}.manual-grid article{padding:15px}}
/* Reserve room for the expanded plus icon's rotated bounds at narrow widths. */
#fieldGuide summary{padding-inline:12px}#fieldGuide summary>span{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;line-height:1}

/* Footer links remain touch-sized and form 2 / 3 tidy columns on mobile. */
@media(max-width:860px){
 .foot-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;justify-items:stretch;width:100%}
 .foot-links a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:10px 8px;border:1px solid var(--line);font-size:13px;line-height:1.5;overflow-wrap:anywhere;text-decoration:none}
 .foot-links>span{grid-column:1/-1;text-align:left;margin-top:8px;overflow-wrap:anywhere}
}
@media(min-width:600px) and (max-width:860px){.foot-links{grid-template-columns:repeat(3,minmax(0,1fr))}}
