/* Caburé Rey / Castillo Cero — two identities, one accessible static system. */
@font-face{font-family:Noto;src:url('assets/fonts/NotoSerif-var.ttf') format('truetype');font-display:swap;font-weight:100 900}
@font-face{font-family:Cinzel;src:url('assets/fonts/CinzelDecorative-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
:root{color-scheme:light;--bg:#f4f1e9;--surface:#fffdf7;--ink:#152438;--muted:#52606b;--accent:#78512f;--line:#d2cfc5;--button:#152438;--button-ink:#fffdf7;--serif:Noto,Georgia,serif;--body:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
/* Studio only: CSS follows the system even when JavaScript is unavailable. */
html[data-theme=dark] body[data-theme-scope=studio]{color-scheme:dark;--bg:#111c2b;--surface:#1b2b40;--ink:#f4f1e9;--muted:#bcc8d5;--accent:#d9b477;--line:#51637a;--button:#d9b477;--button-ink:#152438}
@media(prefers-color-scheme:dark){html:not([data-theme=light]) body[data-theme-scope=studio]{color-scheme:dark;--bg:#111c2b;--surface:#1b2b40;--ink:#f4f1e9;--muted:#bcc8d5;--accent:#d9b477;--line:#51637a;--button:#d9b477;--button-ink:#152438}}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:2rem}
body{margin:0;background:var(--bg);color:var(--ink);font:1rem/1.75 var(--body);overflow-wrap:break-word}
.game-home,.game-page{color-scheme:dark;--bg:#101923;--surface:#162330;--portrait-backdrop:#000;--ink:#f0eadd;--muted:#bdc4c9;--accent:#d6b578;--line:#39434b;--button:#d6b578;--button-ink:#14202b}
button,input{font:inherit}
button,summary,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:3px;min-height:44px;padding:.5rem .9rem}
a{color:inherit;text-underline-offset:.25em;text-decoration-thickness:1px}
a:hover{color:var(--accent)}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
img{display:block;max-width:100%;height:auto}
figure{margin:0}
figcaption{color:var(--muted);font-size:.875rem;line-height:1.5;margin-top:.7rem}
h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.22;letter-spacing:-.025em;margin:0 0 1.2rem}
h1{font-size:clamp(2.25rem,4.3vw,4rem);max-width:20ch}
h2{font-size:clamp(1.75rem,2.8vw,2.65rem);max-width:26ch}
h3{font-size:1.4rem;letter-spacing:-.015em}
p{margin:0 0 1.2rem}
ul,ol{padding-left:1.3rem}
small{font-size:.875rem}
.wrap{width:min(1200px,calc(100% - 6rem));margin-inline:auto}
.eyebrow{font:650 .8125rem/1.5 var(--body);text-transform:uppercase;letter-spacing:.13em;color:var(--accent);margin-bottom:1rem}
.lead,.section-intro{font-size:1.125rem;line-height:1.75;color:var(--muted);max-width:56ch}
.text-link{display:inline-flex;align-items:center;min-height:44px;gap:.4rem;text-decoration:none;font-weight:600}
.link-icon{width:40px;height:40px;object-fit:contain;flex:0 0 40px;transition:transform .2s ease}
.text-link:hover .link-icon,.text-link:focus-visible .link-icon,.button-link:hover .link-icon,.button-link:focus-visible .link-icon{transform:translateY(-2px)}
.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;gap:.5rem;padding:.7rem 1.2rem;border:1px solid var(--line);border-radius:3px;text-decoration:none;font-weight:600}
.button-primary{background:var(--button);color:var(--button-ink);border-color:var(--button)}
.button-primary:hover{color:var(--button-ink);filter:brightness(1.1)}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.6rem;margin-top:1.8rem}
.skip-link{position:fixed;left:1rem;top:-6rem;z-index:50;background:var(--ink);color:var(--bg);padding:.8rem 1rem}
.skip-link:focus{top:1rem}
[hidden]{display:none!important}

/* Identity and navigation. Native disclosures work without JavaScript. */
.site-header{position:relative;z-index:10;background:var(--bg);border-bottom:1px solid var(--line)}
.header-inner{width:min(1320px,calc(100% - 4rem));min-height:90px;margin:auto;display:flex;align-items:center;gap:1.5rem}
.brand-link{display:inline-flex;align-items:center;gap:.8rem;text-decoration:none;flex-shrink:0;line-height:1.25;font-family:var(--serif);font-size:1.2rem;font-weight:600}
.brand-logo{width:54px;height:auto;object-fit:contain}
/* Preserve the owner's transparent emblem in both palettes. */
body[data-theme-scope=studio] .brand-logo,body[data-theme-scope=studio] .studio-emblem img{background:transparent;border-radius:0;padding:0}
.header-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0;min-width:0}
.language-switch{display:flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:3px}
.language-switch a{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;text-decoration:none;font-size:.875rem;font-weight:650}
.language-switch a[aria-current]{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-width:44px;min-height:44px;white-space:nowrap;font-size:.875rem;padding:.5rem .65rem;background:transparent}
.theme-toggle[aria-pressed=true]{border-color:var(--accent)}
.desktop-nav{margin-left:auto;display:flex;align-items:center;gap:.5rem}
.desktop-nav>a,.game-nav>a,.nav-group>summary{min-height:44px;display:flex;align-items:center;padding:.6rem .8rem;text-decoration:none;font-size:1rem;white-space:nowrap}
.desktop-nav a[aria-current],.game-nav a[aria-current]{color:var(--accent);text-decoration:underline;text-underline-offset:.4em}
.game-nav{display:flex;gap:.2rem;align-items:center}
.nav-group{position:relative}
summary{cursor:pointer}
.nav-group>summary{gap:.5rem;list-style:none}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-group>summary::after{content:'⌄';font-size:.9rem}
.nav-group[open]>summary{color:var(--accent)}
.nav-dropdown{position:absolute;top:100%;left:0;min-width:205px;display:grid;padding:.5rem;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 32px #0002}
.nav-dropdown>a{display:flex;align-items:center;min-height:44px;padding:.55rem .8rem;text-decoration:none}
.nav-dropdown>a:hover,.nav-dropdown>a:focus-visible{background:var(--bg)}
.search-open{min-height:44px;padding:.5rem .85rem;white-space:nowrap;background:transparent}
.search-open>span:first-child{font-size:1.3rem;margin-right:.3rem}
.key-hint{color:var(--muted);margin-left:.6rem;font-size:.875rem}
.mobile-menu{display:none}
.mobile-menu>summary{min-height:44px;display:flex;align-items:center;padding:.5rem;gap:.5rem;list-style:none}
.mobile-menu>summary::after{content:'+'}
.mobile-menu[open]>summary::after{content:'−'}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;padding-block:1.5rem;color:var(--muted);font-size:.875rem}
.breadcrumbs a{text-decoration:none}
.breadcrumbs a>span{display:none}

/* Studio: quiet editorial introduction and a single featured project. */
.studio-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:5rem;padding-block:3.5rem 4rem}
.studio-intro h1{font-size:clamp(2.75rem,5vw,4.5rem);max-width:13ch}
.studio-intro-copy .lead{max-width:42ch}
.studio-emblem{display:flex;justify-content:center}
.studio-emblem img{width:min(100%,410px);object-fit:contain}
.landing-sections>.chapter,.landing-sections>section,.landing-sections>.premise-layout{margin-bottom:5rem}
.landing-sections>.chapter:last-child{margin-bottom:3.5rem}
.project-identity{display:flex;align-items:center;gap:1.5rem;background:#152438;padding:1.5rem 2.5rem;color:#f0eadd;border-radius:4px 4px 0 0}
.project-logo{width:112px;height:auto;object-fit:contain}
.project-identity p{margin:0;font-size:1rem}
.project-spotlight{background:#152438;color:#f0eadd;--muted:#bdc4c9;--accent:#d6b578;--line:#39434b;padding:1rem 2.5rem 2.5rem;border-radius:0 0 4px 4px}
.project-spotlight .chapter-body>h2{font-size:clamp(2rem,3.3vw,3rem)}
.project-spotlight .entry{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:2.5rem;align-items:center;border:0;padding:1rem 0 0}
.project-spotlight .entry-image{width:100%;height:auto;max-height:none;object-fit:contain;border-radius:2px}
.studio-discovery .entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
.studio-discovery .entry{display:block;padding-top:1.5rem}
.studio-discovery .entry-image{width:100%;height:200px;object-fit:cover;margin-bottom:1.5rem}
.studio-statement .chapter-body{max-width:65ch}
.studio-page .hero-illustrated .hero-art{display:none}
.studio-page .hero{grid-template-columns:1fr}
.studio-page .hero-copy{max-width:760px}

/* Product: real artwork beside a compact presentation, no loading spectacle. */
.game-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:3.5rem;padding-block:2.5rem 3.5rem}
.game-emblem{width:160px;height:auto;margin-bottom:1rem;object-fit:contain}
.game-intro .eyebrow{margin-bottom:.5rem}
.game-intro h1{font-size:clamp(2.5rem,4vw,4rem);margin-bottom:.3rem}
.game-subtitle{font-family:var(--serif);font-size:1.35rem;color:var(--accent);margin-bottom:1.2rem}
.game-intro .lead{font-size:1.0625rem}
.game-intro-art{min-width:0}
.game-art-frame{overflow:hidden;border:1px solid var(--line);border-radius:3px}
.game-art-frame img{width:100%;height:auto;object-fit:contain}
.game-intro-art figcaption{letter-spacing:.05em}
.premise-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:3rem;border-block:1px solid var(--line);padding-block:3rem}
.premise-layout>figure img{width:100%;height:auto;border-radius:3px}
.premise-layout .chapter{padding:0;margin:0;border:0}
.game-pillars .entries,.codex-doors .entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.8rem}
.game-pillars .entry,.codex-doors .entry{display:block;padding:1.5rem 0 0}
.game-pillars .entry-image,.codex-doors .entry-image{width:100%;height:200px;object-fit:cover;margin-bottom:1.5rem;border-radius:3px}
.game-facts .chapter-body{max-width:70ch}
.library-links .entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2.5rem}
.library-links .entry{display:block;padding:1.5rem 0}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:2rem}
.section-heading h2{margin-bottom:0}
.portrait-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}
.portrait-link{text-decoration:none;display:block;min-width:0}
.portrait-art{overflow:hidden;background:var(--portrait-backdrop);border:1px solid var(--line);border-radius:3px}
.portrait-art img{height:245px;width:100%;object-fit:contain;transition:transform .25s ease}
img.portrait-media{background:var(--portrait-backdrop);object-fit:contain;object-position:center bottom}
.portrait-link:hover img,.portrait-link:focus-visible img{transform:scale(1.025)}
.portrait-name{display:block;font-family:var(--serif);font-size:1.2rem;margin-top:.8rem}
.portrait-role{color:var(--muted);font-size:1rem;line-height:1.5;display:block;margin-top:.3rem}
.atlas-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.atlas-tile{display:block;text-decoration:none}
.atlas-tile img{width:100%;height:auto;border-radius:3px}
.atlas-tile>span{display:block;font-size:1rem;color:var(--muted);margin-top:.6rem}

