/* Hallmark · shape: Marquee Hero, a publisher page for one game (key art, realms, what it is with the realm video, steps, image-led features, patch notes as news, screenshots, community, a last call) · genre: atmospheric · theme: brand · redesign: full · job: try · draw: 495f8e
 * paper: #120d09 (dark stained wood) · accent: #e8b45a (the game UI's gold) · display: Cinzel · body: Crimson Pro · hero: Poster, centred (/), Banner (/donate, /beta, /patch-notes, /help) · nav: slim translucent sticky bar, the logo and links left, Get access and Sign in right, a script-free menu toggle on phones · footer: index columns (Game, Community, Help, Legal) beside the logo and the fan-project line · signature: the key art fading into the dark page under the translucent bar, the logo as the one mark, the live realm strip at its foot
 * axes: dark/roman-serif/warm · posture: Restrained · imagery: screenshots 13 and the realm video (our own, static/shots and static/media) · icons: Lucide 1.88.0 (ISC), brand marks Simple Icons 16.39.0 (CC0) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, the steps beat came back because getting in really is three steps; set as a hairline list with gold numerals. Pass 2 cut the second hero mark, the boxes and outlines, and kept Cinzel to page and section titles */
/* Hallmark · sweep (pass 3, publisher polish per the owner; pass 2 made it cleaner and calmer): Floor 0 FAIL on the six routes (one kept-check FAIL is the per-session csrf token value, dismissed) · Reflex 5 waived (59, 77, 78, 49b, 72) · finish-review (pass 1): subagent · 8 findings · 7 resolved 1 resolved in pass 2 (the phone nav now folds behind a script-free menu toggle) */
/* Hallmark · waive 59 · the realm board overlaps the key art's foot on purpose, and /donate is a payment form whose panels sit close · the realm status belongs to the hero; a donor reads the goal, the form and the tiers as one flow */
/* Hallmark · waive 77 · the realm status strip is one band of live realm rows; the goal and the testing note are full-width form panels · the realm band runs once on the front page, and the donate goal and Swamp testing note are plain panels in a form flow */
/* Hallmark · waive 78 · /donate, /beta and /help are form flows whose h2s label panels (Donate once, The steps, Open a ticket) · on these form pages a 52px head over every panel would push the donate form, the access steps and the ticket form below the fold */
/* Hallmark · waive 49b · patch note titles are the owner's approved headings and wrap on phones · each patch note title is version plus the owner's own title, shown whole rather than cut */
/* Hallmark · waive 72 · the patch note pager cuts a long title with an ellipsis so the link stays one line · the Newer and Older patch note links keep one line on phones, so the title is clipped at the box edge */
/* Hallmark · dropped csrf= · the old value of the hidden csrf field: the field is still on every form; its value is a per-session token, so the value recorded before can never match */
/* Hallmark · dismissed 29 · the sticky top bar is the genre's one glass licence (atmospheric): blur over a translucent dark, with a solid fallback where blur is missing */
/* Hallmark · answered F15 · the 24px gap belongs to the tile and screenshot grids and the 64px gap to the three steps, which read as a list rather than columns */
/* Hallmark · inspired by valheim.com, mood only: key art that bleeds into near-black, a centred mark over it, a long, soft fade from the art into the page, calm, image-led sections with few accents; no asset, text, font or layout taken */
/* ValheimMMO portal: dark stained wood, iron and gold, like the game's UI kit (UI/Kit/Theme.cs). Fonts are served from this site
   (static/fonts, SIL Open Font License 1.1: see OFL-*.txt there), never from a third-party font service. */
:root {
  /* brand, read from the old :root and the game's UI kit */
  --color-paper: #120d09; --color-paper-2: #1d140d; --color-paper-3: #2a1d14; --color-paper-4: #3a2819; --wood-lift: #4a3420;
  --color-ink: #efe2c8; --color-ink-soft: #cdbd9f; --color-ink-2: #ffd27a; --color-muted: #a8977d; --color-rule: #5a4a3a; --color-rule-strong: #85725a;
  --color-accent: #e8b45a; --color-accent-hi: #ffd27a; --color-accent-deep: #b8863a; --color-accent-ink: #1b120a; --color-focus: #ffd27a;
  --color-good: #7fd47f; --color-bad: #e06a5a; --status-open: #e8c872;
  --danger-ink: #ffd9d2; --danger-fill: #4d1d16; --danger-fill-hi: #6a2a20;
  --gold-game: #cc9e54; --r-common: #e6e6e6; --r-uncommon: #4ddb4d; --r-rare: #4d9bff; --r-epic: #c26bff; --r-legendary: #ff8000;
  --font-display: "Cinzel", Georgia, serif; --font-body: "Crimson Pro", Georgia, serif; --font-mono: Consolas, ui-monospace, monospace;
  /* the old names, kept so every page's rules still read */
  --bg: var(--color-paper); --wood: var(--color-paper-3); --wood-hi: var(--color-paper-4); --iron: var(--color-rule); --gold: var(--color-accent);
  --gold-hi: var(--color-accent-hi); --text: var(--color-ink); --dim: var(--color-muted); --good: var(--color-good); --bad: var(--color-bad); --radius: 6px; --radius-lg: 10px;
  /* chrome: the translucent bar and the quiet lines */
  --nav-h: 68px; --bar-solid: #160f0b; --bar-glass: rgb(18 13 9 / 0.72);
  --line-soft: rgb(239 226 200 / 0.1); --line-ghost: rgb(239 226 200 / 0.26); --line-field: rgb(239 226 200 / 0.5);
  /* overlays (alpha only for overlays and shadows) */
  --shade-30: rgb(8 5 3 / 0.3); --shade-35: rgb(8 5 3 / 0.35); --shade-45: rgb(8 5 3 / 0.45); --shade-60: rgb(8 5 3 / 0.6); --shade-85: rgb(8 5 3 / 0.85);
  --scrim-30: rgb(18 13 9 / 0.3); --scrim-45: rgb(18 13 9 / 0.45); --scrim-60: rgb(18 13 9 / 0.6); --scrim-80: rgb(18 13 9 / 0.8); --scrim-90: rgb(18 13 9 / 0.9); --scrim-95: rgb(18 13 9 / 0.95);
  --gold-a08: rgb(232 180 90 / 0.08); --gold-a10: rgb(232 180 90 / 0.1); --gold-a12: rgb(232 180 90 / 0.12); --gold-a25: rgb(232 180 90 / 0.25); --gold-a45: rgb(232 180 90 / 0.45);
  --rule-a45: rgb(90 74 58 / 0.45); --rule-a50: rgb(90 74 58 / 0.5); --rule-a55: rgb(90 74 58 / 0.55); --rule-a60: rgb(90 74 58 / 0.6);
  --ink-a45: rgb(239 226 200 / 0.45); --good-a15: rgb(127 212 127 / 0.15);
  /* the shared scale */
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  /* a short scale: 14, 16, 18 body, 21 lead, 22 title, 28 large title, 40 to 48 section and page titles, the step numerals */
  --text-xs: 0.875rem; --text-sm: 1rem; --text-md: 1.125rem; --text-lg: 1.375rem;
  --text-lead: 1.3125rem; --text-title: 1.375rem; --text-title-l: clamp(1.5rem, 0.6vw + 1.25rem, 1.75rem);
  --text-h1: clamp(2.25rem, 1.6vw + 1.6rem, 3rem); --text-h2: 1.5rem;
  --text-section: clamp(2.25rem, 1.4vw + 1.7rem, 3rem); --text-section-s: clamp(2.25rem, 1.4vw + 1.7rem, 3rem);
  --text-numeral: clamp(2.5rem, 2vw + 1.5rem, 3.5rem); --text-figure: clamp(2rem, 1vw + 1.5rem, 2.5rem);
  --tracking-display: 0.02em;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 128px; --section-gap: 160px; --section-gap-l: 192px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  /* lifted from the older page rules (wiki, armory, status, account) */
  --bad-a14: rgb(224 106 90 / 0.14);
  --color-light: #fff8ec;
  --color-void: #070403;
  --epic-a45: rgb(194 107 255 / 0.45);
  --gamegold-a25: rgb(204 158 84 / 0.25);
  --gamegold-a30: rgb(204 158 84 / 0.3);
  --gold-a07: rgb(232 180 90 / 0.07);
  --gold-a15: rgb(232 180 90 / 0.15);
  --legendary-a45: rgb(255 128 0 / 0.45);
  --shade-18: rgb(8 5 3 / 0.18);
  --shade-25: rgb(8 5 3 / 0.25);
  --shade-50: rgb(8 5 3 / 0.5);
  --shade-55: rgb(8 5 3 / 0.55);
  --shade-70: rgb(8 5 3 / 0.7);
  --x-07090f: #07090f;
  --x-0c1620: #0c1620;
  --x-0f2233: #0f2233;
  --x-0f2412: #0f2412;
  --x-141a2e: #141a2e;
  --x-1b130c: #1b130c;
  --x-1d0f2e: #1d0f2e;
  --x-1eff00: #1eff00;
  --x-1f4a6a: #1f4a6a;
  --x-241810: #241810;
  --x-24502a: #24502a;
  --x-2a3350: #2a3350;
  --x-3a1608: #3a1608;
  --x-4a2478: #4a2478;
  --x-4a3418: #4a3418;
  --x-4da3ff: #4da3ff;
  --x-4f8a3a: #4f8a3a;
  --x-5a7fa8: #5a7fa8;
  --x-6a9be0: #6a9be0;
  --x-6b2a1f: #6b2a1f;
  --x-6b5a47: #6b5a47;
  --x-6fc47a: #6fc47a;
  --x-7a2c10: #7a2c10;
  --x-8a5ac0: #8a5ac0;
  --x-9d9d9d: #9d9d9d;
  --x-a8e6ae: #a8e6ae;
  --x-a9c8f5: #a9c8f5;
  --x-b4501c: #b4501c;
  --x-c77dff: #c77dff;
  --x-c9a24c: #c9a24c;
  --x-d0705a: #d0705a;
  --x-ecd28f: #ecd28f;
  --x-f2b0a0: #f2b0a0;
  --x-ff9a33: #ff9a33;
}

