/* WM^MLLM site v12 — project page styles (page agent). Colours come from tokens.css only. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-ui);
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, picture { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
sup { font-size: 0.62em; line-height: 0; position: relative; top: -0.52em; vertical-align: baseline; letter-spacing: 0.01em; }
kbd { font: 500 max(0.8em, 12px)/1 var(--font-mono); padding: 0.18em 0.42em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.sys { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.nb, [data-stat] { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--measure) + var(--gutter-l) + var(--gutter-r)); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- buttons, tags, segmented controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0 1.15em; border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn--primary { background: var(--wm-red-strong); color: var(--btn-ink); }
.btn--primary:hover { background: var(--wm-red); }
.btn--onscrim { background: transparent; color: var(--on-scrim); border-color: var(--scrim-line); }
.btn--onscrim:hover { border-color: var(--on-scrim); }
.btn--quiet { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn--quiet:hover { border-color: var(--ink-2); }
.btn--small { min-height: 40px; padding: 0 0.95em; font-size: var(--fs-small); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.textlink:hover { color: var(--ink); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { color: var(--ink); background: var(--panel-2); }

.tag { display: inline-block; padding: 0.22em 0.6em 0.26em; border-radius: 999px; font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.01em; white-space: nowrap; }
.tag--red { background: var(--wm-red-tint); color: var(--wm-red-ink); }
.tag--blue { background: var(--wm-blue-tint); color: var(--wm-blue-ink); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); max-width: 100%; }
.seg__b { min-height: 40px; padding: 0 0.95em; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 var(--fs-small)/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.seg__b:hover { color: var(--ink); }
.seg__b.is-on { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.check { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--wm-red-strong); }

/* ---------- S0 top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 8px 20px; min-height: var(--topbar-h); max-width: calc(var(--measure) + var(--gutter-l) + var(--gutter-r)); margin-inline: auto; padding: 0 var(--gutter-r) 0 var(--gutter-l); }
.wordmark { font: 700 1.375rem/1 var(--font-display); color: var(--ink); text-decoration: none; padding: 8px 0; margin-right: auto; }
.wordmark sup { color: var(--wm-red-ink); }
.topnav { display: flex; gap: 4px; }
.topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font: 500 var(--fs-small)/1 var(--font-ui); color: var(--muted); text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--ink); background: var(--panel-2); }

/* ---------- S1 hero ---------- */
.hero { position: relative; }
.hero__stage { position: relative; height: clamp(440px, 44vw, 620px); background: var(--stage); overflow: hidden; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The engine adds .wm-root (position: relative; background) and .wm-mode-hero / .wm-mode-game to #wm-game.
   In hero mode the element fills the stage and stays transparent, so the poster shows until the canvas has faded in.
   In game mode the engine's own rule makes it a fixed full-viewport overlay; nothing here applies then. */
.hero__stage > .wm-game:not(.wm-mode-game) { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background: transparent; outline: none; }
.hero__panel {
  position: absolute; z-index: 2; bottom: clamp(20px, 3.4vw, 44px);
  left: max(var(--gutter-l), calc((100% - var(--measure)) / 2));
  width: min(640px, calc(100% - var(--gutter-l) - var(--gutter-r)));
  padding: clamp(18px, 2.2vw, 28px); border: 1px solid var(--scrim-line); border-radius: var(--radius);
  background: var(--scrim); color: var(--on-scrim);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__panel { pointer-events: none; }
.hero__panel a, .hero__panel button { pointer-events: auto; }
.hero__eyebrow { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-scrim-muted); margin-bottom: 0.9em; }
.hero h1 { font: 600 clamp(1.875rem, 2vw + 1rem, 2.625rem)/1.12 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.hero h1 .sys sup { color: var(--on-scrim-red); }
.hero__claim { margin-top: 0.8em; font-size: clamp(1rem, 0.35vw + 0.95rem, 1.125rem); line-height: 1.5; color: var(--on-scrim); max-width: 34em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25em; }
.hero__status { margin-top: 0.9em; font-size: var(--fs-micro); line-height: 1.45; color: var(--on-scrim-muted); }
.hero__hint { position: absolute; z-index: 2; right: max(var(--gutter-r), calc((100% - var(--measure)) / 2)); bottom: clamp(20px, 3.4vw, 44px); padding: 0.5em 0.85em; border: 1px solid var(--scrim-line); border-radius: 999px; background: var(--scrim); color: var(--on-scrim); font: 500 var(--fs-micro)/1.2 var(--font-mono); pointer-events: none; }

/* game mode: the same #wm-game element covers the viewport (fixed overlay, height 100%); the page behind does not scroll */
html.page-in-game, html.page-in-game body { overflow: hidden; }
html.page-in-game .hero__stage > .wm-game { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9000; }
html.page-in-game .hero__panel, html.page-in-game .hero__hint, html.page-in-game .topbar { visibility: hidden; }

/* ---------- sections ---------- */
.section { padding-top: var(--section-gap); }
.section--last { padding-bottom: var(--section-gap); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--wm-red); }
h2 { font: 600 var(--fs-h2)/1.15 var(--font-display); letter-spacing: -0.008em; max-width: 24em; text-wrap: balance; }
.lead { margin-top: 0.75rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: var(--text-measure); text-wrap: pretty; }
.section__note, .prose { margin-top: 0.9rem; color: var(--ink-2); max-width: var(--text-measure); text-wrap: pretty; }
.section__note { color: var(--muted); font-size: var(--fs-small); }
.prose--tight { margin-top: 1.1rem; font-size: var(--fs-small); }
.sub { margin-top: clamp(2.25rem, 4vw, 3.25rem); font: 600 1.1875rem/1.3 var(--font-ui); }
.sub--side { margin-top: 1.6rem; font-size: 1.0625rem; }
.side-lead { font-size: var(--fs-body); line-height: 1.55; color: var(--ink); }
.side-text { margin-top: 0.8rem; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.caption { margin-top: 0.8rem; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: var(--text-measure); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 1.4rem; }
.aside-line { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); max-width: var(--text-measure); }
.aside-line .tag { margin-right: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.split__main p:not(.eyebrow):not(.lead):not(.actions):not(.caption) { margin-top: 0.9rem; color: var(--ink-2); max-width: var(--text-measure); }

/* ---------- S2 guide ---------- */
.guide { padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide h3 { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.objectives { margin-top: 0.9rem; counter-reset: obj; display: grid; gap: 0.55rem; }
.objectives li { counter-increment: obj; display: grid; grid-template-columns: 1.9em minmax(0, 1fr); align-items: baseline; font-size: var(--fs-small); color: var(--ink); }
.objectives li::before { content: counter(obj, decimal-leading-zero); font: 500 0.75rem/1 var(--font-mono); color: var(--wm-red-ink); }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.counts div { min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.counts dt { font-size: var(--fs-micro); line-height: 1.3; color: var(--muted); }
.counts dd { font: 600 1.625rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.keys { margin-top: 1rem; font-size: var(--fs-micro); line-height: 1.7; color: var(--muted); }

/* ---------- S3 capability cards ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.caps:empty { display: none; }
.cap { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.cap__media { position: relative; display: block; width: 100%; aspect-ratio: 7 / 4; padding: 0; border: 0; background: var(--stage); cursor: pointer; overflow: hidden; }
.cap__media img, .cap__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap__media video { opacity: 0; transition: opacity var(--t-mid); }
.cap.is-playing .cap__media video { opacity: 1; }
.cap__tags { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 6px; }
.cap__tags .tag { background: var(--scrim); color: var(--on-scrim); border: 1px solid var(--scrim-line); }
.cap__tags .tag--red { color: var(--on-scrim-red); }
.cap__tags .tag--blue { color: var(--on-scrim-blue); }
.cap__play { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--scrim-line); background: var(--scrim); color: var(--on-scrim); transition: opacity var(--t-fast); }
.cap.is-playing .cap__play { opacity: 0; }
.cap__state { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 0.3em 0.6em; border-radius: 999px; background: var(--scrim); color: var(--on-scrim); font: 500 0.6875rem/1.2 var(--font-mono); }
.cap__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 14px 16px 16px; flex: 1; }
.cap__verb { font: 600 1.0625rem/1.3 var(--font-ui); }
.cap__req { font: italic 400 1.0625rem/1.45 var(--font-display); color: var(--ink); text-wrap: pretty; }
.cap__note { font-size: var(--fs-micro); line-height: 1.45; color: var(--muted); }
.cap__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--muted); }
.cap__meta a { color: var(--ink-2); font-weight: 500; text-underline-offset: 0.2em; padding: 11px 0; margin: -11px 0; }
.cap.no-poster .cap__media img { display: none; }

/* ---------- figures ---------- */
.fig { margin-top: clamp(1.5rem, 3vw, 2.25rem); min-width: 0; }
.fig--narrow { max-width: 760px; }
.fig__plate { padding: clamp(8px, 1.4vw, 16px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--fig-plate); }
.fig__plate img { width: 100%; filter: var(--fig-filter); }
.fig__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fig__scroll { overflow-x: auto; }
.fig figcaption { margin-top: 0.7rem; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: var(--text-measure); text-wrap: pretty; }
.fig figcaption strong { color: var(--ink); font-weight: 600; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom--step { margin-top: auto; }
.zoom--step .step__img { margin-top: 0; }
.zoom--route { margin-top: 10px; }
.zoom--route img { margin-top: 0; }
.figrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); align-items: stretch; }
.figrow .fig { display: flex; flex-direction: column; }
.figrow .fig__plate { flex: 1; display: grid; align-items: center; }

.more { margin-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more > summary { display: flex; align-items: center; gap: 0.6em; min-height: 52px; cursor: pointer; font: 500 1rem/1.3 var(--font-ui); color: var(--ink-2); list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 0.875rem/1 var(--font-mono); color: var(--muted); }
.more[open] > summary::before { content: "\2212"; }
.more > :last-child { margin-bottom: 1.5rem; }
.more .fig:first-of-type { margin-top: 0.5rem; }

/* ---------- S4 comparison ---------- */
.cmp { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.cmp__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.cmp__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); margin-top: 14px; }
.cmp__tile { position: relative; min-width: 0; }
.cmp__tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-s); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.cmp__tile figcaption { margin-top: 6px; font: 500 var(--fs-micro)/1.3 var(--font-ui); color: var(--wm-blue-ink); }
.cmp__tile--ours { grid-column: span 2; grid-row: span 2; }
.cmp__tile--ours img { outline: 3px solid var(--wm-red); outline-offset: -3px; }
.cmp__tile--ours figcaption { font-size: 1.0625rem; color: var(--wm-red-ink); }
.cmp__tile--ours figcaption .sys sup { color: inherit; }
.cmp__cap { margin-top: 0.9rem; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: var(--text-measure); }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.6vw, 36px); margin-top: clamp(2rem, 4vw, 3rem); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { min-width: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.tile__label { font: 500 var(--fs-small)/1.3 var(--font-ui); color: var(--ink-2); }
.tile__num { margin-top: 0.35rem; font: 600 var(--fs-stat)/1.05 var(--font-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; color: var(--wm-red-ink); white-space: nowrap; }
.tile__from { color: var(--wm-blue-ink); font-size: 0.62em; }
.tile__arrow { display: inline-block; width: 0.5em; height: 0.5em; margin: 0 0.32em 0.12em 0.2em; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.tile__of { font: 500 var(--fs-small)/1 var(--font-ui); letter-spacing: 0; color: var(--muted); margin-left: 0.4em; white-space: normal; }
.tile__base { margin-top: 0.6rem; font-size: var(--fs-small); line-height: 1.4; color: var(--wm-blue-ink); font-variant-numeric: tabular-nums; }
.tile__base-k { display: block; }
.tile__note { margin-top: 0.3rem; font-size: var(--fs-micro); line-height: 1.45; color: var(--muted); }
.range { position: relative; height: 10px; margin-top: 0.8rem; border-radius: 999px; background: var(--panel-2); }
.range__base { position: absolute; top: 0; bottom: 0; left: var(--lo); width: max(4px, calc(var(--hi) - var(--lo))); border-radius: 999px; background: var(--wm-blue); }
.range__ours { position: absolute; top: -4px; bottom: -4px; left: calc(var(--ours) - 2px); width: 4px; border-radius: 2px; background: var(--wm-red); }

.mini { width: 100%; margin-top: 0.7rem; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.mini th, .mini td { padding: 0.42em 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
.mini thead th { font-size: var(--fs-micro); color: var(--muted); font-weight: 500; }
.mini th + th, .mini td { text-align: right; padding-left: 0.8em; white-space: nowrap; }
.mini .num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--wm-blue-ink); }
.mini .num--red { color: var(--wm-red-ink); font-weight: 500; }
.mini .muted { white-space: nowrap; font-size: var(--fs-micro); }

.tablewrap { overflow-x: auto; margin-top: 0.25rem; }
.tablehint { margin-top: 0.25rem; font-size: var(--fs-micro); color: var(--muted); }
.tablehint::after { content: " \2192"; }
.rtable { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.tablecap { margin-top: 0.8rem; font-size: var(--fs-micro); line-height: 1.5; color: var(--muted); max-width: var(--text-measure); }
.rtable th, .rtable td { padding: 0.55em 0.75em; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rtable th:first-child, .rtable td:first-child { text-align: left; padding-left: 0; position: sticky; left: 0; z-index: 1; background: var(--bg); }
.tablewrap.is-scrolling .rtable th:first-child { box-shadow: 1px 0 0 var(--line-strong); padding-right: 0.9em; }
.rtable thead th { font-weight: 500; color: var(--muted); font-size: var(--fs-micro); vertical-align: bottom; }
.rtable thead th small { display: block; font-weight: 400; font-size: max(1em, 12px); }
.rtable tbody th { font-weight: 500; color: var(--wm-blue-ink); }
.rtable td { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-2); }
.rtable tr.is-ours th, .rtable tr.is-ours td { color: var(--wm-red-ink); font-weight: 600; border-top: 2px solid var(--wm-red); }

/* ---------- S5 steps and routes ---------- */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 1.25rem; }
.step { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.step__text { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 4px; }
.step__n { grid-row: span 2; font: 600 1.75rem/1 var(--font-display); color: var(--wm-red-ink); }
.step h4 { font: 600 1.0625rem/1.3 var(--font-ui); }
.step__text p:last-child { margin-top: 0.3rem; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.step__img { margin-top: auto; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); filter: var(--fig-filter); }

.routes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); margin-top: 1.25rem; }
.route { min-width: 0; }
.route img { width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); filter: var(--fig-filter); }
.route p { margin-top: 0.6rem; font-size: var(--fs-micro); line-height: 1.5; color: var(--ink-2); }

/* ---------- S6 before / after ---------- */
.ba__stage { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stage); --pos: 50%; touch-action: pan-y; }
.ba__img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ba__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__clip .ba__img { height: 100%; object-fit: cover; }
.ba__outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--on-scrim); box-shadow: 0 0 0 1px var(--scrim); pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 999px; background: var(--on-scrim); box-shadow: 0 0 0 1px var(--scrim), 0 2px 8px var(--scrim); }
.ba__handle::before { content: ""; position: absolute; z-index: 1; top: 50%; left: 50%; width: 14px; height: 10px; margin: -5px 0 0 -7px; border-left: 2px solid var(--stage); border-right: 2px solid var(--stage); }
.ba__tag { position: absolute; top: 10px; padding: 0.3em 0.65em; border-radius: 999px; background: var(--scrim); color: var(--on-scrim); font: 500 0.75rem/1.2 var(--font-mono); pointer-events: none; }
.ba__tag--l { left: 10px; }
.ba__tag--r { right: 10px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba__stage:has(.ba__range:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.ba__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-top: 12px; }

.bars { display: grid; gap: 0.7rem; margin-top: 1rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 8.2em) minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; font-size: var(--fs-small); }
.bars__name { color: var(--ink-2); }
.bars__track { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 999px; }
.bars__fill--blue { background: var(--wm-blue); }
.bars__fill--red { background: var(--wm-red); }
.bars__val { font: 500 0.9375rem/1 var(--font-mono); text-align: right; color: var(--wm-blue-ink); }
.bars__val--red { color: var(--wm-red-ink); }
.bars + .tile__note { margin-top: 0.8rem; }

/* ---------- S7 worlds ---------- */
.totals { margin-top: 1rem; font: 500 var(--fs-small)/1.6 var(--font-mono); color: var(--ink-2); }
.totals b { font-weight: 500; color: var(--ink); }
.totals span + span::before { content: "\00b7"; margin: 0 0.7em; color: var(--muted); }
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: clamp(1.25rem, 2.6vw, 2rem); }
.world { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: inherit; text-decoration: none; overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.world:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.world__media { position: relative; aspect-ratio: 16 / 9; background: var(--stage); overflow: hidden; }
.world__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world__num { position: absolute; left: 10px; top: 10px; padding: 0.3em 0.6em; border-radius: 999px; background: var(--scrim); color: var(--on-scrim); font: 500 0.6875rem/1.2 var(--font-mono); letter-spacing: 0.04em; }
.world__go { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 0.45em; padding: 0.5em 0.8em; border-radius: 999px; background: var(--wm-red-strong); color: var(--btn-ink); font: 600 var(--fs-micro)/1 var(--font-ui); opacity: 0; transition: opacity var(--t-fast); }
.world:hover .world__go, .world:focus-visible .world__go { opacity: 1; }
.world__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 12px 14px 14px; flex: 1; }
.world__title { font: 600 1.0625rem/1.25 var(--font-ui); }
.world__tagline { font-size: var(--fs-micro); line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.world__counts { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: auto; padding-top: 0.55rem; font: 400 0.75rem/1.4 var(--font-mono); color: var(--ink-2); }
.world__counts b { font-weight: 500; }
.world__prog { display: flex; align-items: center; gap: 0.5em; font: 400 0.75rem/1.4 var(--font-mono); color: var(--ink-2); }
.world__ring { flex: none; display: inline-flex; }
.world__ring svg { display: block; transform: rotate(-90deg); }
.world__ring-track { fill: none; stroke: var(--line-strong); stroke-width: 5; }
.world__ring-fill { fill: none; stroke: var(--wm-red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.world__cta { display: none; }
/* the featured world is a full-width banner: picture on the left, text on the right */
.world--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.world--featured .world__media { aspect-ratio: 16 / 9; }
.world--featured .world__go { display: none; }
.world--featured .world__body { justify-content: center; gap: 0.7rem; padding: clamp(18px, 3vw, 36px); }
.world--featured .world__title { font: 600 clamp(1.5rem, 1.2vw + 1.1rem, 2rem)/1.15 var(--font-display); }
.world--featured .world__tagline { font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); -webkit-line-clamp: 6; }
.world--featured .world__counts { margin-top: 0.2rem; padding-top: 0; font-size: 0.8125rem; }
.world--featured .world__prog { font-size: 0.8125rem; }
.world--featured .world__cta { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.5em; min-height: 44px; margin-top: 0.5rem; padding: 0 1.15em; border-radius: 999px; background: var(--wm-red-strong); color: var(--btn-ink); font: 600 1rem/1 var(--font-ui); }
.world--featured:hover .world__cta { background: var(--wm-red); }
.world.no-poster .world__media img { display: none; }
.worlds > .muted { grid-column: 1 / -1; }
.worlds.is-off .world { cursor: default; }
.worlds.is-off .world__go, .worlds.is-off .world__cta { display: none; }
.worlds.is-collapsed .world--extra { display: none; }

/* ---------- S8 limits ---------- */
.limits { display: grid; gap: 0.75rem; margin-top: 1.25rem; max-width: var(--text-measure); }
.limits li { position: relative; padding-left: 1.4rem; color: var(--ink-2); text-wrap: pretty; }
.limits li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--wm-blue); }
.limits--small { gap: 0.55rem; margin-top: 0.9rem; }
.limits--small li { font-size: var(--fs-small); color: var(--muted); }
.issues .sub { font-size: 1.0625rem; }