/* Archive: article measure, navigable sections, illustrated catalogues. */
.hero{width:min(1200px,calc(100% - 6rem));margin:0 auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:center;gap:3rem;padding-block:2rem 3rem;border-bottom:1px solid var(--line)}
.hero-copy{grid-column:1;grid-row:1;min-width:0;width:auto;margin:0}
.hero-description{color:var(--muted);font-size:1.125rem;max-width:60ch;margin:0}
.hero-art{grid-column:2;grid-row:1;min-width:0}
.hero-art img{width:100%;height:auto;max-height:290px;object-fit:contain;border-radius:3px}
.hero-plain{grid-template-columns:1fr}
.hero-portrait .hero-art img{max-height:340px;object-fit:contain}
.article-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:4rem;padding-block:3rem 1rem}
.article-content{min-width:0;max-width:70ch}
.article-aside{min-width:0}
.archive-menu{position:sticky;top:1.5rem;border-bottom:1px solid var(--line);padding-bottom:1.5rem}
.archive-menu>summary{font-weight:600;min-height:44px;padding:.5rem 0}
.archive-nav{display:grid;gap:.4rem;align-items:stretch;margin-top:1rem}
.archive-nav>a,.archive-nav .nav-group>summary{padding:.4rem .5rem;white-space:normal}
.archive-nav .nav-dropdown{position:static;min-width:0;box-shadow:none;border:0;border-left:1px solid var(--line);margin-left:.6rem;padding:.2rem}
.local-toc{padding-top:1.5rem;margin-top:1.5rem;border-top:1px solid var(--line)}
.local-toc ol{padding-left:1.1rem;margin:0;color:var(--muted);font-size:1rem}
.local-toc a{display:block;padding:.4rem 0;text-decoration:none;line-height:1.5}
.chapter{padding-bottom:2.5rem;margin-bottom:2.5rem;border-bottom:1px solid var(--line);min-width:0}
.chapter-marker{font-size:.8125rem;color:var(--accent);letter-spacing:.1em;margin-bottom:.8rem}
.chapter-body>p{max-width:65ch}
.chapter-body>h2{max-width:28ch}
.entries{min-width:0}
.entry{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);align-items:start;gap:1.8rem;padding-block:2rem;border-top:1px solid var(--line)}
.entry:not(:has(.entry-image)){display:block}
.entry-image{width:100%;max-height:220px;object-fit:contain}
.entry-copy{min-width:0}
.entry-copy p,.facts{font-size:1rem;line-height:1.75}
.entry-copy p:last-child{margin-bottom:0}
.facts{padding-left:1.2rem;color:var(--muted)}
.facts li{margin-bottom:.5rem}
.roster-page .article-content,.bestiary-page .article-content{max-width:none}
.catalog-page .entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8rem}
.catalog-page .entry{display:block;background:var(--surface);padding:1.5rem;border:1px solid var(--line);border-radius:3px}
.catalog-page .entry-image{height:270px;max-height:none;object-fit:contain;margin-bottom:1.5rem}
.bestiary-page .entry-image{height:220px}
.item-catalog .article-content{max-width:none}
.item-catalog .entry-image{height:145px;width:100%;margin-bottom:1rem;object-fit:contain}
.entry-art figcaption{margin:0 0 1rem;font-size:.875rem;line-height:1.5;color:var(--muted)}
.catalog-page .entry-copy h3{font-size:1.5rem}
.catalog-page .entry-copy p,.catalog-page .facts{font-size:1rem}
.world-page .entry-image{max-height:none}
.steps{list-style:decimal;padding-left:1.4rem}
.steps li{padding-left:.6rem;margin-bottom:2rem}
.steps li::marker{color:var(--accent);font-weight:600}
.table-scroll{overflow-x:auto;border:1px solid var(--line);margin-block:1.5rem;scrollbar-width:thin}
table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.6}
th,td{text-align:left;vertical-align:top;padding:1rem;min-width:140px;border-bottom:1px solid var(--line)}
thead th{background:var(--surface);font-weight:650}
tbody th{font-weight:600}
.faq,.spoiler{border:1px solid var(--line);padding:0 1.2rem;margin-block:1rem;border-radius:3px}
.faq>summary,.spoiler>summary{padding:1rem 0;min-height:44px;font-weight:600}
.faq>p{margin-bottom:1.2rem}
.spoiler-body{padding-block:1rem}
.spoiler-page .article-layout{padding-top:1rem;width:100%}
.spoiler-page{margin-top:2rem}
.spoiler .chapter:last-child{margin-bottom:0}
.entry.spoiler>summary{margin-bottom:.5rem}
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.5rem;margin-top:2rem}
.gallery figure:first-child{grid-column:1/-1}
.gallery-image{width:100%;height:auto;border-radius:3px}
.gallery-link{display:block}
.continue-reading{padding-block:1.5rem 3rem}
.continue-reading h2{font-size:1.8rem}
.related-links{display:flex;gap:1rem 2rem;flex-wrap:wrap}
.legal-page .article-content{max-width:65ch}
.legal-page .hero{max-width:1200px}