@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/cinzel-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/cinzel-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/cinzel-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/cinzel-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/crimson-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/crimson-pro-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/crimson-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/crimson-pro-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==== Shared pages the redesign reaches only through these shared styles (wiki, armory, account, status, gallery, legal) ==== */
.addr { font-family: var(--font-mono); font-size: 1.1rem; color: var(--gold-hi); background: var(--shade-30); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius); display: inline-block; }
.board td:nth-child(4) { font-weight: 600; }
.online { color: var(--good); font-size: 0.85rem; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0 0 var(--space-md); }
.tabs a { border: 1px solid var(--iron); border-radius: var(--radius); padding: var(--space-2xs) var(--space-sm); background: var(--wood); }
.tabs a.active { border-color: var(--gold); color: var(--gold); }
.board-wrap { overflow-x: auto; }
.cls { margin-bottom: var(--space-md); }
.cls .roles { font-family: var(--font-body); font-size: 1rem; margin-left: var(--space-xs); }
.cls td:first-child { width: 3.5em; }
@media (max-width: 600px) {
  .cls table tr:first-child { display: none; }
  .cls table, .cls tbody, .cls tr, .cls td { display: block; width: auto; }
  .cls tr { padding: var(--space-xs) 0; border-bottom: 1px solid var(--rule-a60); }
  .cls td { border: 0; padding: var(--space-3xs) 0; }
  .cls td:first-child { display: inline-block; width: auto; margin-right: var(--space-xs); }
  .cls td:nth-child(2) { display: inline; }
  .cls td:nth-child(4) { font-size: 0.85rem; }
}
.news { max-width: 760px; margin: 0 auto var(--space-lg); }
.feature h2, .road h2, .gallery-sec h2, .realms h2, #join h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.shot { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--iron); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.rarities { list-style: none; padding: 0; margin: var(--space-sm) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.rarities li { padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius); border: 1px solid currentColor; background: var(--shade-35); font-weight: 600; }
.r-common { color: var(--r-common); }
.r-uncommon { color: var(--r-uncommon); }
.r-rare { color: var(--r-rare); }
.r-epic { color: var(--r-epic); box-shadow: 0 0 14px var(--epic-a45); }
.r-legendary { color: var(--r-legendary); box-shadow: 0 0 14px var(--legendary-a45); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.shotfig { margin: 0 0 var(--space-sm); }
.shotfig figcaption { color: var(--dim); font-size: 0.9rem; margin-top: var(--space-2xs); }
.panel .shotfig .shot { box-shadow: 0 0 0 1px var(--gold-a12), 0 8px 24px var(--shade-50); }
.realm h3 { display: flex; align-items: center; gap: var(--space-xs); }
.facts th { width: 8em; font-weight: 400; }
.facts code { font-family: var(--font-mono); color: var(--gold-hi); }
.narrow-left { max-width: 760px; }
.legal h2 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal .version { color: var(--dim); font-size: 0.9rem; }
.placeholder { background: var(--x-6b2a1f); color: var(--color-light); padding: 0 var(--space-2xs); border-radius: 3px; }
.legal blockquote { border-left: 3px solid var(--iron); margin: 0.8em 0; padding: 0.2em 1em; background: var(--shade-25); }
.doc section { margin-bottom: 44px; }
.doc section > h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 0.2em; }
.doc .panel h3 { margin-top: 0.2em; }
.doc .panel p:last-child, .doc .panel ul:last-child { margin-bottom: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 520px; }
.doc ul.plain { padding-left: 1.2em; margin: 0.4em 0; }
.doc .cls { margin-bottom: var(--space-md); }
.cls .about { margin: 0 0 0.6em; }
.specs { list-style: none; padding: 0; margin: var(--space-xs) 0 var(--space-sm); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xs); }
.specs li { padding: var(--space-xs) var(--space-sm); border: 1px solid var(--iron); border-radius: var(--radius); background: var(--shade-25); }
.specs b { display: block; font-family: var(--font-display); color: var(--gold-hi); font-size: 0.95rem; }
.specs span { color: var(--dim); font-size: 0.9rem; }
.specs .role { display: block; color: var(--gold); font-size: 0.85rem; }
.r0 { color: var(--r-common); }
.r1 { color: var(--x-1eff00); }
.r2 { color: var(--x-4da3ff); }
.r3 { color: var(--x-c77dff); }
.r4 { color: var(--x-ff9a33); }
.r0.trash { color: var(--x-9d9d9d); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: end; }
.filters label { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--dim); }
.profile-hero { padding: var(--space-md) 20px; border-radius: var(--radius); border: 1px solid var(--iron); margin: 0 0 var(--space-md); }
.profile-hero h1 { margin-bottom: 0.1em; }
.banner-ember { background: linear-gradient(120deg, var(--x-3a1608), var(--x-7a2c10) 60%, var(--x-b4501c)); }
.banner-frost { background: linear-gradient(120deg, var(--x-0f2233), var(--x-1f4a6a) 60%, var(--x-5a7fa8)); }
.banner-forest { background: linear-gradient(120deg, var(--x-0f2412), var(--x-24502a) 60%, var(--x-4f8a3a)); }
.banner-royal { background: linear-gradient(120deg, var(--x-1d0f2e), var(--x-4a2478) 60%, var(--x-8a5ac0)); }
.banner-night { background: linear-gradient(120deg, var(--x-07090f), var(--x-141a2e) 60%, var(--x-2a3350)); }
.gear { list-style: none; padding: 0; margin: 0; }
.gear li { padding: var(--space-2xs) 0; border-bottom: 1px solid var(--wood-hi); }
.gear .slot { display: inline-block; min-width: 5.5em; }
.gear .stats { display: block; margin-left: 5.5em; font-size: 0.9rem; color: var(--dim); }
ul.plain { list-style: none; padding: 0; margin: 0; }
.trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.tree h3 { margin: 0 0 var(--space-2xs); font-size: 1.05rem; }
.mtree { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.mtree td { padding: 0; height: 2.4em; }
.node { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2xs); height: 100%; padding: var(--space-3xs) var(--space-2xs); font-size: 0.72rem; line-height: 1.1; border: 1px solid var(--iron); border-radius: 3px; background: var(--wood); color: var(--dim); }
.node i { font-style: normal; font-weight: 600; }
.node.some { border-color: var(--gold); color: var(--text); }
.node.full { border-color: var(--gold-hi); background: var(--x-4a3418); color: var(--gold-hi); }
.worldmap { height: 70vh; min-height: 320px; background: var(--x-0c1620); border: 1px solid var(--iron); border-radius: var(--radius); }
.mailbody { white-space: pre-wrap; max-width: 46ch; }
.share label { display: block; margin-bottom: var(--space-2xs); }
.share input { width: 100%; padding: var(--space-2xs) var(--space-xs); background: var(--shade-35); color: var(--text); border: 1px solid var(--iron); border-radius: var(--radius); font: inherit; }
.cls h2 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); }
.cls-icon { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--gold-game); box-shadow: 0 0 0 1px var(--shade-50), 0 0 14px var(--gamegold-a25); }
.specs li { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-xs); align-items: start; }
.specs li > * { grid-column: 2; }
.specs li > img { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--iron); }
.ab-icon { width: 32px; height: 32px; vertical-align: middle; margin-right: var(--space-xs); border-radius: 5px; border: 1px solid var(--iron); }
.doc section > h2 { padding-bottom: 0.25em; border-bottom: 1px solid var(--gamegold-a30); }
.credits h3 { margin: 1em 0 0.2em; font-size: 1rem; color: var(--gold-hi); }
.icon-list { margin-top: 0; line-height: 1.6; }
nav a:focus-visible, .nf-links a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.nf-links { list-style: none; margin: var(--space-lg) auto 0; padding: 0; max-width: 760px; display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); text-align: left; }
.nf-links a { display: block; padding: var(--space-sm) var(--space-md); border: 1px solid var(--iron); border-radius: var(--radius); background: linear-gradient(180deg, var(--wood-hi), var(--wood)); }
.nf-links a:hover { border-color: var(--gold); }
.nf-links b { display: block; color: var(--gold-hi); font-size: 1.1rem; }
.nf-links span { color: var(--dim); }
.status-realm { margin-bottom: 28px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.status-head h2 { margin: 0; }
.pill { display: inline-block; padding: var(--space-3xs) var(--space-sm); border-radius: 999px; font-size: 0.9rem; border: 1px solid var(--iron); color: var(--text); }
.band-smooth-pill { border-color: var(--good); color: var(--good); }
.band-busy-pill { border-color: var(--gold); color: var(--gold-hi); }
.band-struggling-pill { border-color: var(--bad); color: var(--bad); }
.band-unknown-pill, .band-off-pill, .band-maint-pill { color: var(--dim); }
.status-facts { margin: 0.8em 0; font-size: 1.1rem; }
.status-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: var(--space-md) 0; }
.status-charts figure { margin: 0; }
.status-chart { width: 100%; height: 150px; display: block; background: var(--shade-18); border-radius: var(--radius); }
.status-chart .grid { stroke: var(--iron); stroke-width: 1; opacity: 0.5; }
.status-chart .players { fill: none; stroke: var(--gold-hi); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.status-chart .maint { fill: var(--dim); opacity: 0.25; }
.band-smooth, .band-smooth-sw { fill: var(--good); background: var(--good); }
.band-busy, .band-busy-sw { fill: var(--gold); background: var(--gold); }
.band-struggling, .band-struggling-sw { fill: var(--bad); background: var(--bad); }
.band-unknown, .band-off, .band-off-sw { fill: var(--iron); background: var(--iron); color: var(--color-ink); }
.maint-sw { background: var(--dim); opacity: 0.4; }
.status-key { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); align-items: center; }
.status-key .key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: var(--space-2xs); vertical-align: -1px; }
.status-key .key-line { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--gold-hi); margin-right: var(--space-2xs); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); margin: var(--space-md) 0; }
.gallery-card { display: flex; flex-direction: column; gap: var(--space-2xs); }
.gallery-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--iron); border-radius: 4px; background: var(--color-void); }
.gallery-full { max-width: 100%; height: auto; border: 1px solid var(--iron); border-radius: 4px; }
.gallery-star { max-width: 520px; margin-bottom: var(--space-md); }
.gallery-report form { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-xs); }
.status-banner { display: flex; flex-direction: column; gap: var(--space-2xs); margin: 0 0 var(--space-lg); padding: var(--space-sm) var(--space-md); border-radius: var(--radius); border: 1px solid var(--gold); background: var(--gold-a12); color: var(--gold-hi); }
.status-banner.banner-down { border-color: var(--bad); background: var(--bad-a14); color: var(--text); }
.status-banner.banner-down > b { color: var(--bad); }
.status-banner .banner-text { color: var(--text); }
.status-services { margin-bottom: 28px; }
.status-realms-h { margin-top: var(--space-xs); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-lg) 32px; }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); flex-wrap: wrap; }
.svc-head h3 { margin: 0; font-size: 1.1rem; }
.svc-line { margin: var(--space-2xs) 0 var(--space-xs); }
.svc-pill-up { border-color: var(--good); color: var(--good); }
.svc-pill-degraded { border-color: var(--gold); color: var(--gold-hi); }
.svc-pill-down { border-color: var(--bad); color: var(--bad); }
.svc-pill-maintenance, .svc-pill-unknown { color: var(--dim); }
.uptime { margin: var(--space-xs) 0 var(--space-sm); }
.uptime-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3xs); height: 28px; }
.uptime-bar li { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--iron); }
.uptime-bar .u-up, .u-up-sw { background: var(--good); }
.uptime-bar .u-degraded, .u-degraded-sw { background: var(--gold); }
.uptime-bar .u-down, .u-down-sw { background: var(--bad); }
.uptime-bar .u-maintenance, .u-maintenance-sw { background: var(--dim); }
.uptime-bar .u-nodata, .u-nodata-sw { background: var(--iron); opacity: 0.5; }
.uptime-bar li:hover { outline: 1px solid var(--gold-hi); }
.uptime-foot { display: flex; justify-content: space-between; margin: var(--space-2xs) 0 0; }
@media (max-width: 560px) {
  .svc-list { grid-template-columns: 1fr; }
  .uptime-bar { gap: 1px; height: 24px; }
}
.page-wiki main { max-width: 1280px; }
.wiki { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 32px; align-items: start; }
.wiki-search { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); margin: 0 0 var(--space-sm); border: 1px solid var(--iron); border-radius: var(--radius); background: var(--shade-30); color: var(--dim); }
.wiki-search:focus-within { border-color: var(--gold); }
.wiki-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--text); background: none; border: 0; outline: none; }
.wiki-results { list-style: none; margin: calc(-1 * var(--space-2xs)) 0 var(--space-sm); padding: var(--space-2xs) 0; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--wood); }
.wiki-results[hidden] { display: none; }
.wiki-results a { display: block; padding: var(--space-2xs) var(--space-sm); color: var(--text); }
.wiki-results a:hover, .wiki-results a:focus-visible { background: var(--gold-a12); color: var(--gold-hi); }
.wiki-results small { display: block; color: var(--dim); font-size: 0.8rem; }
.wiki-results .none { padding: var(--space-2xs) var(--space-sm); color: var(--dim); }
.wiki-home { display: block; font-family: var(--font-display); margin: 0 0 var(--space-sm); padding-left: var(--space-xs); border-left: 2px solid transparent; }
.wiki-cat { margin: 0 0 var(--space-sm); }
.wiki-cat-title { display: flex; align-items: center; gap: var(--space-xs); margin: 0 0 var(--space-2xs); font: 600 0.8rem var(--font-body); color: var(--gold); }
.wiki-cat-title a { color: inherit; }
.wiki-cat ul { list-style: none; margin: 0; padding: 0 0 0 var(--space-2xs); border-left: 1px solid var(--iron); }
.wiki-cat li a { display: block; padding: var(--space-3xs) var(--space-xs); color: var(--text); font-size: 0.98rem; border-left: 2px solid transparent; margin-left: -1px; }
.wiki-cat li a:hover { color: var(--gold-hi); }
.wiki-cat li a.active, .wiki-home.active { color: var(--gold-hi); border-left-color: var(--gold); }
.icon { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.icon.big { width: 30px; height: 30px; color: var(--gold); }
.wiki-main { min-width: 0; max-width: 760px; }
.wiki-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.2em; }
.wiki-main h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin: 1.8em 0 0.5em; scroll-margin-top: var(--space-md); }
.wiki-main h3 { font-size: 1.05rem; }
.wiki-main .lede { color: var(--dim); }
.wiki-text ul, .wiki-text ol { padding-left: 1.3em; margin: 0.4em 0 1em; }
.wiki-text li { margin: 0.3em 0; }
.wiki-text p { margin: 0 0 0.9em; }
.wiki-main table { margin: 0.4em 0 1.2em; }
.wiki-main .tablewrap table { min-width: 0; }
.wiki-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); font-size: 0.9rem; color: var(--dim); margin: 0 0 var(--space-sm); }
.wiki-crumbs a { color: var(--dim); }
.wiki-crumbs a:hover { color: var(--gold-hi); }
.wiki-toc-h { font: 600 0.75rem var(--font-body); color: var(--gold); margin: 0 0 var(--space-xs); }
.wiki-toc ul { list-style: none; margin: 0; padding: 0; }
.wiki-toc li a { display: block; padding: var(--space-3xs) 0; color: var(--dim); }
.wiki-toc li a:hover { color: var(--gold-hi); }
.wiki-section { margin: 0 0 36px; }
.wiki-section h2 { display: flex; align-items: center; gap: var(--space-xs); margin-top: 0.6em; }
.wiki-cap { margin: 0 0 var(--space-lg); color: var(--dim); }
.wiki-foot { margin-top: 3em; }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: var(--space-sm); margin: 0.6em 0 1.4em; }
.wcard { display: block; padding: var(--space-md) var(--space-md); color: var(--text); }
.wcard h3 { margin: 0 0 0.3em; font-size: 1rem; }
.wcard p { margin: 0; color: var(--dim); font-size: 0.98rem; }
.wtip { border-left: 3px solid var(--gold); padding: var(--space-xs) var(--space-sm); margin: 0.4em 0 1.2em; background: var(--gold-a07); border-radius: 0 var(--radius) var(--radius) 0; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 var(--space-2xs); font: 600 0.85em/1.6 var(--font-mono); text-align: center; color: var(--gold-hi); background: linear-gradient(var(--color-paper-4), var(--x-241810)); border: 1px solid var(--iron); border-bottom-width: 2px; border-radius: 4px; }
.wiki-main code { font-family: var(--font-mono); font-size: 0.92em; color: var(--gold-hi); background: var(--shade-30); padding: 1px var(--space-2xs); border-radius: 3px; }
.tip, .mnode, .res { position: relative; cursor: help; }
.tip { border-bottom: 1px dotted var(--gold); }
.tip:focus-visible, .mnode:focus-visible, .res:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tip[data-tip]:hover::after, .tip[data-tip]:focus::after, .mnode[data-tip]:hover::after, .mnode[data-tip]:focus::after, .res[data-tip]:hover::after, .res[data-tip]:focus::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: min(300px, 80vw); padding: var(--space-xs) var(--space-sm); font: 400 0.92rem/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text); background: var(--x-1b130c); border: 1px solid var(--gold); border-radius: var(--radius); box-shadow: 0 8px 24px var(--shade-60); white-space: normal; }
.cls-head { display: flex; align-items: center; gap: var(--space-md); margin: 0 0 var(--space-xs); }
.cls-head .cls-icon { width: 72px; height: 72px; border: 1px solid var(--iron); border-radius: var(--radius); background: var(--shade-30); }
.cls-head h1 { margin: 0 0 var(--space-2xs); }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0; }
.role-badge { display: inline-block; padding: 1px var(--space-xs); border-radius: 999px; font-size: 0.85rem; border: 1px solid var(--iron); color: var(--text); background: var(--shade-30); margin: 0; }
.role-tank { border-color: var(--x-6a9be0); color: var(--x-a9c8f5); }
.role-healer { border-color: var(--x-6fc47a); color: var(--x-a8e6ae); }
.role-damage, .role-melee-dps, .role-ranged-dps, .role-caster-dps { border-color: var(--x-d0705a); color: var(--x-f2b0a0); }
.role-utility { border-color: var(--x-c9a24c); color: var(--x-ecd28f); }
.role-badge.res { border-color: var(--gold); color: var(--gold-hi); }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-sm); margin: 0 0 1.2em; }
.fact { padding: var(--space-sm) var(--space-md); }
.fact .eyebrow { margin: 0 0 var(--space-2xs); }
.fact p:last-child { margin: 0; }
.spec img { float: right; width: 40px; height: 40px; margin: 0 0 var(--space-2xs) var(--space-xs); }
.spec .role-badge { margin: 0 0 var(--space-2xs); }
.abilities td { vertical-align: top; }
.abilities td:first-child { width: 2.6em; }
.abilities td:nth-child(3), .abilities td:nth-child(4) { white-space: nowrap; }
.ab-name { white-space: nowrap; }
.ab-name .ab-icon { width: 28px; height: 28px; vertical-align: middle; margin-right: var(--space-xs); border: 1px solid var(--iron); border-radius: 3px; }
.ranks { margin-top: var(--space-2xs); }
.ranks summary { cursor: pointer; color: var(--gold); font-size: 0.9rem; }
.ranks ol { margin: var(--space-2xs) 0 0; padding-left: 1.2em; font-size: 0.95rem; color: var(--dim); }
.ranks b { color: var(--text); font-weight: 600; }
.more-later { margin: 0 0 1.2em; font-style: italic; }
.trees3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-sm); }
.mtree-card { padding: var(--space-sm) var(--space-md); }
.mtree-card h3 { margin: 0 0 var(--space-xs); }
.mnodes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2xs); }
.mnode { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--iron); border-radius: var(--radius); background: var(--shade-25); font-size: 0.95rem; }
.mnode .lv { flex: none; min-width: 2em; text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--color-accent-ink); background: var(--gold); border-radius: 3px; }
.mnode.cap { border-color: var(--gold); }
.classcard img { float: right; width: 48px; height: 48px; margin-left: var(--space-xs); }
.classcard .badges { margin: var(--space-2xs) 0 var(--space-xs); }
@media (max-width: 1100px) {
  .wiki { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wiki { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .js .wiki-nav:not(.open) .wiki-nav-body { display: none; }
  .wiki-nav.open .wiki-nav-body { padding: var(--space-sm); border: 1px solid var(--iron); border-radius: var(--radius); background: var(--wood); }
  .ab-name { white-space: normal; }
  .abilities thead { display: none; }
  .abilities, .abilities tbody, .abilities tr, .abilities td { display: block; width: auto; }
  .abilities tr { padding: var(--space-xs) 0; border-bottom: 1px solid var(--rule-a60); }
  .abilities td { border: 0; padding: var(--space-3xs) 0; }
  .abilities td:first-child { display: inline-block; width: auto; margin-right: var(--space-2xs); }
  .abilities td:nth-child(2) { display: inline; }
  .abilities td:nth-child(3), .abilities td:nth-child(4) { display: inline-block; margin-right: var(--space-sm); font-size: 0.9rem; color: var(--dim); }
  .abilities td:nth-child(3)::before { content: "Cost "; }
  .abilities td:nth-child(4)::before { content: "Cooldown "; }
}
.paperdoll { display: grid; grid-template-columns: 1fr minmax(60px, 110px) 1fr; gap: var(--space-xs); align-items: start; }
.pcol { display: grid; gap: var(--space-xs); justify-items: center; }
.pmid { align-self: center; text-align: center; position: relative; }
.pmid .figure { width: 100%; max-width: 90px; fill: var(--gold-a08); stroke: var(--iron); stroke-width: 1.5; }
.plevel { display: block; color: var(--dim); font-size: 0.85rem; }
.prow { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin: var(--space-sm) 0 var(--space-2xs); }
.gslot { --rc: var(--iron); position: relative; width: 64px; height: 64px; box-sizing: border-box; border: 2px solid var(--rc); border-radius: var(--radius); background: var(--shade-35); display: flex; align-items: center; justify-content: center; cursor: default; }
.gslot.r-0 { --rc: var(--r-common); }
.gslot.r-1 { --rc: var(--r-uncommon); }
.gslot.r-2 { --rc: var(--r-rare); }
.gslot.r-3 { --rc: var(--r-epic); }
.gslot.r-4 { --rc: var(--r-legendary); }
.gslot:not(.empty) { box-shadow: 0 0 10px -1px var(--rc), inset 0 0 8px -2px var(--rc); }
.gslot .glyph { width: 34px; height: 34px; fill: none; stroke: var(--rc); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.gslot.empty { border-color: var(--x-6b5a47); background: var(--shade-55); }
.gslot.empty .glyph { stroke: var(--wood-hi); }
.gslot .gname { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-size: 0.55rem; color: var(--dim); white-space: nowrap; overflow: hidden; }
.gslot:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.gtip { display: none; position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(260px, 70vw); background: var(--bg); border: 1px solid var(--rc); border-radius: var(--radius); padding: var(--space-xs) var(--space-xs); box-shadow: 0 6px 18px var(--shade-70); text-align: left; font-size: 0.9rem; pointer-events: none; }
.gtip .gline { display: block; }
.gtip .stat { color: var(--good); }
.gslot:hover .gtip, .gslot:focus .gtip, .gslot:focus-within .gtip { display: block; }
.pcol:first-child .gtip { left: 0; transform: none; }
.pcol:last-child .gtip { left: auto; right: 0; transform: none; }
@media (max-width: 420px) {
  .gslot { width: 54px; height: 54px; }
  .gslot .glyph { width: 28px; height: 28px; }
  .paperdoll { gap: var(--space-2xs); }
}
.account-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.account-grid .panel { min-width: 0; }
.account-grid .panel.wide { grid-column: 1 / -1; }
.tablewrap { overflow-x: auto; }
.nowrap { white-space: nowrap; }
.account-grid label.line { display: block; margin: var(--space-3xs) 0; }
.help-list table.tickets { width: 100%; border-collapse: collapse; }
.help-list table.tickets tr + tr td { border-top: 1px solid var(--rule-a50); }
.help-list table.tickets td { vertical-align: middle; }
.help-list .kind-dot { margin-right: var(--space-2xs); }
.help-list .num { color: var(--dim); }
.help-list .tablewrap { overflow-x: auto; }
.help-list .nowrap { white-space: nowrap; }
.help-list .tablewrap table { min-width: 0; }
.armory-mine, .armory-find, .hero-list, .panel.locked { margin: 0 0 var(--space-lg); }
.armory-find h2, .hero-list h2 { margin-top: 0; }
.find-form { display: flex; align-items: flex-end; gap: var(--space-sm); flex-wrap: wrap; margin: 0; }
.find-form .field-label { flex: 1 1 260px; max-width: 420px; }
.find-form .btn { margin: 0; padding: var(--space-xs) var(--space-lg); }
.hero-list .field-label { max-width: 420px; margin-bottom: var(--space-sm); }
.sort-btn { font: inherit; font-weight: 600; color: var(--dim); background: none; border: 0; padding: var(--space-3xs) 0; cursor: pointer; }
.sort-btn:hover, .sort-btn:focus-visible { color: var(--gold-hi); outline: 2px solid transparent; text-decoration: underline; }
.hero-list tr[hidden] { display: none; }
.auction-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-sm) var(--space-sm); margin: 0 0 20px; }
.auction-filters .field-label { flex: 1 1 160px; }
.auction-filters .btn { margin: 0; padding: var(--space-xs) var(--space-lg); }
.empty-state { text-align: center; padding: 32px var(--space-lg); }
.empty-state h2 { margin-top: 0; }
.auction-table td { vertical-align: top; }
.board-wrap.panel { padding: var(--space-xs) var(--space-sm); }
.gslot .gicon { width: 48px; height: 48px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 1px 2px var(--shade-70)); }
.aitem { white-space: nowrap; }
.aitem .aicon { width: 32px; height: 32px; vertical-align: middle; margin-right: var(--space-xs); padding: var(--space-3xs); box-sizing: border-box; border: 1px solid var(--rc, var(--iron)); border-radius: var(--radius); background: var(--shade-35); }
.aicon.r-0 { --rc: var(--r-common); }
.aicon.r-1 { --rc: var(--r-uncommon); }
.aicon.r-2 { --rc: var(--r-rare); }
.aicon.r-3 { --rc: var(--r-epic); }
.aicon.r-4 { --rc: var(--r-legendary); }
.cls-icon { width: 20px; height: 20px; vertical-align: -4px; border-radius: 50%; }
.hero-cls { width: 56px; height: 56px; vertical-align: -10px; margin-right: var(--space-2xs); border-radius: 50%; border: 2px solid var(--gold-game); background: var(--shade-35); }
.spec-icon { width: 28px; height: 28px; vertical-align: -7px; margin-right: var(--space-2xs); border-radius: 50%; }
.gslot .gsil { width: 44px; height: 44px; object-fit: contain; opacity: 0.4; }
.gear-totals { margin-top: var(--space-2xs); }
.gear-totals .stat { color: var(--good); }

