:root {
  color-scheme: dark;
  --bg: #090a0c;
  --bg-soft: #111216;
  --ink: #f1eee7;
  --muted: #aaa7a0;
  --accent: #d6ae63;
  --accent-2: #852d28;
  --line: rgba(233, 224, 205, 0.2);
  --panel: rgba(10, 11, 13, 0.7);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  --ease: cubic-bezier(.22,.8,.24,1);
}

html[data-theme="stellar"] {
  --bg: #02060f;
  --bg-soft: #07101d;
  --ink: #eef6ff;
  --muted: #94a9c5;
  --accent: #79bfff;
  --accent-2: #ff6b2d;
  --line: rgba(129, 197, 255, 0.24);
  --panel: rgba(3, 12, 26, 0.72);
  --serif: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

html[data-theme="gothic"] {
  --bg: #080707;
  --bg-soft: #130e0f;
  --ink: #f0ebe5;
  --muted: #aca19b;
  --accent: #d7d0c8;
  --accent-2: #811c2d;
  --line: rgba(223, 214, 205, 0.2);
  --panel: rgba(13, 9, 10, 0.75);
  --serif: "Times New Roman", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
.home-root { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); transition: background .7s var(--ease), color .7s var(--ease); }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 999; left: 20px; top: -60px; padding: 12px 18px; background: var(--ink); color: var(--bg); transition: top .2s; }
.skip-link:focus { top: 20px; }

.lab-header { height: 68px; position: fixed; z-index: 100; inset: 0 0 auto; display: grid; grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr); align-items: center; padding: 0 26px; background: rgba(6, 7, 9, 0.8); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.lab-brand { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; font-weight: 700; }
.lab-mark { width: 16px; height: 16px; border: 1px solid var(--accent); transform: rotate(45deg); transition: border-color .5s; }
.theme-tabs { display: flex; height: 100%; }
.theme-tab { min-width: 168px; padding: 0 22px; border: 0; border-left: 1px solid rgba(255,255,255,.1); background: transparent; display: flex; align-items: center; gap: 12px; cursor: pointer; opacity: .55; position: relative; transition: opacity .25s, background .25s; }
.theme-tab:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.theme-tab::after { content: ""; position: absolute; inset: auto 16px 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease), background .5s; }
.theme-tab:hover { opacity: .85; background: rgba(255,255,255,.04); }
.theme-tab.is-active { opacity: 1; }
.theme-tab.is-active::after { transform: scaleX(1); }
.tab-index { color: var(--accent); font: 11px/1 var(--sans); }
.tab-name { font-size: 13px; white-space: nowrap; }
.compare-button { justify-self: end; border: 0; background: transparent; cursor: pointer; display: flex; gap: 16px; font-size: 13px; }

.hero { min-height: 100svh; position: relative; overflow: hidden; isolation: isolate; padding-top: 68px; }
.hero-media, .hero-image, .hero-vignette, .hero-grain, .scan-lines { position: absolute; inset: 0; }
.hero-media { z-index: -1; background: #050607; }
.hero-image { background-position: center; background-size: cover; opacity: 0; transform: scale(1.06); transition: opacity .85s var(--ease), transform 1.4s var(--ease); }
.theme-image--oriental { background-image: url('https://cdns3.adbog.com/image/20260921/d4b6ee3799c231fb96ab1078dd80c9a1.jpg'), url('./assets/eastern-fantasy.jpg'); }
.theme-image--stellar { background-image: url('https://cdns3.adbog.com/image/20260921/da9fc58910d87690836c5fe9231a088b.jpg'), url('./assets/stellar-future.jpg'); }
.theme-image--gothic { background-image: url('https://cdns3.adbog.com/image/20260921/84940d5368db6fcf7de3abed4c72b058.jpg'), url('./assets/gothic-epic.jpg'); }
html[data-theme="oriental"] .theme-image--oriental,
html[data-theme="stellar"] .theme-image--stellar,
html[data-theme="gothic"] .theme-image--gothic { opacity: 1; transform: scale(1); }
.hero-vignette { background: linear-gradient(90deg, rgba(4,5,7,.95) 0%, rgba(4,5,7,.72) 25%, transparent 56%), linear-gradient(0deg, rgba(4,5,7,.9) 0%, transparent 36%), linear-gradient(180deg, rgba(4,5,7,.35), transparent 26%); }
html[data-theme="stellar"] .hero-vignette { background: linear-gradient(90deg, rgba(1,5,13,.88) 0%, rgba(1,5,13,.35) 37%, transparent 62%), linear-gradient(0deg, rgba(1,5,13,.9), transparent 34%), linear-gradient(180deg, rgba(1,5,13,.48), transparent 26%); }
html[data-theme="gothic"] .hero-vignette { background: linear-gradient(90deg, rgba(7,5,6,.35), transparent 45%), linear-gradient(270deg, rgba(7,5,6,.94) 0%, rgba(7,5,6,.64) 28%, transparent 58%), linear-gradient(0deg, rgba(7,5,6,.92), transparent 38%); }
.hero-grain { opacity: .22; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }
.scan-lines { opacity: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(116,193,255,.035) 5px); transition: opacity .5s; }
html[data-theme="stellar"] .scan-lines { opacity: 1; }

.game-nav { height: 88px; margin: 0 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.game-logo { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.logo-symbol { width: 28px; height: 28px; border: 1px solid var(--accent); border-radius: 50%; position: relative; transition: all .6s; }
.logo-symbol::before, .logo-symbol::after { content: ""; position: absolute; background: var(--accent); }
.logo-symbol::before { width: 1px; height: 38px; left: 13px; top: -6px; transform: rotate(38deg); }
.logo-symbol::after { height: 1px; width: 38px; left: -6px; top: 13px; transform: rotate(-18deg); }
html[data-theme="stellar"] .logo-symbol { border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 18px rgba(121,191,255,.5); }
html[data-theme="gothic"] .logo-symbol { border-radius: 50% 50% 4px 4px; transform: rotate(180deg); }
.logo-type { font: 700 22px/1 var(--serif); letter-spacing: .16em; }
.nav-links { display: flex; gap: 36px; font-size: 14px; color: rgba(255,255,255,.72); }
.nav-links a { position: relative; padding: 10px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--accent); transition: right .25s; }
.nav-links a:hover::after { right: 0; }
.nav-cta { justify-self: end; min-width: 126px; height: 42px; padding: 0 20px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); cursor: pointer; letter-spacing: .12em; font-size: 13px; transition: background .25s, color .25s, transform .25s; }
.nav-cta:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }

