:root {
  --obsidian: #090b0c;
  --obsidian-raised: #121412;
  --obsidian-soft: #171914;
  --sky: #52a8d7;
  --sky-deep: #165778;
  --aqua: #9aead7;
  --aqua-soft: #c7f4df;
  --brass: #c9a760;
  --brass-light: #f1d990;
  --crimson: #c9475c;
  --crimson-light: #ed7180;
  --paper: #edf2eb;
  --muted: #b2c1b8;
  --line: rgba(201, 167, 96, .46);
  --aqua-line: rgba(154, 234, 215, .48);
  --shadow: 0 24px 70px rgba(0, 0, 0, .44);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--obsidian); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background-color: var(--obsidian);
  background-image: linear-gradient(115deg, rgba(22, 87, 120, .16) 0%, transparent 33%), linear-gradient(235deg, rgba(154, 234, 215, .08) 0%, transparent 38%), linear-gradient(180deg, #0a0d0e 0%, #11110e 52%, #080a0b 100%);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.76;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .22; background-image: linear-gradient(90deg, rgba(201, 167, 96, .12) 1px, transparent 1px), linear-gradient(rgba(201, 167, 96, .10) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 76%); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: .7rem 1rem; color: #101010; background: var(--brass-light); }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section { position: relative; padding: 7rem 0; }
.section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1160px, calc(100% - 40px)); height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); transform: translateX(-50%); }
.eyebrow { margin: 0 0 .75rem; color: var(--aqua); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-title { max-width: 830px; margin: 0 0 1rem; font-family: Georgia, "Noto Serif SC", serif; font-size: 3.1rem; font-weight: 700; letter-spacing: 0; line-height: 1.15; }
.section-intro { max-width: 700px; margin: 0 0 2.2rem; color: var(--muted); }
.text-link { color: var(--aqua); font-weight: 800; border-bottom: 1px solid rgba(154, 234, 215, .46); }
.text-link:hover { color: var(--brass-light); }

/* Slim brass-and-aqua control panel on inner pages. */
.site-header { position: sticky; top: 0; z-index: 30; padding: .78rem 0; border-bottom: 1px solid rgba(201, 167, 96, .15); background: rgba(8, 10, 11, .82); backdrop-filter: blur(18px); }
.nav-shell { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--paper); font-family: Georgia, "Noto Serif SC", serif; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.brand-mark { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; overflow: hidden; border: 1px solid rgba(241, 217, 144, .8); border-radius: 50%; background: var(--obsidian-raised); box-shadow: 0 0 14px rgba(82, 168, 215, .24); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.menu-toggle { display: none; width: 2.5rem; height: 2.5rem; place-items: center; padding: 0; color: var(--aqua); background: rgba(11, 17, 17, .7); border: 1px solid var(--aqua-line); border-radius: 4px; cursor: pointer; }
.menu-glyph { display: block; font-size: 1.05rem; line-height: 1; }
.primary-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .1rem .45rem; }
.primary-nav a { position: relative; padding: .42rem .52rem; color: #dce6de; font-size: .85rem; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; right: .52rem; bottom: .2rem; left: .52rem; height: 1px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header--hero { position: absolute; inset: 0 0 auto; padding-top: 1.25rem; background: transparent; border-bottom: 0; backdrop-filter: none; }
.site-header--hero.is-solid { position: sticky; padding-top: .78rem; border-bottom: 1px solid rgba(201, 167, 96, .15); background: rgba(8, 10, 11, .88); backdrop-filter: blur(18px); }
.site-header--hero .menu-toggle { display: grid; }
.site-header--hero .primary-nav { display: none; position: absolute; top: calc(100% + .65rem); right: 0; width: min(318px, calc(100vw - 40px)); padding: .62rem; border: 1px solid var(--line); background: rgba(8, 11, 12, .96); box-shadow: var(--shadow); }
.site-header--hero .primary-nav.is-open { display: grid; }
.site-header--hero .primary-nav a { padding: .68rem .7rem; }

/* Full-screen shrine entry. The command sigil is a functional menu control. */
.hero { position: relative; display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 8.5rem 0 4.5rem; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media::after { position: absolute; inset: 0; z-index: -2; }
.hero-media { overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; filter: brightness(.84) saturate(.92) contrast(1.04); transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1.05); transition: transform .28s ease-out; }
.hero-media::after { content: ""; z-index: 1; background: linear-gradient(90deg, rgba(5, 9, 11, .62) 0%, rgba(8, 13, 15, .24) 52%, rgba(7, 12, 14, .39) 100%), linear-gradient(0deg, var(--obsidian) 0%, transparent 28%, rgba(6, 10, 11, .08) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before { width: 40rem; height: 40rem; border: 1px solid rgba(154, 234, 215, .16); border-radius: 50%; box-shadow: 0 0 0 28px rgba(201, 167, 96, .04), 0 0 70px rgba(82, 168, 215, .13); }
.hero::after { inset: auto 0 0; height: 12rem; background: repeating-linear-gradient(90deg, rgba(201, 167, 96, .24) 0 1px, transparent 1px 50px); mask-image: linear-gradient(to bottom, transparent, black); }
.hero-copy { position: relative; width: min(760px, 100%); padding: 1.4rem 0; text-align: center; }
.hero-copy .eyebrow { margin-top: 1.1rem; }
.hero h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 6.2rem; font-weight: 700; letter-spacing: 0; line-height: .98; text-shadow: 0 6px 42px rgba(0, 0, 0, .58); }
.hero-subtitle { margin: 1.2rem 0 .9rem; color: var(--brass-light); font-size: 1.36rem; font-weight: 800; letter-spacing: .05em; }
.hero-description { max-width: 620px; margin: 0 auto; color: #d8e3dc; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.download-button, .outline-button, .card-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.05rem; padding: .72rem 1.18rem; border-radius: 4px; font-weight: 800; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease; }
.download-button { color: #0a100e; background: linear-gradient(135deg, var(--aqua-soft), var(--brass-light)); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 11px 28px rgba(82, 168, 215, .18); }
.download-button:hover { color: #fff8ed; background: linear-gradient(135deg, var(--crimson-light), var(--crimson)); box-shadow: 0 13px 32px rgba(201, 71, 92, .3); transform: translateY(-2px); }
.outline-button { color: var(--brass-light); background: rgba(7, 12, 13, .38); border: 1px solid var(--line); }
.outline-button:hover { color: var(--aqua); border-color: var(--aqua-line); transform: translateY(-2px); }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; color: #d1dcd5; font-size: .85rem; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: .4rem; }
.hero-facts strong { color: var(--brass-light); }
.hero-sigil { position: relative; display: grid; width: 7rem; height: 7rem; margin: 0 auto; place-items: center; color: var(--aqua-soft); background: rgba(8, 16, 17, .34); border: 1px solid rgba(154, 234, 215, .76); border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 9px rgba(201, 167, 96, .10), 0 0 35px rgba(82, 168, 215, .25); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.hero-sigil::before, .hero-sigil::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.hero-sigil::before { inset: .6rem; border-style: dashed; animation: sigil-turn 18s linear infinite; }
.hero-sigil::after { inset: -1rem; border-color: rgba(154, 234, 215, .29); }
.hero-sigil:hover, .hero-sigil:focus-visible { border-color: var(--brass-light); box-shadow: 0 0 0 12px rgba(201, 167, 96, .12), 0 0 48px rgba(154, 234, 215, .34); transform: rotate(9deg) scale(1.04); }
.sigil-core { position: relative; z-index: 1; font-size: 1.7rem; }
.scroll-cue { position: absolute; right: max(22px, calc((100% - 1160px) / 2)); bottom: 1.6rem; color: var(--muted); font-size: .73rem; letter-spacing: .13em; writing-mode: vertical-rl; }

/* Forgemaster mosaic: a deliberately asymmetrical record wall. */
.forge-section { background: linear-gradient(180deg, rgba(12, 15, 13, .84), rgba(14, 21, 21, .58)); }
.forge-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.forge-heading .section-title { margin-bottom: 0; }
.forge-note { max-width: 310px; margin: 0; color: var(--muted); font-size: .9rem; }
.forge-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr); gap: 1rem; }
.forge-lead { position: relative; display: grid; min-height: 480px; align-items: end; overflow: hidden; border: 1px solid var(--aqua-line); background: #0c1110; box-shadow: var(--shadow); }
.forge-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.68) saturate(.76); transition: transform .5s ease, filter .5s ease; }
.forge-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 10, 10, .94), rgba(9, 13, 14, .08) 64%); }
.forge-lead:hover img { filter: brightness(.84) saturate(.96); transform: scale(1.035); }
.forge-lead-copy { position: relative; z-index: 1; padding: 2rem; }
.forge-lead-copy h3 { max-width: 450px; margin: .45rem 0 .55rem; font-family: Georgia, "Noto Serif SC", serif; font-size: 2rem; line-height: 1.2; }
.forge-lead-copy p { max-width: 540px; margin: 0; color: #d2ddd5; }
.forge-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.forge-cell { position: relative; min-height: 232px; padding: 1.25rem; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(24, 26, 19, .94), rgba(10, 17, 17, .96)); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.forge-cell::before { content: ""; position: absolute; top: -34px; right: -34px; width: 94px; height: 94px; border: 1px solid rgba(154, 234, 215, .23); border-radius: 50%; }
.forge-cell::after { content: ""; position: absolute; bottom: 0; left: 1.25rem; width: calc(100% - 2.5rem); height: 1px; background: var(--aqua); transform: scaleX(.22); transform-origin: left; transition: transform .24s ease; }
.forge-cell:hover { border-color: var(--aqua-line); box-shadow: inset 0 0 28px rgba(154, 234, 215, .08), 0 18px 34px rgba(0,0,0,.2); transform: translateY(-4px); }
.forge-cell:hover::after { transform: scaleX(1); }
.forge-cell span { color: var(--brass-light); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.forge-cell h3 { margin: .58rem 0 .4rem; font-size: 1.12rem; line-height: 1.35; }
.forge-cell p { margin: 0; color: var(--muted); font-size: .89rem; }

/* Character convoy: horizontal scroll with a focused tactical readout. */
.character-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.15rem; align-items: stretch; }
.character-stage { min-width: 0; overflow: hidden; }
.character-rail { display: flex; gap: 1rem; padding: 0 .45rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.character-rail::-webkit-scrollbar { display: none; }
.character-card { position: relative; flex: 0 0 min(430px, 78%); min-height: 420px; padding: 0; overflow: hidden; color: var(--paper); text-align: left; background: #0a0d0c; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; scroll-snap-align: center; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.character-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 10, 10, .94) 0%, transparent 64%); pointer-events: none; }
.character-card::before { content: ""; position: absolute; z-index: 1; top: 16px; right: 16px; width: 84px; height: 84px; border: 1px dashed rgba(154, 234, 215, .55); border-radius: 50%; pointer-events: none; }
.character-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.83); transition: transform .35s ease, filter .35s ease; }
.character-card > span { position: absolute; z-index: 2; right: 1.25rem; bottom: 1.2rem; left: 1.25rem; }
.character-card small { display: block; color: var(--aqua); font-weight: 800; letter-spacing: .11em; }
.character-card strong { display: block; margin-top: .28rem; font-family: Georgia, "Noto Serif SC", serif; font-size: 1.55rem; }
.character-card:hover, .character-card:focus-visible, .character-card.is-active { border-color: var(--aqua); box-shadow: 0 15px 38px rgba(0,0,0,.4), 0 0 26px rgba(154, 234, 215, .12); outline: none; transform: translateY(-7px); }
.character-card.is-active { transform: none; }
.character-card:hover img, .character-card.is-active img { filter: saturate(1); transform: scale(1.055); }
.character-readout { position: relative; min-height: 420px; padding: 1.45rem; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(13, 22, 21, .95), rgba(23, 20, 14, .94)); }
.character-readout::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 170px; height: 170px; border: 1px solid rgba(201, 167, 96, .32); border-radius: 50%; box-shadow: 0 0 0 17px rgba(201, 167, 96, .06), 0 0 0 34px rgba(154, 234, 215, .04); }
.readout-kicker { position: relative; z-index: 1; color: var(--aqua); font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
.character-readout h3 { position: relative; z-index: 1; margin: .55rem 0 .4rem; font-family: Georgia, "Noto Serif SC", serif; font-size: 2rem; line-height: 1.2; }
.character-readout p { position: relative; z-index: 1; color: var(--muted); font-size: .92rem; }
.readout-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .42rem; margin-top: 1.25rem; }
.readout-tags span { padding: .22rem .48rem; color: var(--brass-light); border: 1px solid rgba(201, 167, 96, .45); font-size: .75rem; }
.wave-meter { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; height: 58px; margin-top: 1.5rem; }
.wave-meter i { display: block; width: 3px; height: 20%; background: var(--aqua); box-shadow: 0 0 12px rgba(154,234,215,.65); animation: wave 1.3s ease-in-out infinite; }
.wave-meter i:nth-child(2n) { height: 48%; animation-delay: .14s; }.wave-meter i:nth-child(3n) { height: 76%; animation-delay: .28s; }.wave-meter i:nth-child(4n) { height: 36%; animation-delay: .42s; }
.character-controls { display: flex; gap: .45rem; margin-top: 1rem; }
.icon-button { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; padding: 0; color: var(--brass-light); background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.icon-button:hover { color: var(--aqua); border-color: var(--aqua-line); transform: translateY(-2px); }

/* Castle construction split view: animated blueprint beside actual game imagery. */
.castle-split { display: grid; grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr); overflow: hidden; border: 1px solid var(--line); background: #0b0f0e; box-shadow: var(--shadow); }
.castle-blueprint { position: relative; min-height: 560px; padding: 1.7rem; overflow: hidden; background: linear-gradient(145deg, #0f1716, #0d1211); }
.castle-blueprint::before { content: ""; position: absolute; inset: 0; opacity: .48; background-image: linear-gradient(rgba(82, 168, 215, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 168, 215, .22) 1px, transparent 1px); background-size: 31px 31px; }
.castle-blueprint > * { position: relative; z-index: 1; }
.castle-blueprint h3 { margin: .3rem 0 0; color: var(--brass-light); font-family: Georgia, "Noto Serif SC", serif; font-size: 1.6rem; }
.blueprint-label { color: var(--aqua); font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
.castle-assembly { position: relative; height: 330px; margin-top: 2rem; }
.castle-part { position: absolute; border: 1px solid var(--brass); background: rgba(82, 168, 215, .05); box-shadow: inset 0 0 20px rgba(154, 234, 215, .07); transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s ease; }
.castle-part::before, .castle-part::after { content: ""; position: absolute; border: 1px solid rgba(154, 234, 215, .58); }
.castle-part--base { right: 10%; bottom: 18%; left: 10%; height: 23%; transform: translateY(34px); opacity: 0; }
.castle-part--tower-left { bottom: 40%; left: 17%; width: 20%; height: 34%; transform: translateX(-35px); opacity: 0; }
.castle-part--tower-right { right: 17%; bottom: 40%; width: 20%; height: 34%; transform: translateX(35px); opacity: 0; }
.castle-part--spire { bottom: 74%; left: 43%; width: 14%; height: 18%; transform: translateY(-30px); opacity: 0; }
.castle-part--bridge { right: 27%; bottom: 33%; left: 27%; height: 8%; transform: scaleX(.2); transform-origin: center; opacity: 0; }
.castle-part--base::before { inset: 16% 7%; }.castle-part--base::after { right: 18%; bottom: 0; left: 18%; height: 53%; }
.castle-part--tower-left::before, .castle-part--tower-right::before { top: -24%; left: 16%; width: 66%; height: 24%; transform: rotate(45deg); border-width: 1px 1px 0 0; }
.castle-part--spire::before { top: -60%; left: 8%; width: 82%; height: 64%; transform: rotate(45deg); border-width: 1px 1px 0 0; }
.castle-part--bridge::before { inset: 27% 9%; }
.castle-assembly.is-assembled .castle-part { opacity: 1; transform: none; }
.blueprint-key { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0; padding: 0; color: var(--muted); font-size: .78rem; list-style: none; }
.blueprint-key li::before { content: "◆"; margin-right: .3rem; color: var(--aqua); font-size: .62rem; }
.castle-media { display: grid; grid-template-rows: minmax(310px, .98fr) auto; }
.castle-media figure { min-height: 0; margin: 0; overflow: hidden; }
.castle-media img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; filter: saturate(.84) contrast(1.03); transition: transform .45s ease, filter .45s ease; }
.castle-media:hover img { filter: saturate(1); transform: scale(1.035); }
.castle-copy { padding: 2rem; background: linear-gradient(145deg, rgba(19, 26, 20, .98), rgba(12, 16, 14, .98)); }
.castle-copy h3 { margin: .3rem 0 .6rem; font-family: Georgia, "Noto Serif SC", serif; font-size: 1.85rem; line-height: 1.25; }
.castle-copy p { margin: 0; color: var(--muted); }

/* Route and archive sections retain a light command-panel structure. */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.route-card { min-height: 250px; padding: 1.45rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(25, 24, 17, .9), rgba(9, 16, 16, .94)); }
.route-card span { color: var(--aqua); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.route-card h3 { margin: .65rem 0 .5rem; font-size: 1.16rem; }.route-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.maintenance-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.25rem; }
.maintenance-log { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.maintenance-log li { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(201, 167, 96, .24); }
.maintenance-log time { color: var(--brass-light); font-size: .83rem; font-weight: 800; }.maintenance-log p { margin: 0; color: var(--muted); }.maintenance-log strong { display: block; color: var(--paper); margin-bottom: .25rem; }
.maintenance-side { padding: 1.4rem; border-left: 2px solid var(--crimson); background: rgba(19, 17, 15, .74); }.maintenance-side h3 { margin: 0 0 .45rem; color: var(--brass-light); }.maintenance-side p { margin: 0; color: var(--muted); font-size: .92rem; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.archive-card { display: flex; min-height: 230px; padding: 1.25rem; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(21, 23, 18, .92), rgba(8, 13, 14, .96)); transition: transform .2s ease, border-color .2s ease; }.archive-card:hover { border-color: var(--aqua-line); transform: translateY(-5px); }.archive-card span { color: var(--aqua); font-size: .72rem; font-weight: 800; letter-spacing: .11em; }.archive-card h3 { margin: .62rem 0; font-size: 1.13rem; }.archive-card p { margin: 0; color: var(--muted); font-size: .88rem; }.card-link { align-self: flex-start; min-height: auto; padding: .35rem 0; color: var(--brass-light); border-radius: 0; }.card-link::after { content: "→"; margin-left: .45rem; transition: transform .2s ease; }.card-link:hover::after { transform: translateX(4px); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }.faq-item { padding: 1.25rem 1.35rem; border-left: 2px solid var(--brass); background: rgba(20, 23, 18, .8); }.faq-item h3 { margin: 0 0 .5rem; font-size: 1.05rem; }.faq-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.cta-panel { padding: 4rem 2rem; text-align: center; border: 1px solid var(--aqua-line); background: linear-gradient(135deg, rgba(19, 34, 31, .92), rgba(24, 18, 13, .94)); box-shadow: var(--shadow); }.cta-panel h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 2.45rem; }.cta-panel p { max-width: 610px; margin: 1rem auto 1.7rem; color: var(--muted); }.cta-panel .download-button { margin-inline: auto; }

/* Inner-page article system. */
.page-hero { padding: 8rem 0 4rem; background: linear-gradient(105deg, rgba(8, 10, 10, .95), rgba(10, 16, 17, .56)), url("../img/adventure-party.webp") center / cover; border-bottom: 1px solid var(--line); }.page-hero h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 4.35rem; line-height: 1.05; }.page-hero p:not(.eyebrow) { max-width: 720px; color: #d2dfd7; font-size: 1.05rem; }.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.35rem; padding: 0; color: var(--muted); font-size: .86rem; list-style: none; }.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--brass); }.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 2rem; align-items: start; }.article-content { min-width: 0; }.article-content h2 { margin: 0; padding-top: .2rem; font-family: Georgia, "Noto Serif SC", serif; font-size: 2.28rem; line-height: 1.25; }.article-content h2:not(:first-child) { margin-top: 4rem; }.article-content h3 { margin: 2rem 0 .55rem; color: var(--brass-light); font-size: 1.18rem; }.article-content p, .article-content li { color: #d2dfd6; }.article-content ul, .article-content ol { padding-left: 1.35rem; }.article-content li + li { margin-top: .5rem; }.article-aside { position: sticky; top: 5.5rem; padding: 1.3rem; border: 1px solid var(--line); background: rgba(15, 17, 14, .86); }.article-aside h2 { margin: 0 0 .6rem; font-size: 1.05rem; }.article-aside a { display: block; padding: .35rem 0; color: var(--muted); font-size: .9rem; }.article-aside a:hover { color: var(--aqua); }.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin: 1.15rem 0 0; color: var(--muted); font-size: .87rem; }.article-panel { margin: 2.1rem 0; padding: 1.4rem; border: 1px solid var(--line); border-left: 3px solid var(--aqua); background: rgba(17, 22, 17, .78); }.article-panel h3 { margin-top: 0; }.article-panel p:last-child { margin-bottom: 0; }.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }.info-card { padding: 1.1rem 1.25rem; border: 1px solid var(--line); background: rgba(18, 21, 16, .82); }.info-card span { display: block; color: var(--aqua); font-size: .78rem; font-weight: 800; letter-spacing: .09em; }.info-card strong { display: block; margin-top: .25rem; color: var(--brass-light); font-size: 1rem; }.guide-step { display: grid; grid-template-columns: 2.7rem 1fr; gap: 1rem; margin: 1.2rem 0; padding: 1.25rem; border: 1px solid var(--line); background: rgba(17, 21, 17, .7); }.guide-step b { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; color: var(--obsidian); background: var(--brass); border-radius: 50%; font-family: Georgia, serif; }.guide-step h3 { margin: 0 0 .25rem; }.guide-step p { margin: 0; }.faq-list { display: grid; gap: .9rem; }details.faq-row { padding: 0 1.3rem; border: 1px solid var(--line); background: rgba(17, 21, 17, .76); }details.faq-row[open] { border-color: var(--aqua-line); }.faq-row summary { padding: 1.1rem 1.6rem 1.1rem 0; color: var(--brass-light); font-weight: 700; cursor: pointer; }.faq-row p { padding: 0 0 1.2rem; margin: 0; color: var(--muted); }.not-found { display: grid; min-height: 100vh; padding: 2rem; place-items: center; text-align: center; }.not-found h1 { margin: 0; color: var(--brass); font: 800 11rem/.8 Georgia, serif; }.not-found p { max-width: 550px; color: var(--muted); }

.system-grid, .profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.system-card, .profile-card { padding: 1.35rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18, 24, 19, .88), rgba(8, 14, 15, .9)); }
.system-card h3, .profile-card h3 { margin: 0 0 .45rem; color: var(--brass-light); }
.system-card p, .profile-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.profile-card { position: relative; overflow: hidden; }
.profile-card::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 82px; height: 82px; border: 1px solid rgba(154, 234, 215, .24); border-radius: 50%; }
.profile-card small { display: block; margin-bottom: .45rem; color: var(--aqua); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.checklist { margin: 1.25rem 0; padding: 1.2rem 1.3rem 1.2rem 2.55rem; border: 1px solid rgba(154, 234, 215, .34); background: rgba(12, 25, 23, .7); }
.checklist li::marker { color: var(--aqua); }

/* The red thread intentionally ends the journey. */
.site-footer { position: relative; padding: 3rem 0 1.4rem; background: #060708; border-top: 1px solid var(--crimson); }.site-footer::before { content: ""; position: absolute; top: -1px; right: 0; left: 0; height: 1px; box-shadow: 0 0 24px rgba(201, 71, 92, .75); }.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 2rem; }.footer-title { margin: 0 0 .8rem; color: var(--brass-light); font-family: Georgia, "Noto Serif SC", serif; font-size: 1.18rem; }.footer-copy, .footer-meta { color: var(--muted); font-size: .88rem; }.footer-links { display: flex; flex-wrap: wrap; gap: .35rem .8rem; }.footer-links a { color: #d5dfd7; font-size: .88rem; }.footer-links a:hover { color: var(--aqua); }.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; color: #849087; border-top: 1px solid rgba(201, 167, 96, .18); font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(15px); transition: opacity .6s ease, transform .6s ease; }.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes sigil-turn { to { transform: rotate(360deg); } }@keyframes wave { 50% { height: 92%; } }

@media (min-width: 981px) { .character-stage, .character-rail, .character-card { height: 100%; } }
@media (max-width: 980px) { .primary-nav { display: none; position: absolute; top: calc(100% + .65rem); right: 0; width: min(300px, calc(100vw - 40px)); padding: .6rem; border: 1px solid var(--line); background: rgba(7, 9, 10, .97); box-shadow: var(--shadow); }.primary-nav.is-open { display: grid; }.primary-nav a { padding: .68rem .7rem; }.menu-toggle { display: grid; }.forge-grid, .character-layout, .castle-split, .maintenance-grid { grid-template-columns: 1fr; }.character-readout { min-height: auto; }.castle-blueprint { min-height: 480px; }.route-grid { grid-template-columns: repeat(2, 1fr); }.archive-grid { grid-template-columns: repeat(3, 1fr); }.article-layout { grid-template-columns: 1fr; }.article-aside { display: none; } }
@media (max-width: 640px) { .container { width: min(100% - 28px, 1160px); }.section { padding: 4.6rem 0; }.section-title { font-size: 2.05rem; }.site-header--hero { padding-top: .85rem; }.site-header--hero.is-solid { padding-top: .7rem; }.brand { font-size: .95rem; }.hero { min-height: 760px; padding: 7.8rem 0 3.8rem; }.hero-media img { object-position: 62% center; }.hero::before { width: 26rem; height: 26rem; }.hero h1 { font-size: 3.65rem; }.hero-subtitle { font-size: 1.1rem; }.hero-description { font-size: .94rem; }.hero-facts { gap: .45rem .85rem; font-size: .76rem; }.hero-sigil { width: 5.8rem; height: 5.8rem; }.scroll-cue { display: none; }.forge-heading { display: block; }.forge-note { margin-top: .8rem; }.forge-grid { grid-template-columns: 1fr; }.forge-lead { min-height: 390px; }.forge-lead-copy { padding: 1.3rem; }.forge-lead-copy h3 { font-size: 1.55rem; }.forge-cells { gap: .75rem; }.forge-cell { min-height: 190px; padding: 1rem; }.character-card { flex-basis: 88%; min-height: 370px; }.character-readout { padding: 1.2rem; }.castle-blueprint { min-height: 440px; padding: 1.25rem; }.castle-copy { padding: 1.35rem; }.castle-copy h3 { font-size: 1.55rem; }.route-grid, .archive-grid, .faq-grid, .info-grid, .system-grid, .profile-grid { grid-template-columns: 1fr; }.maintenance-log li { grid-template-columns: 1fr; gap: .25rem; }.maintenance-side { border-left-width: 1px; }.cta-panel { padding: 3rem 1.15rem; }.cta-panel h2 { font-size: 1.9rem; }.page-hero { padding: 7.2rem 0 3.4rem; }.page-hero h1 { font-size: 3rem; }.footer-grid { grid-template-columns: 1fr; gap: 1.35rem; }.footer-bottom { display: grid; }.guide-step { grid-template-columns: 2.3rem 1fr; gap: .75rem; padding: 1rem; }.not-found h1 { font-size: 7rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }.reveal { opacity: 1; transform: none; } }


/* Data-managed news and friend-link areas. These use the site palette instead of a separate theme. */
.seo-news-section, .seo-friend-section { position: relative; padding: clamp(3.2rem, 7vw, 5.4rem) 0; color: var(--text, var(--ink, var(--paper, #e7e7dc))); background: var(--bg-soft, var(--obsidian-raised, var(--paper-soft, var(--mist, #f5f5f7)))); }
.seo-news-section::before, .seo-friend-section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1160px, calc(100% - 40px)); height: 1px; background: var(--line, rgba(120, 120, 120, .28)); transform: translateX(-50%); }
.seo-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.seo-section-head h2 { margin: 0; color: inherit; font: inherit; font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
.seo-section-head p { max-width: 44rem; margin: 0; color: var(--muted, currentColor); }
.seo-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.seo-news-card { display: flex; min-height: 100%; flex-direction: column; gap: .75rem; padding: 1.25rem; color: inherit; background: var(--panel, var(--obsidian-soft, var(--paper, #fff))); border: 1px solid var(--line, rgba(120, 120, 120, .25)); border-radius: var(--radius, 4px); box-shadow: var(--shadow, 0 10px 24px rgba(0, 0, 0, .08)); }
.seo-news-card h3, .seo-news-card h2 { margin: 0; color: inherit; font: inherit; font-size: 1.18rem; font-weight: 800; line-height: 1.45; }
.seo-news-card time { color: var(--accent, var(--red, var(--aqua, #b8860b))); font-size: .82rem; font-weight: 700; }
.seo-news-card p { margin: 0; color: var(--muted, currentColor); line-height: 1.8; }
.seo-news-card a, .seo-friend-link { color: var(--accent, var(--red, var(--aqua, #b8860b))); font-weight: 800; }
.seo-news-card a { margin-top: auto; }
.seo-friend-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.seo-friend-link { display: inline-flex; align-items: center; min-height: 2.4rem; padding: .45rem .8rem; color: inherit; background: var(--panel, var(--obsidian-soft, var(--paper, #fff))); border: 1px solid var(--line, rgba(120, 120, 120, .25)); border-radius: var(--radius, 4px); text-decoration: none; }
.seo-friend-link:hover, .seo-friend-link:focus-visible { color: var(--accent, var(--red, var(--aqua, #b8860b))); border-color: currentColor; }
.seo-detail-wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.seo-detail-card { max-width: 980px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.5rem); color: var(--text, var(--ink, #262626)); background: var(--panel, var(--obsidian-soft, var(--paper, #fff))); border: 1px solid var(--line, rgba(120, 120, 120, .25)); border-radius: var(--radius, 4px); box-shadow: var(--shadow, 0 10px 24px rgba(0, 0, 0, .08)); }
.seo-detail-card h1 { margin: 0 0 .7rem; color: inherit; font-size: clamp(1.75rem, 4vw, 2.65rem); }
.seo-detail-card time, .seo-detail-card p { color: var(--muted, currentColor); line-height: 1.9; }
.seo-detail-content { white-space: pre-wrap; }
.managed-download-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .68); }
.managed-download-dialog { width: min(460px, 100%); padding: 1.25rem; color: #eef2ec; background: #171a18; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .48); }
.managed-download-dialog h2 { margin: 0; color: inherit; font-size: 1.25rem; }
.managed-download-dialog p { line-height: 1.65; }
.managed-download-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.managed-download-actions button { min-height: 2.45rem; padding: .45rem .85rem; color: #eef2ec; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px; cursor: pointer; }
.managed-download-actions [data-managed-action="confirm"] { color: #171a18; background: #f4c430; border-color: #f4c430; }
@media (max-width: 640px) { .seo-section-head { align-items: flex-start; flex-direction: column; } .seo-news-grid { grid-template-columns: 1fr; } }