/* ==== Base: one container, a calm type scale, Cinzel only on the page and section titles ==== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-rule) var(--color-paper); scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.7; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent);
}
::selection { background: var(--gold-a25); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: var(--color-accent); text-decoration: none; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-accent-hi); }
a:active { color: var(--color-ink); }
h1, h2, h3 {
  margin: 0 0 var(--space-sm); font-family: var(--font-body); font-weight: 600; font-synthesis: none; color: var(--color-ink);
  letter-spacing: 0; line-height: 1.2; overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
h1, .sec-head h2, .page-head h1, .donate-head h2, .tiers .section-head h2 {
  font-family: var(--font-display); color: var(--color-ink-2); letter-spacing: var(--tracking-display); line-height: 1.15; }
h1 { font-size: var(--text-h1); max-width: 24ch; }
h2 { font-size: var(--text-h2); max-width: 34ch; }
h3 { font-size: var(--text-title); line-height: 1.3; max-width: 40ch; }
p { text-wrap: pretty; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.dim { color: var(--color-muted); }
.gold { color: var(--color-accent-hi); }
.good { color: var(--color-good); }
.bad { color: var(--color-bad); }
.center { text-align: center; }
.small { font-size: var(--text-sm); }
.narrow { max-width: 720px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lede, .lead { font-size: var(--text-lead); line-height: 1.55; max-width: 60ch; margin: 0 0 var(--space-lg); color: var(--color-ink-soft); }
main { flex: 1; width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--space-3xl) var(--gutter) var(--section-gap-s); }
main section { margin: 0 0 var(--space-3xl); }
main p { max-width: 64ch; }
.pn-body p, .pn-body li { max-width: 60ch; }

/* ==== The top bar (base.html): slim, translucent and sticky; the links left, Get access and Sign in right ==== */
header.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--bar-solid); border-bottom: 1px solid var(--line-soft); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.top { background: var(--bar-glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}
.top-inner { max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter); min-height: var(--nav-h);
  display: flex; align-items: center; gap: var(--space-xl); }
