:root {
  --bg: #0b1019;
  --bg-deep: #070b12;
  --surface: #121a26;
  --surface-2: #182230;
  --surface-soft: rgba(24, 34, 48, 0.78);
  --paper: #e8dfcc;
  --paper-strong: #fff8e8;
  --muted: #96a2ae;
  --muted-strong: #b9c2c8;
  --gold: #d1ad6c;
  --gold-soft: #f0d69f;
  --cyan: #79b9bd;
  --red: #b75c54;
  --purple: #a08abc;
  --line: rgba(226, 213, 185, 0.13);
  --line-strong: rgba(226, 213, 185, 0.24);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --shell: min(1180px, calc(100% - 48px));
  color-scheme: dark;
}

html[data-theme="dawn"] {
  --bg: #e9e3d6;
  --bg-deep: #dcd4c4;
  --surface: #f4efe4;
  --surface-2: #e1d9ca;
  --surface-soft: rgba(244, 239, 228, 0.9);
  --paper: #242b30;
  --paper-strong: #101619;
  --muted: #667078;
  --muted-strong: #465158;
  --gold: #8b6632;
  --gold-soft: #694715;
  --cyan: #35787c;
  --red: #8e413b;
  --purple: #72598f;
  --line: rgba(28, 35, 39, 0.12);
  --line-strong: rgba(28, 35, 39, 0.23);
  --shadow: 0 30px 80px rgba(55, 44, 30, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -8%, rgba(64, 113, 125, 0.18), transparent 34rem),
    radial-gradient(circle at 96% 24%, rgba(129, 94, 67, 0.13), transparent 32rem),
    var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  transition: background-color .35s ease, color .35s ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: rgba(209, 173, 108, .28); color: var(--paper-strong); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--paper-strong); color: var(--bg); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.page-progress { position: fixed; top: 0; left: 0; z-index: 300; width: 100%; height: 2px; }