/* Footer, search and gallery. */
.site-footer{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:3rem;padding-block:3rem;border-top:1px solid var(--line)}
.footer-brand{margin-bottom:1rem}
.footer-brand .brand-logo{width:56px}
.site-footer p{font-size:1rem;color:var(--muted);margin-bottom:.6rem;max-width:35ch}
.site-footer small{color:var(--muted)}
.site-footer nav{display:grid;align-content:start;gap:.3rem}
.site-footer nav a{font-size:1rem;min-height:44px;display:flex;align-items:center;text-decoration:none}
.site-footer .footer-contact{display:flex;flex-wrap:wrap;gap:.3rem 1rem;margin-top:1rem}
.footer-contact a:last-child{flex-basis:100%}
.footer-actions{display:flex;align-items:flex-start;flex-direction:column;gap:1rem}
.back-top{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
dialog{color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:4px;width:min(680px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:2rem;overflow:auto}
dialog::backdrop{background:#060c15cf}
.search-heading,.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem}
.search-heading h2,.gallery-toolbar h2{font-size:1.5rem;margin:0}
.search-heading button,.gallery-toolbar button{min-height:44px;white-space:nowrap}
dialog label{display:block;color:var(--muted);font-size:1rem;margin-bottom:.75rem}
dialog input{width:100%;min-height:48px;padding:.7rem 1rem;border:1px solid var(--line);border-radius:3px;background:var(--surface);color:var(--ink)}
.search-note,#search-status{color:var(--muted);font-size:1rem;margin-top:1rem}
#search-results{list-style:none;padding:0;margin:0}
#search-results li{border-top:1px solid var(--line);padding-block:1.2rem}
#search-results small{display:block;color:var(--accent);margin-bottom:.3rem}
#search-results a{font:500 1.2rem/1.5 var(--serif)}
#search-results p{color:var(--muted);font-size:1rem;margin:.5rem 0 0}
.gallery-dialog{width:min(1200px,calc(100% - 2rem))}
#gallery-figure{display:flex;align-items:center;justify-content:center;min-height:80px}
#gallery-figure img{max-height:65dvh;max-width:100%;width:auto;height:auto;object-fit:contain;background:var(--portrait-backdrop,#000)}
.gallery-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-top:1rem}
.gallery-navigation p{margin:0;white-space:nowrap;color:var(--muted)}
#gallery-caption{margin:1rem 0 0;color:var(--muted);font-size:1rem}
.error-page{padding-block:5rem;max-width:760px}

/* Responsive layouts: no tiny copy and no horizontal catalogue scroll. */
@media(min-width:901px){.archive-menu>summary{display:none}}
@media(max-width:1100px){.header-inner{gap:.8rem}.desktop-nav>a,.game-nav>a,.nav-group>summary{padding-inline:.6rem}.brand-link{font-size:1.05rem}.key-hint{display:none}.studio-intro{gap:3rem}.game-intro{gap:2rem}.article-layout{gap:2.5rem;grid-template-columns:190px minmax(0,1fr)}.portrait-art img{height:210px}}
@media(max-width:900px){
 .wrap,.hero{width:calc(100% - 3rem)}
 .header-inner{width:calc(100% - 3rem);min-height:80px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem 1rem;padding-block:.65rem}
 .header-inner>.brand-link{grid-column:1;grid-row:1;min-width:0}
 .header-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end;flex-wrap:wrap}
 .desktop-nav{display:none}.search-open{margin-left:0}.mobile-menu{display:block;grid-column:2;grid-row:1;justify-self:end}
 .mobile-menu>nav{position:absolute;top:100%;left:0;right:0;max-height:75dvh;overflow:auto;background:var(--surface);border-bottom:1px solid var(--line);padding:1rem 1.5rem;display:grid;gap:.25rem;align-items:stretch}
 .mobile-menu>nav>a{min-height:44px;display:flex;align-items:center;padding:.6rem;text-decoration:none}
 .mobile-menu .nav-dropdown{position:static;border:0;border-left:1px solid var(--line);margin-left:1rem;box-shadow:none;min-width:0}
 .studio-intro{grid-template-columns:1fr 1fr;gap:2rem;padding-block:2.5rem 3rem}
 .studio-intro h1{font-size:clamp(2.5rem,5.5vw,3.75rem)}
 .game-intro{grid-template-columns:1fr;padding-block:2rem 3rem;gap:2rem}
 .game-intro-copy{max-width:65ch}.game-emblem{width:140px}
 .game-intro-art{max-width:760px}.game-intro-art img{width:100%}
 .premise-layout{grid-template-columns:1fr;gap:2rem}
 .premise-layout>figure{max-width:760px}
 .article-layout{grid-template-columns:1fr;gap:2.5rem}
 .article-content{max-width:70ch}.article-aside{width:100%}
 .archive-menu{position:static}.archive-menu>summary{display:flex;align-items:center;gap:1rem;justify-content:space-between}
 .archive-menu>summary::after{content:'+'}.archive-menu[open]>summary::after{content:'−'}
 .archive-nav{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .local-toc ol{display:flex;gap:.3rem 1.8rem;flex-wrap:wrap}
 .hero{gap:2rem}.hero h1{font-size:clamp(2.25rem,5vw,3.25rem)}
 .game-pillars .entries,.codex-doors .entries,.studio-discovery .entries{grid-template-columns:1fr}
 .game-pillars .entry,.codex-doors .entry,.studio-discovery .entry{display:grid;grid-template-columns:200px minmax(0,1fr);gap:2rem}
 .game-pillars .entry-image,.codex-doors .entry-image,.studio-discovery .entry-image{height:180px;margin-bottom:0}
 .portrait-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
 .site-footer{grid-template-columns:1fr 1fr;gap:2rem}.footer-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
}
@media(max-width:600px){
 .wrap,.hero,.header-inner{width:calc(100% - 2rem)}
 .header-inner{gap:.5rem}.brand-logo{width:44px}.brand-link{font-size:1rem;gap:.5rem}
 .search-open{font-size:1rem;padding:.5rem}.search-open>span:first-child{display:none}.mobile-menu>summary{font-size:1rem}
 .studio-intro{grid-template-columns:1fr;gap:2rem;padding-block:2.5rem}
 .studio-intro h1{font-size:clamp(2.5rem,9vw,3.25rem)}
 .studio-emblem img{width:min(100%,330px)}
 .lead,.section-intro,.hero-description{font-size:1rem}
 .hero-actions{gap:.5rem 1.3rem;margin-top:1.5rem}
 .project-identity{padding:1.5rem;gap:1rem}.project-logo{width:90px}
 .project-spotlight{padding:0 1.5rem 1.5rem}.project-spotlight .entry{grid-template-columns:1fr;gap:1.5rem}
 .landing-sections>.chapter,.landing-sections>section,.landing-sections>.premise-layout{margin-bottom:3rem}
 .game-intro h1{font-size:2.5rem}.game-emblem{width:145px}.game-intro .lead{font-size:1rem}
 .premise-layout{padding-block:2rem}
 .game-pillars .entry,.codex-doors .entry,.studio-discovery .entry{display:block}
 .game-pillars .entry-image,.codex-doors .entry-image,.studio-discovery .entry-image{height:auto;max-height:none;object-fit:contain;margin-bottom:1.5rem}
 .library-links .entries,.atlas-grid,.catalog-page .entries,.gallery{grid-template-columns:1fr}
 .portrait-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 1rem}.portrait-art img{height:220px}
 .portrait-name{font-size:1.2rem}.portrait-role{font-size:1rem}
 .section-heading{display:block;margin-bottom:1.5rem}.section-heading>.text-link{margin-top:.8rem}
 .hero{grid-template-columns:1fr;gap:2rem;padding-block:1rem 2rem}.hero-copy{grid-row:1}.hero-art{grid-column:1;grid-row:2}.hero-art img{max-height:none}.hero-portrait .hero-art img{max-height:350px}
 .breadcrumbs{padding-block:1rem;font-size:.875rem}
 .article-layout{padding-top:2rem;gap:2rem}.archive-nav{grid-template-columns:1fr}
 .chapter{padding-bottom:2rem;margin-bottom:2rem}.chapter h2{font-size:1.85rem}
 .entry{grid-template-columns:1fr;gap:1.3rem;padding-block:1.5rem}.entry-image{max-height:300px}
 .catalog-page .entry{padding:1.4rem}.catalog-page .entry-image{height:290px}.bestiary-page .entry-image{height:230px}
 .item-catalog .entry-image{height:145px}
 .gallery figure:first-child{grid-column:auto}
 .site-footer{grid-template-columns:1fr;padding-block:2.5rem;gap:2rem}.footer-actions{grid-column:auto;flex-direction:column}
 dialog{padding:1rem}.search-heading,.gallery-toolbar{align-items:flex-start;gap:.5rem}.search-heading h2,.gallery-toolbar h2{font-size:1.25rem}
 .gallery-navigation{gap:.5rem}.gallery-navigation button{padding:.5rem .6rem;font-size:1rem;white-space:normal;flex:1 1 40%}.gallery-navigation p{order:3;flex-basis:100%;text-align:center}
 .search-heading,.gallery-toolbar{flex-wrap:wrap}.search-heading h2,.gallery-toolbar h2{min-width:0;overflow-wrap:anywhere}
}
/* Product composition: original scenery, a restrained metal frame and generous type. */
.game-home,.game-page{--bg:#0e1319;--surface:#181f28;--line:#3c3b35;--accent:#d9b977;background:radial-gradient(ellipse at 80% 10%,#33251c35,transparent 45%),var(--bg)}
img{-webkit-user-drag:none}
.game-page .hero{padding-block:3rem 4rem;gap:4rem}
.game-page .eyebrow{letter-spacing:.18em}
.art-frame,.game-page .hero-art,.game-page .entry-art,.game-page .gallery-link,#gallery-figure{position:relative;padding:10px;border:1px solid #806949;background:#090c10;box-shadow:0 18px 45px #0004,inset 0 0 0 3px #151a20}
.art-frame::before,.game-page .hero-art::before,.game-page .entry-art::before,.game-page .gallery-link::before,#gallery-figure::before{content:'';position:absolute;inset:5px;border:1px solid #a58a564b;pointer-events:none;z-index:1}
.art-frame::after,.game-page .hero-art::after,.game-page .entry-art::after,.game-page .gallery-link::after,#gallery-figure::after{content:'';position:absolute;inset:-2px;pointer-events:none;z-index:2;background:linear-gradient(#d9b977,#d9b977) left top/20px 2px no-repeat,linear-gradient(#d9b977,#d9b977) left top/2px 20px no-repeat,linear-gradient(#d9b977,#d9b977) right top/20px 2px no-repeat,linear-gradient(#d9b977,#d9b977) right top/2px 20px no-repeat,linear-gradient(#d9b977,#d9b977) left bottom/20px 2px no-repeat,linear-gradient(#d9b977,#d9b977) left bottom/2px 20px no-repeat,linear-gradient(#d9b977,#d9b977) right bottom/20px 2px no-repeat,linear-gradient(#d9b977,#d9b977) right bottom/2px 20px no-repeat}
.game-page .hero-art img{max-height:none;border-radius:0}
.game-page .hero-portrait .hero-art{max-width:390px;justify-self:center;width:100%}
.game-page .hero-portrait .hero-art img{max-height:410px}
.game-page .gallery-image{border-radius:0;max-height:520px;object-fit:contain;background:#000}
.game-page .catalog-page{min-width:0}
.game-page.catalog-page .entry{display:flex;flex-direction:column;padding:1.2rem;background:linear-gradient(145deg,#1c2530,#141b23);border:1px solid #76613c66;border-radius:0;gap:1.5rem}
.game-page.catalog-page .entry-art{width:100%;margin:0;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.game-page.catalog-page .entry-image{height:100%;max-height:100%;width:100%;object-fit:contain;margin:0;background:#000}
.game-page.bestiary-page .entry-art{aspect-ratio:4/3}
.game-page.catalog-page .entry-copy{display:flex;flex-direction:column;flex:1}
.game-page.catalog-page .entry-copy .text-link{align-self:flex-start;margin-top:auto;padding-top:.8rem}
.game-page .chapter-marker{font-family:Cinzel,var(--serif);color:#947d55}
.game-page .continue-reading{border-top:1px solid var(--line);margin-top:2rem;padding-top:2.5rem}
.game-nav.desktop-nav{gap:.15rem}
.game-nav.desktop-nav>a{font-size:.875rem;padding:.7rem .65rem;border-bottom:2px solid transparent}
.game-nav.desktop-nav>a[aria-current]{text-decoration:none;border-color:var(--accent)}
.game-stage{position:relative;isolation:isolate;min-height:660px;display:flex;align-items:center;overflow:hidden;border-bottom:1px solid #90794e;margin-bottom:4.5rem;background:#0a1018}
.game-stage-art{position:absolute;inset:0;z-index:-2;margin:0}
.game-stage-art img{width:100%;height:100%;object-fit:cover;object-position:65% center}
.game-stage::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#080e17f5 0%,#080e17e6 25%,#080e1799 48%,#080e1720 76%),linear-gradient(0deg,#0e1319 0%,transparent 26%)}
.game-stage::after{content:'';position:absolute;inset:14px;border:1px solid #b99b5b45;pointer-events:none}
.game-stage .game-intro-copy{padding-block:4rem;position:relative;z-index:1}
.game-stage .game-emblem{width:150px;margin-bottom:1.5rem}
.game-stage h1{font-family:Cinzel,var(--serif);font-size:clamp(2.5rem,4.4vw,4.5rem);max-width:14ch;margin-bottom:.7rem;text-shadow:0 4px 30px #000}
.game-stage .lead{max-width:34ch;color:#e1ddd3;font-size:1.125rem}
.game-stage .game-subtitle{letter-spacing:.06em}
.game-home .landing-sections{display:grid;grid-template-columns:1fr 1fr;column-gap:4rem}
.game-home .landing-sections>.chapter{border:0;margin-bottom:3rem;padding-bottom:0}
.game-home .landing-sections>.chapter:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:3rem}
.game-home .codex-doors .entries{gap:1.5rem}
.game-home .codex-doors .entry{padding:1.5rem;border:1px solid #74613e;background:linear-gradient(135deg,#1b232d,#111820);position:relative;transition:border-color .2s,transform .2s}
.game-home .codex-doors .entry:hover{border-color:var(--accent);transform:translateY(-3px)}
.game-home .codex-doors h3{font-size:1.5rem}
@media(max-width:1150px){.game-home .desktop-nav,.game-page .desktop-nav{display:none}.game-home .mobile-menu,.game-page .mobile-menu{display:block}.game-home .search-open,.game-page .search-open{margin-left:auto}.game-home .mobile-menu>nav,.game-page .mobile-menu>nav{position:absolute;top:100%;left:0;right:0;max-height:75dvh;overflow:auto;background:var(--surface);border-bottom:1px solid var(--line);padding:1rem 1.5rem;display:grid;gap:.25rem}.game-page .hero{gap:2rem}.game-stage{min-height:610px}}
@media(max-width:900px){.game-home .landing-sections{grid-template-columns:1fr;gap:0}.game-home .landing-sections>.chapter:last-child{grid-column:auto}.game-page .hero{padding-block:2rem 3rem}.game-stage{min-height:580px}.game-stage .game-intro-copy{padding-block:3rem}.game-stage-art img{object-position:70% center}.game-stage::before{background:linear-gradient(90deg,#080e17f5,#080e17a6 65%,#080e1740),linear-gradient(0deg,#0e1319,transparent 45%)}}
@media(max-width:600px){.game-stage{min-height:640px;margin-bottom:3rem;align-items:flex-end}.game-stage .game-intro-copy{padding:10rem 0 2.5rem}.game-stage .game-emblem{width:105px;margin-bottom:1rem}.game-stage h1{font-size:clamp(2rem,8vw,2.8rem)}.game-stage .lead{font-size:1rem;max-width:32ch}.game-stage-art img{object-position:72% top}.game-stage::before{background:linear-gradient(0deg,#080e17 2%,#080e17ed 35%,#080e1799 65%,#080e1722)}.game-stage::after{inset:7px}.game-page .hero{gap:2rem}.game-page .hero-art,.game-page .entry-art,.game-page .gallery-link,#gallery-figure{padding:8px}.game-page.catalog-page .entry{padding:1rem}.game-home .codex-doors .entries{display:grid;grid-template-columns:1fr}.game-home .codex-doors .entry{display:block}.game-page .hero-portrait .hero-art{max-width:340px}}
/* Compact product navigation before its six destinations become crowded. */
@media(min-width:901px) and (max-width:1150px){
 .game-home .header-inner,.game-page .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem 1rem;padding-block:.65rem}
 .game-home .header-inner>.brand-link,.game-page .header-inner>.brand-link{grid-column:1;grid-row:1;min-width:0}
 .game-home .header-actions,.game-page .header-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end;flex-wrap:wrap}
 .game-home .mobile-menu,.game-page .mobile-menu{grid-column:2;grid-row:1;justify-self:end}
 .game-home .search-open,.game-page .search-open{margin-left:0}
 .game-home .mobile-menu>nav>a,.game-page .mobile-menu>nav>a{min-height:44px;display:flex;align-items:center;padding:.6rem;text-decoration:none}
}
/* All content remains visible; system reduced motion is always respected. */
html[data-motion=paused] *,html[data-motion=paused] *::before,html[data-motion=paused] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-motion=paused] .portrait-link img,html[data-motion=paused] .link-icon,html[data-motion=paused] .codex-doors .entry{transform:none!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.portrait-link img,.link-icon,.codex-doors .entry{transform:none!important}}