.brand { display: inline-flex; align-items: center; line-height: 0; flex: none; border-radius: var(--radius); }
.brand-logo { display: block; width: 92px; height: auto; }
header.top nav { flex: 1; display: flex; align-items: center; gap: var(--space-2xs) var(--space-lg); flex-wrap: wrap; }
header.top nav a:not(.btn):not(.who), .navmenu summary {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-soft); font-size: var(--text-sm); white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent; transition: color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
header.top nav a:not(.btn):not(.who):hover { color: var(--color-ink); }
header.top nav a:not(.btn):not(.who):active { color: var(--color-accent-hi); }
header.top nav a[aria-current="page"] { color: var(--color-ink); box-shadow: inset 0 -2px 0 var(--color-accent); }
nav .who { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink); white-space: nowrap; font-size: var(--text-sm); }
nav .who:hover { color: var(--color-accent-hi); }
nav .who img { width: 28px; height: 28px; border-radius: 50%; }
header.top nav .btn { margin: 0; }
header.top nav .btn.nav-cta { margin-left: auto; }
.navmenu { position: relative; }
.navmenu summary { cursor: pointer; list-style: none; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary::after { content: "\25BE"; margin-left: var(--space-2xs); font-size: 0.8em; }
.navmenu summary:hover, .navmenu[open] summary { color: var(--color-ink); }
.navmenu-items { position: absolute; left: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); min-width: 200px; display: flex; flex-direction: column;
  padding: var(--space-xs) 0; background: var(--color-paper-3); border-radius: var(--radius-lg); box-shadow: 0 12px 32px var(--shade-60); }
