:root {
  color-scheme: dark;
  --bg: #0d1015;
  --panel: #12161ee8;
  --line: #333945;
  --ink: #f9f5ef;
  --muted: #bbbcc7;
  --accent: #ffa178;
  --title: Bahnschrift, "Arial Narrow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { isolation: isolate; min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: var(--ink); font: 15px/1.55 system-ui,sans-serif; background: var(--bg); }
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#0d0c12 0%,#100b1255 50%,#100b1266 100%),radial-gradient(ellipse at 50% 58%,#140c189c,transparent 80%); }
.backdrop-drift { position: absolute; inset: -46px; }
.backdrop-art { position: absolute; inset: 0; background: #211018 url("assets/eclipse-siege.webp") 67% 41% / cover no-repeat; }
.motion-on .backdrop-art { transform: translate3d(var(--pan-x,0px),var(--pan-y,0px),0); transition: transform .65s ease-out; }
.motion-on .backdrop-drift { animation: eclipse-drift 22s ease-in-out infinite alternate; }
@keyframes eclipse-drift { from { transform: translate3d(-9px,5px,0) scale(1); } to { transform: translate3d(10px,-8px,0) scale(1.035); } }
@media (prefers-reduced-motion: reduce) {
  .motion-on .backdrop-art { transform: none; transition: none; }
  .motion-on .backdrop-drift { animation: none; }
}
h1,h2,h3,p,figure,dl,dd { margin: 0; }
h1,h2,h3 { font-family: var(--title); line-height: 1.06; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img,video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: 6px; left: 6px; transform: translateY(-200%); padding: 9px 12px; background: var(--bg); }
.skip:focus { transform: none; }
.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.header { position: relative; background: linear-gradient(180deg,#20131bf7,#130e14f2 58%,#20151be8); border-block: 1px solid #6f483b; box-shadow: 0 4px 0 #1b1118,0 11px 22px #0008; }
.header-row { min-height: 79px; position: relative; }
.footer { display: flex; align-items: center; justify-content: flex-end; }
.brand { position: absolute; inset: -1px auto auto 50%; transform: translateX(-50%); width: clamp(140px,20vw,238px); z-index: 1; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 106px; padding: 4px 9px 12px; white-space: nowrap; color: #ffe0b3; font: 700 clamp(24px,3vw,34px)/1 Georgia,serif; text-shadow: 0 2px 2px #10070d; }
.brand::before,.brand::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 0,100% 0,94% 72%,50% 100%,6% 72%); }
.brand::before { inset: 0; background: linear-gradient(130deg,#563023,#d69761,#59302b 50%,#cb8f60 76%,#49302b); }
.brand::after { inset: 1px 3px 3px; background: radial-gradient(ellipse at 50% 10%,#592226,#291520 58%,#170f18); }
.brand img { width: 53px; height: 53px; filter: drop-shadow(0 3px 5px #0c060b); }
.eyebrow,.inline-link { color: var(--accent); }
.header nav { min-height: inherit; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(160px,25vw,305px); align-items: center; font-size: .88rem; font-weight: 740; }
.nav-side { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px,3vw,34px); }
.nav-side + .nav-side { justify-content: flex-start; }
.header nav a:not(.button) { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; color: #edc8a9; white-space: nowrap; }
.header nav a:hover,.inline-link:hover,figcaption a:hover { color: var(--accent); }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid #586171; border-radius: 4px; font-size: .84rem; line-height: 1.4; font-weight: 790; white-space: nowrap; }
.button.primary { background: #f17651; border-color: #f17651; color: #1b0c09; }
.header .button.primary:hover,.button.primary:hover { background: #ffa081; border-color: #ffa081; color: #1b0c09; }
.button.secondary:hover { border-color: var(--accent); }
#main { padding-block: clamp(50px,9vh,102px) 14px; }
.guide-frame { position: relative; padding: 10px; border: 1px solid #ac7653; background: repeating-linear-gradient(112deg,#68432e33 0 2px,transparent 2px 5px),linear-gradient(155deg,#82563a,#312025 20%,#5c3c31 62%,#271923 86%,#96613f); box-shadow: 0 0 0 2px #170e17,0 0 0 3px #59382f,0 17px 58px #000b,inset 0 0 0 2px #201520,inset 0 0 0 4px #c092603d; }
.guide-frame::before,.guide-frame::after { content: ""; position: absolute; z-index: 1; left: 50%; width: 110px; height: 6px; transform: translateX(-50%); background: linear-gradient(90deg,transparent,#ad7454 23%,#f3c996 50%,#ad7454 77%,transparent); clip-path: polygon(0 50%,22% 0,78% 0,100% 50%,78% 100%,22% 100%); pointer-events: none; }
.guide-frame::before { top: -4px; }
.guide-frame::after { bottom: -4px; }
.ornaments { position: absolute; }
.corner { position: absolute; z-index: 2; width: clamp(43px,7vw,86px); height: auto; pointer-events: none; filter: drop-shadow(0 2px 2px #10080e); }
.corner.nw { left: -8px; top: -8px; }
.corner.ne { right: -8px; top: -8px; transform: scaleX(-1); }
.corner.sw { left: -8px; bottom: -8px; transform: scaleY(-1); }
.corner.se { right: -8px; bottom: -8px; transform: scale(-1); }
.frame-title { position: relative; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 9px 36px 10px; background: radial-gradient(ellipse at 50% 0,#562a29,#261925 66%); border: 1px solid #b7815b; border-bottom: 0; box-shadow: inset 0 1px 0 #d09a6150; }
.frame-title p { color: #d8aa8e; font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.eyebrow i,figcaption i { width: 6px; height: 6px; display: inline-block; flex: none; transform: rotate(45deg); background: var(--accent); }
h1 { color: #ffe1b9; font: 700 clamp(20px,3vw,31px)/1.05 Georgia,serif; text-shadow: 0 2px 2px #0a070a; }
.hub { display: grid; grid-template-columns: 218px minmax(0,1fr); align-items: stretch; background: var(--panel); border: 1px solid #98684b; box-shadow: inset 0 0 16px #0007; }
.tabs { display: flex; flex-direction: column; background: linear-gradient(105deg,#211721,#15131c); border-right: 1px solid #50372f; padding-block: 10px; }
.tabs a { display: flex; align-items: center; gap: 12px; min-height: 57px; padding: 8px 12px; border-left: 3px solid transparent; font-weight: 750; font-size: .9rem; }
.tabs a:hover,.tabs a[aria-selected=true] { background: linear-gradient(90deg,#62362b,#30202b); }
.tabs a[aria-selected=true] { border-left-color: #f8ba7e; box-shadow: inset 0 1px #c98f583d,inset 0 -1px #c98f583d; }
.tabs a:focus-visible { outline-offset: -4px; }
.tabs small { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; }
.index { display: inline-grid; place-items: center; flex: none; width: 29px; height: 29px; border: 1px solid #505565; color: #d0c5c2; font: 730 .75rem/1 var(--title); font-variant-numeric: tabular-nums; }
[aria-selected=true] .index,.callouts .index { color: var(--accent); border-color: #935a4b; }
.panels { min-width: 0; }
.panel { padding: clamp(17px,2.6vw,32px); min-height: 355px; }
.panel:focus-visible { outline-offset: -5px; }
.panel + .panel { border-top: 1px solid var(--line); }
.panel[hidden] + .panel { border-top: 0; }
.panel-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(14px,2.5vw,31px); align-items: center; }
h2 { font-size: clamp(29px,3.7vw,48px); letter-spacing: -.058em; }
h2 em { color: var(--accent); font-style: normal; }
.panel-copy > p:not(.eyebrow) { margin-top: 10px; max-width: 390px; }
.actions { margin-top: 15px; display: flex; gap: 8px; flex-wrap: wrap; }
.media { border: 1px solid #51434a; background: #0e1117; overflow: hidden; }
.showcase-controls { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #51434a; }
.showcase-controls button { border: 0; padding: 6px 4px; background: #171822; color: var(--muted); font: 750 .76rem/1.35 system-ui,sans-serif; cursor: pointer; }
.showcase-controls button + button { border-left: 1px solid #51434a; }
.showcase-controls button:hover,.showcase-controls button[aria-pressed=true] { background: #292338; color: #f5ecff; }
.showcase-controls button[aria-pressed=true] { box-shadow: inset 0 -2px #a7a8ff; }
.showcase-controls button:focus-visible { outline-offset: -3px; }
.showcase-stage { position: relative; aspect-ratio: 16 / 9; background: #07090c; }
.showcase-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.aura-stage { display: grid; grid-template-columns: 1.05fr 1fr; background: radial-gradient(ellipse at 82% 44%,#262143,#111220 62%,#080b12); }
.aura-video { position: relative; }
.aura-note { align-self: center; padding: 9px 11px; }
.aura-note span { color: #b9b8ff; font-size: .62rem; font-weight: 800; letter-spacing: .085em; }
.aura-note strong { display: block; margin: 4px 0 5px; font: 780 clamp(16px,2vw,27px)/1.08 var(--title); color: #efebff; }
.aura-note p { font-size: .75rem; line-height: 1.35; }
figcaption { display: flex; gap: 6px; justify-content: space-between; align-items: center; padding: 7px 9px; color: var(--muted); font-size: .65rem; letter-spacing: .075em; font-weight: 750; }
figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); background: #10141cbf; }
.stats div { display: flex; flex-direction: column-reverse; border-right: 1px solid var(--line); padding: 8px 4px; text-align: center; }
.stats div:last-child { border-right: 0; }
.stats dd { color: var(--accent); font: 800 clamp(20px,3vw,30px)/1.03 var(--title); }
.stats dt { color: var(--muted); font-size: .68rem; margin-top: 4px; }
.panel-heading { margin-bottom: 14px; }
.encounter-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.encounter { display: grid; grid-template-columns: 75px 1fr; align-items: stretch; gap: 10px; border: 1px solid var(--line); background: #0f131bb0; }
.encounter img { width: 100%; height: 100%; max-height: 126px; object-fit: cover; }
.encounter > div { padding: 9px 8px 9px 0; }
h3 { font-size: 1rem; letter-spacing: -.015em; margin-bottom: 4px; }
.encounter p,.entries p,.callouts p { font-size: .83rem; line-height: 1.46; }
.inline-link { font-size: .75rem; font-weight: 700; }
.gear { grid-template-columns: 1.25fr .85fr; }
.item img { width: 100%; height: auto; }
.entries { margin: 0; padding: 0; list-style: none; }
.entries li { border-top: 1px solid var(--line); padding: 9px 0; }
.lede { max-width: 650px; }
.callouts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.callouts article { padding: 13px; border: 1px solid var(--line); background: #0f131bb0; }
.callouts h3 { margin-top: 9px; }
.play .panel-split { min-height: 270px; }
.footer { margin-top: auto; min-height: 49px; color: var(--muted); font-size: .69rem; }
.motion-toggle,.music-toggle { border: 1px solid #694c47; background: #241821; color: #ecd0bd; font: inherit; border-radius: 3px; padding: 5px 8px; white-space: nowrap; cursor: pointer; }
.music-toggle { position: absolute; right: 37px; font-size: .69rem; }
.motion-toggle::before,.music-toggle::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; border: 1px solid #987a74; }
.motion-toggle[aria-pressed=true]::before,.music-toggle[aria-pressed=true]::before { background: #f2aa70; border-color: #f2aa70; box-shadow: 0 0 5px #f2aa7077; }
@media(max-width: 950px) {
  .hub { grid-template-columns: 174px minmax(0,1fr); }
  .encounter { grid-template-columns: 49px 1fr; gap: 7px; }
  .shell { width: calc(100% - 40px); }
}
@media(max-width: 710px) {
  .shell { width: calc(100% - 26px); }
  .header-row { min-height: auto; }
  .brand { position: relative; inset: auto; transform: none; margin: 0 auto; min-height: 55px; width: 143px; display: flex; justify-content: center; gap: 5px; font-size: 23px; }
  .brand img { width: 29px; height: 29px; }
  .header nav { column-gap: 12px; font-size: .77rem; }
  .nav-side { justify-content: flex-end; gap: clamp(7px,4vw,20px); }
  .header nav a:not(.button) span { display: none; }
  .header .button { padding: 7px; font-size: .75rem; }
  .header .download-label { display: none; }
  #main { padding-block: 26px 10px; }
  .guide-frame { padding: 6px; }
  .corner.nw,.corner.ne { top: -5px; }
  .corner.sw,.corner.se { bottom: -5px; }
  .corner.nw,.corner.sw { left: -5px; }
  .corner.ne,.corner.se { right: -5px; }
  .frame-title { gap: 7px; padding: 8px 25px; }
  .frame-title p { font-size: .56rem; }
  .music-toggle { position: static; margin-left: auto; }
  .hub { grid-template-columns: 1fr; }
  .tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .tabs a { justify-content: center; padding: 6px 3px; min-height: 43px; text-align: center; border-left: 0; border-bottom: 2px solid transparent; line-height: 1.12; font-size: clamp(.62rem,2.2vw,.83rem); }
  .tabs a[aria-selected=true] { border-bottom-color: #ff936e; }
  .tabs .index,.tabs small { display: none; }
  .panel { min-height: 0; padding: 13px; }
  .panel-split,.gear { grid-template-columns: 1fr; gap: 11px; }
  .panel-copy > p:not(.eyebrow) { margin-top: 7px; }
  .play .panel-split { min-height: 0; }
  .actions,.stats { margin-top: 9px; }
  .showcase-stage { min-height: 156px; max-height: 26svh; }
  .item { max-width: 265px; }
  .encounter { grid-template-columns: 1fr; gap: 0; }
  .encounter img { height: 47px; }
  .encounter > div { padding: 6px; }
  .encounter p,.entries p,.callouts p { font-size: .77rem; }
  .footer { min-height: 38px; }
}
@media(max-width: 390px) {
  .frame-title p { display: none; }
}
@media(max-height: 660px) and (min-width: 711px) {
  .header-row { min-height: 57px; }
  .brand { min-height: 80px; }
  .brand img { width: 36px; height: 36px; }
  #main { padding-block: 42px 10px; }
  .panel { min-height: 300px; padding: 17px; }
  .showcase-stage { max-height: 31svh; }
  .footer { min-height: 32px; }
}