.hero-grid { min-height: calc(100svh - 156px); display: grid; grid-template-columns: 1fr 260px; align-items: center; padding: 60px 7vw 110px; }
.hero-copy { max-width: 680px; }
html[data-theme="gothic"] .hero-copy { margin-left: auto; margin-right: 2vw; max-width: 620px; text-align: right; }
.eyebrow { display: flex; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .24em; color: var(--accent); text-transform: uppercase; margin-bottom: 28px; }
html[data-theme="gothic"] .eyebrow { justify-content: flex-end; }
.eyebrow-line { width: 46px; height: 1px; background: currentColor; }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.title-kicker { display: block; font-size: clamp(44px, 5.6vw, 90px); opacity: .82; }
.title-main { display: block; font-size: clamp(76px, 10.5vw, 168px); color: var(--ink); text-shadow: 0 12px 60px rgba(0,0,0,.38); }
html[data-theme="stellar"] h1 { font-weight: 800; letter-spacing: -.07em; text-transform: uppercase; }
html[data-theme="stellar"] .title-main { -webkit-text-stroke: 1px rgba(255,255,255,.28); text-shadow: 0 0 28px rgba(81,170,255,.2); }
html[data-theme="gothic"] h1 { letter-spacing: -.02em; }
.hero-lede { max-width: 520px; margin: 32px 0 34px; color: rgba(255,255,255,.76); font: 17px/1.9 var(--sans); letter-spacing: .05em; }
html[data-theme="gothic"] .hero-lede { margin-left: auto; }
.hero-actions { display: flex; align-items: center; gap: 14px; }
html[data-theme="gothic"] .hero-actions { justify-content: flex-end; }
.primary-action, .secondary-action { height: 54px; padding: 0 24px; cursor: pointer; letter-spacing: .08em; transition: all .25s; }
.primary-action { min-width: 190px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); }
.primary-action:hover { box-shadow: 0 10px 36px color-mix(in srgb, var(--accent) 28%, transparent); transform: translateY(-3px); }
.action-icon { font-size: 15px; margin-right: 11px; }
.secondary-action { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(0,0,0,.22); backdrop-filter: blur(6px); }
.secondary-action span:last-child { margin-left: 18px; color: var(--accent); }
.secondary-action:hover { border-color: var(--accent); }
.quick-download-dialog { width: min(700px, calc(100vw - 32px)); max-width: none; max-height: min(90svh, 760px); padding: 0; border: 1px solid rgba(214,174,99,.58); background: #111315; color: #f1eee7; overflow: auto; box-shadow: 0 28px 100px rgba(0,0,0,.65); }
.quick-download-dialog::backdrop { background: rgba(4,5,7,.72); backdrop-filter: blur(5px); }
.quick-download-frame { position: relative; padding: clamp(28px, 4.5vw, 46px); background: radial-gradient(circle at 90% 5%, rgba(214,174,99,.13), transparent 46%), #111315; }
.quick-download-close { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border: 1px solid rgba(214,174,99,.35); background: transparent; color: #eee3cf; font-size: 25px; line-height: 1; cursor: pointer; }
.quick-download-close:hover { border-color: var(--accent); color: var(--accent); }
.quick-download-kicker { margin: 0 46px 12px 0; color: var(--accent); font-size: 11px; letter-spacing: .18em; }
.quick-download-frame h2 { margin: 0; font: 500 clamp(36px, 4.8vw, 56px)/1.15 var(--serif); }
.quick-download-frame h2 em { color: var(--accent); font-style: normal; }
.quick-feature-card, .quick-feature-empty { margin-top: 28px; padding: clamp(24px, 3vw, 34px); border: 1px solid rgba(214,174,99,.38); background: linear-gradient(135deg, rgba(214,174,99,.12), transparent 55%), #1b1d1e; }
.quick-feature-top { display: flex; justify-content: space-between; gap: 14px; color: var(--accent); font-size: 11px; letter-spacing: .13em; }
.quick-feature-top small { color: #89877f; font-size: 10px; }
.quick-feature-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 22px; margin-top: 27px; }
.quick-feature-card h3, .quick-feature-empty h3 { margin: 0; color: #fff5df; font: 500 clamp(34px, 4vw, 48px)/1.2 var(--serif); overflow-wrap: anywhere; }
.quick-feature-main p { padding-left: 23px; border-left: 1px solid rgba(214,174,99,.3); }
.quick-feature-card p, .quick-feature-empty p { margin: 0; color: #c2bbaf; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.quick-feature-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(214,174,99,.22); }
.quick-feature-bottom > a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; padding: 12px 24px; background: var(--accent); color: #111315; font-size: 18px; letter-spacing: .1em; white-space: nowrap; }
.quick-feature-bottom > a:hover { background: #f0cf8c; }
.quick-feature-empty > span { color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.quick-feature-empty h3 { margin: 22px 0 10px; }
.quick-download-all { display: inline-flex; gap: 22px; align-items: center; margin-top: 25px; color: var(--accent); font-size: 13px; }
.quick-download-all:hover { color: #f0cf8c; }
@media (max-width: 680px) {
  .quick-download-dialog { width: calc(100vw - 20px); max-height: 94svh; }
  .quick-download-frame { padding: 27px 20px; }
  .quick-feature-main { grid-template-columns: 1fr; gap: 15px; }
  .quick-feature-main p { padding: 15px 0 0; border-left: 0; border-top: 1px solid rgba(214,174,99,.3); }
}
.platforms { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.5); }
html[data-theme="gothic"] .platforms { justify-content: flex-end; }
.platforms i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.hero-aside { align-self: center; justify-self: end; width: 170px; display: grid; justify-items: end; text-align: right; }
html[data-theme="gothic"] .hero-aside { justify-self: start; text-align: left; justify-items: start; order: -1; }
.aside-number { color: var(--accent); font: 54px/1 var(--serif); opacity: .82; }
.aside-rule { height: 84px; width: 1px; background: var(--line); margin: 18px 12px; }
.hero-aside p { margin: 0; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.9; }
.hero-footer { position: absolute; left: 42px; right: 42px; bottom: 0; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.47); }
.status-pulse { display: flex; align-items: center; gap: 12px; }
.status-pulse span:first-child { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); animation: pulse 2.3s infinite; }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue b { display: block; width: 42px; height: 1px; background: var(--accent); position: relative; overflow: hidden; }
.scroll-cue b::after { content: ""; position: absolute; width: 12px; inset: 0 auto 0 -12px; background: white; animation: scan 2.5s infinite; }
.hero-coordinates { justify-self: end; }

.design-section { min-height: 100vh; padding: 130px 6vw 150px; background: var(--bg); position: relative; overflow: hidden; }
.design-section::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: 160px; border: 1px solid var(--line); border-radius: 50%; opacity: .45; }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5vw; align-items: end; margin-bottom: 70px; }
.section-kicker { color: var(--accent); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.section-heading .section-kicker { grid-column: 1 / -1; margin: 0; }
.section-heading h2, .choice-section h2, .compare-drawer h2 { margin: 0; font: 500 clamp(48px, 6vw, 96px)/1.06 var(--serif); letter-spacing: -.04em; }
.section-heading h2 em { color: var(--accent); font-style: normal; }
.section-heading > p:last-child { max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.design-cards { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 16px; }
.design-card { min-height: 440px; border: 1px solid var(--line); background: linear-gradient(155deg, color-mix(in srgb, var(--ink) 5%, transparent), transparent 55%); padding: 26px; position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.design-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 75%, transparent); }
.card-label { font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.design-card h3 { position: absolute; left: 26px; bottom: 74px; margin: 0; font: 500 24px/1.2 var(--serif); }
.design-card > p { position: absolute; left: 26px; right: 26px; bottom: 18px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-art--type { display: grid; place-items: center; height: 280px; }
.card-art--type span { font: 190px/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--accent); opacity: .62; }
html[data-theme="stellar"] .card-art--type span { font-family: Arial Black, sans-serif; transform: skewX(-9deg); text-shadow: 14px 14px 0 rgba(121,191,255,.07); }
html[data-theme="gothic"] .card-art--type span { font-family: "Times New Roman", serif; }
.palette { height: 280px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.palette i { width: 32px; height: 190px; background: var(--bg); border: 1px solid var(--line); transform: translateY(12px); }
.palette i:nth-child(2) { height: 238px; background: var(--ink); transform: translateY(-8px); }
.palette i:nth-child(3) { height: 154px; background: var(--accent); transform: translateY(28px); }
.palette i:nth-child(4) { height: 112px; background: var(--accent-2); transform: translateY(-38px); }
.motion-orbit { height: 280px; position: relative; display: grid; place-items: center; }
.motion-orbit::before, .motion-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.motion-orbit::before { width: 180px; height: 180px; }
.motion-orbit::after { width: 110px; height: 110px; }
.motion-orbit i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent); animation: orbit 8s linear infinite; }
.motion-orbit b { position: absolute; width: 2px; height: 120px; background: linear-gradient(var(--accent), transparent); transform-origin: bottom; animation: sweep 5s linear infinite; }

.choice-section { min-height: 70vh; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: center; padding: 100px 7vw; background: radial-gradient(circle at 80% 40%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 36%), var(--bg-soft); }
.choice-section > div p { margin-bottom: 24px; }
.choice-section > p { color: var(--muted); line-height: 1.9; font-size: 16px; max-width: 520px; }
.choice-action { grid-column: 2; width: 100%; height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--accent); background: transparent; cursor: pointer; font-size: 16px; transition: background .25s, color .25s; }
.choice-action:hover { background: var(--accent); color: var(--bg); }

/* Character roster */
.characters-section { min-height: 100vh; padding: 128px 5vw 110px; background: radial-gradient(circle at 50% 0%, rgba(214,174,99,.09), transparent 38%), linear-gradient(180deg, #0a0b0d, #101012); position: relative; overflow: hidden; }
.characters-section::before { content: "三族"; position: absolute; right: -2vw; top: 76px; color: transparent; -webkit-text-stroke: 1px rgba(214,174,99,.08); font: 260px/.8 var(--serif); letter-spacing: -.08em; pointer-events: none; }
.characters-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: end; max-width: 1480px; margin: 0 auto 58px; position: relative; z-index: 2; }
.characters-heading h2, .lore-heading h2 { margin: 18px 0 0; font: 500 clamp(54px, 6.8vw, 108px)/.98 var(--serif); letter-spacing: -.05em; }
.characters-heading h2 em, .lore-heading h2 em { color: var(--accent); font-style: normal; }
.characters-heading > p { max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.9; margin: 0 0 8px; }
.character-roster { display: flex; gap: 12px; height: min(64vw, 690px); min-height: 570px; max-width: 1540px; margin: 0 auto; }
.character-card { appearance: none; flex: .82 1 0; min-width: 0; padding: 0; border: 1px solid var(--line); background: #101113; position: relative; overflow: hidden; text-align: left; cursor: pointer; transition: flex .75s var(--ease), border-color .35s, transform .35s; }
.character-card::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .35s; pointer-events: none; }
.character-card:hover { transform: translateY(-7px); border-color: rgba(214,174,99,.48); }
.character-card.is-active { flex: 1.55 1 0; border-color: var(--accent); }
.character-card.is-active::after { inset: 10px; border-color: rgba(214,174,99,.42); }
.character-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.72) contrast(1.03) brightness(.82); transform: scale(1.04); transition: filter .65s, transform 1s var(--ease); }
.character-card:hover img, .character-card.is-active img { filter: saturate(.92) contrast(1.02) brightness(.96); transform: scale(1); }
.character-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,9,.04) 30%, rgba(7,8,9,.28) 58%, rgba(7,8,9,.97) 96%), linear-gradient(90deg, rgba(7,8,9,.32), transparent 45%); }
.character-index { position: absolute; top: 24px; left: 24px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: rgba(255,255,255,.7); font: 11px/1 var(--sans); letter-spacing: .08em; }
.character-meta { position: absolute; left: 26px; right: 26px; bottom: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.character-meta small { color: var(--accent); font-size: 11px; letter-spacing: .18em; margin-bottom: 10px; white-space: nowrap; }
.character-meta strong { font: 500 clamp(30px, 3vw, 50px)/1.05 var(--serif); white-space: nowrap; }
.character-meta i { color: rgba(255,255,255,.6); font: normal 14px/1.5 var(--sans); margin-top: 11px; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; white-space: nowrap; }
.character-card.is-active .character-meta i, .character-card:hover .character-meta i { opacity: 1; transform: none; }
.roster-hint { max-width: 1540px; margin: 25px auto 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .12em; }
.roster-hint b { width: 46px; height: 1px; background: var(--accent); }

.character-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(34px, 5vw, 86px); max-width: 1540px; margin: 0 auto; align-items: start; }
.character-rail { padding-top: 22px; border-top: 1px solid var(--line); }
.character-rail > p { color: var(--accent); font-size: 11px; letter-spacing: .16em; margin: 0 0 26px; }
.character-rail > p span { color: var(--muted); letter-spacing: .06em; }
.character-rail > button { width: 100%; min-height: 80px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 7px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: color .25s, padding-left .25s, border-color .25s; }
.character-rail > button:hover, .character-rail > button.is-active { color: var(--ink); padding-left: 7px; border-color: var(--accent); }
.character-rail > button span { color: var(--accent); font: 12px/1 var(--sans); }
.character-rail > button strong { font: 500 21px/1 var(--serif); }
.character-rail > button small { font-size: 12px; }
.rail-footer { display: flex; justify-content: space-between; margin-top: 32px; color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.rail-footer b { color: var(--accent); font: 18px/1 var(--sans); }
.character-profiles { min-width: 0; }
.character-profile { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(30px, 5vw, 90px); align-items: center; padding: 24px 0; min-height: 670px; border-top: 1px solid var(--line); animation: profile-in .45s var(--ease) both; }
.character-profile[hidden] { display: none !important; }
.profile-art { height: clamp(500px, 48vw, 720px); min-width: 0; position: relative; overflow: hidden; border: 1px solid rgba(214,174,99,.32); background: #171717; }
.profile-art::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(214,174,99,.25); pointer-events: none; }
.profile-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.78) contrast(1.04); }
.profile-art-index { position: absolute; left: 28px; bottom: 24px; color: white; font-size: 12px; letter-spacing: .2em; text-shadow: 0 2px 8px #000; }
.profile-copy { max-width: 560px; }
.profile-kicker { color: var(--accent); font-size: 12px; letter-spacing: .22em; margin: 0 0 22px; }
.profile-copy h3 { font: 500 clamp(58px, 6vw, 104px)/1.05 var(--serif); letter-spacing: -.045em; margin: 0 0 25px; }
.profile-weapon { display: flex; align-items: baseline; gap: 20px; padding: 0 0 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.profile-weapon strong { color: var(--accent); font: 500 28px/1.2 var(--serif); }
.profile-copy > p:not(.profile-kicker):not(.profile-weapon) { color: #c1bdb4; font-size: 16px; line-height: 2; margin: 0 0 18px; }
@keyframes profile-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* World chronicle */
.lore-section { min-height: 100vh; padding: 150px 7vw 170px; background: #e7e0d2; color: #191815; position: relative; overflow: hidden; }
.lore-section .section-kicker { color: #8b2220; }
.lore-section::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"); mix-blend-mode: multiply; pointer-events: none; }
.lore-section::after { content: "NANPAN"; position: absolute; top: 56px; right: -28px; color: transparent; -webkit-text-stroke: 1px rgba(54,45,36,.1); font: 700 clamp(100px, 18vw, 290px)/1 Georgia, serif; letter-spacing: -.08em; pointer-events: none; }
.lore-heading { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: end; max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }
.lore-heading .section-kicker { grid-column: 1 / -1; margin: 0; }
.lore-heading h2 { max-width: 850px; }
.lore-date { width: 210px; padding: 24px 0 8px; border-top: 1px solid rgba(25,24,21,.5); display: grid; }
.lore-date small { font-size: 12px; letter-spacing: .16em; color: #766e62; }
.lore-date strong { font: 500 62px/1.08 Georgia, serif; letter-spacing: -.06em; color: #8b2220; }
.lore-date span { font: 16px/1.5 var(--serif); }
.lore-section blockquote { max-width: 1320px; margin: 90px auto 120px; padding: 52px 7vw; border-top: 1px solid rgba(25,24,21,.4); border-bottom: 1px solid rgba(25,24,21,.4); position: relative; z-index: 2; text-align: center; font: 500 clamp(26px, 3.2vw, 48px)/1.65 var(--serif); letter-spacing: .02em; }
.lore-section blockquote > span { position: absolute; left: 1.2vw; top: 26px; color: #8b2220; font: 90px/1 Georgia, serif; opacity: .4; }
.lore-section blockquote em { color: #8b2220; font-style: normal; }
.chronicle { max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }
.chronicle::before { content: ""; position: absolute; left: 43px; top: 38px; bottom: 70px; width: 1px; background: rgba(25,24,21,.25); }
.chronicle-entry { display: grid; grid-template-columns: 86px 330px 1fr; gap: 34px; align-items: start; padding: 0 0 88px; }
.chronicle-mark { width: 86px; display: grid; justify-items: center; position: relative; }
.chronicle-mark span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e7e0d2; border: 1px solid #8b2220; color: #8b2220; font: 18px/1 var(--serif); position: relative; z-index: 1; }
.chronicle-mark i { width: 7px; height: 7px; background: #8b2220; border-radius: 50%; margin-top: 15px; }
.chronicle-label { margin: 0 0 12px; color: #8b2220; font-size: 10px; letter-spacing: .18em; }
.chronicle-entry h3 { margin: 0; font: 500 31px/1.3 var(--serif); }
.chronicle-entry > p { margin: 0; color: #4f4a43; font-size: 16px; line-height: 2; text-align: justify; }
.chronicle-entry--year .chronicle-mark span { background: #8b2220; color: #f3eadb; }
.chronicle-entry--final { padding-bottom: 0; }
.chronicle-entry--final h3 { color: #8b2220; }
.lore-sigil { position: absolute; right: 5vw; top: 40%; width: 420px; height: 420px; opacity: .06; transform: rotate(22.5deg); }
.lore-sigil span { position: absolute; inset: 0; display: grid; place-items: center; font: 260px/1 var(--serif); transform: rotate(-22.5deg); }
.lore-sigil::before, .lore-sigil::after, .lore-sigil i { content: ""; position: absolute; inset: 20px; border: 1px solid #191815; }
.lore-sigil::after { transform: rotate(45deg); }
.lore-sigil i:nth-of-type(1) { transform: rotate(22.5deg); }
.lore-sigil i:nth-of-type(2) { transform: rotate(67.5deg); }
.lore-sigil i:nth-of-type(3) { inset: 85px; border-radius: 50%; }
.lore-sigil i:nth-of-type(4) { inset: 150px; border-radius: 50%; background: #8b2220; }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 34px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 14px 22px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: 0 14px 50px rgba(0,0,0,.35); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.concept-dialog { width: min(680px, calc(100vw - 32px)); border: 1px solid var(--line); padding: 50px; background: var(--bg-soft); color: var(--ink); box-shadow: 0 30px 120px rgba(0,0,0,.75); }
.concept-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(7px); }
.dialog-close, .drawer-close { position: absolute; right: 24px; top: 18px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 26px; }
.dialog-visual { height: 210px; margin-bottom: 34px; border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 52%); }
.dialog-visual span { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--accent); animation: breathe 2.8s infinite alternate; }
.dialog-visual i, .dialog-visual b { position: absolute; background: var(--accent); }
.dialog-visual i { width: 1px; height: 100%; }
.dialog-visual b { height: 1px; width: 100%; }
.concept-dialog h2 { margin: 12px 0; font: 500 38px/1.2 var(--serif); }
.concept-dialog > p:last-child { color: var(--muted); line-height: 1.8; }

.compare-drawer { position: fixed; z-index: 240; top: 0; right: 0; bottom: 0; width: min(560px, 92vw); padding: 84px 54px; background: var(--bg-soft); border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .55s var(--ease); overflow-y: auto; }
.compare-drawer.is-open { transform: translateX(0); }
.compare-drawer h2 { font-size: clamp(42px, 5vw, 68px); margin: 18px 0 46px; }
.drawer-list > div { display: grid; grid-template-columns: 48px 1fr; padding: 24px 0; border-top: 1px solid var(--line); }
.drawer-list span { color: var(--accent); font-size: 12px; }
.drawer-list h3 { margin: 0; font: 500 22px/1.2 var(--serif); }
.drawer-list p { grid-column: 2; margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
.drawer-scrim { position: fixed; z-index: 230; inset: 0; background: rgba(0,0,0,.7); opacity: 0; pointer-events: none; transition: opacity .4s; }
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.is-switching .hero-copy > *, .is-switching .hero-aside > * { animation: copyIn .65s var(--ease) both; }
.is-switching .hero-copy > *:nth-child(2) { animation-delay: .06s; }
.is-switching .hero-copy > *:nth-child(3) { animation-delay: .1s; }
.is-switching .hero-copy > *:nth-child(4) { animation-delay: .14s; }

@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes scan { to { transform: translateX(58px); } }
@keyframes orbit { from { transform: rotate(0) translateX(90px) rotate(0); } to { transform: rotate(360deg) translateX(90px) rotate(-360deg); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes breathe { to { transform: scale(1.25); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 35%, transparent); } }
@keyframes copyIn { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 1000px) {
  .lab-header { grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .lab-brand span:last-child { display: none; }
  .theme-tab { min-width: 0; padding: 0 14px; }
  .theme-tab .tab-name { display: none; }
  .compare-button span:first-child { display: none; }
  .game-nav { margin: 0 22px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 70px 7vw 130px; }
  .hero-aside { display: none; }
  .hero-copy, html[data-theme="gothic"] .hero-copy { margin: 0; text-align: left; }
  html[data-theme="gothic"] .eyebrow, html[data-theme="gothic"] .hero-actions, html[data-theme="gothic"] .platforms { justify-content: flex-start; }
  html[data-theme="gothic"] .hero-lede { margin-left: 0; }
  .hero-footer { left: 22px; right: 22px; grid-template-columns: 1fr auto; }
  .hero-coordinates { display: none; }
  .design-cards { grid-template-columns: 1fr 1fr; }
  .design-card--wide { grid-column: 1 / -1; }
  .characters-heading { grid-template-columns: 1fr; gap: 28px; }
  .character-roster { height: 630px; min-height: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .character-card, .character-card.is-active { flex: 0 0 48vw; scroll-snap-align: center; }
  .lore-heading { grid-template-columns: 1fr; gap: 34px; }
  .lore-heading .section-kicker { grid-column: 1; }
  .chronicle-entry { grid-template-columns: 72px 250px 1fr; gap: 20px; }
  .chronicle::before { left: 35px; }
  .character-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .character-rail > button { grid-template-columns: 28px 1fr; }
  .character-rail > button small { display: none; }
  .character-profile { grid-template-columns: 1fr; min-height: 0; gap: 34px; padding-bottom: 86px; }
  .profile-art { height: 650px; }
}

@media (max-width: 680px) {
  .lab-header { height: 60px; }
  .hero { padding-top: 60px; }
  .theme-tab { padding: 0 11px; }
  .game-nav { height: 70px; margin: 0 16px; }
  .logo-type { font-size: 17px; }
  .nav-cta { min-width: 94px; padding: 0 12px; }
  .hero-grid { min-height: calc(100svh - 130px); padding: 54px 24px 120px; align-items: end; }
  .hero-vignette, html[data-theme="stellar"] .hero-vignette, html[data-theme="gothic"] .hero-vignette { background: linear-gradient(0deg, rgba(3,4,6,.97) 0%, rgba(3,4,6,.72) 48%, rgba(3,4,6,.18) 82%), linear-gradient(90deg, rgba(3,4,6,.55), transparent); }
  .eyebrow { font-size: 11px; margin-bottom: 18px; }
  .title-kicker { font-size: 38px; }
  .title-main { font-size: clamp(68px, 22vw, 108px); }
  .hero-lede { font-size: 15px; line-height: 1.75; margin: 22px 0; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 360px; }
  .platforms { display: none; }
  .hero-footer { left: 16px; right: 16px; }
  .scroll-cue span { display: none; }
  .design-section { padding: 90px 22px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .section-heading h2 { font-size: 50px; }
  .section-heading > p:last-child { font-size: 15px; }
  .design-cards { grid-template-columns: 1fr; }
  .design-card--wide { grid-column: auto; }
  .design-card { min-height: 400px; }
  .choice-section { grid-template-columns: 1fr; padding: 80px 24px; gap: 36px; }
  .choice-section h2 { font-size: 52px; }
  .choice-action { grid-column: 1; }
  .concept-dialog { padding: 44px 24px 28px; }
  .compare-drawer { padding: 72px 26px; }
  .characters-section { padding: 86px 20px 72px; }
  .characters-section::before { font-size: 150px; top: 92px; }
  .characters-heading { margin-bottom: 38px; }
  .characters-heading h2 { font-size: 55px; }
  .characters-heading > p { font-size: 15px; }
  .character-roster { margin-left: -20px; margin-right: -20px; padding: 0 20px 12px; height: 610px; gap: 10px; }
  .character-card, .character-card.is-active { flex-basis: 82vw; }
  .character-meta strong { font-size: 42px; }
  .character-meta i { opacity: 1; transform: none; font-size: 13px; }
  .roster-hint { justify-content: flex-start; }
  .lore-section { padding: 95px 22px 110px; }
  .lore-section::after { font-size: 100px; top: 90px; }
  .lore-heading h2 { font-size: 52px; }
  .lore-date { width: 100%; grid-template-columns: auto 1fr; align-items: end; column-gap: 14px; }
  .lore-date small { grid-column: 1 / -1; }
  .lore-date strong { font-size: 54px; }
  .lore-section blockquote { margin: 62px 0 80px; padding: 36px 8px; text-align: left; font-size: 25px; }
  .lore-section blockquote > span { display: none; }
  .chronicle-entry { grid-template-columns: 56px 1fr; gap: 16px; padding-bottom: 62px; }
  .chronicle-entry > p { grid-column: 2; font-size: 15px; text-align: left; }
  .chronicle-mark { width: 56px; }
  .chronicle-mark span { width: 46px; height: 46px; }
  .chronicle::before { left: 27px; }
  .chronicle-entry h3 { font-size: 25px; }
  .lore-sigil { display: none; }
  .character-layout { display: block; }
  .character-rail { display: flex; padding: 10px 0 8px; margin: 0 -20px 16px; background: rgba(9,10,12,.96); border-bottom: 1px solid var(--line); border-top: 0; }
  .character-rail > p, .rail-footer { display: none; }
  .character-rail > button { display: inline-flex; justify-content: center; gap: 5px; flex: 1; width: auto; min-height: 46px; border-bottom: 0; padding: 0 3px; }
  .character-rail > button:hover, .character-rail > button.is-active { padding-left: 3px; border-bottom: 2px solid var(--accent); }
  .character-rail > button strong { font-size: 15px; white-space: nowrap; }
  .character-rail > button span { font-size: 10px; }
  .character-profile { padding: 34px 0 0; }
  .profile-art { height: min(125vw, 650px); }
  .profile-copy h3 { font-size: 62px; }
  .profile-copy > p:not(.profile-kicker):not(.profile-weapon) { font-size: 15px; line-height: 1.85; }
}

/* Home paging is handled by app.js when every section fits the viewport. */
html { scroll-snap-type: none; }
.characters-section { height: 100svh; min-height: 690px; padding: 92px 5vw 86px; display: flex; flex-direction: column; justify-content: center; }
.characters-heading { width: 100%; margin-bottom: 20px; align-items: end; }
.characters-heading h2 { font-size: clamp(48px, 5vw, 78px); line-height: .95; margin-top: 8px; }
.characters-heading > p { font-size: 15px; line-height: 1.6; }
.character-layout { width: 100%; grid-template-columns: 205px minmax(0, 1fr); gap: clamp(28px, 4vw, 70px); align-items: stretch; }
.character-rail { align-self: center; }
.character-rail > p { margin-bottom: 12px; }
.character-rail > button { min-height: 66px; }
.rail-footer { margin-top: 18px; }
.character-profile { min-height: 0; height: min(55svh, 520px); padding: 12px 0; gap: clamp(26px, 4vw, 70px); }
.profile-art { height: 100%; }
.profile-copy h3 { font-size: clamp(52px, 5vw, 82px); margin-bottom: 12px; }
.profile-kicker { margin-bottom: 12px; }
.profile-weapon { margin-bottom: 16px; padding-bottom: 14px; }
.profile-copy > p:not(.profile-kicker):not(.profile-weapon) { font-size: 15px; line-height: 1.65; margin-bottom: 10px; }

.lore-section { height: 100svh; min-height: 690px; padding: 95px 7vw 96px; display: flex; flex-direction: column; justify-content: center; }
.lore-heading { width: 100%; gap: 10px 40px; }
.lore-heading h2 { font-size: clamp(48px, 5vw, 78px); line-height: .98; }
.lore-date { padding-top: 12px; }
.lore-date strong { font-size: 44px; }
.lore-section blockquote { width: 100%; margin: 30px auto 26px; padding: 14px 7vw; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.45; text-align: left; }
.lore-section blockquote > span { top: 5px; font-size: 54px; }
.chronicle-compact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 38px; max-width: 1320px; width: 100%; min-height: 230px; margin: 0 auto; position: relative; z-index: 2; }
.chronicle-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chronicle-tabs button { border: 1px solid rgba(25,24,21,.25); background: rgba(255,255,255,.15); color: #554d42; padding: 14px 18px; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.chronicle-tabs button:hover, .chronicle-tabs button.is-active { border-color: #8b2220; color: #8b2220; background: rgba(139,34,32,.08); }
.chronicle-tabs button span { font: 22px/1 var(--serif); }
.chronicle-tabs button strong { font: 500 18px/1.3 var(--serif); }
.chronicle-panels { display: grid; align-items: center; min-width: 0; }
.lore-panel { animation: profile-in .45s var(--ease) both; }
.lore-panel[hidden] { display: none !important; }
.lore-panel .chronicle-label { margin: 0 0 10px; }
.lore-panel h3 { margin: 0 0 14px; font: 500 clamp(26px, 3vw, 42px)/1.2 var(--serif); }
.lore-panel > p:last-child { max-width: 680px; margin: 0; color: #4f4a43; font-size: 15px; line-height: 1.75; }
.site-footer { position: relative; z-index: 3; height: 76px; min-height: 76px; flex: 0 0 76px; padding: 0 7vw; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 22px; background: #09090a; color: #c5bfb5; border-top: 1px solid #32302c; }
.lore-section > .site-footer { position: absolute; left: 0; right: 0; bottom: 0; }
.footer-brand { display: flex; min-width: 0; align-items: center; gap: 14px; white-space: nowrap; }
.footer-brand strong { overflow: hidden; text-overflow: ellipsis; color: #f1eee7; font: 500 20px/1.2 var(--serif); letter-spacing: .12em; }
.site-footer p { margin: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; white-space: nowrap; font-size: 12px; letter-spacing: .08em; }
.site-footer a { justify-self: end; white-space: nowrap; color: var(--accent); font-size: 12px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-more { display: none; }

/* Complete timeline, with one expanded historical record */
.chronicle-compact { display: block; min-height: 0; }
.timeline-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; }
.timeline-track::before { content: ""; position: absolute; top: 42px; left: 7px; right: 7px; height: 1px; background: rgba(78,63,47,.55); }
.timeline-track button { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 150px; gap: 0; padding: 0 16px 0 0; border: 0; background: transparent; color: #514b42; text-align: left; }
.timeline-track button:hover, .timeline-track button.is-active { border: 0; background: transparent; color: #8b2220; }
.timeline-track button:hover strong, .timeline-track button.is-active strong { color: #8b2220; }
.timeline-era { font: 12px/1.2 var(--sans) !important; letter-spacing: .1em; color: #786f63; min-height: 27px; }
.timeline-node { display: block; width: 15px; height: 15px; margin: 8px 0 18px; border-radius: 50%; border: 2px solid #8b2220; background: #e7e0d2; box-shadow: 0 0 0 5px #e7e0d2; position: relative; z-index: 1; transition: transform .25s, background .25s; }
.timeline-track button.is-active .timeline-node, .timeline-track button:hover .timeline-node { background: #8b2220; transform: scale(1.16); }
.timeline-track button strong { font: 500 24px/1.25 var(--serif); color: #29251f; margin-bottom: 7px; transition: color .25s; }
.timeline-track button small { font-size: 13px; line-height: 1.5; color: #756c60; }
.chronicle-panels { display: block; border-top: 1px solid rgba(25,24,21,.3); padding-top: 18px; min-height: 126px; }
.lore-panel { display: grid; grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr); column-gap: 34px; align-items: start; }
.lore-panel .chronicle-label { grid-column: 1; margin: 0 0 6px; }
.lore-panel h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: 29px; }
.lore-panel > p:last-child { grid-column: 2; grid-row: 1 / 3; max-width: none; font-size: 15px; line-height: 1.65; }
.lore-section blockquote { margin: 24px auto 20px; padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 1000px) {
  .characters-section { min-height: 760px; }
  .character-layout { grid-template-columns: 156px minmax(0, 1fr); gap: 24px; }
  .character-profile { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); height: 480px; gap: 24px; }
  .profile-art { height: 100%; }
  .profile-copy h3 { font-size: 50px; }
  .profile-copy > p:not(.profile-kicker):not(.profile-weapon) { font-size: 14px; line-height: 1.55; }
  .lore-section { min-height: 760px; }
  .lore-heading { grid-template-columns: 1fr auto; }
  .chronicle-compact { gap: 20px; }
  .chronicle-tabs button { padding: 10px; gap: 7px; }
  .chronicle-tabs button strong { font-size: 15px; }
  .timeline-track button { min-height: 142px; padding: 0 12px 0 0; gap: 0; }
  .timeline-track button strong { font-size: 19px; }
  .timeline-track button small { font-size: 12px; }
  .lore-panel { grid-template-columns: minmax(190px, .6fr) minmax(0, 1.4fr); column-gap: 20px; }
}

@media (max-width: 680px) {
  html { scroll-snap-type: none; }
  .characters-section { height: auto; min-height: 100svh; padding: 78px 20px 90px; justify-content: flex-start; }
  .characters-heading { margin-bottom: 16px; }
  .characters-heading h2 { font-size: 42px; line-height: 1.1; }
  .characters-heading h2 br { display: none; }
  .characters-heading > p { font-size: 13px; line-height: 1.45; }
  .character-layout { display: block; }
  .character-rail { margin: 0 -20px 8px; }
  .character-rail > button { min-height: 46px; }
  .character-profile { display: block; height: auto; padding: 8px 0 0; }
  .profile-art { height: min(61vw, 250px); }
  .profile-copy { padding-top: 14px; }
  .profile-kicker { margin-bottom: 4px; }
  .profile-copy h3 { font-size: 42px; margin-bottom: 6px; }
  .profile-weapon { margin-bottom: 10px; padding-bottom: 9px; }
  .profile-weapon strong { font-size: 22px; }
  .profile-copy > p:not(.profile-kicker):not(.profile-weapon) { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
  .profile-copy > p:last-of-type { display: none; }
  .profile-copy.is-expanded > p:last-of-type { display: block; }
  .profile-more { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 10px 0; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--accent); text-align: left; font-size: 13px; cursor: pointer; }
  .lore-section { height: auto; min-height: 100svh; padding: 70px 22px 125px; justify-content: flex-start; }
  .lore-heading { display: block; }
  .lore-heading h2 { font-size: 42px; margin: 12px 0 16px; }
  .lore-date { width: auto; display: flex; align-items: baseline; gap: 8px; border: 0; padding: 0; }
  .lore-date small { display: none; }
  .lore-date strong { font-size: 36px; }
  .lore-date span { font-size: 14px; }
  .lore-section blockquote { margin: 20px 0; padding: 12px 0; font-size: 18px; }
  .chronicle-compact { display: block; min-height: 0; }
  .chronicle-tabs { gap: 5px; margin-bottom: 18px; }
  .chronicle-tabs button { min-height: 52px; padding: 8px; }
  .chronicle-tabs button span { font-size: 17px; }
  .chronicle-tabs button strong { font-size: 14px; }
  .lore-panel h3 { font-size: 26px; margin-bottom: 8px; }
  .lore-panel > p:last-child { font-size: 14px; line-height: 1.6; }
  .site-footer { height: 104px; min-height: 104px; flex-basis: 104px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; padding: 10px 22px; gap: 10px 12px; }
  .site-footer p { grid-column: 1 / -1; text-align: left; font-size: 11px; }
  .site-footer a { grid-column: 2; grid-row: 1; font-size: 11px; }
  .timeline-track { display: flex; flex-direction: column; gap: 0; margin: 0 0 12px; }
  .timeline-track::before { top: 15px; bottom: 15px; left: 10px; right: auto; width: 1px; height: auto; }
  .timeline-track button { display: grid; grid-template-columns: 1fr auto; min-height: 44px; padding: 4px 0 4px 34px; }
  .timeline-node { position: absolute; left: 4px; top: 16px; width: 13px; height: 13px; margin: 0; box-shadow: 0 0 0 4px #e7e0d2; }
  .timeline-era { grid-column: 2; grid-row: 1; min-height: 0; align-self: center; font-size: 11px !important; }
  .timeline-track button strong { grid-column: 1; grid-row: 1; margin: 0; font-size: 18px; }
  .timeline-track button small { display: none; }
  .chronicle-panels { height: 154px; min-height: 0; padding-top: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(139,34,32,.5) transparent; }
  .chronicle-panels::-webkit-scrollbar { width: 4px; }
  .chronicle-panels::-webkit-scrollbar-thumb { background: rgba(139,34,32,.5); }
  .lore-panel { display: block; }
  .lore-panel .chronicle-label { margin-bottom: 5px; }
  .lore-panel h3 { font-size: 24px; margin-bottom: 7px; }
  .lore-panel > p:last-child { font-size: 14px; line-height: 1.5; }
  .lore-section blockquote { margin: 12px 0; padding: 9px 0; }
}

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

/* Unified navigation and reserved destinations */
.theme-tabs { justify-content: center; }
.theme-tab { min-width: 140px; padding: 0 14px; }
.header-register { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.hero-grid { min-height: calc(100svh - 68px); }
.placeholder-root { scroll-snap-type: none; }
.placeholder-page { min-height: 100svh; padding: 170px 7vw 130px; position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #0a0b0d; }
.placeholder-page::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('https://cdns3.adbog.com/image/20260921/d4b6ee3799c231fb96ab1078dd80c9a1.jpg') center / cover, url('./assets/eastern-fantasy.jpg') center / cover; opacity: .33; }
.placeholder-page::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #090a0c 6%, rgba(9,10,12,.9) 42%, rgba(9,10,12,.2)), linear-gradient(0deg, #090a0c, transparent 48%); }
.placeholder-content { position: relative; max-width: 800px; }
.placeholder-eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .25em; margin: 0 0 30px; }
.placeholder-content h1 { font: 500 clamp(64px, 8vw, 130px)/1.05 var(--serif); letter-spacing: -.06em; margin: 0; }
.placeholder-content h1 em { color: var(--accent); font-style: normal; }
.placeholder-content > p:not(.placeholder-eyebrow) { max-width: 620px; font-size: 18px; line-height: 1.85; color: #c1bdb4; margin: 28px 0 0; }
.placeholder-rule { width: 180px; height: 1px; background: var(--accent); margin: 42px 0; }
.placeholder-note { display: inline-flex; gap: 16px; align-items: baseline; color: #d8c49e; font-size: 14px; letter-spacing: .08em; }
.placeholder-note span { color: var(--accent); font-size: 12px; }
.placeholder-register { margin-top: 36px; padding: 20px 24px; border: 1px solid var(--line); background: rgba(9,10,12,.58); max-width: 500px; scroll-margin-top: 92px; }
.placeholder-register:target { border-color: var(--accent); box-shadow: 0 0 30px rgba(214,174,99,.16); }
.placeholder-register h2 { font: 500 24px/1.3 var(--serif); margin: 0 0 8px; }
.placeholder-register p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.7; }
.placeholder-footer { min-height: 76px; padding: 0 7vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #050506; border-top: 1px solid #33302a; color: #aaa59c; font-size: 12px; }
.placeholder-footer a { color: var(--accent); }

/* Shared inner pages */
.inner-root { scroll-snap-type: none; }
.editorial-page, .archive-page, .download-page, .support-page, .article-page { background: #0a0b0d; }
.editorial-intro, .archive-intro, .support-intro, .download-hero { position: relative; overflow: hidden; isolation: isolate; }
.editorial-intro::before, .archive-intro::before, .support-intro::before, .download-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('https://cdns3.adbog.com/image/20260921/d4b6ee3799c231fb96ab1078dd80c9a1.jpg') center / cover, url('./assets/eastern-fantasy.jpg') center / cover; opacity: .42; }
.editorial-intro::after, .archive-intro::after, .support-intro::after, .download-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #08090b 0%, rgba(8,9,11,.84) 42%, rgba(8,9,11,.13)), linear-gradient(0deg, #08090b, transparent 60%); }
.editorial-intro, .archive-intro, .support-intro { min-height: 520px; padding: 190px 7vw 95px; }
.editorial-intro h1, .archive-intro h1, .support-intro h1, .download-hero h1 { margin: 14px 0 24px; font: 500 clamp(64px, 8vw, 126px)/1.04 var(--serif); letter-spacing: -.06em; }
.editorial-intro h1 em, .archive-intro h1 em, .support-intro h1 em, .download-hero h1 em { color: var(--accent); font-style: normal; }
.editorial-intro > p:last-of-type, .archive-intro > p:last-of-type, .support-intro > p:last-of-type, .download-hero-copy > p:last-of-type { max-width: 650px; font-size: 18px; line-height: 1.75; color: #c7c2b8; }
.editorial-stroke { width: 130px; height: 1px; background: var(--accent); margin-top: 50px; }
.board-heading, .download-section-heading, .archive-records-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 30px; }
.board-heading .section-kicker, .download-section-heading .section-kicker, .archive-records-heading .section-kicker { grid-column: 1 / -1; margin: 0; }
.board-heading h2, .download-section-heading h2, .archive-records-heading h2 { margin: 0; font: 500 clamp(42px, 4.3vw, 66px)/1.15 var(--serif); }
.board-heading > span { font: 13px/1 var(--sans); letter-spacing: .15em; color: #8b2220; padding-bottom: 12px; }
.news-board { background: #e7e0d2; color: #191815; padding: 100px 7vw 130px; }
.news-board .section-kicker, .archive-records .section-kicker { color: #8b2220; }
.news-feature { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 420px; margin: 50px 0 30px; border: 1px solid rgba(25,24,21,.25); transition: border-color .3s, transform .3s; }
.news-feature:hover { border-color: #8b2220; transform: translateY(-4px); }
.news-feature-image { min-height: 420px; background: url('https://cdns3.adbog.com/image/20260921/d4b6ee3799c231fb96ab1078dd80c9a1.jpg') center / cover, url('./assets/eastern-fantasy.jpg') center / cover; filter: saturate(.78); }
.news-feature-copy { padding: clamp(30px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.news-meta { color: #8b2220; font-size: 12px; letter-spacing: .12em; }
.news-meta i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 6px; }
.news-feature h3 { font: 500 clamp(30px, 3vw, 48px)/1.35 var(--serif); margin: 24px 0 15px; }
.news-feature p { color: #585247; font-size: 16px; line-height: 1.8; margin: 0 0 30px; }
.news-feature strong { display: flex; justify-content: space-between; max-width: 210px; border-bottom: 1px solid #8b2220; padding-bottom: 10px; color: #8b2220; font-size: 14px; font-weight: 500; }
.news-list a { display: grid; grid-template-columns: 220px 1fr 30px; gap: 26px; align-items: center; min-height: 102px; border-top: 1px solid rgba(25,24,21,.25); color: #27231e; }
.news-list a:last-child { border-bottom: 1px solid rgba(25,24,21,.25); }
.news-list a:hover strong, .news-list a:hover .news-arrow { color: #8b2220; }
.news-list strong { font: 500 24px/1.4 var(--serif); }
.news-arrow { justify-self: end; font-size: 22px; transition: color .25s; }
.content-note { margin: 30px 0 0; color: #756c60; font-size: 13px; line-height: 1.6; }

.article-page { padding: 130px 7vw 100px; }
.article-back { display: flex; justify-content: space-between; gap: 20px; max-width: 1240px; margin: 0 auto 55px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.story-article { max-width: 1240px; margin: 0 auto; }
.story-article header { max-width: 930px; padding-bottom: 55px; }
.story-article h1 { margin: 18px 0 22px; font: 500 clamp(58px, 7vw, 105px)/1.12 var(--serif); }
.story-article h1 em { color: var(--accent); font-style: normal; }
.article-lead { color: #c6c0b5; font: 21px/1.7 var(--serif); max-width: 760px; }
.article-banner { height: clamp(330px, 40vw, 620px); background: url('https://cdns3.adbog.com/image/20260921/d4b6ee3799c231fb96ab1078dd80c9a1.jpg') center / cover, url('./assets/eastern-fantasy.jpg') center / cover; border: 1px solid var(--line); }
.article-body { max-width: 760px; margin: 80px auto; }
.article-body p { color: #cbc5bb; font-size: 17px; line-height: 2.1; margin: 0 0 28px; }
.article-body h2 { font: 500 38px/1.3 var(--serif); margin: 60px 0 22px; color: var(--accent); }
.dropcap::first-letter { float: left; font: 70px/.9 var(--serif); color: var(--accent); padding: 8px 10px 0 0; }
.article-end { display: flex; justify-content: space-between; gap: 20px; max-width: 760px; margin: 0 auto; padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.article-end a { color: var(--accent); }

.archive-intro { min-height: 500px; }
.archive-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 7vw 110px; margin-top: -38px; position: relative; z-index: 2; }
.archive-tile { height: clamp(360px, 36vw, 520px); position: relative; border: 1px solid rgba(214,174,99,.36); overflow: hidden; background: #111; }
.archive-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.78); transition: transform .6s, filter .6s; }
.archive-tile:hover img { transform: scale(1.05); filter: saturate(1) brightness(.92); }
.archive-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,6,.95), transparent 65%); pointer-events: none; }
.archive-tile-copy { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 28px; display: grid; gap: 9px; }
.archive-tile-copy small { color: var(--accent); font-size: 11px; letter-spacing: .16em; }
.archive-tile-copy strong { font: 500 56px/1 var(--serif); }
.archive-tile-copy em { color: #cec8bc; font-style: normal; font-size: 14px; }
.archive-records { background: #e7e0d2; color: #191815; padding: 100px 7vw 130px; }
.archive-records-heading { margin-bottom: 40px; }
.archive-records-heading > p:last-child { color: #6a6257; font-size: 15px; max-width: 520px; margin: 0; line-height: 1.6; }
.archive-record { display: grid; grid-template-columns: 170px 1fr 150px; gap: 28px; padding: 38px 0; border-top: 1px solid rgba(25,24,21,.25); scroll-margin-top: 92px; align-items: start; }
.archive-record:last-child { border-bottom: 1px solid rgba(25,24,21,.25); }
.archive-record-index { color: #8b2220; font-size: 13px; letter-spacing: .08em; }
.archive-record h3 { margin: 0 0 14px; font: 500 32px/1.3 var(--serif); }
.archive-record p { margin: 0; max-width: 690px; color: #514b42; font-size: 16px; line-height: 1.85; }
.archive-record > a { justify-self: end; color: #8b2220; font-size: 13px; white-space: nowrap; }

.download-hero { min-height: 78svh; padding: 170px 7vw 115px; display: flex; align-items: center; }
.download-hero-copy { max-width: 790px; }
.download-hero-copy > p:last-of-type { max-width: 580px; }
.download-status { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 11px 17px; border: 1px solid rgba(214,174,99,.55); color: var(--accent); font-size: 14px; letter-spacing: .08em; }
.download-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.download-hero-number { position: absolute; right: 7vw; bottom: 55px; color: rgba(255,255,255,.28); font: 18px/1 Georgia, serif; letter-spacing: .22em; }
.download-options, .support-topics { padding: 100px 7vw 130px; background: #e7e0d2; color: #191815; }
.download-section-heading .section-kicker { color: #8b2220; }
.download-section-heading > p:last-child { max-width: 520px; margin: 0; color: #675f54; font-size: 15px; line-height: 1.6; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 48px 0 30px; }
.download-option { min-height: 310px; padding: 36px; border: 1px solid rgba(25,24,21,.27); display: flex; flex-direction: column; }
.download-option > span { color: #8b2220; font-size: 12px; letter-spacing: .15em; }
.download-option h3 { font: 500 38px/1.25 var(--serif); margin: 25px 0 15px; }
.download-option p { max-width: 380px; color: #675f54; font-size: 16px; line-height: 1.8; margin: 0 0 25px; }
.download-option button { margin-top: auto; width: max-content; min-width: 180px; height: 44px; border: 1px solid #8b2220; background: transparent; color: #8b2220; opacity: .55; cursor: not-allowed; }
.download-notice { display: flex; gap: 30px; align-items: baseline; border-top: 1px solid rgba(25,24,21,.25); padding-top: 25px; }
.download-notice strong { color: #8b2220; white-space: nowrap; font-size: 14px; }
.download-notice p { margin: 0; color: #675f54; font-size: 14px; line-height: 1.7; }

.support-status { display: inline-block; margin-top: 30px; padding: 10px 18px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.support-grid article { border: 1px solid rgba(25,24,21,.27); min-height: 260px; padding: 30px; }
.support-grid span { color: #8b2220; font-size: 13px; }
.support-grid h3 { font: 500 30px/1.3 var(--serif); margin: 45px 0 14px; }
.support-grid p { color: #675f54; font-size: 15px; line-height: 1.7; margin: 0; }

@media (max-width: 1000px) {
  .theme-tab .tab-name { display: inline; }
  .theme-tab { padding: 0 10px; }
  .archive-record { grid-template-columns: 110px 1fr; }
  .archive-record > a { grid-column: 2; justify-self: start; }
  .news-list a { grid-template-columns: 175px 1fr 22px; gap: 16px; }
}
@media (max-width: 680px) {
  .lab-header { height: 104px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 50px 54px; padding: 0 12px; gap: 0; }
  .lab-brand { display: flex; grid-column: 1; grid-row: 1; }
  .theme-tabs { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; min-width: 0; }
  .theme-tab { min-width: 0; padding: 0 5px; gap: 0; }
  .theme-tab .tab-index { display: none; }
  .theme-tab .tab-name { display: inline; font-size: 13px; letter-spacing: .01em; }
  .header-register { grid-column: 2; grid-row: 1; min-width: 82px; height: 34px; padding: 0 7px; font-size: 13px; letter-spacing: 0; }
  .hero { padding-top: 104px; }
  .hero-grid { min-height: calc(100svh - 104px); }
  .characters-section { padding-top: 112px; }
  .characters-heading h2 { font-size: 40px; }
  .profile-art { height: min(56vw, 230px); }
  .lore-section { padding-top: 106px; }
  .lore-section blockquote { font-size: 17px; }
  .timeline-track button { min-height: 40px; }
  .chronicle-panels { height: 145px; }
  .placeholder-page { min-height: 100svh; padding: 140px 24px 90px; align-items: flex-start; }
  .placeholder-content h1 { font-size: 60px; }
  .placeholder-content > p:not(.placeholder-eyebrow) { font-size: 16px; }
  .placeholder-footer { padding: 22px 24px; flex-wrap: wrap; }
  .editorial-intro, .archive-intro, .support-intro { min-height: 460px; padding: 154px 24px 70px; }
  .editorial-intro h1, .archive-intro h1, .support-intro h1, .download-hero h1 { font-size: 58px; }
  .editorial-intro > p:last-of-type, .archive-intro > p:last-of-type, .support-intro > p:last-of-type, .download-hero-copy > p:last-of-type { font-size: 16px; }
  .news-board, .archive-records, .download-options, .support-topics { padding: 70px 24px 85px; }
  .board-heading, .download-section-heading, .archive-records-heading { display: block; }
  .board-heading h2, .download-section-heading h2, .archive-records-heading h2 { font-size: 42px; margin-top: 8px; }
  .board-heading > span { display: block; margin-top: 10px; }
  .news-feature { display: block; margin: 32px 0 22px; }
  .news-feature-image { min-height: 240px; }
  .news-feature-copy { padding: 26px; }
  .news-feature h3 { font-size: 32px; margin: 14px 0; }
  .news-feature p { font-size: 15px; margin-bottom: 24px; }
  .news-list a { min-height: 112px; display: grid; grid-template-columns: 1fr 24px; gap: 6px; padding: 16px 0; }
  .news-list .news-meta { grid-column: 1 / -1; }
  .news-list strong { font-size: 21px; }
  .news-arrow { grid-column: 2; grid-row: 2; }
  .article-page { padding: 134px 24px 70px; }
  .article-back { margin-bottom: 36px; font-size: 12px; }
  .article-back span { display: none; }
  .story-article header { padding-bottom: 30px; }
  .story-article h1 { font-size: 52px; }
  .article-lead { font-size: 17px; }
  .article-banner { height: 240px; }
  .article-body { margin: 45px auto; }
  .article-body p { font-size: 16px; line-height: 1.9; }
  .article-body h2 { font-size: 30px; margin-top: 42px; }
  .article-end { flex-wrap: wrap; }
  .archive-gallery { display: block; padding: 0 24px 75px; margin-top: -25px; }
  .archive-tile { display: block; height: 300px; margin-bottom: 12px; }
  .archive-tile-copy strong { font-size: 44px; }
  .archive-records-heading > p:last-child { margin-top: 14px; }
  .archive-record { display: block; padding: 30px 0; }
  .archive-record h3 { font-size: 27px; margin: 10px 0; }
  .archive-record p { font-size: 15px; }
  .archive-record > a { display: inline-block; margin-top: 16px; }
  .download-hero { min-height: 660px; padding: 155px 24px 90px; }
  .download-hero-number { display: none; }
  .download-grid, .support-grid { display: block; margin-top: 30px; }
  .download-option, .support-grid article { min-height: 260px; margin-bottom: 12px; padding: 26px; }
  .download-option h3 { font-size: 31px; }
  .download-option p { font-size: 15px; }
  .download-notice { display: block; }
  .download-notice p { margin-top: 10px; }
  .support-grid h3 { margin-top: 40px; }
}

/* Home archive chapter */
.home-archive-section { height: 100svh; min-height: 690px; padding: 118px 7vw 86px; background: radial-gradient(circle at 75% 30%, rgba(214,174,99,.08), transparent 34%), #0c0e10; display: flex; flex-direction: column; justify-content: center; position: relative; }
.section-transition { position: absolute; z-index: 3; left: 7vw; right: 7vw; bottom: 0; height: 68px; display: flex; align-items: center; justify-content: center; border-top: 1px solid rgba(214,174,99,.48); }
.section-transition a { display: inline-flex; align-items: center; gap: 12px; padding: 14px; color: rgba(241,238,231,.62); font-size: 10px; letter-spacing: .16em; }
.section-transition a:hover { color: var(--accent); }
.section-transition b { display: block; width: 42px; height: 1px; background: var(--accent); position: relative; overflow: hidden; }
.section-transition b::after { content: ""; position: absolute; inset: 0 auto 0 -12px; width: 12px; background: #fff; animation: scan 2.5s infinite; }
.home-archive-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 7vw; align-items: end; margin-bottom: 34px; }
.home-archive-heading h2 { margin: 15px 0 0; font: 500 clamp(46px, 5.2vw, 80px)/1.03 var(--serif); letter-spacing: -.04em; }
.home-archive-heading h2 em { color: var(--accent); font-style: normal; }
.home-archive-heading > div:last-child p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 20px; }
.home-archive-heading > div:last-child a { display: inline-flex; align-items: center; gap: 35px; padding-bottom: 9px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 14px; }
.home-archive-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: min(48svh, 450px); }
.home-archive-card { position: relative; overflow: hidden; border: 1px solid rgba(214,174,99,.33); }
.home-archive-card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.8); transition: transform .6s, filter .6s; }
.home-archive-card:hover img { transform: scale(1.04); filter: brightness(.87) saturate(.95); }
.home-archive-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,7,.92), transparent 60%); pointer-events: none; }
.home-archive-card > span { position: absolute; z-index: 1; bottom: 26px; left: 28px; display: grid; gap: 7px; }
.home-archive-card small { color: var(--accent); font-size: 11px; letter-spacing: .15em; }
.home-archive-card strong { font: 500 clamp(30px, 3.4vw, 50px)/1.1 var(--serif); }
.home-archive-card em { color: #d0cbc1; font-size: 14px; font-style: normal; }

/* Bulletin-first news layout */
.news-intro { min-height: 320px; padding-top: 126px; padding-bottom: 45px; }
.news-intro h1 { font-size: clamp(55px, 6vw, 86px); margin: 7px 0 12px; }
.news-intro > p:last-of-type { font-size: 16px; margin: 0; }
.news-board { padding-top: 70px; }
.notice-pinned { display: grid; grid-template-columns: 120px 1fr; gap: 25px; align-items: center; margin: 40px 0 0; padding: 24px 30px; border-left: 3px solid #8b2220; background: rgba(139,34,32,.07); }
.notice-pinned > span { color: #8b2220; font-size: 14px; letter-spacing: .15em; }
.notice-pinned strong { font: 500 23px/1.4 var(--serif); }
.notice-pinned p { margin: 4px 0 0; color: #675f54; font-size: 14px; line-height: 1.6; }
.notice-list { margin-top: 12px; }
.notice-list a { min-height: 86px; }

/* Icon-based catalog ready for 32 x 32 assets */
.archive-intro--catalog { min-height: 330px; padding-top: 125px; padding-bottom: 55px; }
.archive-intro--catalog h1 { font-size: clamp(56px, 6vw, 86px); margin: 5px 0 12px; }
.archive-intro--catalog > p:last-of-type { font-size: 16px; }
.archive-jump { display: flex; gap: 0; padding: 0 7vw; background: #111315; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-jump a { min-width: 150px; padding: 19px 25px; border-right: 1px solid var(--line); color: #d6cec0; text-align: center; font-size: 14px; }
.archive-jump a:first-child { border-left: 1px solid var(--line); }
.archive-jump a:hover { color: var(--accent); background: rgba(214,174,99,.06); }
.archive-catalog { background: #e7e0d2; color: #191815; padding: 65px 7vw 100px; }
.archive-catalog-section { margin-bottom: 74px; scroll-margin-top: 90px; }
.catalog-heading { display: grid; grid-template-columns: 150px 220px 1fr; gap: 20px; align-items: end; margin-bottom: 26px; }
.catalog-heading > span { color: #8b2220; font-size: 12px; letter-spacing: .12em; align-self: center; }
.catalog-heading h2 { margin: 0; font: 500 46px/1.15 var(--serif); }
.catalog-heading p { margin: 0 0 5px; color: #665f54; font-size: 15px; line-height: 1.6; }
.catalog-columns, .catalog-row { display: grid; grid-template-columns: 60px 190px minmax(235px, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: center; }
.catalog-columns { padding: 12px 18px; border-top: 1px solid rgba(25,24,21,.4); border-bottom: 1px solid rgba(25,24,21,.3); color: #8b2220; font-size: 12px; letter-spacing: .07em; }
.catalog-row { min-height: 78px; padding: 15px 18px; border-bottom: 1px solid rgba(25,24,21,.17); }
.catalog-row:nth-of-type(even) { background: rgba(255,255,255,.16); }
.catalog-row img { display: block; width: 32px; height: 32px; object-fit: cover; image-rendering: pixelated; outline: 1px solid rgba(25,24,21,.3); }
.catalog-row strong { font: 500 22px/1.3 var(--serif); }
.catalog-row > span { color: #584f44; font-size: 14px; line-height: 1.5; }
.catalog-row p { margin: 0; color: #665f54; font-size: 14px; line-height: 1.6; }
.catalog-note { margin: 0; color: #70675c; font-size: 13px; }

/* Contact information, not a pretend ticket form */
.contact-ledger { margin-top: 45px; border-top: 1px solid rgba(25,24,21,.32); }
.contact-ledger > div { display: grid; grid-template-columns: 210px 1fr 280px; align-items: center; gap: 30px; min-height: 112px; border-bottom: 1px solid rgba(25,24,21,.22); }
.contact-ledger span { color: #8b2220; font-size: 13px; letter-spacing: .06em; }
.contact-ledger strong { font: 500 30px/1.3 var(--serif); }
.contact-ledger p { color: #665f54; font-size: 14px; margin: 0; }

/* Archive demo: one collection at a time */
.archive-tabs button { appearance: none; min-width: 170px; padding: 20px 34px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #b9b3a8; font: 500 17px/1.2 var(--serif); cursor: pointer; position: relative; transition: color .25s, background .25s; }
.archive-tabs button:first-child { border-left: 1px solid var(--line); }
.archive-tabs button:hover, .archive-tabs button.is-active { color: var(--accent); background: rgba(214,174,99,.08); }
.archive-tabs button.is-active::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--accent); }
.archive-toolbar { display: flex; align-items: end; gap: 14px; margin-bottom: 10px; }
.archive-select, .archive-search { display: grid; gap: 8px; color: #8b2220; font-size: 12px; letter-spacing: .08em; }
.archive-select { width: min(280px, 35%); }
.archive-search { width: min(420px, 55%); }
.archive-select[hidden] { display: none !important; }
.archive-select select, .archive-search input { width: 100%; height: 48px; border: 1px solid rgba(25,24,21,.32); border-radius: 0; padding: 0 14px; background: rgba(255,255,255,.35); color: #29251f; font: 14px/1.3 var(--sans); outline: none; }
.archive-select select:focus-visible, .archive-search input:focus-visible { border-color: #8b2220; box-shadow: 0 0 0 2px rgba(139,34,32,.15); }
.archive-result { margin: 0 0 36px; color: #70675c; font-size: 13px; }
.archive-catalog-section { margin-bottom: 44px; }
.archive-catalog-section[hidden], .catalog-row[hidden], .catalog-empty[hidden] { display: none !important; }
.catalog-empty { margin: 0; padding: 42px 18px; border-bottom: 1px solid rgba(25,24,21,.17); color: #766c60; font-size: 15px; text-align: center; }

/* One focused PC download surface */
.download-client { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); min-height: 410px; margin: 45px 0 30px; border: 1px solid rgba(25,24,21,.28); background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(214,174,99,.04)); }
.download-client-main { padding: clamp(30px, 4vw, 62px); }
.download-client-tag { color: #8b2220; font-size: 12px; letter-spacing: .16em; }
.download-client-main h3 { font: 500 clamp(38px, 4vw, 60px)/1.15 var(--serif); margin: 22px 0 15px; }
.download-client-main > p { max-width: 650px; margin: 0 0 35px; color: #62594f; font-size: 16px; line-height: 1.8; }
.download-client-fields { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(25,24,21,.25); padding-top: 22px; gap: 15px; }
.download-client-fields div { display: grid; gap: 8px; }
.download-client-fields span { color: #8b2220; font-size: 12px; }
.download-client-fields strong { color: #2d2822; font: 500 18px/1.3 var(--serif); }
.download-client-action { padding: 40px; background: #101112; color: #f1eee7; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.download-client-action > span { display: grid; place-items: center; width: 170px; height: 170px; border: 1px solid rgba(214,174,99,.55); border-radius: 50%; color: var(--accent); font: 500 57px/1 Georgia, serif; letter-spacing: -.06em; margin-bottom: 32px; }
.download-client-action button { width: 100%; max-width: 310px; height: 52px; border: 1px solid var(--accent); background: rgba(214,174,99,.15); color: var(--accent); cursor: not-allowed; font-size: 15px; }
.download-client-action small { display: block; max-width: 280px; color: #a9a397; font-size: 12px; line-height: 1.6; margin-top: 12px; }

@media (max-width: 1000px) {
  .catalog-heading { grid-template-columns: 110px 180px 1fr; }
  .catalog-columns, .catalog-row { grid-template-columns: 48px 150px minmax(190px, .9fr) minmax(0, 1.1fr); gap: 12px; }
  .contact-ledger > div { grid-template-columns: 145px 1fr 180px; }
}
@media (max-width: 680px) {
  .home-archive-section { height: auto; min-height: 100svh; padding: 130px 20px 90px; justify-content: flex-start; }
  .section-transition { left: 20px; right: 20px; height: 64px; }
  .home-archive-heading { display: block; margin-bottom: 18px; }
  .home-archive-heading h2 { font-size: 38px; margin: 8px 0 12px; }
  .home-archive-heading > div:last-child p { font-size: 13px; line-height: 1.5; margin-bottom: 9px; }
  .home-archive-heading > div:last-child a { font-size: 13px; }
  .home-archive-cards { display: block; height: auto; }
  .home-archive-card { display: block; height: 175px; margin-bottom: 10px; }
  .home-archive-card > span { bottom: 16px; left: 18px; gap: 3px; }
  .home-archive-card strong { font-size: 30px; }
  .home-archive-card em { font-size: 12px; }
  .news-intro { min-height: 290px; padding: 130px 24px 34px; }
  .news-intro h1 { font-size: 52px; }
  .news-board { padding-top: 45px; }
  .notice-pinned { display: block; margin-top: 26px; padding: 18px; }
  .notice-pinned strong { display: block; margin-top: 8px; font-size: 21px; }
  .notice-list a { min-height: 105px; }
  .archive-intro--catalog { min-height: 310px; padding: 134px 24px 45px; }
  .archive-intro--catalog h1 { font-size: 52px; }
  .archive-jump { padding: 0 24px; }
  .archive-jump a { flex: 1; min-width: 0; padding: 16px 8px; }
  .archive-catalog { padding: 48px 24px 80px; }
  .archive-catalog-section { margin-bottom: 58px; scroll-margin-top: 112px; }
  .catalog-heading { display: block; }
  .catalog-heading h2 { font-size: 38px; margin: 7px 0; }
  .catalog-heading p { font-size: 14px; }
  .catalog-columns { display: none; }
  .catalog-row { display: grid; grid-template-columns: 40px 1fr; gap: 5px 12px; align-items: start; padding: 15px 0; }
  .catalog-row img { grid-column: 1; grid-row: 1 / 3; }
  .catalog-row strong { grid-column: 2; font-size: 21px; }
  .catalog-row > span { grid-column: 2; font-size: 13px; }
  .catalog-row p { grid-column: 2; font-size: 14px; }
  .contact-ledger > div { display: block; padding: 22px 0; min-height: 0; }
  .contact-ledger strong { display: block; margin: 8px 0; font-size: 27px; }
  .contact-ledger p { font-size: 14px; }
}

@media (max-width: 1000px) {
  .download-client { grid-template-columns: 1fr 310px; }
}
@media (max-width: 680px) {
  .archive-tabs button { flex: 1; min-width: 0; padding: 16px 8px; font-size: 17px; }
  .archive-toolbar { display: block; }
  .archive-select, .archive-search { width: 100%; margin-bottom: 12px; }
  .archive-result { margin-bottom: 27px; }
  .download-client { display: block; margin: 30px 0 22px; }
  .download-client-main { padding: 26px; }
  .download-client-main h3 { font-size: 36px; }
  .download-client-main > p { font-size: 15px; margin-bottom: 25px; }
  .download-client-fields { gap: 8px; }
  .download-client-fields strong { font-size: 15px; }
  .download-client-action { padding: 30px 26px; }
  .download-client-action > span { width: 115px; height: 115px; font-size: 42px; margin-bottom: 22px; }
}