.navmenu-items a { padding: var(--space-xs) var(--space-md); white-space: nowrap; color: var(--color-ink); }
.navmenu-items a:hover { background: var(--gold-a10); color: var(--color-accent-hi); }
/* the phone menu: a checkbox and its label, no script; every link stays in the header */
.nav-toggle { display: none; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: none; }
@media (max-width: 60rem) {
  .top-inner { flex-wrap: wrap; gap: 0 var(--space-md); }
  .nav-toggle { display: block; }
  .brand-logo { width: 84px; }
  .nav-toggle-btn { order: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); margin-left: auto;
    border: 1px solid var(--line-ghost); border-radius: var(--radius); color: var(--color-ink); font-size: var(--text-sm); cursor: pointer;
    transition: border-color var(--dur-short) var(--ease-out); }
  .nav-toggle-btn:hover { border-color: var(--color-accent); }
  .nav-toggle:focus-visible + .nav-toggle-btn { outline: 2px solid var(--color-focus); outline-offset: 2px; }
  .nav-toggle:checked + .nav-toggle-btn { border-color: var(--color-accent); color: var(--color-accent-hi); }
  header.top nav { order: 1; flex: 0 1 auto; margin-left: auto; }
  .nav-toggle:not(:checked) ~ nav > :not(.nav-cta) { display: none !important; }
  .nav-toggle:checked ~ nav { order: 3; flex: 1 0 100%; flex-direction: column; align-items: stretch; padding: var(--space-xs) 0 var(--space-lg); }
  .nav-toggle:checked ~ nav > :not(.nav-cta) { display: flex !important; }
  header.top .nav-toggle:checked ~ nav .btn.nav-cta { order: 9; margin: var(--space-sm) 0 0; }
  .nav-toggle:checked ~ nav .btn.secondary, .nav-toggle:checked ~ nav .who { order: 10; margin-top: var(--space-xs); }
  .navmenu-items { position: static; box-shadow: none; margin-top: var(--space-2xs); }
}

/* Site-wide notices under the bar */
.flash { background: var(--gold-a10); color: var(--color-accent-hi); border-radius: var(--radius); padding: var(--space-sm) var(--space-md); margin: 0 0 var(--space-md);
}
.flash-site { max-width: calc(var(--container) - 2 * var(--gutter)); margin: var(--space-md) auto 0; width: calc(100% - 2 * var(--gutter)); }
.flash.next a { font-weight: 600; }

/* ==== The footer (base.html): the mark and the fan-project line, the links as lists, the share links ==== */
footer { border-top: 1px solid var(--line-soft); color: var(--color-muted); font-size: var(--text-sm); }
.foot-inner { max-width: var(--container); margin-inline: auto; padding: var(--space-3xl) var(--gutter) var(--space-xl);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.foot-mast { display: grid; gap: var(--space-md); }
.foot-logo { display: block; width: 104px; height: auto; opacity: 0.9; }
.foot-note { margin: 0; max-width: 52ch; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.footer-links, .footer-legal { flex-direction: column; }
footer a { color: var(--color-ink-soft); display: inline-flex; min-height: 36px; align-items: center; }
footer a:hover { color: var(--color-ink); }
footer .share { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg);
  padding-top: var(--space-lg); border-top: 1px solid var(--line-soft); }
@media (max-width: 60rem) { .foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-mast { grid-column: 1 / -1; } }

/* ==== Controls: one gold primary, one ghost secondary; every state ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-lg);
  margin: var(--space-2xs) var(--space-xs) var(--space-2xs) 0; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 600 var(--text-sm)/1.2 var(--font-body); letter-spacing: 0.01em; color: var(--color-ink); background: transparent;
  border: 1px solid var(--line-ghost); border-radius: var(--radius);
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { border-color: var(--color-accent); background: var(--gold-a08); color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.secondary { background: transparent; }
.btn.gold { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn.gold:hover { background: var(--color-accent-hi); border-color: var(--color-accent-hi); color: var(--color-accent-ink); }
.btn.small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn.big { min-height: 52px; padding: 0 var(--space-xl); font-size: var(--text-md); }
.btn.danger { border-color: var(--color-bad); color: var(--danger-ink); background: var(--danger-fill); }
.btn.danger:hover { color: var(--color-ink); background: var(--danger-fill-hi); }
.field, form.register input[type="text"], .access-invite-code input, .share input {
  width: 100%; min-height: 44px; padding: var(--space-xs) var(--space-sm); font: 400 var(--text-md)/1.4 var(--font-body); color: var(--color-ink);
  background: var(--shade-35); border: 1px solid var(--line-field); border-radius: var(--radius); outline: 0;
  transition: border-color var(--dur-micro) var(--ease-out); }
.field::placeholder { color: var(--ink-a45); }
.field:hover { border-color: var(--color-accent); }
.field:focus-visible, .field:focus { outline: 2px solid var(--color-focus); outline-offset: 0; }
.field:disabled { opacity: 0.55; cursor: not-allowed; }
.field-label { display: grid; gap: var(--space-xs); font-weight: 600; }
.field-note { display: block; margin: 0; min-height: 1lh; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
select.field { appearance: auto; color-scheme: dark; }
select.field option { background: var(--color-paper-3); color: var(--color-ink); }
textarea { width: 100%; }
form { display: inline; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-accent); }


/* Surfaces: tone shifts, not outlines; never a panel inside a panel */
.panel { color: var(--color-ink); background: var(--color-paper-2); border: 1px solid transparent; border-radius: var(--radius-lg); padding: var(--space-xl); }
.grid3, .grid2 { display: grid; gap: var(--gap-columns); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-top: var(--space-md); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--space-sm) var(--space-xs); border-bottom: 1px solid var(--line-soft); }
th { color: var(--color-muted); font-weight: 600; font-size: var(--text-sm); }
.badge { display: inline-block; font: 600 var(--text-xs)/1.6 var(--font-body); color: var(--color-accent-ink); background: var(--color-accent);
  border-radius: 999px; padding: 0 var(--space-xs); vertical-align: middle; }
.eyebrow { font: 600 var(--text-sm)/1.4 var(--font-body); color: var(--color-accent); margin: 0 0 var(--space-xs); }
.crumbs { margin: 0 0 var(--space-lg); }
.right { display: block; text-align: right; margin-top: var(--space-lg); }
.page-head { margin: 0 0 var(--space-3xl); }
.page-head h1 { margin-bottom: var(--space-md); }
.page-head .lede { margin: 0; }

/* ==== The front page (index.html) ==== */
/* The key art runs under the translucent bar and fades slowly into the page; the logo is the one mark */
.hero-full {
  position: relative; isolation: isolate; display: grid; place-items: center; text-align: center; overflow: clip;
  min-height: min(92svh, 900px); padding: var(--space-3xl) var(--gutter) var(--space-4xl);
  background: var(--color-paper); color: var(--color-ink);
}
header.top + .hero-full { margin-top: calc(-1 * var(--nav-h)); padding-top: calc(var(--nav-h) + var(--space-2xl)); }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/static/shots/hero.webp") center 40% / cover no-repeat; }
.hero-full::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--scrim-45) 0%, var(--scrim-30) 28%, var(--scrim-45) 52%, var(--scrim-80) 76%, var(--color-paper) 100%); }
.hero-inner { position: relative; max-width: 44rem; display: grid; justify-items: center; gap: var(--space-lg); }
.hero-heading { margin: 0; line-height: 0; max-width: none; }
.hero-logo { display: block; width: min(460px, 80vw); height: auto; filter: drop-shadow(0 10px 28px var(--shade-60)); }
.funnel-promise { margin: 0; max-width: 34ch; font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink); text-shadow: 0 1px 12px var(--shade-85); }
.funnel-promise b { color: var(--color-accent-hi); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-top: var(--space-xs); }
.cta .btn { margin: 0; }
.hero-full .btn.secondary { background: var(--scrim-45); }
.hero-full .btn.secondary:hover { background: var(--scrim-60); }
.funnel-returning { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2xs) var(--space-lg); margin: 0;
  font-size: var(--text-xs); color: var(--color-ink-soft); text-shadow: 0 1px 8px var(--shade-85); }
.funnel-returning a { color: var(--color-ink-soft); text-decoration: underline; text-decoration-color: var(--line-ghost); }
.funnel-returning a:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.event-banner { display: inline-flex; gap: var(--space-xs); align-items: baseline; margin: 0; padding: var(--space-2xs) var(--space-md);
  color: var(--color-ink); background: var(--scrim-80); border-radius: 999px; font-size: var(--text-sm); }
.event-banner b { color: var(--color-accent-hi); font-weight: 600; }

/* The realms, live: one quiet strip on the container grid, hairlines above and below */
.status-strip { position: relative; z-index: 1; margin: calc(-1 * var(--space-3xl)) 0 0; padding: 0 var(--gutter); }
.strip-inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-md) var(--space-2xl); align-items: center; padding: var(--space-lg) 0;
  border-block: 1px solid var(--line-soft); }
