@font-face { font-family:Inter; src:url("assets/inter.ttf") format("truetype"); font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:Orbitron; src: url('assets/orbitron.ttf') format('truetype'); font-weight:400 900; font-display:swap; }
/* Compact game-style frames and controls; body text keeps its readable system font. */
:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color-scheme:dark}


arcade-site-header,arcade-site-footer,arcade-site-dialogs{display:contents}

a,a:hover,a:focus-visible{text-decoration:none}

/* The body owns this stacking context:negative background stays above its fallback paint. */
body{isolation:isolate}
#site-cutscene-background{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .5s}
#site-cutscene-background.ready{opacity:1;filter:contrast(1.22) brightness(1.04)}
#site-cutscene-background::after{content:"";position:absolute;inset:0;background:var(--site-tone-7267626128302c302c302c2e313029);pointer-events:none}
@media(prefers-reduced-motion:reduce){#site-cutscene-background{transition:none}}

/* Content transparency is enabled only after the live background has rendered successfully. */
body:has(#site-cutscene-background.ready){--panel:var(--site-tone-7267626128352c362c382c2e363629);--table-head:var(--site-tone-7267626128392c31302c31322c2e373629);--table-cell:var(--site-tone-7267626128352c362c382c2e363629);--table-hover:var(--site-tone-726762612831362c31382c32312c2e373629);--table-selected:var(--site-tone-726762612831382c32352c33322c2e383029);--table-foot:var(--site-tone-7267626128392c31302c31322c2e373629)}
body:has(#site-cutscene-background.ready) .panel{background:var(--site-tone-7267626128352c362c382c2e363629)}
body:has(#site-cutscene-background.ready) .filter-row{background:var(--site-tone-7267626128392c31302c31322c2e373629)}

body:has(#site-cutscene-background.ready) main{text-shadow:0 1px 3px var(--site-tone-7267626128302c302c302c2e3929)}

body:has(#site-cutscene-background.ready) .site-footer{background:var(--site-tone-7267626128342c362c31302c2e393229)}

/* The same footer control is used in the document and isolated shell roots. */
#site-theme-picker{position:relative;flex:0 0 auto;height:100%;margin:0}
#theme-options{position:absolute;left:0;bottom:calc(100% + 6px);z-index:100;min-width:180px;padding:4px;background:var(--panel);border:1px solid var(--panel-edge);box-shadow:0 8px 24px var(--site-tone-2330303036)}
#site-theme-picker #theme-options button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:9px 10px;border:0;border-radius:0;clip-path:none;background:transparent;box-shadow:none;color:var(--text);font:inherit;text-align:left;text-transform:none;letter-spacing:normal;white-space:nowrap}
#site-theme-picker #theme-options button::before{display:none}
#site-theme-picker #theme-options button:hover,#site-theme-picker #theme-options button:focus-visible{background:var(--table-hover,var(--site-tone-23313532363338))}
#site-theme-picker #theme-options button[aria-pressed=true]{background:var(--table-selected,var(--site-tone-23313733333464))}
#theme-options button[aria-pressed=true]::after{content:'✓';color:var(--heading)}
#theme-options button:focus-visible{outline:2px solid var(--glow);outline-offset:-2px}
html[data-site-theme=sc2-planets] body.wiki-embedded{background:transparent}