.page-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.ambient { position: fixed; z-index: -1; width: 36rem; height: 36rem; border-radius: 50%; filter: blur(110px); opacity: .06; pointer-events: none; }
.ambient-a { top: 20%; left: -24rem; background: var(--cyan); }
.ambient-b { right: -22rem; bottom: 5%; background: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color .25s, background-color .25s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark circle, .brand-mark path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.brand-mark path { fill: currentColor; stroke-width: .5; opacity: .9; }
.brand strong { display: block; font: 700 16px/1.2 var(--serif); letter-spacing: .12em; color: var(--paper-strong); }
.brand small { display: block; margin-top: 5px; font-size: 12px; line-height: 1; letter-spacing: .23em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; font-size: 13px; letter-spacing: .08em; color: var(--muted-strong); transition: color .2s; }
.site-nav a::after { position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); content: ""; opacity: 0; transform: translateX(-50%) scale(0); transition: .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--paper-strong); }
.site-nav a:hover::after, .site-nav a.active::after { opacity: 1; transform: translateX(-50%) scale(1); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-soft); transform: rotate(4deg); }
.theme-toggle { justify-self: end; }
.header-tools { display: flex; align-items: center; justify-self: end; gap: 9px; }
.account-button, .profile-link { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--muted-strong); font-size: 12px; letter-spacing: .06em; cursor: pointer; transition: .2s; }
.account-button:hover, .profile-link:hover { border-color: var(--gold); background: var(--surface-soft); color: var(--paper-strong); }
.account-button svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.account-button[hidden], .profile-link[hidden] { display: none; }
.profile-link { padding: 3px 11px 3px 4px; }
.profile-avatar { width: 32px; height: 32px; display: grid; overflow: hidden; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--gold) 9%, transparent); color: var(--gold-soft); font: 600 12px/1 var(--serif); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy strong, .profile-copy small { display: block; line-height: 1.2; }
.profile-copy strong { max-width: 92px; overflow: hidden; color: var(--paper-strong); font: 600 12px/1.2 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.audience-button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--muted-strong); font-size: 12px; letter-spacing: .06em; cursor: pointer; transition: .2s; }
.audience-button:hover { border-color: var(--gold); background: var(--surface-soft); color: var(--paper-strong); }
.audience-button svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.audience-button.keeper { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); color: var(--paper-strong); }
.audience-button.player { border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle .sun-icon { display: none; }
html[data-theme="dawn"] .theme-toggle .sun-icon { display: block; }
html[data-theme="dawn"] .theme-toggle .moon-icon { display: none; }
.nav-toggle { display: none; justify-self: end; }
.nav-toggle span { position: absolute; width: 17px; height: 1px; background: currentColor; transition: .25s; }
.nav-toggle span:first-child { transform: translateY(-3px); }
.nav-toggle span:last-child { transform: translateY(3px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 5vw; padding-block: clamp(54px, 8vh, 104px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; font-size: 12px; font-weight: 600; letter-spacing: .23em; color: var(--gold); }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font: 600 clamp(39px, 4.5vw, 62px)/1.35 var(--serif); letter-spacing: .02em; color: var(--paper-strong); }
.hero h1 em { color: var(--gold-soft); font-style: normal; }
.hero-lead { max-width: 600px; margin: 28px 0 0; font: 400 16px/2 var(--serif); letter-spacing: .04em; color: var(--muted-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--paper-strong); font-size: 13px; letter-spacing: .06em; cursor: pointer; transition: transform .2s, border-color .2s, background-color .2s, color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); border-color: var(--gold); }
.button-primary { border-color: var(--gold); background: var(--gold); color: #12151a; box-shadow: 0 10px 34px rgba(185, 144, 79, .17); }
.button-primary:hover { background: var(--gold-soft); color: #12151a; }
.button-ghost { background: color-mix(in srgb, var(--surface) 48%, transparent); }
.spark { color: var(--gold); }
.hero-stats { display: flex; gap: 0; margin: 54px 0 0; }
.hero-stats div { min-width: 128px; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font: 600 22px/1 var(--serif); color: var(--paper-strong); }
.hero-stats dd { margin: 10px 0 0; font-size: 12px; letter-spacing: .08em; color: var(--muted); }

.hero-art { position: relative; min-height: 610px; display: grid; place-items: center; }
.hero-art::before { position: absolute; inset: 10% 5% 13%; border-radius: 50%; background: radial-gradient(circle, rgba(90, 150, 153, .16), transparent 67%); filter: blur(8px); content: ""; }
.feature-dossier { position: relative; z-index: 4; width: min(350px, 82%); aspect-ratio: .70; overflow: hidden; padding: 20px; border: 1px solid rgba(222, 201, 157, .38); background:
  linear-gradient(145deg, rgba(37, 50, 65, .96), rgba(13, 20, 31, .98)),
  var(--surface);
  box-shadow: 0 45px 90px rgba(0,0,0,.4), inset 0 0 0 7px rgba(255,255,255,.018);
  transform: rotate(2.3deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
html[data-theme="dawn"] .feature-dossier { background: linear-gradient(145deg, #3b4b56, #1a2630); color: #f5ead4; }
.feature-dossier:hover { transform: rotate(.5deg) translateY(-8px); box-shadow: 0 55px 110px rgba(0,0,0,.48), inset 0 0 0 7px rgba(255,255,255,.018); }
.feature-dossier::before { position: absolute; inset: 0; content: ""; opacity: .16; background-image: repeating-linear-gradient(115deg, transparent 0 11px, rgba(255,255,255,.08) 12px, transparent 13px 22px); mask-image: radial-gradient(circle at center, black, transparent 75%); }
.feature-dossier::after { position: absolute; right: -15%; bottom: -3%; width: 60%; height: 40%; border: 1px solid rgba(209,173,108,.2); border-radius: 50%; content: ""; transform: rotate(-32deg); }
.dossier-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(238,220,184,.16); font-size: 12px; letter-spacing: .21em; color: #d6c9b1; }
.dossier-topline span:first-child { color: #d8b06c; }
.dossier-sigil { position: relative; z-index: 2; height: 49%; display: grid; place-items: center; color: #d1ad6c; }
.dossier-sigil svg { width: 72%; filter: drop-shadow(0 0 16px rgba(209,173,108,.2)); }
.dossier-sigil circle, .dossier-sigil path { fill: none; stroke: currentColor; stroke-width: 1; }
.dossier-sigil path:first-of-type { stroke-width: .7; }
.dossier-sigil circle:last-child { fill: currentColor; }
.dossier-title { position: relative; z-index: 2; text-align: center; color: #f2e7d1; }
.dossier-title p { margin: 0 0 8px; font: 500 12px/1 var(--sans); letter-spacing: .45em; color: #c9a86a; }
.dossier-title h2 { margin: 0; font: 700 42px/1.35 var(--serif); letter-spacing: .18em; text-indent: .18em; }
.dossier-title span { font: 500 12px/1 var(--serif); letter-spacing: .28em; color: #aaa99f; }
.dossier-footer { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 19px; display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(238,220,184,.16); font-size: 12px; letter-spacing: .08em; color: #aaa99f; }
.dossier-footer button { padding: 0; border: 0; background: none; color: #dec28c; font-size: 12px; cursor: pointer; }
.orbit { position: absolute; z-index: 2; border: 1px solid rgba(142, 174, 175, .2); border-radius: 50%; pointer-events: none; }
.orbit::before { position: absolute; top: 14%; left: 10%; width: 7px; height: 7px; border: 1px solid var(--gold); border-radius: 50%; background: var(--bg); content: ""; }
.orbit-outer { width: 540px; max-width: 105%; aspect-ratio: 1; animation: orbit-spin 35s linear infinite; }
.orbit-inner { width: 455px; max-width: 91%; aspect-ratio: 1; border-style: dashed; transform: rotate(38deg); animation: orbit-spin-back 44s linear infinite; }
.art-caption { position: absolute; z-index: 5; bottom: 13px; right: 2%; margin: 0; font: 500 12px/1 var(--sans); letter-spacing: .17em; color: var(--muted); writing-mode: vertical-rl; }
.art-caption span { color: var(--gold); }
.star-map { position: absolute; inset: 0; z-index: 1; opacity: .7; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 10px var(--paper); }
.star-1 { top: 12%; left: 16%; }.star-2 { top: 26%; right: 9%; }.star-3 { bottom: 20%; left: 3%; }.star-4 { bottom: 8%; right: 23%; }.star-5 { top: 47%; left: 8%; }
.line { position: absolute; height: 1px; transform-origin: left; background: linear-gradient(90deg, rgba(160,190,190,.35), transparent); }
.line-1 { top: 13%; left: 17%; width: 46%; transform: rotate(15deg); }.line-2 { bottom: 20%; left: 4%; width: 53%; transform: rotate(-12deg); }.line-3 { top: 48%; left: 8%; width: 44%; transform: rotate(51deg); }

.systems { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.system-gate { width: 100%; min-height: 105px; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 20px 22px; border: 0; border-right: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background-color .25s, transform .25s; }
.system-gate:last-child { border-right: 0; }
.system-gate:hover, .system-gate.active { background: var(--surface-soft); }
.system-gate:hover { transform: translateY(-2px); }
.gate-icon { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font: 16px/1 var(--serif); }
.gate-all { color: var(--gold); }.gate-fate { color: var(--red); }.gate-coc { color: var(--cyan); }.gate-dnd { color: #c88655; }
.gate-rules { color: var(--gold); }.gate-builder { color: var(--cyan); }.gate-player { color: var(--purple); }.gate-author { color: var(--red); }
.system-gate small { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.system-gate strong { display: block; font: 600 13px/1.3 var(--serif); letter-spacing: .08em; color: var(--paper-strong); }
.system-gate i { font: normal 12px/1 var(--sans); color: var(--muted); }

.archive-section { padding: 120px 0 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin: 0; font: 600 clamp(34px, 4vw, 49px)/1.25 var(--serif); letter-spacing: .06em; color: var(--paper-strong); }
.section-heading > p { max-width: 470px; margin: 0 0 5px; font-size: 13px; line-height: 2; letter-spacing: .03em; color: var(--muted); }
.archive-toolbar { display: grid; grid-template-columns: 1fr 190px auto; gap: 12px; align-items: center; }
.single-module-toolbar { grid-template-columns: 1fr; }
.search-box, .select-box { min-height: 52px; display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface-soft); transition: border-color .2s, background-color .2s; }
.search-box:focus-within, .select-box:focus-within { border-color: var(--gold); background: var(--surface); }
.search-box { padding: 0 15px; }
.search-box svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.search-box input { width: 100%; height: 50px; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--paper-strong); font-size: 13px; }
.search-box input::placeholder { color: var(--muted); }
.search-box kbd { min-width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 12px/1 var(--sans); }
.select-box { position: relative; padding: 0 13px; }
.select-box select { width: 100%; height: 50px; padding: 0 25px 0 3px; border: 0; outline: 0; appearance: none; background: transparent; color: var(--muted-strong); font-size: 12px; cursor: pointer; }
.select-box svg { position: absolute; right: 15px; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.5; pointer-events: none; }
.view-switch { display: flex; border: 1px solid var(--line); background: var(--surface-soft); }
.view-switch button { width: 50px; height: 50px; display: grid; place-items: center; padding: 0; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.view-switch button:last-child { border-right: 0; }
.view-switch button.active { background: var(--surface-2); color: var(--gold); }
.view-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 21px 0 38px; }
.filter-chips { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips button { padding: 7px 12px; border: 1px solid transparent; border-radius: 30px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: .2s; }
.filter-chips button:hover { color: var(--paper-strong); }
.filter-chips button.active { border-color: var(--line-strong); background: var(--surface); color: var(--paper-strong); }
.filter-chips span { margin-left: 4px; color: var(--gold); font-size: 12px; }
.result-count { flex: 0 0 auto; margin: 0; font-size: 12px; color: var(--muted); }
.result-count strong { color: var(--gold); font-weight: 500; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.archive-card { --card-accent: var(--gold); position: relative; min-height: 420px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.archive-card[data-tone="red"] { --card-accent: var(--red); }.archive-card[data-tone="cyan"] { --card-accent: var(--cyan); }.archive-card[data-tone="gold"] { --card-accent: var(--gold); }.archive-card[data-tone="purple"] { --card-accent: var(--purple); }.archive-card[data-tone="green"] { --card-accent: #7db79b; }
.archive-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--card-accent) 48%, var(--line)); box-shadow: var(--shadow); }
.archive-card:focus-within { border-color: var(--card-accent); }
.card-cover { position: relative; height: 193px; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--card-accent) 21%, transparent), transparent 40%),
  linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 92%, black), var(--bg-deep)); }
.card-cover-art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) brightness(.48); transform: scale(1.01); transition: filter .35s, transform .35s; }
.archive-card:hover .card-cover-art { filter: saturate(.9) brightness(.58); transform: scale(1.035); }
.card-cover:has(.card-cover-art)::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, rgba(7,11,18,.82), rgba(7,11,18,.12) 72%), linear-gradient(90deg, rgba(7,11,18,.32), transparent); content: ""; pointer-events: none; }
.card-cover::before { position: absolute; z-index: 4; inset: 0; content: ""; opacity: .5; background-image: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.05) 49%, transparent 63%); transform: translateX(-110%); transition: transform .8s; pointer-events: none; }
.archive-card:hover .card-cover::before { transform: translateX(110%); }
.cover-grid { position: absolute; z-index: 2; inset: 0; opacity: .27; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(to bottom, black, transparent); }
.cover-orbit { position: absolute; z-index: 2; left: 50%; top: 50%; width: 130px; height: 130px; border: 1px solid color-mix(in srgb, var(--card-accent) 58%, transparent); border-radius: 50%; transform: translate(-50%,-50%); }
.cover-orbit::before, .cover-orbit::after { position: absolute; border-radius: 50%; content: ""; }
.cover-orbit::before { inset: 14px; border: 1px dashed color-mix(in srgb, var(--card-accent) 36%, transparent); }
.cover-orbit::after { inset: 31px; border: 1px solid color-mix(in srgb, var(--card-accent) 24%, transparent); background: transparent; box-shadow: 0 0 28px color-mix(in srgb, var(--card-accent) 16%, transparent); }
.cover-icon { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--card-accent) 88%, white); }
.archive-icon-svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.cover-icon .archive-icon-svg { width: 64px; height: 64px; stroke-width: 1.6; filter: drop-shadow(0 0 11px color-mix(in srgb, var(--card-accent) 32%, transparent)); transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s; }
.archive-card:hover .cover-icon .archive-icon-svg { transform: scale(1.045); filter: drop-shadow(0 0 15px color-mix(in srgb, var(--card-accent) 42%, transparent)); }
.archive-icon-detail { opacity: .52; }
.archive-icon-node { fill: currentColor; stroke: none; }
.card-number { position: absolute; z-index: 3; top: 15px; left: 17px; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.card-stamp { position: absolute; z-index: 3; top: 14px; right: 14px; padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--card-accent) 48%, transparent); background: rgba(7,11,18,.54); color: var(--card-accent); font-size: 12px; letter-spacing: .14em; transform: rotate(3deg); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 20px; }
.card-type { margin: 0 0 9px; font-size: 12px; letter-spacing: .18em; color: var(--card-accent); }
.card-body h3 { margin: 0; font: 600 21px/1.5 var(--serif); letter-spacing: .05em; color: var(--paper-strong); }
.card-summary { display: -webkit-box; min-height: 51px; overflow: hidden; margin: 10px 0 16px; color: var(--muted); font: 400 12px/1.8 var(--serif); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--card-accent); }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.card-tags { display: flex; gap: 5px; }
.card-tags span { padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-open { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; color: var(--paper-strong); font-size: 12px; cursor: pointer; }
.card-open span { color: var(--card-accent); transition: transform .2s; }
.archive-card:hover .card-open span { transform: translate(3px,-2px); }

.archive-grid.list-mode { grid-template-columns: 1fr; gap: 10px; }
.archive-grid.list-mode .archive-card { min-height: 164px; display: grid; grid-template-columns: 210px 1fr; }
.archive-grid.list-mode .card-cover { height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.archive-grid.list-mode .card-body { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 19px 24px; }
.archive-grid.list-mode .card-type, .archive-grid.list-mode .card-summary, .archive-grid.list-mode .card-meta { grid-column: 1; }
.archive-grid.list-mode .card-summary { min-height: auto; margin: 4px 0 8px; }
.archive-grid.list-mode .card-meta { padding-top: 8px; }
.archive-grid.list-mode .card-bottom { grid-column: 2; grid-row: 1 / span 4; min-width: 190px; align-self: center; flex-direction: column; align-items: end; gap: 18px; }
.archive-grid.single-module-grid { grid-template-columns: minmax(0, 1fr); }
.archive-grid.single-module-grid .archive-card { min-height: 370px; display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); }
.archive-grid.single-module-grid .card-cover { height: 100%; min-height: 370px; border-right: 1px solid var(--line); border-bottom: 0; }
.archive-grid.single-module-grid .card-body { padding: clamp(28px, 4vw, 48px); }
.archive-grid.single-module-grid .card-body h3 { font-size: clamp(27px, 3vw, 38px); }
.archive-grid.single-module-grid .card-summary { max-width: 680px; min-height: 0; margin-block: 15px 24px; font-size: 14px; -webkit-line-clamp: 3; }
.archive-grid.single-module-grid .card-meta { margin-top: auto; }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line-strong); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-sigil { color: var(--gold); font-size: 27px; }
.empty-state h3 { margin: 12px 0 7px; font: 600 23px/1.5 var(--serif); color: var(--paper-strong); }
.empty-state p { max-width: 520px; margin: 0 auto 22px; color: var(--muted); font-size: 12px; }

.world-section { padding: 0 0 135px; }
.world-feature { min-height: 540px; display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.world-map { position: relative; min-height: 540px; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 52% 51%, rgba(91, 145, 149, .12), transparent 42%), var(--bg-deep); }
.world-map::after { position: absolute; inset: 18px; border: 1px solid var(--line); content: ""; pointer-events: none; }
.world-map svg { width: 100%; height: 100%; opacity: .78; }
.river { fill: none; stroke: rgba(93, 156, 165, .38); stroke-width: 14; }
.road { fill: none; stroke: rgba(227, 215, 185, .2); stroke-width: 1.2; stroke-dasharray: 5 5; }
.road.minor { opacity: .55; }
.district path { fill: rgba(100, 117, 122, .04); stroke: rgba(227, 215, 185, .15); stroke-width: 1; }
.map-point circle { fill: var(--gold); }
.map-label { position: absolute; padding: 5px 8px; border: 1px solid rgba(209,173,108,.22); background: rgba(8, 13, 20, .78); color: #d8d0c0; font: 500 12px/1 var(--serif); letter-spacing: .08em; }
.map-label i { color: #d1ad6c; font: normal 12px/1 var(--sans); }
.label-school { left: 25%; top: 23%; }.label-church { left: 54%; top: 31%; }.label-null { left: 26%; top: 66%; }.label-square { right: 13%; top: 56%; }
.map-coordinates { position: absolute; left: 35px; bottom: 31px; color: rgba(226, 213, 185, .32); font-size: 12px; line-height: 1.7; letter-spacing: .15em; }
.world-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 62px); }
.world-number { margin: 0 0 20px; font-size: 12px; letter-spacing: .22em; color: var(--gold); }
.world-copy h3 { margin: 0; font: 700 43px/1.3 var(--serif); letter-spacing: .12em; color: var(--paper-strong); }
.world-kicker { margin: 8px 0 26px; font-size: 12px; letter-spacing: .11em; color: var(--muted); }
.world-copy > p:not(.world-number):not(.world-kicker) { margin: 0; color: var(--muted-strong); font: 400 13px/2 var(--serif); }
.world-copy blockquote { margin: 25px 0; padding-left: 17px; border-left: 1px solid var(--gold); color: var(--paper); font: 500 13px/1.9 var(--serif); }
.world-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 27px; padding: 18px 0; border-block: 1px solid var(--line); }
.world-facts div { border-right: 1px solid var(--line); text-align: center; }
.world-facts div:last-child { border: 0; }
.world-facts span { display: block; font-size: 12px; color: var(--muted); }
.world-facts strong { display: block; margin-top: 5px; font: 500 19px/1 var(--serif); color: var(--gold); }
.text-link { align-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; color: var(--paper-strong); font-size: 12px; letter-spacing: .08em; cursor: pointer; }
.text-link span { color: var(--gold); }