.realm-list { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-2xl); }
.realm-card { display: grid; gap: 0; color: var(--color-ink); border-radius: var(--radius); }
.realm-card:hover { color: var(--color-ink); }
.realm-card:hover .rname { color: var(--color-accent-hi); }
.realm-top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); }
.realm-card .rname { font-size: var(--text-title); font-weight: 600; color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.realm-card .rregion { font-size: var(--text-xs); color: var(--color-muted); }
.realm-card .rplayers { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; padding-left: var(--space-md); }
.realm-card .rplayers b { color: var(--color-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-bad); display: inline-block; flex: none; }
.up .dot { background: var(--color-good); }
.realm-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: var(--space-2xs) var(--space-2xl); align-items: center; justify-items: start; color: var(--color-muted); font-size: var(--text-sm); }
.realm-open { color: var(--color-ink); }
.realm-open .badge { margin-right: var(--space-2xs); }
.realm-open, .realm-region { grid-column: 1; }
.goal-front { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr auto; gap: var(--space-xs) var(--space-md); width: 100%;
  color: var(--color-ink); text-decoration: none; border-radius: var(--radius); }
.goal-front .goal-label { color: var(--color-ink-soft); }
.goal-front .goal-figures { font-variant-numeric: tabular-nums; }
.goal-front .goal-figures b { color: var(--color-ink); }
.goal-front progress { grid-column: 1 / -1; height: 4px; }
.goal-front:hover .goal-label { color: var(--color-ink); }
.goal progress, .goal-front progress { -webkit-appearance: none; appearance: none; width: 100%; border: 0;
  border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.goal progress::-webkit-progress-bar, .goal-front progress::-webkit-progress-bar { background: var(--line-soft); }
.goal progress::-webkit-progress-value, .goal-front progress::-webkit-progress-value { background: var(--color-accent); border-radius: 999px; }
.goal progress::-moz-progress-bar, .goal-front progress::-moz-progress-bar { background: var(--color-accent); border-radius: 999px; }

.page-home main { padding-top: var(--section-gap); }
.page-home main > section { margin: 0 0 var(--section-gap-l); }
.page-home main > section.gallery-sec { margin-bottom: var(--section-gap-s); }
.sec-head { display: grid; gap: var(--space-md); margin: 0 0 var(--space-3xl); }
.sec-head h2 { font-size: var(--text-section); margin: 0; max-width: 20ch; }
.sec-head .lead { margin: 0; }
.sec-head-center { text-align: center; justify-items: center; }
.sec-head-center h2 { margin-inline: auto; }

/* Three steps: a real list, gold numerals, one hairline above each */
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-2xl); }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); padding-top: var(--space-xl); border-top: 1px solid var(--line-soft); }
.step .num { font: 600 var(--text-numeral)/1 var(--font-display); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.step h3 { margin: 0; }
.step p { margin: 0; max-width: 46ch; color: var(--color-ink-soft); }
.step .step-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
.step .step-actions .btn { margin: 0; }

/* What awaits: six named moments in mixed spans, three with our own captures; tone, not outlines */
.feature-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg); }
.feature-card { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-xs);
  grid-column: span 4; min-height: 280px; padding: var(--space-xl); color: var(--color-ink); background: var(--color-paper-2);
  border-radius: var(--radius-lg); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.feature-card:hover { background: var(--color-paper-3); color: var(--color-ink); transform: translateY(-2px); }
.feature-card:active { transform: translateY(0); }
.feature-card.fc-wide { grid-column: span 7; }
.feature-card.fc-narrow { grid-column: span 5; }
.feature-card.fc-full { grid-column: 1 / -1; min-height: 480px; }
.feature-card.has-shot { min-height: 440px; }
.feature-card .fc-shot { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.feature-card.has-shot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--scrim-90) 0%, var(--scrim-60) 32%, transparent 62%); }
.feature-card .icon.big { width: 28px; height: 28px; color: var(--color-accent); margin-bottom: auto; }
.feature-card h3 { margin: 0; font-size: var(--text-title-l); }
.feature-card p { margin: 0; color: var(--color-ink-soft); max-width: 48ch; }
.feature-card.has-shot p { color: var(--color-ink); }

/* The latest update and news */
.home-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: var(--gap-columns); }
.note-card { display: grid; gap: var(--space-sm); align-content: end; min-height: 240px; padding: var(--space-xl); color: var(--color-ink);
  transition: background-color var(--dur-short) var(--ease-out); }
.home-news .note-card:only-child { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; min-height: 0; padding: var(--space-xl) 0;
  background: none; border-width: 1px 0; border-color: var(--line-soft); border-radius: 0; }
.home-news .note-card:only-child:hover { background: none; border-color: var(--line-soft); }
.home-news .note-card:only-child:hover h3 { color: var(--color-accent-hi); }
.home-news .note-card:only-child h3 { grid-row: 1 / span 2; }
.home-news .note-card:only-child .note-byline, .home-news .note-card:only-child .more { justify-self: end; }
.note-card:hover { background: var(--color-paper-3); color: var(--color-ink); }
.note-card h3 { margin: 0; font-size: var(--text-title-l); transition: color var(--dur-short) var(--ease-out); }
.note-byline { margin: 0; color: var(--color-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.note-card .more { color: var(--color-accent); font-size: var(--text-sm); }
.news { margin: 0; padding: var(--space-xl); }
.news h3 { margin: 0 0 var(--space-xs); }
.news article + article { border-top: 1px solid var(--line-soft); margin-top: var(--space-sm); padding-top: var(--space-xs); }
.news .small { margin: 0; }
.newstext { white-space: pre-line; margin: var(--space-2xs) 0 0; }

/* From the realm: one even grid of screenshots, the same 16:9 crop, soft corners, generous gaps */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.gallery a { display: block; overflow: clip; border-radius: var(--radius-lg); transition: opacity var(--dur-short) var(--ease-out); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery a:hover { opacity: 0.85; }
.gallery a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--scrim-95); display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92svh; width: auto; border: 1px solid var(--color-rule); }
.lb-close { position: absolute; top: var(--space-sm); right: var(--space-md); min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--color-accent-hi); font-size: 2.4rem; cursor: pointer; }
.lb-close:hover { color: var(--color-ink); }
.lb-close:active { transform: translateY(1px); }

@media (max-width: 60rem) {
  .strip-inner { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); }
  .realm-facts { grid-template-columns: minmax(0, 1fr); }
  .goal-front { grid-column: 1; grid-row: auto; }
  .home-news .note-card:only-child { grid-template-columns: minmax(0, 1fr); }
  .home-news .note-card:only-child h3 { grid-row: auto; }
  .home-news .note-card:only-child .note-byline, .home-news .note-card:only-child .more { justify-self: start; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  ol.steps { grid-template-columns: minmax(0, 1fr); }
  .feature-card.fc-wide, .feature-card.fc-narrow { grid-column: 1 / -1; }
  .feature-card { grid-column: span 6; }
  .feature-card:nth-child(5) { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .feature-card, .feature-card:nth-child(5) { grid-column: 1 / -1; min-height: 0; padding: var(--space-lg); }
  .feature-card.has-shot, .feature-card.fc-full { min-height: 320px; }
  .hero-full { min-height: 0; padding-top: var(--space-xl); }
  .funnel-cta .btn.big { width: 100%; }
  .realm-card { min-width: 0; width: 100%; }
}

/* ==== Donate & membership (support.html) ==== */
.support-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-md) var(--gap-columns); align-items: end; }
.support-hero h1 { margin: 0; }
.goal { margin-bottom: var(--space-lg); }
.goal-strip { padding: var(--space-xl); }
.goal-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.goal-head h2 { margin: 0; font-size: var(--text-title-l); }
.goal .goal-figures { margin: 0 0 var(--space-sm); font-size: var(--text-lead); font-variant-numeric: tabular-nums; }
.goal .goal-figures b { font: 600 var(--text-figure)/1 var(--font-display); color: var(--color-ink-2); }
.goal progress { height: 12px; }
.goal p { margin: var(--space-sm) 0 0; }
.cost-list { margin-top: var(--space-md); }
.cost-list h3 { margin: 0 0 var(--space-xs); font: 600 var(--text-sm) var(--font-body); color: var(--color-ink); }
.cost-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.cost-list li { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-2xs) 0; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.last-donation { margin: var(--space-xs) 0 0; }
.donate { margin-bottom: var(--space-2xl); padding: var(--space-xl); }
.donate-head { margin: 0 0 var(--space-lg); }
.donate-head h2, .tiers .section-head h2 { margin: 0 0 var(--space-xs); font-size: var(--text-section-s); }
.donate-head p { margin: 0; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); }
.donate-step { padding: var(--space-lg); background: var(--color-paper); border-radius: var(--radius); }
.donate-step h3 { margin: 0 0 var(--space-md); font-size: var(--text-lg); display: flex; align-items: center; gap: var(--space-sm); }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 600 var(--text-sm) var(--font-body);
  color: var(--color-accent-ink); background: var(--color-accent); font-variant-numeric: tabular-nums; }
.donate-step .amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-xs); margin: 0; }
.amount-pick { position: relative; cursor: pointer; }
.amount-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-pick span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-xs); font: 600 var(--text-md) var(--font-body);
  color: var(--color-ink); background: var(--shade-30); border: 1px solid var(--color-rule-strong); border-radius: var(--radius); font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.amount-pick:hover span { border-color: var(--color-accent); }
.amount-pick input:checked + span { color: var(--color-accent-ink); background: var(--color-accent); border-color: var(--color-accent); }
.amount-pick:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius); }
.amount-pick input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.custom-label { margin: var(--space-md) 0 var(--space-2xs) !important; }
.custom-amount { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-xs); }
.amount-box { display: inline-flex; align-items: center; width: 100%; max-width: 220px; min-height: 48px; margin: var(--space-2xs) 0; padding: 0 var(--space-sm);
  background: var(--shade-35); border: 1px solid var(--color-rule-strong); border-radius: var(--radius); }
