@media(max-width:980px){main,.site-footer{width:min(calc(100% - 30px),var(--max))}.hero-art{opacity:.35;right:-20vw;width:80vw}.world-gate{grid-template-columns:68px 1fr}.world-gate b{grid-column:2;text-align:left}.character-grid{grid-template-columns:1fr}.realm-landscape,.realm-landscape:nth-child(even){grid-template-columns:32% 1fr 90px;margin:0;clip-path:none;border-radius:24px 5px 24px 5px}.realm-landscape:nth-child(even) .realm-image{order:0}.realm-landscape:nth-child(even) .realm-symbol{order:0}.eon-duality{grid-template-columns:1fr}.archon-grid{grid-template-columns:repeat(2,1fr)}.magic-entry-stage{grid-template-columns:1fr;padding-top:95px}.magic-entry-title{max-width:690px}.magic-portal-wrap{min-height:670px}.magic-portal{width:min(660px,90vw)}.codex-switcher{grid-template-columns:200px 1fr}.fact-ribbon{grid-template-columns:repeat(2,1fr)}.history-anchors{grid-template-columns:1fr 1fr}.identity-stage,.character-page .identity-stage,.realm-page .identity-stage,.god-page .identity-stage,.magic-page .identity-stage,.history-page .identity-stage{grid-template-columns:1fr 220px}}
@media(max-width:720px){body{font-size:17px;line-height:1.68}.back-rune{left:12px;top:12px;width:44px;height:44px}.breadcrumbs{margin-top:72px;padding-left:50px;font-size:10px}.world-hero{min-height:70vh;padding-top:85px}.hero-art{display:none}.world-prologue{grid-template-columns:1fr}.prologue-mark{display:none}.world-gate,.world-gate:nth-child(n){margin:0;min-height:130px;grid-template-columns:56px 1fr;gap:14px;padding:19px 18px;clip-path:none;border-radius:18px 4px 18px 4px}.gate-sigil{font-size:38px}.world-gate p{font-size:14px}.character-tile{grid-template-columns:38% 1fr;min-height:210px}.character-portrait{min-height:210px}.realm-landscape,.realm-landscape:nth-child(even){grid-template-columns:120px 1fr;min-height:210px}.realm-image{min-height:210px}.realm-symbol{display:none}.realm-copy{padding:24px}.realm-copy p{display:none}.realm-copy .realm-tag{display:block;font-size:15px}.archon-grid{grid-template-columns:1fr}.cosmic-afterword{grid-template-columns:1fr}.identity-stage,.character-page .identity-stage,.realm-page .identity-stage,.god-page .identity-stage,.magic-page .identity-stage,.history-page .identity-stage{grid-template-columns:1fr;padding-top:24px}.identity-side{justify-items:start}.compact-art,.character-page .compact-art,.realm-page .compact-art,.god-page .compact-art,.magic-page .compact-art,.history-page .compact-art{width:180px;height:180px}.identity-sigil{right:auto;left:145px}.fact-ribbon{grid-template-columns:1fr 1fr}.codex-switcher{display:block}.switch-tabs{position:static;display:flex;flex-direction:row;overflow-x:auto;padding-bottom:10px;margin-bottom:10px}.switch-tab{min-width:145px;border-left:0;border-bottom:1px solid color-mix(in srgb,var(--accent) 25%,transparent)}.switch-tab:hover,.switch-tab.active{transform:none;border-bottom-color:var(--accent)}.switch-panel{min-height:300px;padding:24px 20px}.bio-intro{grid-template-columns:1fr}.patron-choice{grid-template-columns:1fr}.magic-entry-stage{display:block;min-height:auto;padding-top:88px}.magic-portal-wrap{min-height:560px;margin-top:15px}.magic-portal{width:min(550px,92vw)}.school-node{width:84px;min-height:72px;--radius:45%}.school-node img{width:35px;height:35px}.school-node b{font-size:11px}.school-node small{display:none}.portal-center{width:30%}.blue-flame{width:44px;height:75px}.magic-doctrine{grid-template-columns:1fr}.foundation-runes{grid-template-columns:1fr 1fr}.chronicle-river{padding-left:52px}.chronicle-era:nth-of-type(n){margin:0;clip-path:none;border-radius:18px 4px 18px 4px}.era-node{left:-52px;width:40px;height:40px}.history-anchors{grid-template-columns:1fr}.story-stage{min-height:420px}.site-footer{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:480px){main,.site-footer{width:min(calc(100% - 22px),var(--max))}h1{font-size:clamp(43px,16vw,68px)}.eyebrow{font-size:10px}.character-tile{grid-template-columns:1fr}.character-portrait{height:230px}.realm-landscape,.realm-landscape:nth-child(even){grid-template-columns:1fr}.realm-image{height:180px}.realm-copy{padding:20px}.fact-ribbon{grid-template-columns:1fr}.foundation-runes{grid-template-columns:1fr}.magic-portal-wrap{min-height:500px}.magic-portal{width:95vw;left:50%;transform:translateX(-50%)}.school-node{width:70px}.portal-center span{display:none}.identity-copy .identity-sub{font-size:17px}.identity-tagline{font-size:20px}.reading-copy{font-size:17px}.story-chapter{padding:28px 18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.world-glow,.living-particle,.magic-portal,.magic-portal:after,.blue-flame,.realm-page .identity-stage:before,.god-page .identity-stage:before,.school-ritual:before,.school-ritual:after,.history-page .identity-stage:before,.history-page .identity-stage:after{animation:none!important}}