.notes-section { padding: 115px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 56%, transparent); }
.notes-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 9vw; }
.notes-intro h2 { margin: 0; font: 600 clamp(34px, 4vw, 49px)/1.45 var(--serif); color: var(--paper-strong); }
.notes-intro > p:last-child { max-width: 340px; margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 2; }
.note-list { border-top: 1px solid var(--line); }
.note-list article { display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.note-list time { padding-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.note-list article div > span { font-size: 12px; letter-spacing: .15em; color: var(--gold); }
.note-list h3 { margin: 4px 0 5px; font: 600 17px/1.55 var(--serif); color: var(--paper-strong); }
.note-list p { margin: 0; color: var(--muted); font-size: 12px; }
.note-list button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--gold); cursor: pointer; transition: .2s; }
.note-list button:hover { border-color: var(--gold); transform: translate(2px,-2px); }

.about-section { padding: 130px 0; }
.about-card { display: grid; grid-template-columns: 180px 1fr auto; gap: 55px; align-items: center; padding: 52px 55px; border: 1px solid var(--line); background: linear-gradient(110deg, var(--surface), color-mix(in srgb, var(--surface-2) 68%, transparent)); }
.about-mark { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line-strong); border-radius: 50%; text-align: center; color: var(--gold); }
.about-mark span { font: 600 12px/1 var(--serif); letter-spacing: .2em; }
.about-mark strong { margin: auto 0; font: 500 12px/1.7 var(--sans); letter-spacing: .19em; }
.about-copy .eyebrow { margin-bottom: 9px; }
.about-copy h2 { margin: 0 0 18px; font: 600 29px/1.45 var(--serif); color: var(--paper-strong); }
.about-copy > p { max-width: 670px; margin: 0; color: var(--muted-strong); font: 400 13px/2 var(--serif); }
.identity-badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.identity-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 30px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); color: var(--muted-strong); font-size: 12px; letter-spacing: .08em; }
.identity-badge i { font-style: normal; }
.owner-badge { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--gold-soft); }
.author-badge { border-color: color-mix(in srgb, var(--cyan) 42%, var(--line)); color: var(--cyan); }
.founder-statement { max-width: 700px; margin: 0; padding: 0 0 0 20px; border-left: 2px solid color-mix(in srgb, var(--gold) 65%, var(--line)); }
.founder-statement p { margin: 0; color: var(--muted-strong); font: 400 13px/2 var(--serif); }
.founder-statement footer { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 13px; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.founder-statement footer strong { color: var(--gold); font-weight: 600; }
.about-copy .about-note { margin-top: 12px; color: var(--muted); font: 400 12px/1.8 var(--sans); }
.about-card .button { white-space: nowrap; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-main { min-height: 156px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand p { margin: 0; font: 500 13px/1.7 var(--serif); color: var(--paper-strong); }
.footer-brand p span { color: var(--muted); font: 400 12px/1 var(--sans); }
.footer-main nav { display: flex; gap: 25px; }
.footer-main nav a, .back-top { color: var(--muted); font-size: 12px; transition: color .2s; }
.footer-main nav a:hover, .back-top:hover { color: var(--paper-strong); }
.back-top { justify-self: end; }
.footer-meta { min-height: 48px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: color-mix(in srgb, var(--muted) 72%, transparent); font-size: 12px; letter-spacing: .19em; }

.entry-dialog { width: min(980px, calc(100% - 32px)); max-height: min(90vh, 900px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); color: var(--paper); box-shadow: 0 50px 140px rgba(0,0,0,.7); }
.entry-dialog::backdrop { background: rgba(3,6,10,.78); backdrop-filter: blur(10px); }
.access-dialog { width: min(820px, calc(100% - 28px)); max-height: min(92vh, 820px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); color: var(--paper); box-shadow: 0 50px 140px rgba(0,0,0,.72); }
.access-dialog::backdrop { background: rgba(3,6,10,.86); backdrop-filter: blur(12px); }
.auth-dialog { width: min(620px, calc(100% - 28px)); max-height: min(92vh, 860px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); color: var(--paper); box-shadow: 0 50px 140px rgba(0,0,0,.72); }
.auth-dialog::backdrop { background: rgba(3,6,10,.86); backdrop-filter: blur(12px); }
.access-shell { position: relative; padding: 48px; overflow-y: auto; }
.access-shell > .dialog-close { position: absolute; top: 18px; right: 18px; margin: 0; }
.access-shell > h2 { margin: 0; color: var(--paper-strong); font: 700 clamp(30px, 5vw, 44px)/1.35 var(--serif); letter-spacing: .04em; }
.access-intro { max-width: 670px; margin: 16px 0 29px; color: var(--muted-strong); font: 400 12px/1.95 var(--serif); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-grid[hidden] { display: none; }
.role-card { min-height: 210px; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; padding: 25px; border: 1px solid var(--line); background: var(--bg-deep); color: var(--paper); text-align: left; cursor: pointer; transition: .25s; }
.role-card:hover { transform: translateY(-3px); border-color: var(--role-accent); box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.player-role { --role-accent: var(--cyan); }.keeper-role { --role-accent: var(--red); }
.role-icon { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--role-accent) 55%, var(--line)); border-radius: 50%; color: var(--role-accent); background: color-mix(in srgb, var(--role-accent) 7%, transparent); }
.role-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.role-card small, .role-card strong, .role-card em { display: block; }
.role-card small { margin-bottom: 8px; color: var(--role-accent); font-size: 12px; font-style: normal; letter-spacing: .16em; }
.role-card strong { color: var(--paper-strong); font: 650 19px/1.45 var(--serif); }
.role-card em { margin-top: 9px; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.7; }
.access-key-form { display: grid; gap: 16px; margin-top: 8px; padding: 25px; border: 1px solid var(--line); background: var(--bg-deep); }
.access-key-form[hidden] { display: none; }
.access-back { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.access-key-form label span { display: block; margin-bottom: 8px; color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.access-key-form input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line-strong); outline: 0; background: var(--surface); color: var(--paper-strong); letter-spacing: .08em; }
.access-key-form input:focus { border-color: var(--gold); }
.access-key-form .button { width: 100%; }
.access-key-form > small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.access-error { margin: -4px 0 0; color: #d77b7f; font-size: 12px; }
.auth-shell { position: relative; max-height: min(92vh, 860px); padding: 48px; overflow-y: auto; overscroll-behavior: contain; }
.auth-shell > .dialog-close { position: absolute; top: 18px; right: 18px; margin: 0; }
.auth-shell > h2 { margin: 0; color: var(--paper-strong); font: 700 clamp(29px, 5vw, 42px)/1.35 var(--serif); letter-spacing: .04em; }
.auth-intro { margin: 15px 0 25px; color: var(--muted-strong); font: 400 12px/1.9 var(--serif); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border: 1px solid var(--line); background: var(--bg-deep); }
.auth-tabs button { min-height: 45px; padding: 0 15px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: .2s; }
.auth-tabs button:last-child { border-right: 0; }
.auth-tabs button:hover { color: var(--paper-strong); }
.auth-tabs button.active, .auth-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--gold-soft); }
.auth-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 22px; border: 1px solid var(--line); background: var(--bg-deep); }
.auth-form[hidden] { display: none; }
.auth-form label { display: block; }
.auth-form label span { display: block; margin-bottom: 7px; color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.auth-form input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); outline: 0; background: var(--surface); color: var(--paper-strong); font-size: 12px; }
.auth-form input:focus { border-color: var(--gold); }
.auth-form .button, .auth-error { grid-column: 1 / -1; }
.auth-form .button { width: 100%; margin-top: 3px; }
.auth-error { margin: -2px 0 0; color: #d77b7f; font-size: 12px; }
.auth-error[hidden] { display: none; }
.auth-footnote { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.audience-boundary { margin-bottom: 25px; padding: 14px 16px; border-left: 2px solid var(--cyan); background: color-mix(in srgb, var(--cyan) 7%, transparent); color: var(--muted-strong); font-size: 12px; line-height: 1.8; }
.audience-boundary strong { color: var(--paper-strong); font: 600 12px/1.5 var(--serif); }
.dialog-shell { position: relative; max-height: min(90vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
.dialog-close { position: sticky; z-index: 10; top: 18px; float: right; margin: 18px 18px -58px 0; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(10px); }
.dialog-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.dialog-hero { position: relative; min-height: 325px; display: grid; grid-template-columns: 1fr 280px; align-items: end; gap: 35px; overflow: hidden; padding: 50px; background: radial-gradient(circle at 80% 35%, color-mix(in srgb, var(--entry-accent) 18%, transparent), transparent 28%), var(--bg-deep); }
.dialog-hero::before { position: absolute; inset: 0; content: ""; opacity: .22; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(100deg, transparent, black); }
.dialog-heading { position: relative; z-index: 2; }
.dialog-heading .eyebrow { color: var(--entry-accent); }
.dialog-heading h2 { margin: 0; font: 700 clamp(35px, 5vw, 55px)/1.3 var(--serif); letter-spacing: .06em; color: #f6eddb; }
.dialog-heading > p { max-width: 590px; margin: 17px 0 0; color: #a9b1b7; font: 400 13px/1.9 var(--serif); }
.dialog-emblem { position: relative; z-index: 2; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--entry-accent) 42%, transparent); border-radius: 50%; color: var(--entry-accent); }
.dialog-emblem::before, .dialog-emblem::after { position: absolute; inset: 18px; border: 1px dashed color-mix(in srgb, var(--entry-accent) 35%, transparent); border-radius: 50%; content: ""; }
.dialog-emblem::after { inset: 48px; border-style: solid; border-color: color-mix(in srgb, var(--entry-accent) 22%, transparent); }
.dialog-emblem .archive-icon-svg { position: relative; z-index: 1; width: 47%; height: 47%; stroke-width: 1.45; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--entry-accent) 28%, transparent)); }
.dialog-content-body { padding: 45px 50px 55px; }
.dialog-meta { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 38px; padding: 19px 0; border-block: 1px solid var(--line); }
.dialog-meta div { padding: 0 18px; border-right: 1px solid var(--line); }
.dialog-meta div:first-child { padding-left: 0; }.dialog-meta div:last-child { border: 0; }
.dialog-meta span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.dialog-meta strong { font: 500 12px/1.4 var(--serif); color: var(--paper-strong); }
.dialog-columns { display: grid; grid-template-columns: 1.22fr .78fr; gap: 50px; }
.dialog-section + .dialog-section { margin-top: 29px; }
.dialog-section h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 16px/1.5 var(--serif); color: var(--paper-strong); }
.dialog-section h3::before { width: 16px; height: 1px; background: var(--entry-accent); content: ""; }
.dialog-section p { margin: 0; color: var(--muted-strong); font: 400 12px/1.95 var(--serif); }
.dialog-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.dialog-list li { display: flex; gap: 10px; color: var(--muted-strong); font-size: 12px; line-height: 1.7; }
.dialog-list li::before { flex: 0 0 auto; content: "✦"; color: var(--entry-accent); font-size: 12px; }
.warning-box { padding: 16px 18px; border: 1px solid rgba(183,92,84,.25); background: rgba(183,92,84,.06); }
.warning-box span { display: block; margin-bottom: 5px; color: var(--red); font-size: 12px; letter-spacing: .14em; }
.resource-list { display: grid; gap: 8px; }
.resource-link { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 55%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: .2s; }
.resource-link:disabled { cursor: wait; opacity: .65; }
.resource-link:hover { border-color: color-mix(in srgb, var(--entry-accent) 55%, var(--line)); transform: translateX(3px); }
.resource-icon { width: 28px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--entry-accent); font-size: 12px; font-weight: 600; }
.resource-link strong { display: block; color: var(--paper-strong); font: 500 12px/1.4 var(--serif); }
.resource-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.resource-link > span:last-child { color: var(--entry-accent); font-size: 12px; }
.sealed-resource-note { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed rgba(183,92,84,.3); background: rgba(183,92,84,.05); color: var(--red); }
.sealed-resource-note[hidden] { display: none; }
.sealed-resource-note > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.sealed-resource-note p { margin: 0; color: var(--muted-strong); font: 500 12px/1.6 var(--serif); }
.sealed-resource-note small { color: var(--muted); font: 400 12px/1.4 var(--sans); }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dialog-tags span { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; padding-top: 24px; border-top: 1px solid var(--line); }
.dialog-actions .button-primary { --entry-button: var(--entry-accent); border-color: var(--entry-accent); background: var(--entry-accent); }
.spoiler-seal { margin-top: 27px; border: 1px solid rgba(183,92,84,.28); }
.spoiler-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; background: rgba(183,92,84,.06); }
.spoiler-head div { color: var(--red); font-size: 12px; letter-spacing: .13em; }
.spoiler-head button { padding: 5px 9px; border: 1px solid rgba(183,92,84,.3); background: transparent; color: var(--muted-strong); font-size: 12px; cursor: pointer; }
.spoiler-content { padding: 17px 18px; border-top: 1px solid rgba(183,92,84,.2); color: var(--muted-strong); font: 400 12px/1.9 var(--serif); }
.spoiler-content[hidden] { display: none; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 27px; padding: 10px 16px; border: 1px solid var(--line-strong); background: var(--paper-strong); color: var(--bg); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-back { from { transform: rotate(38deg); } to { transform: rotate(-322deg); } }

@media (max-width: 1020px) {
  :root { --shell: min(100% - 36px, 900px); }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 10px; }
  .site-nav { position: fixed; top: 78px; left: 0; right: 0; display: grid; gap: 0; padding: 12px 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .25s; }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 13px 5px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .nav-toggle { display: grid; grid-column: 2; }
  .theme-toggle { grid-column: 3; }
  .hero { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero h1 { font-size: clamp(38px, 5vw, 54px); }
  .hero-art { min-height: 560px; }
  .systems { grid-template-columns: 1fr 1fr; }
  .system-gate:nth-child(even) { border-right: 0; }
  .system-gate:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .world-feature { grid-template-columns: 1.1fr .9fr; }
  .world-copy { padding: 38px 32px; }
  .about-card { grid-template-columns: 140px 1fr; gap: 35px; }
  .about-card .button { grid-column: 2; justify-self: start; }
  .dialog-hero { grid-template-columns: 1fr 210px; padding: 44px 38px; }
  .dialog-content-body { padding: 38px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { height: 70px; }
  .brand strong { font-size: 14px; }.brand small { font-size: 12px; }
  .site-nav { top: 70px; }
  .hero { min-height: auto; grid-template-columns: 1fr; overflow: hidden; padding: 70px 0 50px; }
  .hero h1 { font-size: clamp(35px, 9.5vw, 46px); }
  .hero-lead { font-size: 14px; }
  .hero-art { min-height: 540px; margin-top: 15px; }
  .hero-stats div { min-width: 0; flex: 1; padding-right: 15px; margin-right: 15px; }
  .hero-stats dd { font-size: 12px; }
  .orbit-outer { max-width: 110%; }.orbit-inner { max-width: 94%; }
  .systems { width: 100%; grid-template-columns: 1fr 1fr; }
  .system-gate { min-height: 90px; padding: 14px; gap: 10px; }
  .gate-icon { width: 32px; height: 32px; }.system-gate i { display: none; }
  .archive-section { padding: 90px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 34px; }
  .section-heading > p { font-size: 12px; }
  .archive-toolbar { grid-template-columns: 1fr auto; }
  .search-box { grid-column: 1 / -1; }
  .select-box { width: auto; }
  .filter-row { min-width: 0; align-items: start; flex-direction: column; margin-bottom: 27px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { min-height: 404px; }
  .archive-grid.list-mode .archive-card { min-height: 360px; display: flex; }
  .archive-grid.list-mode .card-cover { height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
  .archive-grid.list-mode .card-body { display: flex; padding: 20px; }
  .archive-grid.list-mode .card-bottom { min-width: 0; align-self: auto; align-items: center; flex-direction: row; }
  .archive-grid.single-module-grid .archive-card { min-height: 430px; display: flex; }
  .archive-grid.single-module-grid .card-cover { height: 190px; min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .archive-grid.single-module-grid .card-body { padding: 25px 23px; }
  .archive-grid.single-module-grid .card-body h3 { font-size: 27px; }
  .archive-grid.single-module-grid .card-summary { margin-block: 11px 18px; font-size: 12px; }
  .world-section { padding-bottom: 95px; }
  .world-feature { grid-template-columns: 1fr; }
  .world-map { min-height: 410px; border-right: 0; border-bottom: 1px solid var(--line); }
  .world-copy { padding: 37px 26px 43px; }
  .notes-section { padding: 85px 0; }
  .notes-grid { grid-template-columns: 1fr; gap: 45px; }
  .note-list article { grid-template-columns: 70px 1fr auto; gap: 10px; }
  .about-section { padding: 90px 0; }
  .about-card { grid-template-columns: 1fr; gap: 30px; padding: 35px 27px; }
  .about-mark { width: 135px; }
  .about-card .button { grid-column: 1; }
  .founder-statement { padding-left: 15px; }
  .footer-main { grid-template-columns: 1fr auto; padding: 28px 0; }
  .footer-main nav { grid-column: 1 / -1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
  .dialog-hero { min-height: 0; grid-template-columns: 1fr; padding: 65px 24px 32px; }
  .dialog-emblem { width: 140px; grid-row: 1; }
  .dialog-emblem .archive-icon-svg { width: 52%; height: 52%; stroke-width: 1.55; }
  .dialog-heading { grid-row: 2; }
  .dialog-content-body { padding: 29px 24px 38px; }
  .dialog-meta { grid-template-columns: repeat(2, 1fr); }
  .dialog-meta div { padding: 11px 12px; border-bottom: 1px solid var(--line); }
  .dialog-meta div:first-child { padding-left: 12px; }
  .dialog-meta div:nth-child(2n) { border-right: 0; }
  .dialog-meta div:last-child { border-bottom: 0; }
  .dialog-columns { grid-template-columns: 1fr; gap: 31px; }
  .audience-button span { display: none; }
  .audience-button { width: 40px; justify-content: center; padding: 0; }
  .account-button { width: 40px; justify-content: center; padding: 0; }
  .account-button span, .profile-copy { display: none; }
  .profile-link { width: 40px; justify-content: center; padding: 3px; }
  .access-shell { padding: 55px 22px 28px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 155px; grid-template-columns: 58px 1fr; padding: 19px; }
  .role-icon { width: 58px; height: 58px; }.role-icon svg { width: 34px; height: 34px; }
  .auth-shell { padding: 55px 22px 28px; }
  .auth-form { grid-template-columns: 1fr; padding: 19px; }
  .auth-form .button, .auth-error { grid-column: 1; }
}

@media (max-width: 440px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-stats { margin-top: 40px; }
  .hero-stats dt { font-size: 18px; }
  .hero-art { min-height: 490px; }
  .feature-dossier { width: 84%; }
  .dossier-title h2 { font-size: 34px; }
  .systems { grid-template-columns: 1fr; }
  .system-gate { border-right: 0; border-bottom: 1px solid var(--line); }
  .system-gate:nth-child(3) { border-bottom: 1px solid var(--line); }
  .system-gate:last-child { border-bottom: 0; }
  .header-tools { gap: 5px; }
  .theme-toggle { display: none; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand small { display: none; }
  .brand strong { font-size: 12px; }
  .hero-art { width: calc(100% + 28px); margin-left: -14px; overflow: hidden; }
  .filter-chips { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 5px; }
  .filter-chips button { white-space: nowrap; }
  .note-list article { grid-template-columns: 1fr auto; }
  .note-list time { grid-column: 1 / -1; }
  .footer-main { grid-template-columns: 1fr; }
  .back-top { grid-column: 1; grid-row: 3; justify-self: start; }
  .footer-main nav { flex-wrap: wrap; }
  .footer-meta { align-items: start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* v3.2 illustrated author-edition upgrade */
.button-keeper, .button-console {
  border-color: rgba(190, 86, 82, .62);
  background: linear-gradient(135deg, rgba(132,48,50,.28), rgba(20,27,38,.78));
  color: #f0d9d0;
}
.button-keeper:hover, .button-console:hover { border-color: var(--red); background: rgba(132,48,50,.3); color: var(--paper-strong); }
.hero-art { overflow: hidden; border: 1px solid var(--line); background: var(--bg-deep); }
.hero-key-art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; filter: saturate(.78) brightness(.72); }
.hero-art::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, rgba(6,10,16,.88), rgba(6,10,16,.04) 54%), linear-gradient(90deg, rgba(6,10,16,.2), transparent); content: ""; pointer-events: none; }
.hero-art .star-map, .hero-art .orbit, .hero-art .feature-dossier, .hero-art .art-caption { z-index: 3; }
.hero-art .star-map { opacity: .58; }
.hero-art .orbit { opacity: .45; }
.feature-dossier { width: min(306px, 70%); margin: 70px 0 0 120px; aspect-ratio: .76; background: linear-gradient(145deg, rgba(30,42,55,.78), rgba(9,14,22,.9)); backdrop-filter: blur(9px); }
.dossier-sigil { opacity: .58; }

.keeper-showcase { min-height: 560px; display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; margin-top: 34px; margin-bottom: 135px; border: 1px solid var(--line); background: var(--surface); }
.keeper-showcase-art { position: relative; min-height: 560px; overflow: hidden; }
.keeper-showcase-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) brightness(.76); transition: .5s; }
.keeper-showcase:hover .keeper-showcase-art img { transform: scale(1.025); filter: saturate(.94) brightness(.83); }
.keeper-showcase-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, var(--surface)), linear-gradient(0deg, rgba(7,11,18,.6), transparent 45%); content: ""; }
.keeper-showcase-art > span { position: absolute; z-index: 2; left: 24px; bottom: 23px; padding: 7px 10px; border: 1px solid rgba(190,86,82,.5); background: rgba(7,11,18,.72); color: #dc8c87; font-size: 12px; letter-spacing: .18em; }
.keeper-showcase-copy { align-self: center; padding: clamp(38px, 5vw, 70px) clamp(30px, 5vw, 65px) clamp(38px, 5vw, 70px) 20px; }
.keeper-showcase-copy h2 { margin: 0; color: var(--paper-strong); font: 650 clamp(34px, 4vw, 49px)/1.4 var(--serif); letter-spacing: .04em; }
.keeper-showcase-copy h2 em { color: var(--gold-soft); font-style: normal; }
.keeper-showcase-copy > p:not(.eyebrow) { margin: 23px 0 0; color: var(--muted-strong); font: 400 13px/2 var(--serif); }
.keeper-feature-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; border-block: 1px solid var(--line); }
.keeper-feature-list span { padding: 17px 10px; border-right: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.keeper-feature-list span:last-child { border-right: 0; }
.keeper-feature-list strong { display: block; margin-bottom: 6px; color: var(--gold); font: 600 22px/1 var(--serif); }
.keeper-showcase-copy .hero-actions { margin-top: 24px; }
.keeper-showcase-copy > small { display: block; margin-top: 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.direct-module-launch { display: grid; gap: 10px; margin-top: 26px; }
.direct-module-launch label { color: var(--muted); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.direct-module-launch select { width: 100%; min-height: 46px; padding: 0 42px 0 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg-deep); color: var(--paper-strong); font: 500 12px/1.4 var(--serif); }
.direct-module-launch .button { width: 100%; justify-content: center; }

.world-map-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) brightness(.68); }
.world-map > svg { position: relative; z-index: 1; mix-blend-mode: screen; opacity: .22; }
.world-map .map-label, .world-map .map-coordinates { z-index: 3; }
.world-map::before { position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, transparent 70%, rgba(7,11,18,.22)); content: ""; }
.dialog-actions .button-console { order: -1; }

@media (max-width: 980px) {
  .keeper-showcase { grid-template-columns: 1fr; }
  .keeper-showcase-art { min-height: 430px; }
  .keeper-showcase-art::after { background: linear-gradient(0deg, var(--surface), transparent 42%); }
  .keeper-showcase-copy { padding: 20px 34px 48px; }
  .feature-dossier { margin-left: 64px; }
}

@media (max-width: 680px) {
  .hero-art { min-height: 520px; }
  .feature-dossier { width: 68%; margin: 54px 0 0 22%; }
  .keeper-showcase { margin-bottom: 90px; }
  .keeper-showcase-art { min-height: 330px; }
  .keeper-showcase-copy { padding: 10px 22px 34px; }
  .keeper-feature-list span { padding-inline: 4px; }
  .keeper-showcase-copy .hero-actions { flex-direction: column; }
  .keeper-showcase-copy .button { width: 100%; }
}

/* vNext public entry hierarchy */
.hero-primary-action { min-width: 190px; }
.home-page .hero-lead { font-size: 1rem; }
.role-paths { margin-top: 12px; margin-bottom: clamp(74px, 10vw, 132px); }
.role-paths-heading { display: grid; grid-template-columns: 1fr minmax(280px, 510px); align-items: end; gap: 20px 44px; margin-bottom: 26px; }
.role-paths-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -5px; }
.role-paths-heading h2 { margin: 0; color: var(--paper-strong); font: 650 clamp(30px, 3.6vw, 45px)/1.35 var(--serif); letter-spacing: .04em; }
.role-paths-heading > p:last-child { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.9; text-align: right; }
.role-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 68%, transparent); }
.role-path-card { --role-accent: var(--gold); position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: start; gap: 16px; min-height: 190px; padding: 27px 25px; border-right: 1px solid var(--line); transition: background-color .2s, border-color .2s, transform .2s; }
.role-path-card:last-child { border-right: 0; }
.role-path-card:hover { z-index: 1; background: color-mix(in srgb, var(--role-accent) 8%, var(--surface)); transform: translateY(-3px); }
.role-path-player { --role-accent: var(--cyan); }
.role-path-host { --role-accent: var(--gold); }
.role-path-creator { --role-accent: #c77d76; }
.role-path-mark { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid color-mix(in srgb, var(--role-accent) 65%, transparent); border-radius: 50%; color: var(--role-accent); font: 600 1rem/1 var(--serif); }
.role-path-card small, .role-path-card strong, .role-path-card em { display: block; }
.role-path-card small { color: var(--role-accent); font-size: .75rem; font-style: normal; letter-spacing: .1em; }
.role-path-card strong { margin-top: 7px; color: var(--paper-strong); font: 650 1.125rem/1.4 var(--serif); }
.role-path-card em { margin-top: 9px; color: var(--muted); font-size: .8125rem; font-style: normal; line-height: 1.75; }
.role-path-card > b { color: var(--role-accent); font-size: 1rem; font-weight: 500; }

/* Preserve the archive typography while meeting the shared reading floor. */
.home-page .brand small,
.home-page .dossier-topline,
.home-page .dossier-title p,
.home-page .dossier-footer,
.home-page .card-number,
.home-page .card-stamp,
.home-page .card-type,
.home-page .card-meta,
.home-page .card-tags span,
.home-page .world-number,
.home-page .world-kicker,
.home-page .world-facts span,
.home-page .keeper-showcase-art > span,
.home-page .keeper-feature-list span,
.home-page .keeper-showcase-copy > small,
.home-page .direct-module-launch label,
.home-page .footer-meta { font-size: .75rem; }
.home-page .hero-stats dd,
.home-page .system-gate strong,
.home-page .card-summary,
.home-page .note-list p { font-size: .875rem; }
.home-page .dossier-footer button,
.home-page .card-open,
.home-page .text-link { min-height: 44px; font-size: .8125rem; }

@media (max-width: 900px) {
  .role-paths-heading { grid-template-columns: 1fr; }
  .role-paths-heading > p:last-child { text-align: left; }
  .role-path-grid { grid-template-columns: 1fr; }
  .role-path-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .role-path-card:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .role-path-card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 13px; padding: 22px 18px; }
  .role-path-mark { width: 44px; height: 44px; }
}