.amount-box:hover { border-color: var(--color-accent); }
.amount-box:focus-within { outline: 2px solid var(--color-focus); outline-offset: 0; }
.amount-box input { flex: 1; min-width: 0; min-height: 44px; padding: var(--space-xs) 0; border: 0; outline: 0; background: transparent; color: var(--color-ink); font: 600 var(--text-md) var(--font-body); }
.amount-box input::placeholder { color: var(--ink-a45); font-weight: 400; }
.amount-box .cur { color: var(--color-accent); font: 600 var(--text-md) var(--font-body); margin-left: var(--space-xs); }
.donate-go { width: 100%; margin: var(--space-md) 0 0; }
.donate-foot { margin-top: var(--space-lg); }
.donate-foot p { margin: var(--space-2xs) 0; }
.kofi-alt { max-width: none !important; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--line-soft); }
.kofi-alt .btn { margin: 0; }
.donor-choices { display: grid; gap: var(--space-xs); margin: 0; text-align: left; }
.switch, .checkout label.switch { position: relative; display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-xs); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { display: block; flex: none; position: relative; width: 42px; height: 24px; margin-top: 1px; border-radius: 12px; background: var(--shade-45);
  border: 1px solid var(--color-rule-strong); transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-muted);
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.switch:hover .switch-track { border-color: var(--color-accent); }
.switch input:checked + .switch-track { background: var(--gold-a25); border-color: var(--color-accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: var(--color-accent-hi); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: 0.55; cursor: not-allowed; }
.kofi { margin-bottom: var(--space-2xl); }
.tiers { margin: var(--space-3xl) 0 var(--space-xl); }
.section-head { max-width: 62ch; margin: 0 0 var(--space-xl); }
.section-head p { margin: var(--space-2xs) 0; }
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-md); border: 0; margin: 0; padding: 0; min-width: 0; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: var(--space-xl); border: 1px solid transparent;
  border-radius: var(--radius-lg); background: var(--color-paper-2); color: var(--color-ink); transition: border-color var(--dur-micro) var(--ease-out); }
label.tier-card { cursor: pointer; }
label.tier-card:hover { border-color: var(--color-accent); }
.tier-card input[type=radio] { position: absolute; top: var(--space-md); right: var(--space-md); width: 18px; height: 18px; }
.tier-card:has(input:checked) { border-color: var(--color-accent-hi); box-shadow: inset 0 0 0 1px var(--color-accent-hi); }
.tier-card:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.tier-card.off { opacity: 0.6; cursor: not-allowed; }
.tier-card.off:hover { border-color: transparent; }
.tier-card.featured { border-color: var(--color-accent); }
.tier-name { font: 600 var(--text-title) var(--font-body); color: var(--color-ink-2); }
.tier-price { font: 600 var(--text-figure)/1.1 var(--font-display); color: var(--color-ink); margin: var(--space-2xs) 0 var(--space-md); font-variant-numeric: tabular-nums; }
.tier-price small { font: 400 var(--text-md) var(--font-body); color: var(--color-muted); }
.tier-perks { list-style: none; padding: var(--space-md) 0 0; margin: 0; border-top: 1px solid var(--line-soft); flex: 1; }
.tier-perks li { position: relative; padding: var(--space-2xs) 0 var(--space-2xs) var(--space-lg); }
.tier-perks li::before { content: ""; position: absolute; left: var(--space-2xs); top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.tier-mine, .tier-soon { align-self: flex-start; margin-top: var(--space-sm); padding: 0 var(--space-sm); border-radius: var(--radius); font-size: var(--text-sm); border: 1px solid var(--color-accent); color: var(--color-accent-hi); }
.tier-soon { border-color: var(--color-rule); color: var(--color-muted); }
.checkout { max-width: 760px; margin: var(--space-lg) 0 0; text-align: left; }
.checkout label { display: block; margin: 0 0 var(--space-sm); }
.checkout label input { margin-right: var(--space-xs); }
.checkout .btn.big { display: flex; width: fit-content; margin: var(--space-md) 0 var(--space-sm); }
.checkout .donor-choices { margin-bottom: var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--line-soft); }
.amounts { display: flex; flex-wrap: wrap; }
.hall { list-style: none; padding: 0; margin: 0 0 var(--space-sm); }
.hall li { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1px solid var(--line-soft); }
.hall-tier { color: var(--color-accent); font-size: var(--text-sm); }
.vip ul { padding-left: 1.2em; }
@media (max-width: 60rem) { .support-hero, .donate-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .donate, .goal-strip { padding: var(--space-lg); } .donate-step { padding: var(--space-md); } }

/* ==== Get access (beta.html): the steps on the left, what you need beside them ==== */
.access-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); align-items: start; margin: 0 0 var(--space-2xl); }
.access-main > .panel, .access-main > section, .access-main > .flash { margin: 0 0 var(--space-lg); }
.page-access main > .panel, .page-access main > section { margin: 0 0 var(--space-lg); }
.access-now { padding: var(--space-md) var(--space-lg); background: var(--gold-a08); }
.access-now p { margin: 0 0 var(--space-xs); }
.access-now p:last-child { margin-bottom: 0; }
.access-progress { font: 600 var(--text-sm) var(--font-body); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.access-steps h2 { font-size: var(--text-title-l); }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-md); counter-reset: step; }
.checklist li { counter-increment: step; position: relative; padding: var(--space-md) var(--space-sm) var(--space-md) 56px; border-bottom: 1px solid var(--line-soft); }
.checklist li > * { margin-right: var(--space-xs); }
.checklist li::before {
  content: counter(step); position: absolute; left: var(--space-sm); top: var(--space-md); width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-accent); color: var(--color-accent-hi); font: 600 var(--text-md)/30px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; }
.checklist li.done::before { content: "\2713"; background: var(--good-a15); border-color: var(--color-good); color: var(--color-good); }
.checklist .dim { display: block; }
.access-list li { border-radius: var(--radius); }
.access-list li h3 { margin: var(--space-3xs) 0 var(--space-xs); font-size: var(--text-lg); }
.access-list li p { margin: 0 0 var(--space-xs); }
.access-list li p:last-child { margin-bottom: 0; }
.access-list li.current { background: var(--gold-a08); border-bottom-color: transparent; margin: var(--space-xs) 0; }
.access-list li.current::before { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.access-list li.waiting::before { content: "\2026"; border-color: var(--color-accent-hi); }
.access-list li.todo h3 { color: var(--color-muted); }
.access-list li.todo::before { border-color: var(--color-rule); color: var(--color-muted); }
.access-list .step-action { margin: var(--space-2xs) 0 var(--space-sm); }
.access-list form.register { margin: var(--space-2xs) 0 var(--space-sm); }
.access-list form.register label { line-height: 1.45; }
form.register { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; margin: var(--space-sm) 0; }
form.register label { display: block; }
form.register input[type="checkbox"] { width: 18px; height: 18px; margin-right: var(--space-xs); vertical-align: -3px; }
form.inline { margin-top: var(--space-sm); }
.access-invite-code { display: block; margin-top: var(--space-xs); }
.access-invite-code input { max-width: 100%; margin-top: var(--space-2xs); }
.access-info { display: grid; gap: var(--space-md); margin: 0; }
.page-access .access-info section { margin: 0; }
.access-info h2 { font-size: var(--text-lg); }
.access-next { padding-left: 1.3em; margin: 0 0 var(--space-sm); }
.access-next li { margin: var(--space-2xs) 0; }
.access-info .step-action { margin: var(--space-sm) 0 0; }
.link-pair { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.ticks { list-style: none; padding: 0; margin: var(--space-sm) 0 0; }
.ticks li { padding-left: 1.4em; position: relative; margin: var(--space-2xs) 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.next-step { border-color: transparent; }
#testing, #invites { padding: var(--space-xl); }
#testing h2 { max-width: none; }
#testing ul.plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-lg) 0; }
#testing ul.plain li { margin: 0; }
@media (max-width: 60rem) { #testing ul.plain { grid-template-columns: minmax(0, 1fr); } }
#testing ul.plain li { padding-top: var(--space-sm); border-top: 1px solid var(--line-soft); }
#testing h2, #invites h2 { font-size: var(--text-title-l); }
#invites code { overflow-wrap: anywhere; }
@media (max-width: 60rem) { .access-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .checklist li { padding-left: 48px; padding-right: var(--space-xs); } .checklist li::before { left: var(--space-xs); } }

/* ==== Patch notes (patchnotes.html, patchnote.html): a ledger, the version beside its notes ==== */
.pn-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-md) var(--gap-columns); padding: var(--space-2xl) 0; border-top: 1px solid var(--line-soft); }

.pn-meta { position: sticky; top: calc(var(--nav-h) + var(--space-lg)); align-self: start; }
.pn-meta h2 { font-size: var(--text-title-l); margin: 0 0 var(--space-xs); }
.pn-meta p { margin: 0 0 var(--space-xs); }
.patchnote h2 a { color: inherit; text-decoration: none; }
.patchnote h2 a:hover { color: var(--color-accent-hi); text-decoration: underline; text-decoration-thickness: 1px; }
.cn-badge { display: inline-block; margin: var(--space-xs) 0 0; padding: 0 var(--space-xs); border-radius: 3px; background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; font-size: var(--text-sm); }
.pn-body { max-width: 62ch; }
.pn-body h2, .pn-body h3 { font-size: var(--text-lg); margin: var(--space-lg) 0 var(--space-xs); color: var(--color-ink-2); }
.pn-body > :first-child { margin-top: 0; }
.pn-body p { margin: 0 0 var(--space-sm); }
.patchnote ul { margin: 0 0 var(--space-sm); padding-left: 1.25em; }
.patchnote li { margin: var(--space-2xs) 0; }
.patchnote li::marker { color: var(--color-accent); }
.pn-foot { margin-top: var(--space-xl); max-width: 62ch; }
.pn-single, .pn-single + .cn-cta, .cn-cta + .cn-pager, .page-note .crumbs { max-width: 72ch; margin-inline: auto; }
.pn-single + .cn-cta { margin-top: var(--space-2xl); }
.pn-single .page-head { margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--line-soft); }
.cn-cta { max-width: 72ch; margin: var(--space-2xl) 0 var(--space-lg); padding: var(--space-xl); }
.cn-cta h2 { margin-top: 0; font-size: var(--text-title-l); }
.cn-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-sm) 0 0; }
.cn-actions .btn { margin: 0; }
.cn-pager { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-lg) 0 var(--space-xl); max-width: 72ch; }
.cn-pager a { flex: 1 1 200px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent; border-radius: var(--radius); padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); color: var(--color-ink); }
.cn-pager a:hover, .cn-pager a:focus-visible { border-color: var(--color-accent); color: var(--color-accent-hi); }
.cn-latest { border-color: var(--line-soft); }
.cn-newbie { max-width: 760px; margin: 0 0 var(--space-md); }
@media (max-width: 60rem) { .pn-row { grid-template-columns: minmax(0, 1fr); padding: var(--space-xl) 0; } .pn-meta { position: static; } }
@media (max-width: 40rem) { .cn-actions .btn { flex: 1 1 100%; } }

