/* Black foundation and shared amber identity. */
:root{--bg:#000;--gold:#d9992e}
html{background:#000}
body{background-color:#000;background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:64px 64px}
body header,body.faction-page header{background:#000;border-bottom-color:#d9992e33;backdrop-filter:none}
header .brand{color:#d9992e}
header .brand span{color:#a9aaa6}
footer{background:#000}
.home-page .factions{background-color:#000;background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:64px 64px}
.home-page .faction.fas{background:radial-gradient(ellipse at 50% 39%,#75815499 0%,#56613b66 24%,transparent 66%),#000;--muted:#d3d8c5;--line:#758062;--gold:#e0d7a1;color:#f1f1e7;border-color:#758062}
.home-page .faction.odst{background:radial-gradient(ellipse at 50% 39%,#a3193299 0%,#790e2266 24%,transparent 66%),#000;--muted:#e7c1c3;--line:#a14249;--gold:#ffd5d2;color:#fff0ee;border-color:#9a3039}
.home-page .faction.sentinel{background:radial-gradient(ellipse at 50% 39%,#ffffff66 0%,#b9c4c744 24%,transparent 66%),#000;--muted:#bdc6c9;--line:#526066;--gold:#e8eff1;--ice:#e8eff1;color:#e8eff1;border-color:#526066}
.home-page .faction h3,.home-page .faction .faction-sub{text-align:center}
.home-page .faction.odst:before,.home-page .faction.odst:after{border-color:#d45059}
.home-page .faction.sentinel:before,.home-page .faction.sentinel:after{border-color:#dce2df}
.theme-odst{--page:#000;--panel:#000;--accent:#d83a40;--text:#f2f2f2;--muted:#bcbcbc;--line:#762029;--gold:#d83a40;background-color:var(--page);background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px)}
.theme-odst .faction-overview{background:transparent}
.theme-odst .faction-enlist{background:var(--panel)}
/* Native modal keeps focus and page context, with a persistent toolbar. */
html.sheet-open,html.sheet-open body{overflow:hidden}
dialog.sheet-viewer{padding:0;width:min(1100px,96vw);max-width:1100px;height:92vh;height:92dvh;max-height:92dvh;overflow:hidden;background:#070707;color:#f5f2eb;border:1px solid #d9992e88}
dialog.sheet-viewer[open]{display:flex;flex-direction:column}
dialog.sheet-viewer::backdrop{background:#000d;backdrop-filter:blur(6px)}
.sheet-toolbar{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:14px 18px;border-bottom:1px solid #d9992e44;background:#000}
.sheet-toolbar h2{margin:0 auto 0 0;font-size:24px;letter-spacing:1px;color:#efba60}
.sheet-toolbar button{background:#17130c;border:1px solid #d9992e88;color:#fff2da;padding:10px 14px;min-height:44px;font:600 16px 'Rajdhani',sans-serif;white-space:nowrap}
.sheet-toolbar button:hover{background:#49351a}
.sheet-scroll{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:16px}
.sheet-image{display:block;width:auto;max-width:100%;height:auto;max-height:100%;margin:auto;object-fit:contain}
.sheet-viewer.is-zoomed .sheet-image{width:1024px;max-width:none;max-height:none}
@media(max-width:600px){dialog.sheet-viewer{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border:0}.sheet-toolbar{padding:12px;gap:8px}.sheet-toolbar h2{font-size:20px}.sheet-toolbar button{padding:10px}.sheet-scroll{padding:8px}}

/* Full-width sections and layouts that grow with the viewport. */
body{width:100%;max-width:none;margin:0}
main,header,footer,.section{min-width:0}
.section{width:100%}
.split>*,.faction-heading>*,.faction-dossier>*,.faction-grid>*{min-width:0}
.split{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.faction-heading,.faction-dossier{grid-template-columns:repeat(2,minmax(0,1fr))}
.faction-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,1.8vw,42px)}
.home-page .faction{padding:clamp(24px,2vw,48px)}
.home-page .faction img{max-width:none;width:clamp(160px,17vw,440px);max-width:85%;height:auto}
.faction-intro,.join-chronicles .creator-feature,.creator-description,.faction-enlist h2{max-width:none}
.creator-feature>div{min-width:0}
.faction-dossier figure{max-width:none;width:100%}
.faction-banner img{width:100%;height:auto;min-height:0;object-fit:contain}
.home-page .video-hero{max-height:none;background:#000}
.home-page .video-hero:after{display:none}
.home-page .video-shade{background:linear-gradient(180deg,#0005,#0002 35%,#000000e6)}
.home-page .hud-coordinate{color:#ddd5c4}
.home-page .hud-coordinate span{color:#aaa69d}
.home-page .video-hero .hero-bottom{border-top-color:#ffffff25}
@media(min-width:1800px){
 .section,.faction-page .section{padding-block:clamp(95px,5vw,180px)}
 .split p,.faction-intro,.dossier-copy>p,.faction-introduction,.join-bottom p,.creator-description,.join-chronicles .creator-description{font-size:clamp(15px,.9vw,23px)}
 .spirit-hawk{width:60%;height:auto;max-height:420px}
 .creator-feature>img{width:clamp(160px,10vw,300px);height:auto;aspect-ratio:2/3}
}
@media(max-width:900px){.faction-heading,.faction-dossier{grid-template-columns:1fr}.faction-dossier{gap:30px}}
@media(max-width:760px){
 .split,.faction-grid{grid-template-columns:1fr}
 .home-page .faction img{width:65%;max-width:320px}
 .home-page .video-hero{min-height:480px;height:auto;padding-block:80px 100px}
 .faction-header{display:flex;flex-wrap:wrap;align-items:flex-start}
 .faction-header nav{flex-wrap:wrap}
 .home-return{max-width:100%;white-space:normal}
 .sheet-toolbar{flex-wrap:wrap}
}

/* Balanced faction imagery and a larger home emblem. */
.home-page .join>h2{text-align:center}
.home-page .video-brand img{width:clamp(338px,40.3vw,585px);max-width:90vw;height:auto}
.faction-page{max-width:1800px;margin-inline:auto}
.faction-page .faction-banner img{display:block;max-width:none;margin:0;width:100%;height:auto}
.faction-page .faction-dossier{grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:6%}
.faction-page .faction-dossier figure{width:100%;max-width:520px;justify-self:center}
@media(min-width:1800px){.faction-page .section{padding-block:70px}.faction-page .dossier-copy>p,.faction-page .faction-introduction{font-size:15px}}
@media(max-width:900px){.faction-page .faction-dossier{grid-template-columns:1fr;gap:30px}}
@media(max-width:760px){.home-page .video-brand img{width:min(429px,98.8vw);max-width:90vw}}

/* Blood-red ODST accents and readable recruitment controls. */
.theme-odst .button{background:#a51f2a;color:#fff}
.faction-dossier .dossier-copy>.faction-command:first-child{margin-top:0}