/* ---------- S9 paper ---------- */
.bib { margin-top: 1.5rem; max-width: var(--text-measure); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.bib__bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); }
.bib__label { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.bib__status { font-size: var(--fs-micro); color: var(--muted); }
.bib__bar .btn { order: 2; }
.bib__status:empty { display: none; }
.bib pre { padding: 14px 16px 16px; overflow-x: auto; font: 400 0.8125rem/1.65 var(--font-mono); color: var(--ink-2); }

.footer { margin-top: 0; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer .sys { color: var(--ink-2); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- lightbox ---------- */
.lightbox { width: min(1680px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; margin: auto; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: var(--scrim); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter-r) 10px var(--gutter-l); border-bottom: 1px solid var(--line); }
.lightbox__hint { font-size: var(--fs-micro); color: var(--muted); }
.lightbox__bar .btn { flex: none; }
.lightbox__hint { margin-right: auto; }
.lightbox__scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px; background: var(--fig-plate); }
.lightbox__scroll img { display: block; max-width: none; margin: 0 auto; filter: var(--fig-filter); }
.lightbox__scroll.is-fitted { display: grid; place-items: center; }
.lightbox__scroll.is-fitted img { cursor: zoom-in; }
.lightbox__scroll.is-actual { cursor: grab; }
.lightbox__scroll.is-actual img { cursor: zoom-out; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--3 .tile--table { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .split, .split--wide { grid-template-columns: minmax(0, 1fr); }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world--featured { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* the frames are 480 px wide files: the large tile is not drawn wider than that */
  .cmp__tile--ours { grid-column: 1 / -1; grid-row: auto; justify-self: center; width: min(100%, 480px); }
  .figrow { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { height: auto; overflow: visible; background: transparent; }
  .hero__stage { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero__poster, .hero__stage > .wm-game:not(.wm-mode-game) { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; height: clamp(200px, min(62vw, 64vh), 460px); }
  .hero__panel { pointer-events: auto; }
  .hero__poster { object-fit: cover; background: var(--stage); }
  .hero__panel { position: static; grid-area: 2 / 1; width: auto; margin: 0; padding: 22px var(--gutter-r) 6px var(--gutter-l); border: 0; border-radius: 0; background: transparent; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__eyebrow { color: var(--muted); }
  .hero h1 .sys sup { color: var(--wm-red-ink); }
  .hero__claim { color: var(--ink-2); }
  .hero__status { color: var(--muted); }
  .hero .btn--onscrim { color: var(--ink-2); border-color: var(--line-strong); }
  .hero__hint { grid-area: 1 / 1; position: relative; right: auto; bottom: auto; align-self: end; justify-self: end; margin: 0 var(--gutter-r) 12px 0; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 96px; }
  .topbar__in { flex-wrap: wrap; padding-top: 6px; padding-bottom: 4px; }
  .topnav { order: 5; flex: 1 0 100%; justify-content: space-between; gap: 0; margin: 0 -10px; }
  .topnav a { min-height: 44px; padding: 0 10px; }
  .caps { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); padding: 2px var(--gutter-r) 12px var(--gutter-l); scroll-padding-left: var(--gutter-l); }
  .cap { flex: 0 0 min(86%, 340px); scroll-snap-align: start; }
  .cap__note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world--featured { display: flex; }
  .world--featured .world__body { padding: 16px; }
  .world__go { opacity: 1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* five routes in two columns: the last one lies across both, picture left and text right */
  .routes .route:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(10px, 1.6vw, 20px); align-items: start; }
  .routes .route:last-child:nth-child(odd) .tag { grid-column: 1 / -1; justify-self: start; }
  .routes .route:last-child:nth-child(odd) p { margin-top: 10px; }
  .cmp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--3 { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .fig__grid2 { grid-template-columns: minmax(0, 1fr); }
  .fig__scroll .zoom--wide { min-width: 900px; }
  .fig__scroll .zoom--mid { min-width: 640px; }
  .bars li { grid-template-columns: minmax(0, 7.4em) minmax(0, 1fr) 3em; }
  .seg__b { padding: 0 0.8em; }
}
@media (max-width: 520px) {
  /* phones: one world per row, picture left and text right, so the tagline is not cut and no card is left alone */
  .worlds { grid-template-columns: minmax(0, 1fr); }
  .world:not(.world--featured) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .world:not(.world--featured) .world__media { aspect-ratio: auto; min-height: 100%; }
  .world:not(.world--featured) .world__body { padding: 10px 12px 12px; }
  .world__tagline { -webkit-line-clamp: 6; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .world__counts { gap: 2px 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .topbar, .hero__actions, .hero__hint, .lightbox, .cap__play { display: none !important; }
}

/* v13:c3_page begin */
.hero-film { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: var(--stage); opacity: 1; transition: opacity 200ms; overflow: hidden; }
.hero-film video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-film__captions { position: absolute; top: 16px; left: var(--gutter-l); max-width: min(640px, calc(100% - 340px)); padding: 10px 14px; border: 1px solid var(--scrim-line); border-radius: var(--radius-s); background: var(--scrim); color: var(--on-scrim); }
.hero-film__attribution { display: flex; flex-wrap: wrap; gap: 0 12px; margin-bottom: 4px; }
#hero-stage[data-film-state="dismissed"] .hero-film,
#hero-stage[data-film-state="ended"] .hero-film,
#hero-stage[data-film-state="unavailable"] .hero-film { opacity: 0; }
#film-controls { position: absolute; z-index: 3; top: 16px; right: var(--gutter-r); display: flex; flex-wrap: wrap; gap: 8px; pointer-events: auto; }
#film-controls button { min-height: 44px; background: var(--scrim); border: 1px solid var(--scrim-line); border-radius: 999px; padding: 8px 14px; color: var(--on-scrim); cursor: pointer; font: 500 var(--fs-micro)/1.3 var(--font-ui); }
#film-controls button:hover { border-color: var(--on-scrim); }
#film-controls button:disabled { cursor: wait; }
#film-caption { font: 500 var(--fs-small)/1.45 var(--font-ui); }
#film-tag, #film-route { font: 400 0.6875rem/1.5 var(--font-mono); color: var(--on-scrim-muted); }
#film-progress { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 3px; height: 4px; }
#film-progress > * { display: block; flex: 1; background: var(--scrim); overflow: hidden; }
#film-progress i { display: block; height: 100%; width: 100%; background: var(--on-scrim); transform: scaleX(0); transform-origin: left; }
#hero-stage[data-film-state="playing"] #hero-hint,
#hero-stage[data-film-state="paused"] #hero-hint { visibility: hidden; }
.create { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px 48px; margin-top: 3rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--topbar-h) + 20px); }
.create h3 { margin: 0 0 12px; font: 600 1.75rem/1.2 var(--font-display); }
.create__intro > p:last-child { font-size: var(--fs-small); color: var(--ink-2); }
.create__body, .create__field, .create__action { min-width: 0; }
.create__status { font-size: var(--fs-small); color: var(--ink-2); }
.create__body > .btn { margin-top: 12px; }
.create form { margin-top: 20px; }
.create fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.create__field { margin-bottom: 24px; }
.create label:not(.check), .create__label { display: block; font-weight: 600; font-size: var(--fs-small); }
.create textarea, .create select, .create input[type="text"] { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--panel); color: var(--ink); font: 400 1rem/1.5 var(--font-ui); }
.create textarea { resize: vertical; }
.create select { text-overflow: ellipsis; }
.create__references { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.create__references button { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--panel); color: var(--ink-2); cursor: pointer; text-align: left; }
.create__references button[aria-pressed="true"] { border-color: var(--wm-red-ink); outline: 1px solid var(--wm-red-ink); }
.create__references img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.create__references span { display: block; padding: 7px; font: 500 var(--fs-micro)/1.4 var(--font-ui); }
.create__hint { color: var(--muted); font-size: var(--fs-micro); line-height: 1.5; margin: 5px 0 8px; }
.create__error { color: var(--wm-red-ink); font-size: var(--fs-micro); line-height: 1.5; margin-top: 5px; }
.create__error:empty, .create__hint:empty { display: none; }
.create__action { margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.create__action-input { display: flex; align-items: start; gap: 10px; }
.create__action-input > :first-child { flex: 1; }
.create__action-input .btn { flex: none; font-size: var(--fs-small); }
.create__checks { display: grid; gap: 8px; margin: 22px 0 12px; }
.create__checks .check { align-items: flex-start; padding: 8px 0; line-height: 1.5; }
.create__checks input { flex: none; margin-top: 3px; }
.create button:disabled { opacity: 0.55; cursor: not-allowed; }
.create__requests { display: grid; gap: 16px; margin-top: 20px; }
.create__requests:empty { margin: 0; }
.create__request { border-top: 1px solid var(--line); padding-top: 16px; overflow-wrap: anywhere; }
.create__request-state { font-size: var(--fs-small); font-weight: 600; }
.create__request-scene { font-size: var(--fs-small); color: var(--ink-2); margin-top: 6px; }
.create__request > .muted, .create__request > p:not(:first-child) { font-size: var(--fs-small); }
.request-worlds { margin-top: 2rem; }
.request-worlds .worlds { margin-top: 1rem; }
.faq { max-width: var(--text-measure); margin-top: 24px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--topbar-h) + 20px); }
.faq__item summary { min-height: 52px; padding: 15px 24px 15px 0; font-weight: 600; font-size: var(--fs-body); cursor: pointer; }
.faq__answer { padding: 0 0 18px; color: var(--ink-2); font-size: var(--fs-small); }
.faq__answer p + p { margin-top: 10px; }
.faq__source { margin-top: 10px; color: var(--muted); font: 400 var(--fs-micro)/1.5 var(--font-mono); }
.faq__item[data-targeted] { outline: 2px solid var(--focus); outline-offset: 4px; }
.citation { max-width: var(--text-measure); border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.citation > code { display: block; margin-top: 8px; font: 500 var(--fs-small)/1.5 var(--font-mono); overflow-wrap: anywhere; }
.citation > p { color: var(--ink-2); font-size: var(--fs-small); }
.citation .actions { margin-top: 12px; }
@media (max-width: 860px) {
  .hero-film { grid-area: 1 / 1; position: relative; inset: auto; height: clamp(200px, min(62vw, 64vh), 460px); }
  #film-controls { grid-area: 1 / 1; align-self: start; justify-self: end; position: relative; top: auto; right: auto; margin: 10px var(--gutter-r) 0 0; }
  .hero-film__captions { top: auto; bottom: 12px; max-width: calc(100% - var(--gutter-l) - var(--gutter-r)); padding: 8px 10px; }
  #film-caption { font-size: var(--fs-micro); }
  .create { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .topnav a { padding-inline: 7px; font-size: var(--fs-micro); }
  #film-controls button { padding: 7px 11px; }
  .create__action-input { flex-wrap: wrap; }
  .create__action-input > :first-child { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-film { transition: none; }
  #hero-stage[data-film-state="ended"] .hero-film.is-visible { opacity: 1; }
}
@media print { .hero-film, #film-controls, .create { display: none !important; } }
/* v13:c3_page end */

/* v13:c1_gallery begin */
.gallery { --gallery-ink: var(--ink); --gallery-muted: var(--muted); --gallery-surface: var(--panel); --gallery-soft: var(--panel-2); --gallery-line: var(--line); --gallery-accent: var(--wm-red-ink); --gallery-tint: var(--wm-red-tint); position: relative; min-width: 0; margin-top: 28px; color: var(--gallery-ink); }
.gallery *, .gallery *::before, .gallery *::after { box-sizing: border-box; }
.gallery button, .gallery input, .gallery select { font-family: var(--font-ui); }
.gallery button { cursor: pointer; }
.gallery button:disabled { opacity: .46; cursor: default; }
.gallery :is(button, input, select, a):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.gallery-featured { display: grid; gap: 18px; margin-bottom: 28px; }
.gallery-featured > .world--featured { width: 100%; }
.gallery .world { position: relative; display: flex; flex-direction: column; margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--gallery-line); border-radius: var(--radius); background: var(--gallery-surface); color: var(--gallery-ink); text-align: left; }
.gallery .world:focus-within { border-color: var(--focus); }
.gallery .world__media { order: -1; position: relative; width: 100%; aspect-ratio: 16 / 9; flex: none; overflow: hidden; background-color: var(--stage); background-repeat: no-repeat; }
.gallery .world__media::before, .gallery .world__media::after { position: absolute; top: 10px; z-index: 3; pointer-events: none; padding: 5px 8px; background: var(--scrim); color: var(--on-scrim); border-radius: 4px; font: 500 11px/1.3 var(--font-mono); }
.gallery .world__media::before { content: attr(data-number); left: 10px; }
.gallery .world__media::after { content: attr(data-mark); right: 10px; }
.gallery .world__media[data-mark=""]::after { display: none; }
.gallery .world__link { position: static; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 14px 16px 6px; color: inherit; text-decoration: none; font: 600 18px/1.3 var(--font-ui); }
.gallery a.world__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gallery a.world__link:focus-visible { outline: none; }
.gallery .world:has(a.world__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.gallery .world__tagline { margin: 0 16px 10px; color: var(--gallery-muted); font: 400 13px/1.45 var(--font-ui); -webkit-line-clamp: 3; }
.gallery .world__types { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 16px 9px; min-height: 22px; }
.gallery .world__type { padding: 2px 6px; border: 1px solid var(--gallery-line); border-radius: 4px; font: 500 11px/1.4 var(--font-ui); color: var(--gallery-accent); background: var(--gallery-tint); white-space: nowrap; }
.gallery .world__type[data-route="revisit"], .gallery .world__type[data-route="rotate"] { color: var(--wm-blue-ink); background: var(--wm-blue-tint); }
.gallery .world__counts { display: block; margin: auto 16px 0; padding: 0 0 8px; color: var(--gallery-muted); font: 400 11px/1.65 var(--font-mono); }
.gallery .world__notes { position: relative; z-index: 4; align-self: flex-start; min-height: 44px; margin: 0 10px 2px; padding: 6px; border: 0; background: transparent; color: var(--gallery-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.gallery .world__preview { position: absolute; z-index: 4; left: 8px; bottom: 8px; min-height: 44px; min-width: 64px; padding: 8px 12px; border: 1px solid var(--scrim-line); border-radius: 5px; background: var(--scrim); color: var(--on-scrim); font: 500 12px/1 var(--font-mono); opacity: 0; transition: opacity 150ms; }
.gallery .world:hover .world__preview, .gallery .world:focus-within .world__preview, .gallery .world.is-previewing .world__preview { opacity: 1; }
.gallery .world__preview[data-state="loading"] { border-style: dashed; }
.gallery .world__preview[aria-pressed="true"] { border-color: var(--on-scrim); }
.gallery .world__prog { margin: 1px 16px 9px; color: var(--gallery-muted); font-size: 11px; line-height: 1.4; }
.gallery .world__ring { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; transform: rotate(-90deg); }
.gallery .world__ring-track { stroke: var(--gallery-line); }
.gallery .world__ring-fill { stroke: var(--wm-red); }
.gallery .world--featured { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-auto-rows: min-content; align-content: center; min-height: 300px; padding-bottom: 22px; }
.gallery .world--featured > .world__media { grid-column: 1; grid-row: 1 / span 8; align-self: stretch; height: 100%; min-height: 300px; aspect-ratio: auto; margin-bottom: -22px; }
.gallery .world--featured > :not(.world__media) { grid-column: 2; margin-left: 26px; margin-right: 26px; }
.gallery .world--featured .world__link { margin-top: 24px; margin-bottom: 12px; font: 600 clamp(24px, 2.3vw, 32px)/1.15 var(--font-display); }
.gallery .world--featured .world__tagline { font-size: 15px; -webkit-line-clamp: 3; margin-bottom: 14px; }
.gallery .world--featured .world__counts { margin-top: 3px; padding-bottom: 4px; }
.gallery .world--featured .world__notes { margin-top: -2px; margin-bottom: 0; padding: 4px 0; }
.gallery .world--featured .world__cta { display: block; justify-self: start; align-self: start; padding: 12px 18px; margin-top: 4px; font: 600 14px/1.4 var(--font-ui); border-radius: 6px; }
.gallery-rail-wrap { position: relative; min-width: 0; padding: 0 28px; }
.gallery-rail { display: flex; gap: 16px; overflow-x: auto; padding: 3px 0 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery-rail .world { flex: 0 0 280px; scroll-snap-align: start; }
.gallery .world--shelf .world__link { margin: 12px 14px 14px; font-size: 16px; }
.gallery-rail-arrow { position: absolute; top: calc(50% - 22px); z-index: 5; width: 44px; height: 44px; border: 1px solid var(--gallery-line); border-radius: 50%; color: var(--gallery-ink); background: var(--gallery-surface); font-size: 20px; }
.gallery-rail-arrow--prev { left: -10px; }
.gallery-rail-arrow--next { right: -10px; }
.gallery-tools { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--gallery-line); border-bottom: 1px solid var(--gallery-line); }
.gallery-search-wrap { display: grid; gap: 5px; font-size: 13px; color: var(--gallery-muted); }
.gallery-search { display: block; width: min(100%, 480px); height: 44px; border: 1px solid var(--gallery-line); border-radius: 6px; padding: 0 13px; background: var(--gallery-surface); color: var(--gallery-ink); font-size: 15px; }
.gallery-search::placeholder { color: var(--gallery-muted); opacity: 1; }
.gallery-category, .gallery-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.gallery-chip { min-height: 44px; padding: 8px 11px; border: 1px solid var(--gallery-line); border-radius: 6px; background: var(--gallery-surface); color: var(--gallery-muted); font-size: 12px; white-space: nowrap; }
.gallery-chip[aria-checked="true"], .gallery-chip[aria-pressed="true"] { color: var(--gallery-accent); background: var(--gallery-tint); border-color: var(--gallery-accent); }
.gallery-tool-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gallery-sort-wrap { display: flex; align-items: center; gap: 8px; color: var(--gallery-muted); font-size: 13px; }
.gallery-sort { min-height: 44px; max-width: 230px; padding: 6px 10px; border: 1px solid var(--gallery-line); border-radius: 6px; background: var(--gallery-surface); color: var(--gallery-ink); font-size: 13px; }
.gallery-clear, .gallery-empty-clear, .gallery-retry, .gallery-notes-close, .gallery .world__look { min-height: 44px; padding: 8px 12px; border: 1px solid var(--gallery-line); border-radius: 6px; background: var(--gallery-surface); color: var(--gallery-ink); }
.gallery-count { margin: 0 0 0 auto; color: var(--gallery-muted); font: 400 12px/1.4 var(--font-mono); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.gallery-grid .world--deferred { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.gallery-more { display: block; margin: 24px auto 32px; }
.gallery-empty { grid-column: 1 / -1; padding: 28px 0; }
.gallery-empty p { margin-bottom: 14px; }
.gallery-continue { margin-bottom: 20px; }
.gallery-continue h3 { font: 600 22px/1.2 var(--font-display); margin: 0 0 12px; }
.gallery-continue-list { display: flex; overflow-x: auto; gap: 14px; }
.gallery-continue-list .world { flex: 0 0 220px; }
.gallery-notes { position: fixed; z-index: 100; inset: 10vh max(18px, calc((100vw - 650px) / 2)) auto; max-height: 80vh; overflow-y: auto; padding: 24px; border: 1px solid var(--gallery-line); border-radius: var(--radius); background: var(--gallery-surface); box-shadow: var(--shadow); color: var(--gallery-ink); font-size: 14px; }
.gallery-notes h3 { font: 600 26px/1.2 var(--font-display); margin: 0 0 12px; }
.gallery-notes h4 { margin: 16px 0 10px; }
.gallery-notes ul { padding-left: 20px; margin: 0 0 18px; }
.gallery-notes li { margin: 8px 0; }
.gallery-engine-msg { display: none; }
.page-engine-failed .gallery--page .gallery-engine-msg { display: block; margin: 15px 0; }
.page-engine-failed .gallery--page .world__cta { display: none; }
.gallery .world__availability { margin: 0 16px 12px; color: var(--gallery-muted); font-size: 12px; }
.gallery .world__look { position: relative; z-index: 4; margin: 0 12px 12px; }
.gallery-skeleton, .gallery-featured-skeleton { background: var(--panel-2); border-radius: var(--radius); }
.gallery-skeleton { height: 320px; }
.gallery-featured-skeleton { height: 520px; margin-bottom: 28px; }
.gallery[data-state="loading"] .gallery-skeleton { animation: gallery-pulse 1.2s ease-in-out infinite alternate; }
@keyframes gallery-pulse { from { opacity: .5; } to { opacity: 1; } }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gallery .world--featured { display: flex; padding-bottom: 18px; min-height: 0; }
  .gallery .world--featured > .world__media { height: auto; min-height: 0; aspect-ratio: 16 / 9; margin: 0; }
  .gallery .world--featured > :not(.world__media) { margin-left: 16px; margin-right: 16px; }
  .gallery .world--featured .world__link { margin-top: 18px; font-size: 27px; }
  .gallery .world--featured .world__cta { align-self: flex-start; }
  .gallery-rail-wrap { padding: 0; }
  .gallery-rail .world { flex-basis: 86%; }
  .gallery-rail-arrow { display: none; }
  .gallery-category, .gallery-actions { flex-wrap: wrap; max-height: 94px; overflow: auto; scrollbar-width: thin; }
  .gallery-count { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gallery-grid .world:not(.world--featured) { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-content: start; min-height: 160px; }
  .gallery-grid .world:not(.world--featured) .world__media { grid-column: 1; grid-row: 1 / span 6; min-height: 100%; aspect-ratio: auto; }
  .gallery-grid .world:not(.world--featured) > :not(.world__media) { grid-column: 2; margin-left: 12px; margin-right: 10px; }
  .gallery-grid .world__link { font-size: 16px; margin-top: 12px; margin-bottom: 6px; }
  .gallery-grid .world__tagline { -webkit-line-clamp: 3; font-size: 12px; margin-bottom: 8px; }
  .gallery-grid .world__types { gap: 3px; margin-bottom: 7px; }
  .gallery-grid .world__type { font-size: 10px; padding: 2px 4px; }
  .gallery-grid .world__counts { font-size: 10px; }
  .gallery-grid .world__notes { margin-top: -6px; }
  .gallery .world__media::before { left: 6px; top: 6px; font-size: 10px; }
  .gallery-grid .world__media::after { top: 34px; right: auto; left: 6px; font-size: 10px; }
  .gallery .world__preview { left: 5px; bottom: 5px; padding: 6px; min-width: 58px; }
  .gallery-skeleton { height: 190px; }
}
@media (pointer: coarse) { .gallery .world__preview { opacity: 1; } .gallery-rail-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .gallery[data-state="loading"] .gallery-skeleton { animation: none; } }
/* v13:c1_gallery end */
/* v13:c1_gallery begin */
.gallery { display: flex; flex-direction: column; }
.gallery-tools { order: 3; }
.gallery-featured { order: 2; }
.gallery-continue { order: 1; }
.gallery-grid { order: 4; }
.gallery-more { order: 5; }
.gallery-notes, .gallery-engine-msg { order: 6; }
.gallery .world__link { min-height: 44px; }
.gallery .world--shelf .world__media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
.gallery .world--featured .world__notes { justify-self: start; text-align: left; }
.gallery .world__notes { justify-self: start; text-align: left; }
/* v13:c1_gallery end */
/* Pack routing stays on the current page until a visitor follows a link. */
.pack-panel {
  position: absolute; z-index: 12; inset: auto 1.5rem 2rem auto;
  width: min(30rem, calc(100% - 3rem)); padding: 1.5rem;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: .75rem; box-shadow: var(--shadow);
}
.pack-panel h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.pack-panel p { margin: 0 0 1rem; }
.pack-panel .btn { margin: .25rem .5rem .25rem 0; }
.pack-panel__close { display: block; margin-top: .75rem; min-height: 44px; padding: .5rem; color: inherit; background: transparent; border: 0; text-decoration: underline; }
.world__pack-open { color: var(--wm-red-ink); font-size: .85rem; }
.world--shelf .world__look { margin: .5rem 1rem 1rem; }
@media (max-width: 600px) {
  .pack-panel { inset: auto 1rem 1rem; width: auto; padding: 1rem; }
}

/* authors band under the hero */
.authors { padding-top: clamp(22px, 2.6vw, 34px); text-align: center; }
.authors__names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 500 clamp(1rem, 0.3vw + 0.95rem, 1.125rem)/1.4 var(--font-ui); color: var(--ink); }
.authors__name { white-space: nowrap; }
.authors__name sup, .authors__affil sup { font-size: 0.68em; color: var(--muted); margin-left: 1px; }
.authors__affil { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 0.7em; font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); }
.authors__affil span { white-space: nowrap; }

/* Redesign R1: panorama stage, scenic gallery and a shorter research page. */
.hero, .topbar { --stage-text-shadow: -.65px 0 rgba(8,9,12,.9),.65px 0 rgba(8,9,12,.9),0 -.65px rgba(8,9,12,.9),0 .65px rgba(8,9,12,.9),0 1px 3px rgba(8,9,12,.5); --stage-label-shadow: -1px 0 rgba(8,9,12,.95),1px 0 rgba(8,9,12,.95),0 -1px rgba(8,9,12,.95),0 1px rgba(8,9,12,.95),0 1px 3px rgba(8,9,12,.6); }
html { font-optical-sizing: auto; }
p { max-width: 68ch; }
h1, h2 { font-optical-sizing: auto; }
.section { padding-top: var(--section-gap); }
.section + .section { margin-top: 0; }
.eyebrow { font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; }
.eyebrow::before { display: none; }
.topbar { position: fixed; inset: 0 0 auto; background: transparent; border: 0; color: #F2F3F5; transition: background .25s, backdrop-filter .25s; }
.topbar.is-scrolled { background: rgba(11,13,16,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.topbar__in { min-height: 72px; }
.topbar .wordmark, .topbar .topnav a, .topbar .iconbtn { color: #F2F3F5; }
.topbar .wordmark sup { color: #F2F3F5; }
.topbar:not(.is-scrolled) { text-shadow: var(--stage-text-shadow); }
.topbar:not(.is-scrolled) .wordmark sup { text-shadow: var(--stage-text-shadow); }
.topbar:not(.is-scrolled) .iconbtn svg { filter: drop-shadow(0 1px 1px rgba(8,9,12,.85)); }
.topbar .topnav a:hover, .topbar .iconbtn:hover { background: rgba(11,13,16,.55); color: #FFF; }
.topbar .btn { min-height: 44px; }
.topbar :focus-visible { outline-color: #E8B26A; }
.hero__stage { height: 100svh; min-height: 560px; overflow: hidden; background: #0B0D10; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; cursor: grab; touch-action: pan-y; }
.stage-canvas:active { cursor: grabbing; }
.stage-canvas:focus-visible { outline: 3px solid #E8B26A; outline-offset: -5px; }
#hero-stage > #wm-game:not(.wm-mode-game) { visibility: hidden; pointer-events: none; }
.stage-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 48% 65% at 0% 60%,rgba(8,9,12,.42),rgba(8,9,12,0) 100%),linear-gradient(180deg,rgba(8,9,12,0) 45%,rgba(8,9,12,.78) 100%); pointer-events: none; }
.stage-copy { position: absolute; z-index: 2; left: max(var(--gutter-l),calc((100% - var(--measure))/2)); right: max(var(--gutter-r),calc((100% - var(--measure))/2)); bottom: 228px; color: #F2F3F5; text-shadow: var(--stage-text-shadow); pointer-events: none; }
.stage-copy a, .stage-copy button { pointer-events: auto; }
.stage-kicker { color: #F2F3F5; font: 500 12px/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.hero .stage-copy h1 { font: 600 clamp(44px,7vw,96px)/1.06 var(--font-display); letter-spacing: -.035em; }
.stage-copy .sys { font-weight: 600; }
.stage-copy h1 .sys sup { color: #F2F3F5; font-size: .46em; top: -.68em; letter-spacing: -.015em; }
.stage-subtitle { margin-top: 12px; font: 500 clamp(22px,2.6vw,38px)/1.2 var(--font-ui); letter-spacing: -.025em; }
.stage-claim { margin-top: 16px; font: 400 17px/1.6 var(--font-ui); max-width: 62ch; color: #F2F3F5; }
.stage-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.stage-actions__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stage-actions__links .btn { font-size: 14px; min-height: 48px; }
.stage-actions__links .btn--onscrim { border-color: rgba(255,255,255,.5); background: rgba(4,6,9,.48); }
.stage-request-group { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.stage-request { position: relative; display: flex; align-items: center; gap: 16px; min-height: 48px; max-width: 560px; padding: 12px 18px; border: 1px solid #E8B26A; border-radius: 28px; background: rgba(11,13,16,.83); color: #FFF3E2; text-align: left; font: 400 14px/1.45 var(--font-ui); cursor: pointer; transition: background .2s, transform .2s; }
.stage-request:disabled { cursor: default; opacity: 1; }
.stage-request:hover:not(:disabled) { background: rgba(57,39,17,.95); transform: translateY(-2px); }
.stage-request__label { position: absolute; left: 16px; top: -23px; font: 500 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: #F7D4A4; text-shadow: var(--stage-label-shadow); white-space: nowrap; }
.stage-request__arrow { font-size: 24px; line-height: 1; color: #E8B26A; }
.stage-request.is-applied { border-color: #E8B26A; }
.stage-undo { min-height: 44px; flex: 0 0 auto; padding: 0 6px; border: 0; background: transparent; color: #F2F3F5; font: 500 12px/1 var(--font-ui); text-decoration: underline; text-underline-offset: 4px; text-shadow: var(--stage-text-shadow); cursor: pointer; }
.stage-undo:disabled { cursor: default; }
.stage-request.is-pulsing { animation: request-invite 2s ease-in-out infinite; }
@keyframes request-invite { 50% { box-shadow: 0 0 0 5px rgba(232,178,106,.18); border-color: #FFE0B6; } }
.stage-disclosure { margin-top: 16px; color: #D5D9DF; font: 400 12px/1.6 var(--font-ui); max-width: 90ch; }
.stage-browse { position: absolute; z-index: 2; right: max(var(--gutter-r),calc((100% - var(--measure))/2)); bottom: 90px; width: min(600px,calc(100% - 48px)); color: #F2F3F5; text-shadow: var(--stage-text-shadow); }
.stage-browse__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.stage-hint { font: 400 12px/1.5 var(--font-ui); color: #D5D9DF; }
.stage-motion { min-height: 28px; padding: 4px 0 4px 14px; border: 0; background: none; color: #F2F3F5; text-shadow: var(--stage-text-shadow); font: 500 12px/1 var(--font-ui); cursor: pointer; }
.stage-rail { display: flex; gap: 8px; padding: 4px; margin: -4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9AA3AE transparent; }
.stage-rail__item { flex: 0 0 112px; position: relative; width: 112px; min-height: 86px; padding: 0; border-radius: 8px; border: 0; background: transparent; color: #F2F3F5; cursor: pointer; }
.stage-rail__item img { display: block; width: 112px; height: 63px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; object-fit: cover; opacity: .8; transition: opacity .2s; }
.stage-rail__item span { display: block; margin-top: 7px; color: #F2F3F5; text-shadow: var(--stage-text-shadow); font: 500 11px/1.4 var(--font-ui); white-space: nowrap; }
.stage-rail__item[aria-pressed="true"] img { outline: 2px solid #E8B26A; outline-offset: -2px; }
.stage-rail__item[aria-pressed="true"] img, .stage-rail__item:hover img { opacity: 1; }
.stage-rail__item:focus-visible { outline: 2px solid #FFF; outline-offset: 1px; }
.hero__stage .authors { position: absolute; bottom: 20px; inset-inline: 0; z-index: 2; padding: 0; background: none; border: 0; color: #F2F3F5; pointer-events: none; }
.hero__stage .authors__names { justify-content: flex-start; gap: 4px 18px; font-size: 15px; color: #F2F3F5; }
.hero__stage .authors__affil { justify-content: flex-start; font-size: 15px; color: #D5D9DF; margin-top: 7px; }
html.page-in-game .stage-copy, html.page-in-game .stage-browse, html.page-in-game .authors { visibility: hidden; }
.scenic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 32px; }
#world-gallery { overflow-anchor: none; }
.scenic-more { display: flex; width: fit-content; max-width: 100%; margin: 28px auto 0; font-size: 14px; }
.scenic-card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .25s; }
.scenic-card { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.scenic-card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.scenic-card:hover { transform: translateY(-2px); }
.scenic-card__media { position: relative; flex: 0 0 auto; aspect-ratio: 800/500; }
.scenic-card__link { position: relative; display: block; height: 100%; aspect-ratio: 800/500; color: #F2F3F5; text-decoration: none; overflow: hidden; background: #14171C; }
.scenic-card__link::after { content: ''; position: absolute; inset: auto 0 0; height: 76px; background: linear-gradient(180deg,rgba(4,6,9,0),rgba(4,6,9,.88) 45%,rgba(4,6,9,.96)); pointer-events: none; }
.scenic-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s ease; }
.scenic-card:hover .scenic-card__image { transform: scale(1.04); }
.scenic-card__title { position: absolute; z-index: 1; bottom: 18px; left: 16px; right: 70px; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #F2F3F5; font: 600 20px/1.25 var(--font-display); letter-spacing: -.01em; }
.scenic-card__copy { flex: 1; padding: 16px; }
.scenic-card__copy p { max-width: none; margin: 0; }
.scenic-card__tagline { color: var(--ink-2); font: 400 14px/1.6 var(--font-ui); }
.scenic-card__copy .scenic-card__counts { margin-top: 12px; font: 500 12px/1.5 var(--font-ui); color: var(--muted); }
.scenic-card__play { position: absolute; z-index: 2; right: 12px; top: 12px; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; padding: 0 12px; background: #F2F3F5; color: #0B0D10; border-radius: 999px; font: 600 12px/1 var(--font-ui); }
.gallery--page .gallery-featured, .gallery--page .gallery-continue { display: none; }
#world-totals { color: var(--muted); font-size: 14px; margin-top: 10px; }
.caps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.request-card { border-radius: 16px; border-color: var(--line); box-shadow: none; transition: transform .25s; }
.request-card:hover { transform: translateY(-2px); }
.request-card__media { position: relative; aspect-ratio: 7/4; background: #0B0D10; }
.request-card__media video { width: 100%; height: 100%; object-fit: cover; }
.request-card__badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(4,6,9,.82); color: #F2F3F5; font: 500 11px/1.2 var(--font-ui); pointer-events: none; }
.request-card__body { padding: 22px; }
.request-card__body h3 { font: 500 17px/1.55 var(--font-ui); }
.request-card__foot { margin-top: 14px; display: flex; align-items: center; gap: 8px 20px; justify-content: space-between; flex-wrap: wrap; }
.request-card__foot p { font-size: 12px; color: var(--muted); }
.request-card__foot a { color: var(--ink); font-size: 13px; min-height: 44px; }
.capability-film { padding: 20px 0; }
.capability-film video { width: 100%; max-height: 640px; background: #0B0D10; border-radius: 12px; }
#cmp { margin-top: 32px; }
.cmp__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.cmp__tile--ours { grid-column: 1/-1; width: min(100%,800px); justify-self: center; }
.cmp__tile--ours img { max-height: 440px; object-fit: contain; }
.cmp__tile { border-radius: 12px; }
.tiles { gap: 18px; }
.tile { border-radius: 16px; box-shadow: none; }
#recovery-details { margin-top: 28px; }
#recovery-details .figrow { padding-top: 20px; }
.figrow { grid-template-columns: 1fr; }
.more, .faq__item { border-radius: 12px; }
.more summary { min-height: 56px; }
#method .steps { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
#method .step { display: flex; flex-direction: column; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
#method .step__text { padding: 0; }
#method .step__n { color: var(--warm); }
#method .step p:not(.step__n) { font-size: 14px; }
#method .routes { gap: 18px; }
#method .route { border-radius: 16px; box-shadow: none; }
#method .route p { font-size: 14px; }
#local .split { grid-template-columns: 1fr; gap: 24px; }
#local .split__side { max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
#local .split__side .bars { grid-column: 2; grid-row: 1/4; align-self: center; }
#local .split__side h3 { display: none; }
#local .split__side p { margin: 0; }
#local .tiles--3 { margin-top: 32px; }
#faq .accordion-body, #faq .issues { padding: 20px 0; }
#faq .more { margin-top: 12px; }
#faq .issues .sub { margin-top: 0; }
#faq .faq__source { display: none; }
#faq .lead { font-size: 17px; }
.reveal-section { opacity: 0; transform: translateY(16px); transition: opacity .5s,transform .5s; }
.reveal-section.is-revealed { opacity: 1; transform: none; }
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
@media (min-width: 1600px) { .stage-copy { bottom: 240px; } }
@media (max-width: 1100px) {
  .stage-copy { bottom: 220px; }
  .stage-claim { max-width: 62ch; }
  .stage-request { max-width: 480px; }
  .stage-actions { gap: 12px; }
  .stage-actions__links .btn { padding-inline: 14px; }
  .scenic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #method .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #method .routes { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 719px) {
  :root { --section-gap: 64px; --topbar-h: 64px; --gutter-l: max(20px,env(safe-area-inset-left,0px)); --gutter-r: max(20px,env(safe-area-inset-right,0px)); }
  .topbar__in { min-height: 64px; gap: 10px; }
  .topnav { display: none; }
  .hero { padding-bottom: 106px; }
  .hero__stage { height: 88svh; min-height: 560px; overflow: visible; }
  .stage-canvas, .stage-gradient { height: 100%; }
  .stage-copy { bottom: 148px; left: 20px; right: 20px; }
  .stage-kicker { font-size: 10px; margin-bottom: 8px; }
  .hero .stage-copy h1 { font-size: clamp(44px,12vw,64px); }
  .stage-subtitle { margin-top: 8px; font-size: 22px; max-width: 24ch; }
  .stage-claim { font-size: 14px; line-height: 1.5; margin-top: 12px; }
  .stage-actions { display: grid; gap: 10px; margin-top: 30px; }
  .stage-request { max-width: 100%; font-size: 12px; min-height: 44px; padding: 10px 14px; border-radius: 18px; }
  .stage-request__label { font-size: 10px; top: -18px; }
  .stage-actions__links { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
  .stage-actions__links .btn { font-size: 11px; min-height: 44px; padding-inline: 10px; white-space: normal; line-height: 1.3; text-align: center; }
  .stage-disclosure { font-size: 10px; margin-top: 10px; line-height: 1.5; }
  .stage-browse { left: 20px; right: 20px; bottom: 18px; width: auto; }
  .stage-browse__heading { margin-bottom: 6px; }
  .stage-rail__item { flex-basis: 84px; width: 84px; min-height: 75px; }
  .stage-rail__item img { width: 84px; height: 47px; }
  .stage-rail__item span { font-size: 10px; white-space: normal; }
  .hero__stage .authors { top: 100%; bottom: auto; padding: 18px 0; background: var(--bg); color: var(--ink); pointer-events: auto; }
  .hero__stage .authors__names { font-size: 11px; line-height: 1.6; gap: 3px 10px; color: var(--ink); }
  .hero__stage .authors__affil { font-size: 10px; line-height: 1.6; gap: 3px 12px; color: var(--muted); margin-top: 6px; }
  .scenic-grid { grid-template-columns: minmax(0,1fr); gap: 18px; margin-top: 24px; }
  #worlds > .wrap { padding-left: max(16px,env(safe-area-inset-left,0px)); padding-right: max(16px,env(safe-area-inset-right,0px)); }
  .scenic-card__title { font-size: 18px; }
  .scenic-card__tagline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .caps { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .request-card__body { padding: 20px; }
  .request-card__body h3 { font-size: 16px; }
  .cmp__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .cmp__tile--ours { grid-column: 1/-1; }
  #method .steps { grid-template-columns: 1fr; }
  #method .routes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #local .split__side { display: block; }
  #local .split__side p { margin-top: 12px; }
  #local .split__side .bars { margin-top: 20px; }
  .stage-motion { min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-section { opacity: 1; transform: none; transition: none; }
  .stage-request.is-pulsing { animation: none; }
  .scenic-card, .scenic-card__image, .request-card, .scenic-card__play { transition: none; }
  .scenic-card:hover, .request-card:hover, .scenic-card:hover .scenic-card__image { transform: none; }
}
/* Keep the author credit on one line per role at desktop widths. */
.hero__stage .authors p { max-width: none; }
.stage-canvas { touch-action: none; }
.btn--primary:hover { background: var(--wm-red-strong); border-color: var(--wm-red); }
.hero__stage .authors__name sup, .hero__stage .authors__affil sup { color: inherit; }
@media (max-width:719px) {
  .stage-request { font-size: 14px; }
  .stage-disclosure { font-size: 12px; }
  .stage-actions__links .btn { font-size: 12px; }
}
@media (min-width:720px) {
  #method .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #method .routes { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width:1101px) {
  #method .routes { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
/* Reset the previous phone carousel and its light-theme hero-button treatment. */
.stage-actions__links .btn--onscrim { color: #F2F3F5; }
@media (max-width:719px) {
  .caps { display: grid; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 0; }
  .request-card { width: auto; min-width: 0; flex: initial; scroll-snap-align: none; }
}
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); }

/* Recorded world previews: one shared media budget, no additional canvas. */
.scenic-card--preview { background: var(--panel); }
.scenic-card__preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.scenic-card.has-preview-frame .scenic-card__preview { opacity: 1; }
.scenic-card--preview .scenic-card__image { display: block; }
.scenic-card--preview:hover .scenic-card__image { transform: none; }
.scenic-card__preview-status { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; pointer-events: none; }
.scenic-card__preview-label { display: table; max-width: calc(100% - 76px); padding: 5px 8px; border-radius: 6px; background: rgba(7,11,17,.92); color: #F2F3F5; font: 500 12px/1.25 var(--font-ui); opacity: 0; }
.scenic-card.has-preview-frame .scenic-card__preview-label { opacity: 1; }
.scenic-card__preview-toggle { position: absolute; z-index: 3; bottom: 10px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(7,11,17,.92); color: #F2F3F5; font: 600 16px/1 var(--font-ui); cursor: pointer; }
.scenic-card__preview-toggle:focus-visible { outline: 3px solid #F2F3F5; outline-offset: 3px; box-shadow: 0 0 0 6px #0B0D10; }
.scenic-card__preview-request { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: fit-content; max-width: 100%; margin: 22px 0 0; padding: 6px 9px; border-radius: 6px; background: rgba(7,11,17,.92); color: #F2F3F5; font: 400 12px/1.4 var(--font-ui); overflow-wrap: anywhere; opacity: 0; transition: opacity 160ms ease; }
.scenic-card.has-preview-frame[data-preview-caption="visible"] .scenic-card__preview-request { opacity: 1; }
.scenic-card__copy .scenic-card__preview-disclosure { margin-top: 8px; color: var(--muted); font: 400 12px/1.5 var(--font-ui); }
@media (prefers-reduced-motion: reduce) {
  .scenic-card__preview-request { transition: none; }
}

/* Ambient saved views use the existing card dimensions and playback controls. */
.scenic-card--ambient:hover .scenic-card__image { transform: none; }
.scenic-card--ambient .scenic-card__preview-label { max-width: calc(100% - 76px); }
.request-card__media .request-card__ambient { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.request-card.has-preview-frame.is-request-showing-ambient .request-card__ambient { opacity: 1; }
.request-card__ambient-tag { position: absolute; z-index: 2; left: 12px; right: 68px; bottom: 12px; width: fit-content; max-width: calc(100% - 80px); padding: 5px 8px; border-radius: 6px; background: rgba(7,11,17,.92); color: #F2F3F5; font: 500 11px/1.4 var(--font-ui); pointer-events: none; }
.request-card__play-request { position: absolute; z-index: 3; top: 12px; right: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(7,11,17,.92); color: #F2F3F5; font: 500 12px/1.3 var(--font-ui); cursor: pointer; }
.request-card__play-request:focus-visible { outline: 3px solid #F2F3F5; outline-offset: 3px; box-shadow: 0 0 0 6px #0B0D10; }
.request-card__media .request-card__ambient[hidden], .request-card__ambient-tag[hidden], .request-card__play-request[hidden], .request-card__ambient-toggle[hidden] { display: none; }
.request-card.is-request-showing-ambient .request-card__media { background-position: center; background-size: cover; }
.stage-rail__media { position: relative; flex: 0 0 auto; width: 112px; height: 63px; border-radius: 8px; overflow: hidden; }
.stage-rail__media .stage-rail__ambient { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; object-fit: cover; opacity: 0; pointer-events: none; }
.has-preview-frame .stage-rail__media .stage-rail__ambient { opacity: .8; }
.stage-rail__item.has-preview-frame[aria-pressed="true"] .stage-rail__ambient { outline: 2px solid #E8B26A; outline-offset: -2px; }
.stage-rail__item.has-preview-frame[aria-pressed="true"] .stage-rail__ambient, .stage-rail__item.has-preview-frame:hover .stage-rail__ambient { opacity: 1; }
@media (max-width: 719px) {
  .stage-rail__media { width: 84px; height: 47px; }
}
/* A browser's playback gesture remains visible above the hero's page controls. */
.hero__stage .wm-play-gesture { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(11,13,16,.65); color: #F2F3F5; text-align: center; pointer-events: auto; }
.hero__stage .wm-play-gesture-button { min-width: 100px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: #E8B26A; color: #14171C; font: 600 16px/1.4 var(--font-ui); cursor: pointer; }
.hero__stage .wm-play-gesture-cancel { min-height: 44px; padding: 8px 20px; border: 1px solid #D5D9DF; border-radius: 999px; background: transparent; color: #F2F3F5; cursor: pointer; }
.hero__stage .wm-play-gesture button:focus-visible { outline: 2px solid #F2F3F5; outline-offset: 4px; }

/* code links (release v19) */
.btn__icon { flex: none; width: 1.05em; height: 1.05em; }
.authors__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero__stage .authors__links { justify-content: flex-start; pointer-events: auto; }
@media (min-width: 720px) {
  .hero__stage .authors { text-align: left; }
  .hero__stage .authors__affil, .hero__stage .authors__links { display: inline-flex; vertical-align: middle; }
  .hero__stage .authors__links { margin: 7px 0 -9px 22px; position: relative; top: -5px; }
  .hero__stage .authors__links .btn { min-height: 30px; padding: 0 0.85em; font-size: 14px; font-weight: 500; color: #F2F3F5; border-color: rgba(242,243,245,.55); background: rgba(11,13,16,.32); text-shadow: none; }
  .hero__stage .authors__links .btn:hover { border-color: #F2F3F5; background: rgba(11,13,16,.6); }
}

/* Consecutive saved-world sessions. The stage keeps the existing warm accent and scrim. */
.stage-session { display: flex; align-items: center; gap: 14px; max-width: 560px; margin-top: 20px; pointer-events: auto; }
#stage-counter { flex: 0 0 auto; color: #F7D4A4; font: 500 12px/1.5 var(--font-ui); font-variant-numeric: tabular-nums; }
.stage-timeline { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 1px; margin: 0; overflow-x: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #9AA3AE transparent; }
.stage-timeline li { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border: 1px solid rgba(242,243,245,.38); border-radius: 50%; background: rgba(11,13,16,.66); color: #D5D9DF; font: 500 10px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.stage-timeline .is-complete { color: #F7D4A4; border-color: #E8B26A; background: rgba(70,46,18,.86); }
.stage-timeline .is-current { outline: 1px solid #E8B26A; outline-offset: 2px; color: #FFF3E2; }
.stage-actions { display: grid; grid-template-columns: minmax(0,560px) auto; justify-content: start; align-items: center; gap: 12px 16px; margin-top: 30px; }
.stage-request-group { min-width: 0; }
.stage-request { width: 100%; }
.stage-actions__links { grid-column: 1 / -1; }
.stage-session-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stage-next, .stage-skip { min-height: 44px; padding: 10px 16px; border: 1px solid rgba(232,178,106,.75); border-radius: 24px; background: rgba(11,13,16,.84); color: #FFF3E2; font: 500 12px/1.3 var(--font-ui); cursor: pointer; white-space: nowrap; }
.stage-skip { border-color: rgba(242,243,245,.45); color: #F2F3F5; }
.stage-next:disabled, .stage-skip:disabled { opacity: .55; cursor: default; }
.stage-next:hover:not(:disabled), .stage-skip:hover:not(:disabled) { background: rgba(57,39,17,.95); }
.stage-next:focus-visible, .stage-skip:focus-visible { outline: 2px solid #E8B26A; outline-offset: 3px; }
@media (max-width: 719px) {
  .stage-session { gap: 10px; margin-top: 14px; }
  #stage-counter { font-size: 11px; }
  .stage-timeline { gap: 5px; }
  .stage-timeline li { flex-basis: 19px; height: 19px; font-size: 9px; }
  .stage-actions { grid-template-columns: minmax(0,1fr); gap: 9px; margin-top: 26px; }
  .stage-session-controls { gap: 10px; }
  .stage-next, .stage-skip { min-height: 44px; padding: 9px 14px; }
  .stage-actions__links { grid-column: 1; }
  .stage-copy { bottom: 142px; }
  .stage-disclosure { margin-top: 9px; }
}
@media (min-width: 720px) and (max-height: 760px) {
  .stage-copy { bottom: 200px; }
  .hero .stage-copy h1 { font-size: 64px; }
  .stage-subtitle { font-size: 26px; margin-top: 8px; }
  .stage-claim { margin-top: 10px; font-size: 15px; }
  .stage-session { margin-top: 14px; }
  .stage-disclosure { margin-top: 10px; }
}

/* S2 film (release v33f): the one-minute film above the world gallery. Colours come from tokens.css only. */
.promo { position: relative; margin-top: clamp(1.5rem, 3vw, 2.25rem); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--stage); }
.promo__video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; background: var(--stage); }
.promo__video:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: inherit; }
.promo__play { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--btn-ink); cursor: pointer; }
.promo__pill { display: inline-flex; align-items: center; gap: .65em; min-height: 56px; padding: 0 1.35em 0 1.15em; border-radius: 999px; background: var(--wm-red-strong); color: var(--btn-ink); font: 600 1.0625rem/1 var(--font-ui); white-space: nowrap; transition: background-color var(--t-fast); }
.promo__pill svg { flex: none; width: 14px; height: 14px; }
.promo__play:hover .promo__pill { background: var(--wm-red); }
.promo__play:focus-visible { outline: none; }
.promo__play:focus-visible .promo__pill { outline: 3px solid var(--on-scrim); outline-offset: 3px; box-shadow: 0 0 0 7px var(--stage); }
#film .caption { margin-top: .9rem; }
@media (max-width: 719px) {
  #film > .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .promo { border-radius: 12px; }
  .promo__pill { justify-content: center; width: 52px; height: 52px; min-height: 0; padding: 0 0 0 3px; }
  .promo__pill svg { width: 16px; height: 16px; }
  .promo__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .promo__pill { transition: none; } }
/* Card and rail pictures whose source failed twice keep their box without a broken-image icon. */
img.is-img-failed { visibility: hidden; }
/* The rail draws its frame on the picture itself. A rail picture that failed twice gets the same frame (values of the rail rules)
   from its label, placed in the picture's slot 7px above it (the item centres its content), or from its media box. */
.stage-rail__item:has(> img.is-img-failed) > span { position: relative; }
.stage-rail__item:has(> img.is-img-failed) > span::before, .stage-rail__media:has(> img.is-img-failed)::before { content: ''; position: absolute; left: 0; width: 112px; height: 63px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; opacity: .8; pointer-events: none; }
.stage-rail__item:has(> img.is-img-failed) > span::before { bottom: calc(100% + 7px); }
.stage-rail__media:has(> img.is-img-failed)::before { top: 0; }
.stage-rail__item:hover:has(> img.is-img-failed) > span::before, .stage-rail__item:hover .stage-rail__media:has(> img.is-img-failed)::before { opacity: 1; }
.stage-rail__item[aria-pressed="true"]:has(> img.is-img-failed) > span::before, .stage-rail__item[aria-pressed="true"] .stage-rail__media:has(> img.is-img-failed)::before { outline: 2px solid #E8B26A; outline-offset: -2px; opacity: 1; }
@media (max-width: 719px) { .stage-rail__item:has(> img.is-img-failed) > span::before, .stage-rail__media:has(> img.is-img-failed)::before { width: 84px; height: 47px; } }