/* ==== Help (help.html): the form on the wider left, your tickets on the right ==== */
.help-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); margin: 0; align-items: start; }
.help-layout .panel { padding: var(--space-xl); }
.help-layout h2 { font-size: var(--text-title-l); }
.ticket-form { display: grid; gap: var(--space-lg); margin: var(--space-sm) 0 var(--space-xs); }
.ticket-form .btn { justify-self: start; margin: 0; }
.ticket-form textarea.field { resize: vertical; min-height: 9rem; }
fieldset.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
fieldset.kinds legend { margin-bottom: var(--space-xs); }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin: var(--space-sm) 0 var(--space-lg); }
.kind-card { position: relative; display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-md); border: 1px solid transparent;
  border-radius: var(--radius); background: var(--color-paper); color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out); }
.kind-card:hover { border-color: var(--color-accent); }
.kind-card input[type=radio] { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 16px; height: 16px; margin: 0; }
.kind-card:has(input:checked) { border-color: var(--color-accent-hi); box-shadow: inset 0 0 0 1px var(--color-accent-hi); }
.kind-card:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.kind-card.static { cursor: default; }
.kind-card.static:hover { border-color: transparent; }
.kind-card b { font-weight: 600; color: var(--color-ink-2); font-size: var(--text-lg); }
.kind-icon { color: var(--color-accent); line-height: 0; }
.kind-icon .icon { width: 24px; height: 24px; }
.help-other { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--line-soft); }
.signup-help { margin: var(--space-md) 0 var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-paper); }
.signup-help h3 { margin: 0 0 var(--space-xs); }
.signup-help p { margin: 0 0 var(--space-sm); }
.ticket-list { list-style: none; margin: var(--space-xs) 0 0; padding: 0; }
.ticket-list li { display: grid; gap: var(--space-2xs); padding: var(--space-sm) 0; border-top: 1px solid var(--line-soft); }
.ticket-list li:first-child { border-top: 0; }
.ticket-list a { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-md); }
.kind-dot { color: var(--color-accent); line-height: 0; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); padding-left: 28px; font-variant-numeric: tabular-nums; }
.tstatus { font-size: var(--text-sm); padding: 0 var(--space-xs); border-radius: var(--radius); border: 1px solid var(--color-rule); white-space: nowrap; }
.tstatus.open { color: var(--status-open); }
.tstatus.answered { color: var(--color-good); }
.tstatus.closed { opacity: 0.65; }
.tstatus.archived { opacity: 0.45; font-style: italic; }
table.tickets td, table.tickets th { padding: var(--space-xs) var(--space-xs); text-align: left; }
.thread { display: flex; flex-direction: column; gap: var(--space-sm); margin: var(--space-md) 0; }
.thread .msg.staff { border-color: var(--color-accent); }
.thread .msg .body { white-space: pre-wrap; margin: var(--space-xs) 0 0; }
.thread .sysmsg { text-align: center; margin: 0; }
@media (max-width: 60rem) { .help-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { fieldset.kinds, .kinds { grid-template-columns: minmax(0, 1fr); } .help-layout .panel { padding: var(--space-lg); } }

/* Analytics consent (static/consent.js) */
#consent { position: fixed; left: var(--space-md); right: var(--space-md); bottom: var(--space-md); z-index: var(--z-toast); max-width: 640px; margin: 0 auto;
  background: var(--color-paper-3); border: 1px solid var(--color-accent); border-radius: var(--radius); padding: var(--space-md); }
#consent p { margin: 0 0 var(--space-sm); font-size: var(--text-sm); }
#consent .consent-buttons { display: flex; gap: var(--space-xs); justify-content: flex-end; }
#consent .consent-buttons .btn { min-width: 110px; margin: 0; }

/* Scrollbars in the site's wood and iron */
* { scrollbar-width: thin; scrollbar-color: var(--color-rule) var(--color-paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-paper); }
::-webkit-scrollbar-thumb { background: var(--color-paper-4); border: 2px solid var(--color-paper); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-rule); }
::-webkit-scrollbar-corner { background: var(--color-paper); }

@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 88px; --section-gap: 112px; --section-gap-l: 128px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 64px; --section-gap: 80px; --section-gap-l: 96px; --gap-columns: 16px; } main { padding-top: var(--space-xl); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:active, .lb-close:active { transform: none; }
}

.flash-wide { max-width: none; }
.wiki-menu-btn { display: none; }
@media (max-width: 760px) { .wiki-menu-btn { display: inline-flex; } }

/* the wiki's sticky menu and contents sit under the sticky bar */
.wiki-nav, .wiki-toc { top: calc(var(--nav-h) + var(--space-md)); }
.wiki-nav { max-height: calc(100svh - var(--nav-h) - var(--space-xl)); }

/* ==== Pass 3: a publisher's front page for one game ==== */
.mark { width: 16px; height: 16px; flex: none; vertical-align: -3px; margin-right: var(--space-xs); }
.btn .mark, .btn .icon { margin: 0; width: 18px; height: 18px; }
/* hero: the key art, the logo, one line, the two actions, then small facts and the returning links */
.hero-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2xs) var(--space-lg);
  font-size: var(--text-sm); color: var(--color-ink-soft); text-shadow: 0 1px 8px var(--shade-85); }
.hero-meta li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.hero-meta b { color: var(--color-accent-hi); font-weight: 600; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--color-accent); }
.funnel-promise { max-width: 30ch; font-size: var(--text-lg); }

/* what it is: the statement beside the realm video (click to play, nothing loads before) */
.home-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.home-about h2 { font-family: var(--font-display); color: var(--color-ink-2); letter-spacing: var(--tracking-display); font-size: var(--text-section); line-height: 1.15; max-width: 14ch; margin: 0 0 var(--space-lg); }
.home-about .lead { margin: 0; }
.about-film { margin: 0; border-radius: var(--radius-lg); overflow: clip; background: var(--color-paper-2); }
.about-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* what awaits: two large image blocks, three tidy cards, the capital as a wide band */
.feature-card { min-height: 0; }
.feature-card.fc-split { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center;
  padding: 0; background: none; }
.feature-card.fc-split:hover { background: none; transform: none; }
.feature-card.fc-split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature-card.fc-split.rev .fc-media { order: 2; }
.feature-card.fc-split::after { content: none; }
.fc-split .fc-media { border-radius: var(--radius-lg); overflow: clip; aspect-ratio: 16 / 10; }
.fc-split .fc-shot { position: static; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-short) var(--ease-out); }
.fc-split:hover .fc-media { outline: 1px solid var(--gold-a45); outline-offset: 4px; }
.fc-split .fc-text h3 { font-family: var(--font-display); color: var(--color-ink-2); letter-spacing: var(--tracking-display); font-size: var(--text-section-s); line-height: 1.15; margin: 0 0 var(--space-md); }
.fc-split .fc-text p { font-size: var(--text-lead); color: var(--color-ink-soft); }
.fc-split + .fc-split { margin-top: var(--space-2xl); }
.feature-cards { row-gap: var(--space-lg); }
.fc-split + .fc-third { margin-top: var(--space-3xl); }
.feature-card.fc-third { grid-column: span 4; min-height: 260px; margin-top: var(--space-2xl); }
.feature-card.fc-full { margin-top: var(--space-lg); }
.feature-card.fc-full .fc-media { position: absolute; inset: 0; z-index: -2; }
.feature-card.fc-full .fc-text { max-width: 40ch; }
.fc-text h3 { margin: 0 0 var(--space-xs); }
.fc-text p { margin: 0; }

/* updates: the newest patch notes as dated cards */
.sec-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-md); }
.sec-head-row .btn { margin: 0; }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.news-cards .note-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-lg); }
.news-cards .note-card h3 { font-size: var(--text-title); order: 1; }
.news-cards .note-byline { order: 0; }
.news-cards .more { order: 2; }
.news-cards .news { grid-column: 1 / -1; }

/* community and the last call */
.home-community { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg) var(--space-2xl);
  padding: var(--space-2xl) var(--space-2xl); background: var(--color-paper-2); border-radius: var(--radius-lg); }
.home-community h2 { font-family: var(--font-display); color: var(--color-ink-2); letter-spacing: var(--tracking-display); font-size: var(--text-section-s); margin: 0; }
.community-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.community-links .btn { margin: 0; }
.home-close { text-align: center; display: grid; justify-items: center; gap: var(--space-md); padding: var(--space-3xl) 0 var(--space-xl); }
.home-close h2 { font-family: var(--font-display); color: var(--color-ink-2); letter-spacing: var(--tracking-display); font-size: var(--text-section); margin: 0; }
.home-close .lead { margin: 0; max-width: 46ch; }
.home-close .cta { margin: var(--space-sm) 0 0; }
.page-home main > section.home-close { margin-bottom: 0; }

/* footer: the mark and the fan line, then four columns */
.foot-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.foot-h { margin: 0 0 var(--space-sm); font-weight: 600; color: var(--color-ink); font-size: var(--text-sm); }
.foot-col a { color: var(--color-muted); }
.foot-col a:hover { color: var(--color-ink); }
footer .share a .mark { margin-right: var(--space-2xs); }

@media (max-width: 60rem) {
  .home-about, .feature-card.fc-split, .feature-card.fc-split.rev { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .feature-card.fc-split.rev .fc-media { order: 0; }
  .feature-card.fc-third { grid-column: 1 / -1; min-height: 0; margin-top: var(--space-md); }
  .news-cards { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-community { padding: var(--space-xl) var(--space-lg); }
}
.home-news { display: block; }
.foot-col ul { flex-direction: column; }
