/* RC44 — The Victory Chronicle: single-theme cinematic redesign.
   Original illustration is an artistic reconstruction, NOT an archival photograph.
   Scope: all public and editorial pages; content and URLs remain unchanged. */
:root,html[data-theme="dark"],html[data-theme="light"]{
 color-scheme:dark!important;
 --bg-primary:#171717;--bg-secondary:#202020;--bg-card:#272727;--bg-hover:#35302f;
 --border:#504746;--text-primary:#f1eee8;--text-secondary:#c7c1ba;--text-muted:#b1a9a0;
 --accent:#d2b7a0;--accent-hover:#f2ded0;--accent-subtle:rgba(143,37,35,.18);
 --danger:#df8d84;--shadow:rgba(0,0,0,.5);
 --bg:#171717;--paper:#202020;--card:#272727;--ink:#f1eee8;--text:#f1eee8;
 --surface:#202020;--muted:#c7c1ba;--line:#504746;--green:#d2b7a0;--gold:#d2b7a0;
 --terracotta:#b8423c;--dark:#151515;--dark2:#202020;
 --surface-overlay:rgba(23,23,23,.95);
 --hero-overlay:linear-gradient(90deg,rgba(10,10,10,.88),rgba(10,10,10,.4));
}
html,body,body[data-page="home"]{background:#171717!important;color:#f1eee8!important}
body{font-family:'PT Sans',system-ui,sans-serif;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 70% 10%,#3b3331 0%,transparent 55%),repeating-linear-gradient(0deg,transparent 0 3px,#ffffff03 4px 5px)}
body[data-page="home"]{--bg:#171717;--paper:#202020;--card:#272727;--ink:#f1eee8;--muted:#c7c1ba;--green:#d2b7a0;--gold:#d2b7a0;--line:#504746;color:#f1eee8;font-family:'PT Sans',system-ui,sans-serif}
body[data-page="home"] #battles,body[data-page="home"] #heroes,body[data-page="home"] #articles,body[data-page="home"] #memory,body[data-page="home"] #discover,body[data-page="home"] #intro{background:#171717!important;color:#f1eee8!important}
body[data-page="home"] #intro p,body[data-page="home"] #discover .heading p,body[data-page="home"] .heading p{color:#c7c1ba!important}
.topline{background:#0b0b0b!important;color:#d1bdb7!important;border-bottom:1px solid #3c3030!important;letter-spacing:.18em}
.header,body[data-page="home"] .header{background:rgba(13,13,13,.92)!important;border-bottom:1px solid #59423d!important;backdrop-filter:blur(15px);box-shadow:0 12px 30px #0005}
.brand,.brand b,.header #nav>a,.header .nav-trigger{color:#f3eee9!important}
.brand b{font-family:'PT Serif',Georgia,serif!important;letter-spacing:.08em!important}
.brand small{color:#cbbcb6!important}
.logo{color:#e0c3b6!important;border-color:#805650!important}
.header .nav-menu,.header .profile-menu{background:#1d1b1b!important;border:1px solid #564440!important}
.header .nav-menu a,.header .profile-menu a{color:#f0e9e3!important}
.header .nav-menu a:hover,.header .profile-menu a:hover{background:#49302e!important;color:#fff!important}
.header .profile-link,.header .profile-tools summary,.header .actions button,.header .menu{color:#f4eee8!important;background:#241e1e!important;border-color:#624b47!important}
.header [aria-current="page"]{color:#efb6a8!important;border-bottom:1px solid #b8423c}
#theme{display:none!important}
body[data-page="home"] .hero{position:relative;min-height:max(760px,100svh);background-image:linear-gradient(90deg,rgba(13,12,12,.87) 0%,rgba(13,12,12,.46) 43%,rgba(13,12,12,.1) 100%),linear-gradient(0deg,#171717 0%,transparent 48%),url('../assets/victory-cinematic-original.png')!important;background-position:center,center,center 35%;background-size:cover!important;background-color:#171717!important}
body[data-page="home"] .hero::before{background:none!important}
body[data-page="home"] .hero-inner{padding-top:180px;padding-bottom:170px}
body[data-page="home"] .hero h1{font-family:'PT Serif',Georgia,serif!important;font-size:clamp(54px,8.5vw,120px)!important;font-weight:700!important;line-height:.98!important;letter-spacing:-.045em!important;text-shadow:0 4px 28px #000c;max-width:860px}
body[data-page="home"] .hero h1 i{color:#f0e4d7!important;font-style:normal!important}
body[data-page="home"] .hero p{color:#eee6e0!important;text-shadow:0 2px 8px #000}
body[data-page="home"] .hero .eyebrow{color:#f0c1b4!important}
body[data-page="home"] .hero .btn.light,.btn.primary,.btn:not(.secondary):not(.outline):not(.ghost){background:#9e2527;color:#fff;border:1px solid #bd4d4a;border-radius:2px;box-shadow:0 10px 24px #0005}
body[data-page="home"] .hero .btn.light:hover,.btn.primary:hover{background:#bb3637}
body[data-page="home"] .hero .btn.outline{border-color:#d8bdb5;color:#fff;background:#1a141480}
body[data-page="home"] .stamp{background:#191515a8;border-left:2px solid #a93c3c}
body[data-page="home"] .stamp b{color:#e7d0c3}
body[data-page="home"] #dailyQuiz{background:#222!important;border-color:#5b4441!important}
body[data-page="home"] #intro h2,body[data-page="home"] #discover h2,body[data-page="home"] .heading h2{color:#f4eee9!important;font-family:'PT Serif',Georgia,serif!important}
body[data-page="home"] #intro h2 i{color:#d39a91!important}
body[data-page="home"] #discover{padding-block:100px!important}
body[data-page="home"] .feature,body[data-page="home"] .feature.large{background:#292323!important;border:1px solid #604a47!important;min-height:450px}
body[data-page="home"] .feature h3{color:#fff!important}
body[data-page="home"] .feature .overlay{background:linear-gradient(0deg,#100e0ef5 0%,#100e0e1c 90%)}
body[data-page="home"] .home-op-launch,body[data-page="home"] #history,body[data-page="home"] #museum{background:#211e1e!important;border-color:#53413f!important}
body[data-page="home"] #battles .info-card,body[data-page="home"] #heroes .profile-card,body[data-page="home"] #articles .article-card{background:#272424!important;border:1px solid #564542!important;color:#f1eee8!important}
body[data-page="home"] #history .event,body[data-page="home"] #history .time-travel{background:#2b2727!important;border-color:#564542!important}
body[data-page="home"] #museum .museum-explorer{background:#292525!important;border-color:#564542!important}
body[data-page="home"] #memory{background:linear-gradient(110deg,#241c1c,#171717)!important}
/* Every inner page: dramatic documentary masthead, without changing its content structure. */
body[data-page]:not([data-page="home"]) main{position:relative;isolation:isolate}
body[data-page]:not([data-page="home"]) main::before{content:"";position:absolute;inset:0 0 auto;height:min(520px,72vw);z-index:-1;pointer-events:none;background:linear-gradient(0deg,#171717 0%,#17171722 65%,#17171799 100%),linear-gradient(90deg,#171717ee,#17171733),url('../assets/victory-cinematic-original.png') center 40%/cover no-repeat;opacity:.46}
body[data-page]:not([data-page="home"]) main>section:first-child,body[data-page]:not([data-page="home"]) main>.wrap:first-child{position:relative}
h1,h2,h3,h4,h5,h6,.heading h1,.heading h2{color:#f1eee8!important;font-family:'PT Serif',Georgia,serif}
.eyebrow,.tag,.feature-text small{color:#e0a59b!important;letter-spacing:.12em}
.section{position:relative}
/* Dark editorial surfaces and readable forms across all pages */
:is(.pv-card,.article-card,.profile-card,.museum-item,.museum-tools,.map-panel,.map-notes,.city-result,.info-card,.daily-quiz,.course-card,.course-detail,.lesson-check,.research-card,.regional-card,.archive-card,.source-strip>div,.modalbox,.searchbox,.portal-form,.pending-entry,.admin-workspace>div,.puzzle-panel,.achievements,.op-launch-card,.op-card,.event,.card){background:#262323!important;color:#f1eee8!important;border-color:#5c4844!important;box-shadow:0 12px 34px #0003;border-radius:2px}
:is(.pv-card,.article-card,.profile-card,.museum-item,.info-card,.course-card,.regional-card,.archive-card):hover{border-color:#a45a52!important}
:is(input,select,textarea,button){accent-color:#b73c39}
:is(input:not([type="range"]),select,textarea){background:#211f1f!important;color:#f4eee9!important;border-color:#6b5450!important;border-radius:2px}
:is(input,select,textarea)::placeholder{color:#b4a9a4!important}
:is(p,small,figcaption,.muted-note,.heading p){color:inherit}
:is(.pv-card,.article-card,.profile-card,.museum-item,.course-card,.regional-card,.archive-card) :is(p,small,li){color:#d0c7c1!important}
:is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #e6aaa1!important;outline-offset:3px}
a{color:#e2afa6}a:hover{color:#ffe0d7}
.btn.secondary,.btn.ghost{background:#302929!important;color:#f2e8e4!important;border:1px solid #765a55!important}
footer,.footer{background:#111!important;color:#d5c9c4!important;border-top:1px solid #55413d!important}
/* Map must remain visible and interactive: never apply the decorative image over its canvas. */
#map,.maplibregl-map,.maplibregl-canvas-container,.maplibregl-canvas{isolation:isolate}
.maplibregl-popup-content{background:#262323;color:#f1eee8;border:1px solid #705752}
.maplibregl-popup-tip{border-top-color:#262323!important}
@media(max-width:900px){body[data-page="home"] .hero{background-position:center,center,58% center!important}body[data-page="home"] .hero-inner{padding-top:160px;padding-bottom:140px}body[data-page="home"] .feature-grid{grid-template-columns:1fr 1fr}body[data-page="home"] .feature.large{grid-column:1/-1}}
@media(max-width:680px){body[data-page="home"] .hero{min-height:760px;background-image:linear-gradient(90deg,#121010ed,#12101077),linear-gradient(0deg,#171717,transparent 60%),url('../assets/victory-cinematic-original.png')!important;background-position:center,center,62% center!important}body[data-page="home"] .hero h1{font-size:clamp(48px,12vw,75px)!important}body[data-page="home"] .feature-grid{grid-template-columns:1fr}body[data-page="home"] .feature.large{grid-column:auto}body[data-page="home"] #intro{grid-template-columns:1fr;gap:18px}body[data-page="home"] .stamp{display:none}body[data-page]:not([data-page="home"]) main::before{height:320px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
