:root {
  --void: #070809;
  --void-soft: #0d0f11;
  --iron: #16191d;
  --iron-light: #262a2f;
  --steel: #9da3a7;
  --silver: #d9dcda;
  --bone: #d8d2c4;
  --ink: #161718;
  --ash: #8f918d;
  --gold: #b98738;
  --gold-light: #e2bb66;
  --oxblood: #78181b;
  --blue: #284e91;
  --green: #225c38;
  --line: rgba(207, 198, 174, .2);
  --line-hard: rgba(220, 184, 104, .52);
  --rail: 132px;
  --page: min(1540px, calc(100vw - var(--rail) - 8vw));
  --serif: "Cormorant Garamond", Georgia, serif;
  --condensed: "IBM Plex Sans Condensed", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --notch: polygon(14px 0, calc(50% - 9px) 0, 50% 7px, calc(50% + 9px) 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, calc(50% + 9px) 100%, 50% calc(100% - 7px), calc(50% - 9px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--gold) #08090a; }
body { margin: 0; min-width: 320px; padding-left: var(--rail); overflow-x: hidden; color: var(--bone); background: var(--void); font-family: var(--condensed); }
body.locked { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: #0b0c0d; background: var(--gold-light); }

.paper-grain { position: fixed; z-index: 900; inset: 0; pointer-events: none; opacity: .075; background-image: repeating-radial-gradient(circle at 30% 60%, transparent 0, rgba(255,255,255,.52) .35px, transparent .7px, transparent 5px), linear-gradient(115deg, rgba(255,255,255,.03), transparent 25%, rgba(0,0,0,.12)); background-size: 7px 8px, 100% 100%; mix-blend-mode: soft-light; }
.ash-canvas { position: fixed; z-index: 80; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .42; }
.page-shell { width: var(--page); margin-inline: auto; }
.folio { display: inline-flex; align-items: center; gap: 11px; color: var(--gold-light); font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.folio::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--gold); background: var(--oxblood); transform: rotate(45deg); box-shadow: 0 0 0 2px #15120e; }

.opening { position: fixed; z-index: 2000; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--silver); background: radial-gradient(circle at 50% 45%, #171a1d, #060708 60%); transition: opacity .8s var(--ease), visibility .8s; }
.opening::before { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(203, 207, 207, .22); clip-path: var(--notch); }
.opening.closed { opacity: 0; visibility: hidden; }
.opening-mark { position: relative; width: 118px; height: 118px; display: grid; place-items: center; clip-path: polygon(50% 0, 88% 16%, 100% 50%, 84% 86%, 50% 100%, 16% 86%, 0 50%, 15% 16%); background: linear-gradient(145deg, #d9dddd, #45494d 48%, #111316 52%, #91979b); box-shadow: 0 25px 70px #000; }
.opening-mark::before { content: ""; position: absolute; inset: 3px; clip-path: inherit; background: #08090a; }
.opening-mark img { position: relative; width: 87px; height: 87px; object-fit: cover; }
.opening-copy { margin-top: 28px; display: flex; align-items: center; gap: 38px; color: #aeb1af; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; }
.opening-copy b { color: var(--gold-light); font-weight: 500; }
.opening > i { width: 210px; height: 2px; margin-top: 18px; overflow: hidden; background: #24272a; }
.opening > i::after { content: ""; display: block; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold-light)); animation: opening-line 1.4s infinite var(--ease); }
@keyframes opening-line { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

.rail { position: fixed; z-index: 130; inset: 0 auto 0 0; width: var(--rail); display: grid; grid-template-rows: 100px 1fr 124px; background: linear-gradient(90deg, #070809, #171a1d 48%, #090a0b); border-right: 1px solid #454a4e; box-shadow: inset -4px 0 0 #0a0b0c, inset -5px 0 0 rgba(219,184,103,.38), 12px 0 30px rgba(0,0,0,.42); }
.rail::before { content: ""; position: absolute; left: 12px; right: 12px; top: 92px; bottom: 116px; border-inline: 1px solid rgba(211,215,213,.1); pointer-events: none; }
.rail::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 95px; width: 8px; height: 8px; border: 1px solid var(--gold); background: var(--oxblood); transform: translateX(-50%) rotate(45deg); box-shadow: 0 calc(100vh - 222px) 0 -1px var(--oxblood), 0 calc(100vh - 222px) 0 0 var(--gold); }
.rail-mark { position: relative; display: grid; place-items: center; border-bottom: 1px solid rgba(218,187,113,.24); background: radial-gradient(circle, rgba(255,255,255,.06), transparent 60%); }
.rail-mark img { width: 90px; height: 90px; object-fit: cover; filter: contrast(1.08); }
.rail nav { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; padding: 18px 12px; }
.rail nav a { position: relative; width: 106px; min-height: 74px; padding: 13px 14px 12px; display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: 8px; color: #a4a6a3; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color .3s, background .3s; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.rail nav a::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: inherit; background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.08), rgba(0,0,0,.12)); }
.rail nav a:hover, .rail nav a.active { color: #f0e3c4; background: linear-gradient(#6f501f, #c69a4b 48%, #5d421b); }
.rail nav a .rail-number { position: relative; flex: 0 0 auto; color: var(--gold-light); font-size: 14px; }
.rail nav a .rail-label { position: relative; color: inherit; font-size: 15px; }
.rail-archive { position: relative; padding: 20px 16px 18px; display: flex; align-items: flex-end; justify-content: center; color: #d7d1c2; background: linear-gradient(145deg, #651316, #a12a2d 46%, #4c0d10 100%); border-top: 1px solid #b27942; clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.rail-archive::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(241,199,102,.48); clip-path: inherit; }
.rail-archive span { width: 100%; color: #f0e7d4; font-size: 15px; font-weight: 600; line-height: 1.28; letter-spacing: .11em; text-transform: uppercase; }
.mobile-header, .mobile-drawer { display: none; }

.front { position: relative; min-height: max(780px, 100svh); isolation: isolate; overflow: hidden; background: #090b0d; }
.front::before { content: ""; position: absolute; z-index: 8; inset: 18px; pointer-events: none; border: 1px solid rgba(209,190,144,.3); clip-path: var(--notch); box-shadow: inset 0 0 0 4px rgba(5,6,7,.55); }
.front::after { content: ""; position: absolute; z-index: 8; left: 50%; top: 18px; width: 12px; height: 12px; border: 1px solid var(--gold-light); background: var(--oxblood); transform: translate(-50%, -50%) rotate(45deg); }
.front-art { position: absolute; z-index: -3; inset: -3%; background: url("assets/game/launcher_hero.jpg") 62% center / cover no-repeat; filter: saturate(.82) contrast(1.08); transition: transform .7s var(--ease); }
.front-shadow { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(5,6,7,.95) 0, rgba(5,6,7,.78) 34%, rgba(5,6,7,.15) 67%, rgba(5,6,7,.4) 100%), linear-gradient(180deg, rgba(5,6,7,.1), transparent 62%, #070809 100%); }
.front-coordinate { position: absolute; z-index: 5; color: rgba(223,226,224,.64); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.coordinate-a { left: 42px; top: 47%; writing-mode: vertical-rl; transform: rotate(180deg); }
.coordinate-b { right: 42px; top: 50%; writing-mode: vertical-rl; }
.front-title { position: absolute; z-index: 5; left: clamp(45px, 6vw, 112px); top: 49%; width: min(860px, 58vw); transform: translateY(-50%); }
.front-title h1 { margin: 24px 0 28px; color: #ece8dd; font: 500 clamp(74px, 7.5vw, 136px)/.75 var(--serif); letter-spacing: -.065em; text-shadow: 0 4px 0 #08090a, 0 15px 45px rgba(0,0,0,.68); text-wrap: balance; }
.front-title h1 small { display: block; margin-bottom: 17px; color: var(--gold-light); font: 600 16px/1 var(--condensed); letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.front-title h1 em { color: #c9cdd0; font-weight: 400; }
.front-title > p { width: min(590px, 86%); color: #c1b9a8; font: 500 21px/1.55 var(--serif); text-shadow: 0 2px 9px #000; }
.front-actions { margin-top: 38px; display: flex; align-items: center; gap: 18px; }
.seal-action, .plain-action { position: relative; min-height: 62px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 26px; clip-path: var(--notch); font-size: 13px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: transform .35s var(--ease), filter .3s; }
.seal-action { min-width: 285px; color: #f3ead6; background: linear-gradient(180deg, #a6292c, #761417 52%, #43090c); box-shadow: inset 0 0 0 2px #d29a49; }
.seal-action::before, .plain-action::before { content: ""; position: absolute; z-index: -1; inset: 3px; clip-path: inherit; border: 1px solid rgba(246,218,158,.55); background: linear-gradient(100deg, rgba(255,255,255,.13), transparent 30%, rgba(0,0,0,.18)); }
.seal-action::after, .plain-action::after { content: ""; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; border: 1px solid #e9c26e; background: #760f14; transform: translate(-50%, -50%) rotate(45deg); }
.plain-action { min-width: 250px; color: #ece4d4; background: linear-gradient(180deg, #32363a, #17191c 55%, #0b0c0e); }
.plain-action::after { background: #253d70; }
.seal-action:hover, .plain-action:hover { transform: translateY(-4px); filter: brightness(1.15); }
.seal-action i { color: var(--gold-light); font-size: 19px; font-style: normal; }

.intel { position: absolute; z-index: 7; right: clamp(58px, 5vw, 95px); top: 50%; width: min(365px, 27vw); overflow: hidden; background: linear-gradient(145deg, rgba(33,36,39,.95), rgba(8,9,10,.96)); clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px); transform: translateY(-50%); box-shadow: 0 35px 90px rgba(0,0,0,.56); }
.intel::before { content: ""; position: absolute; z-index: 5; inset: 3px; pointer-events: none; border: 1px solid rgba(210,183,118,.48); clip-path: inherit; }
.intel-head { min-height: 52px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; color: #d5cebe; border-bottom: 1px solid rgba(201,168,93,.35); background: linear-gradient(90deg, rgba(119,20,23,.42), transparent); font-size: 14px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.intel-head i { width: 11px; height: 11px; border: 1px solid var(--gold); background: var(--oxblood); transform: rotate(45deg); }
.intel-body { min-height: 250px; padding: 34px 34px 28px; background: radial-gradient(circle at 100% 0, rgba(47,79,139,.16), transparent 38%); }
.intel-index { color: var(--gold-light); font-size: 14px; letter-spacing: .13em; }
.intel-body h2 { margin: 38px 0 16px; color: #f0eadf; font: 500 36px/1.02 var(--serif); letter-spacing: -.025em; }
.intel-body p { margin: 0; color: #aaa394; font: 500 19px/1.55 var(--serif); }
.intel-tabs { padding: 4px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #08090a; }
.intel-tabs button { position: relative; height: 48px; border: 1px solid #303338; color: #8b8f90; background: linear-gradient(#25282b, #111315); font-size: 14px; font-weight: 600; cursor: pointer; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); transition: .25s; }
.intel-tabs button:hover, .intel-tabs button.active { color: #fff2d0; border-color: #d3a34d; background: linear-gradient(#a22a2c, #671013); }
.front-bottom { position: absolute; z-index: 9; left: 48px; right: 48px; bottom: 31px; display: flex; align-items: center; justify-content: space-between; color: rgba(223,225,218,.76); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.front-bottom > div { display: flex; align-items: center; gap: 14px; }
.front-bottom i { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }

.manual { position: relative; padding-block: 150px; display: grid; grid-template-columns: .72fr 1.65fr; gap: clamp(80px, 11vw, 190px); background: radial-gradient(circle at 15% 15%, rgba(38,58,72,.18), transparent 25%); }
.manual::before { content: ""; position: absolute; left: 31%; top: 110px; bottom: 110px; width: 1px; background: linear-gradient(transparent, rgba(201,166,90,.42), transparent); }
.manual-aside { position: sticky; top: 120px; align-self: start; }
.manual-aside h2 { margin: 50px 0 22px; color: #f0ebdf; font: 500 clamp(52px, 5vw, 78px)/.92 var(--serif); letter-spacing: -.05em; }
.manual-aside > p { max-width: 410px; color: #aaa395; font: italic 22px/1.5 var(--serif); }
.manual-rule { position: relative; width: 245px; min-height: 126px; margin-top: 65px; padding: 20px 28px; display: flex; align-items: center; gap: 25px; clip-path: var(--notch); background: linear-gradient(135deg, #31353a, #101214 58%); }
.manual-rule::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(210,184,119,.42); clip-path: inherit; }
.manual-rule b { color: #e4e5df; font: 500 72px/.8 var(--serif); text-shadow: 2px 2px #090a0b; }
.manual-rule span { color: #b8b09f; font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: .11em; text-transform: uppercase; }
.manual-pages { display: grid; gap: 130px; }
.manual-page { position: relative; min-height: 460px; padding: 52px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; overflow: hidden; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); background: linear-gradient(145deg, rgba(32,35,39,.9), rgba(11,12,14,.94)); box-shadow: 0 38px 100px rgba(0,0,0,.26); }
.manual-page::before { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid rgba(204,175,106,.33); clip-path: inherit; }
.manual-page::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border: 1px solid var(--gold-light); background: var(--oxblood); transform: translateX(-50%) rotate(45deg); }
.manual-page.reverse > div:last-child { grid-column: 1; grid-row: 1; }
.manual-page.reverse .page-diagram { grid-column: 2; }
.page-index { position: absolute; right: 32px; bottom: -25px; color: rgba(225,228,225,.045); font: 500 190px/.8 var(--serif); }
.manual-page small { color: var(--gold-light); font-size: 14px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.manual-page h3 { margin: 21px 0; color: #efeadf; font: 500 clamp(35px, 3vw, 49px)/1.03 var(--serif); letter-spacing: -.03em; }
.manual-page p { color: #aaa395; font: 500 19px/1.65 var(--serif); }
.page-diagram { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #494e53; background: radial-gradient(circle, rgba(151,155,157,.14), transparent 58%), repeating-linear-gradient(45deg, transparent 0 17px, rgba(255,255,255,.025) 18px); clip-path: polygon(17% 0, 83% 0, 100% 17%, 100% 83%, 83% 100%, 17% 100%, 0 83%, 0 17%); }
.manual-page:nth-child(1) .page-diagram { background: linear-gradient(rgba(7,8,9,.42),rgba(7,8,9,.78)),url("assets/game/battlefield.jpg") center/cover; }
.manual-page:nth-child(2) .page-diagram { background: linear-gradient(rgba(7,8,9,.3),rgba(7,8,9,.76)),url("assets/game/blade_acquisition.jpg") center/cover; }
.manual-page:nth-child(3) .page-diagram { background: linear-gradient(rgba(7,8,9,.28),rgba(7,8,9,.78)),url("assets/game/aradins_last_stand.jpg") center/cover; }
.page-diagram::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(205,173,97,.35); clip-path: inherit; }
.command-diagram i { position: absolute; width: 38%; height: 38%; border: 1px solid #777d80; background: linear-gradient(145deg, #292d31, #0e1012); transform: rotate(45deg); }
.command-diagram i:nth-child(1) { left: 13%; top: 13%; }.command-diagram i:nth-child(2) { right: 13%; top: 13%; }.command-diagram i:nth-child(3) { bottom: 13%; }
.command-diagram b { position: relative; z-index: 2; color: var(--gold-light); font: 500 52px/1 var(--serif); }
.lanes-diagram { gap: 8%; grid-template-columns: repeat(3, 16%); }
.lanes-diagram i { height: 70%; border: 1px solid #686d70; background: linear-gradient(180deg, rgba(47,78,139,.66), rgba(19,26,37,.22)); transform: skewY(-8deg); }
.lanes-diagram b { position: absolute; color: var(--gold-light); font: 500 36px/1 var(--serif); }
.resolve-diagram i, .resolve-diagram b { position: absolute; width: 105px; height: 105px; display: grid; place-items: center; border: 2px solid #899095; color: #e5e7e3; background: #111316; font: 500 66px/1 var(--serif); transform: rotate(45deg); }
.resolve-diagram i { left: 20%; }.resolve-diagram b { right: 20%; border-color: #8f2427; color: #c34a4c; }
.resolve-diagram i::first-letter, .resolve-diagram b::first-letter { transform: rotate(-45deg); }

.atlas { min-height: 850px; display: grid; grid-template-columns: 1.35fr .65fr; border-block: 1px solid #454a4d; background: #080a0b; }
.atlas-map { position: relative; min-height: 850px; overflow: hidden; }
.atlas-map::after { content: ""; position: absolute; inset: 18px; pointer-events: none; border: 1px solid rgba(219,191,122,.35); clip-path: var(--notch); }
.atlas-map > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08) brightness(.72); }
.atlas-scan { position: absolute; inset: 0; background: radial-gradient(circle at 48% 48%, transparent 0 15%, rgba(9,10,11,.2) 48%, rgba(4,5,6,.78) 100%), repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.017) 5px); }
.map-pin { position: absolute; z-index: 4; width: 130px; height: 54px; display: flex; align-items: center; gap: 12px; border: 0; color: #d5d0c4; background: linear-gradient(90deg, rgba(8,9,10,.9), rgba(31,35,39,.82)); clip-path: polygon(10px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 10px 100%, 0 calc(100% - 9px), 0 9px); cursor: pointer; transition: transform .3s, filter .3s; }
.map-pin::before { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(213,182,108,.38); clip-path: inherit; }
.map-pin i { position: relative; width: 22px; height: 22px; margin-left: 13px; border: 2px solid #b8bdbe; background: #273039; transform: rotate(45deg); box-shadow: inset 0 0 0 4px #101214, 0 4px 16px #000; }
.map-pin span { position: relative; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.map-pin:hover, .map-pin.active { color: #fff0ca; filter: brightness(1.2); transform: translateY(-4px); }
.map-pin.active i { border-color: var(--gold-light); background: var(--oxblood); }
.pin-cinder { left: 64%; top: 31%; }.pin-verdant { left: 21%; top: 27%; }.pin-hollow { left: 46%; top: 56%; }.pin-mire { left: 34%; top: 72%; }
.atlas-panel { position: relative; min-height: 850px; padding: 78px clamp(34px, 4vw, 70px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: linear-gradient(110deg, #1b1e21, #0b0d0f 60%); border-left: 4px ridge #565b5e; }
.atlas-panel::before { content: ""; position: absolute; inset: 18px; pointer-events: none; border: 1px solid rgba(203,172,100,.32); clip-path: var(--notch); }
.atlas-panel::after { content: "V"; position: absolute; right: -20px; bottom: -70px; color: rgba(226,228,222,.035); font: 500 360px/.8 var(--serif); }
.atlas-compass { position: absolute; right: 62px; top: 70px; width: 92px; height: 92px; border: 1px solid #62686b; border-radius: 50%; }
.atlas-compass::before, .atlas-compass::after { content: ""; position: absolute; inset: 50% 10px auto; height: 1px; background: #555b5f; }.atlas-compass::after { transform: rotate(90deg); }
.atlas-compass i { position: absolute; left: 50%; top: 9px; width: 14px; height: 38px; clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%); background: linear-gradient(90deg, var(--oxblood) 50%, var(--silver) 50%); transform: translateX(-50%); }
.atlas-compass span { position: absolute; left: 50%; top: -25px; color: var(--gold-light); font-size: 12px; transform: translateX(-50%); }
.atlas-copy { position: relative; z-index: 2; margin-top: 70px; }
.atlas-copy > small { color: var(--gold-light); font-size: 14px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.atlas-copy h2 { margin: 22px 0; color: #eeeadf; font: 500 clamp(55px, 5vw, 82px)/.85 var(--serif); letter-spacing: -.05em; }
.atlas-copy > p { color: #aaa395; font: 500 19px/1.6 var(--serif); }
.atlas-copy dl { margin: 42px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); clip-path: var(--notch); background: linear-gradient(#2f3337, #131517); }
.atlas-copy dl div { padding: 20px 14px; border-right: 1px solid #41464a; }
.atlas-copy dl div:last-child { border: 0; }
.atlas-copy dt { color: #9e9686; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.atlas-copy dd { margin: 7px 0 0; color: #e8e2d4; font: 600 18px/1 var(--serif); }
.atlas-count { position: relative; z-index: 2; margin-top: 52px; display: flex; align-items: baseline; gap: 12px; }
.atlas-count b { color: var(--gold-light); font: 500 43px/1 var(--serif); }
.atlas-count span { color: #918a7d; font-size: 13px; letter-spacing: .11em; text-transform: uppercase; }

.houses { padding-block: 145px; background: radial-gradient(circle at 75% 20%, rgba(111,24,26,.11), transparent 27%), #0a0b0c; }
.houses-head { display: flex; align-items: flex-end; justify-content: space-between; }
.houses-head p { margin: 0; color: #e7e1d4; font: italic 30px/1.25 var(--serif); text-align: right; }
.house-stage { width: calc(100vw - var(--rail)); height: 730px; min-height: 730px; margin-top: 68px; display: grid; grid-template-columns: .72fr .7fr .75fr; border-block: 1px solid #454a4e; background: linear-gradient(90deg, #0b0c0e, #17191d 50%, #0b0c0d); }
.house-list { padding: 42px; display: grid; align-content: center; gap: 13px; }
.house-list button { position: relative; min-height: 112px; padding: 18px 28px; display: grid; grid-template-columns: 34px 1fr; align-content: center; gap: 7px 16px; border: 0; color: #aaa69b; background: linear-gradient(100deg, #202328, #101214); clip-path: var(--notch); text-align: left; cursor: pointer; transition: color .3s, transform .35s var(--ease), filter .3s; }
.house-list button::before { content: ""; position: absolute; inset: 3px; border: 1px solid #43484c; clip-path: inherit; transition: border-color .3s; }
.house-list button::after { content: ""; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; border: 1px solid #82704a; background: #521012; transform: translate(-50%, -50%) rotate(45deg); }
.house-list button:hover, .house-list button.active { color: #f0e7d3; filter: brightness(1.13); transform: translateX(8px); background: linear-gradient(100deg, #6e1417, #261113 70%, #101214); }
.house-list button.active::before { border-color: var(--gold); }
.house-list button span { grid-row: 1 / 3; align-self: center; color: var(--gold-light); font-size: 14px; }
.house-list button b { font: 600 29px/1 var(--serif); }
.house-list button small { color: #a19a8c; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.house-portrait { position: relative; min-height: 730px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, rgba(216,199,155,.1), transparent 62%); }
.house-portrait::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(211,178,101,.4); clip-path: var(--notch); }
.house-portrait img { position: relative; z-index: 2; width: min(78%, 430px); max-height: 660px; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 35px 35px rgba(0,0,0,.72)); transition: opacity .25s, transform .6s var(--ease); }
.house-portrait.changing img { opacity: 0; transform: translateY(18px) rotateY(-5deg); }
.house-watermark { position: absolute; z-index: 1; left: 50%; bottom: 20px; color: rgba(235,235,226,.055); font: 600 clamp(65px, 6vw, 115px)/1 var(--serif); letter-spacing: -.05em; white-space: nowrap; transform: translateX(-50%); }
.house-record { position: relative; padding: clamp(42px, 5vw, 78px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: linear-gradient(130deg, rgba(33,36,40,.8), rgba(8,9,10,.95)); border-left: 1px solid #3f4448; }
.house-record::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(206,174,99,.3); clip-path: var(--notch); }
.house-record > * { position: relative; z-index: 2; }
.house-record > span { color: var(--gold-light); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.house-record blockquote { margin: 68px 0 28px; color: #f0eadd; font: italic 500 clamp(32px, 3vw, 47px)/1.13 var(--serif); }
.house-record blockquote.lore-long { margin-top: 54px; font-size: clamp(27px, 2.45vw, 39px); line-height: 1.12; }
.house-record blockquote.lore-very-long { margin-top: 46px; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.1; }
.house-record p { color: #aaa395; font: 500 19px/1.62 var(--serif); }
.house-record a { width: max-content; min-height: 54px; margin-top: 48px; padding: 0 21px; display: flex; align-items: center; gap: 30px; color: #ece5d7; background: linear-gradient(#34383c, #141619); clip-path: var(--notch); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.house-record a span { color: var(--gold-light); }

.dispatches { padding-block: 120px; }
.dispatch-head { margin-bottom: 52px; display: flex; align-items: flex-end; justify-content: space-between; }
.dispatch-head h2 { margin: 0; color: #ece7dc; font: 500 clamp(44px, 4.8vw, 76px)/1 var(--serif); letter-spacing: -.045em; }
.dispatch-list { display: grid; gap: 15px; }
.dispatch { position: relative; min-height: 150px; padding: 14px 30px 14px 14px; display: grid; grid-template-columns: 190px 90px 125px minmax(220px,.8fr) 1.2fr; align-items: center; gap: 24px; overflow: hidden; color: #a8a294; background: linear-gradient(100deg, #22262a, #0e1012 62%); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); transition: transform .4s var(--ease), filter .3s; }
.dispatch::before { content: ""; position: absolute; inset: 3px; pointer-events: none; border: 1px solid #3e4448; clip-path: inherit; }
.dispatch::after { content: ""; position: absolute; left: 220px; top: 50%; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--oxblood); transform: translate(-50%, -50%) rotate(45deg); }
.dispatch:hover { filter: brightness(1.15); transform: translateX(8px); }
.dispatch img { width: 190px; height: 120px; object-fit: cover; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); filter: saturate(.75); }
.dispatch time, .dispatch > span, .dispatch p { color: #a49d8e; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dispatch > span { color: var(--gold-light); }
.dispatch h3 { margin: 0; color: #eee8da; font: 600 clamp(24px, 2.2vw, 35px)/1 var(--serif); }
.dispatch p { line-height: 1.5; text-align: left; }
.dispatch > b { color: var(--gold-light); font-size: 22px; font-weight: 400; }

.archive-gate { position: relative; min-height: 780px; display: grid; place-items: center; overflow: hidden; background: #070809; }
.archive-gate::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(205,174,101,.36); clip-path: var(--notch); }
.archive-gate-link { position: relative; z-index: 3; width: 100%; min-height: 780px; display: grid; place-content: center; justify-items: center; text-align: center; }
.archive-strip { position: absolute; z-index: -1; inset: 0; padding: 38px 5vw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; opacity: .38; filter: saturate(.68) contrast(1.1); }
.archive-strip::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(6,7,8,.2), #060708 70%), linear-gradient(90deg, #060708, transparent 30% 70%, #060708); }
.archive-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: 22px; }
.archive-gate-link h2 { margin: 28px 0 20px; color: #eee9df; font: 500 clamp(75px, 9vw, 150px)/.73 var(--serif); letter-spacing: -.07em; text-shadow: 0 9px 38px #000; }
.archive-gate-link h2 em { color: var(--gold-light); font-weight: 400; }
.archive-gate-link p { color: #c0b7a7; font: 500 21px/1.5 var(--serif); }
.archive-gate-link > i { min-width: 210px; min-height: 57px; margin-top: 32px; padding: 0 23px; display: grid; place-items: center; color: #f3ead4; background: linear-gradient(#982528, #5b0e11); clip-path: var(--notch); font-size: 13px; font-style: normal; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.footer { padding-block: 85px 42px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 50px; }
.footer > img { width: 300px; }
.footer > p { color: #a9a294; font: 500 18px/1.5 var(--serif); }
.footer nav { display: flex; gap: 25px; }
.footer nav a { min-height: 40px; padding: 0 10px; display: grid; place-items: center; color: #aba495; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.footer nav a:hover { color: var(--gold-light); }
.footer small { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid #303438; color: #858074; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .front-title { width: 59vw; }
  .intel { width: 30vw; right: 35px; }
  .manual { grid-template-columns: .75fr 1.5fr; gap: 85px; }
  .manual-page { padding: 42px; gap: 38px; }
  .house-stage { height: auto; grid-template-columns: .8fr .75fr; }
  .house-record { grid-column: 1 / -1; min-height: 470px; }
  .dispatch { grid-template-columns: 160px 80px 105px 1fr 24px; }
  .dispatch img { width: 160px; }
  .dispatch p { display: none; }
}

@media (max-width: 1080px) {
  :root { --rail: 0px; --page: calc(100vw - 44px); }
  body { padding-left: 0; }
  .rail { display: none; }
  .mobile-header { position: fixed; z-index: 150; inset: 0 0 auto; height: 76px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #4b5053; background: linear-gradient(90deg, rgba(12,13,15,.97), rgba(30,33,37,.96), rgba(9,10,11,.97)); box-shadow: 0 8px 30px #000; }
  .mobile-header::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--oxblood); transform: translateX(-50%) rotate(45deg); }
  .mobile-header > a { display: flex; align-items: center; gap: 12px; color: #eee7d8; font: 600 19px/1 var(--serif); }
  .mobile-header img { width: 48px; height: 48px; object-fit: cover; }
  .mobile-header button { width: 48px; height: 42px; padding: 0; border: 1px solid #676d70; background: linear-gradient(#292d31, #111315); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
  .mobile-header button i { display: block; width: 19px; height: 2px; margin: 5px auto; background: var(--gold-light); transition: .3s; }
  .mobile-header button.open i:first-child { transform: translateY(3.5px) rotate(45deg); }.mobile-header button.open i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-drawer { position: fixed; z-index: 140; inset: 76px 0 0; padding: 10vh 24px 30px; align-content: start; background: radial-gradient(circle at 50% 15%, #25292d, #08090a 58%); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .4s var(--ease); }
  .mobile-drawer.open { display: grid; opacity: 1; visibility: visible; transform: none; }
  .mobile-drawer a { position: relative; min-height: 78px; margin-bottom: 10px; padding: 0 23px; display: flex; align-items: center; justify-content: space-between; color: #ede6d7; background: linear-gradient(90deg, #2b2f33, #101214); clip-path: var(--notch); font: 600 35px/1 var(--serif); }
  .mobile-drawer a::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(206,174,99,.4); clip-path: inherit; }
  .mobile-drawer span { color: var(--gold-light); font: 600 12px/1 var(--condensed); }
  .front { min-height: 940px; padding-top: 76px; }
  .front::before { top: 90px; }
  .front-art { background-position: 56% center; }
  .front-title { left: 34px; top: 42%; width: calc(100% - 68px); }
  .front-title h1 { font-size: clamp(66px, 11vw, 105px); }
  .front-title > p { width: min(580px, 72%); }
  .intel { right: 34px; top: auto; bottom: 88px; width: 360px; transform: none; }
  .intel-body { display: none; }
  .front-bottom { left: 34px; right: 34px; }
  .front-bottom > span:first-child { display: none; }
  .manual { grid-template-columns: 1fr; gap: 90px; }
  .manual::before { display: none; }
  .manual-aside { position: relative; top: 0; }
  .manual-rule { margin-top: 38px; }
  .manual-page { min-height: 450px; }
  .atlas { grid-template-columns: 1fr; }
  .atlas-map, .atlas-panel { min-height: 690px; }
  .atlas-panel { border-left: 0; border-top: 4px ridge #565b5e; }
  .house-stage { width: 100%; }
  .dispatch { grid-template-columns: 170px 85px 1fr 24px; }
  .dispatch > span { display: none; }
}

@media (max-width: 650px) {
  :root { --page: calc(100vw - 28px); --notch: polygon(10px 0, calc(50% - 7px) 0, 50% 5px, calc(50% + 7px) 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
  .paper-grain { opacity: .045; }
  .ash-canvas { display: none; }
  .folio { font-size: 13px; }
  .front { min-height: 900px; }
  .front-art { inset: 0; background-position: 67% center; opacity: .83; }
  .front-shadow { background: linear-gradient(180deg, rgba(5,6,7,.18), rgba(5,6,7,.2) 28%, rgba(5,6,7,.96) 75%); }
  .front-coordinate { display: none; }
  .front-title { top: auto; bottom: 205px; transform: none; }
  .front-title h1 { margin: 18px 0; font-size: clamp(54px, 15vw, 76px); }
  .front-title h1 small { font-size: 14px; }
  .front-title > p { width: 100%; font-size: 19px; }
  .front-actions { align-items: stretch; flex-direction: column; }
  .seal-action, .plain-action { width: 100%; min-width: 0; }
  .intel { display: none; }
  .front-bottom > span { display: none; }
  .front-bottom { justify-content: center; bottom: 42px; }
  .manual { padding-block: 105px; }
  .manual-aside h2 { font-size: 55px; }
  .manual-pages { gap: 70px; }
  .manual-page, .manual-page.reverse { min-height: 0; padding: 34px 24px; grid-template-columns: 1fr; gap: 32px; }
  .manual-page.reverse > div:last-child, .manual-page.reverse .page-diagram { grid-column: auto; grid-row: auto; }
  .page-diagram { width: 86%; margin-inline: auto; }
  .page-index { font-size: 130px; }
  .atlas-map, .atlas-panel { min-height: 580px; }
  .map-pin { width: 46px; height: 46px; }
  .map-pin i { width: 18px; height: 18px; margin-left: 14px; }
  .map-pin span { display: none; }
  .pin-cinder { left: 67%; }.pin-verdant { left: 22%; }.pin-hollow { left: 50%; }.pin-mire { left: 38%; }
  .atlas-panel { padding: 54px 27px 38px; }
  .atlas-panel::before { inset: 10px; }
  .atlas-compass { right: 34px; top: 58px; width: 70px; height: 70px; }
  .atlas-copy h2 { font-size: 61px; }
  .atlas-copy dl { grid-template-columns: 1fr; }
  .atlas-copy dl div { border-right: 0; border-bottom: 1px solid #3f4447; }
  .houses { padding-block: 105px; }
  .houses-head { align-items: flex-start; flex-direction: column; gap: 26px; }
  .houses-head p { text-align: left; }
  .house-stage { grid-template-columns: 1fr; }
  .house-list { order: 2; padding: 24px 14px; }
  .house-list button { min-height: 94px; }
  .house-portrait { order: 1; min-height: 620px; }
  .house-portrait img { max-height: 560px; }
  .house-record { order: 3; min-height: 530px; padding: 44px 28px; }
  .house-record::before { inset: 10px; }
  .house-record blockquote { margin-top: 48px; font-size: 39px; }
  .house-record blockquote.lore-long { font-size: 32px; }
  .house-record blockquote.lore-very-long { font-size: 28px; }
  .dispatches { padding-block: 90px; }
  .dispatch-head { align-items: flex-start; flex-direction: column; gap: 24px; }
  .dispatch { min-height: 165px; padding: 12px; grid-template-columns: 110px 1fr; gap: 14px; }
  .dispatch img { width: 110px; height: 135px; grid-row: 1 / 3; }
  .dispatch time { align-self: end; }
  .dispatch > span, .dispatch p { display: none; }
  .dispatch h3 { grid-column: 2; align-self: start; font-size: 25px; }
  .dispatch > b { grid-column: 3; grid-row: 1 / 3; }
  .dispatch::after { display: none; }
  .archive-gate, .archive-gate-link { min-height: 670px; }
  .archive-strip { grid-template-columns: repeat(2, 1fr); }
  .archive-strip img:nth-child(n+3) { display: none; }
  .archive-gate-link h2 { font-size: 73px; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { flex-wrap: wrap; }
  .footer small { grid-column: 1; }
}

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