/* Base: colours, fonts, reset and the fixed 3D canvas. Loaded in order from index.html. */
/* Layout: a fixed WebGL pipeline behind everything. Scroll flies the camera along it. HUD cards sit over the 3D, one per agent station. */
:root{
  --cobalt:#1F3DFF; --ink:#12142B; --fog:#F4F6FB; --gold:#FFBE0B; --mint:#3DE79A; --coral:#FF3B5C; --sky:#14BEFF;
  --bg-now:#1F3DFF; --hfg:#FFFFFF; --hbtn-bg:#FFBE0B; --hbtn-fg:#12142B;
  --card:#F4F6FB; --on-card:#12142B; --on-card-mute:rgba(18,20,43,.68); --soft:rgba(18,20,43,.07); --ring:rgba(18,20,43,.1);
  --ease-out:cubic-bezier(.23,1,.32,1); --ease-in-out:cubic-bezier(.77,0,.175,1);
  --f-display:'Bricolage Grotesque','Hanken Grotesk',system-ui,sans-serif;
  --f-body:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--card:#171A38;--on-card:#F4F6FB;--on-card-mute:rgba(244,246,251,.74);--soft:rgba(255,255,255,.08);--ring:rgba(255,255,255,.12);color-scheme:dark}
}
:root[data-theme="dark"]{--card:#171A38;--on-card:#F4F6FB;--on-card-mute:rgba(244,246,251,.74);--soft:rgba(255,255,255,.08);--ring:rgba(255,255,255,.12);color-scheme:dark}

*{box-sizing:border-box}
html{scrollbar-gutter:stable;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
body{margin:0;background:#1F3DFF;color:#fff;font:400 16px/1.5 var(--f-body);overflow-x:hidden}
html[lang="ar"] body{font-family:'IBM Plex Sans Arabic',var(--f-body)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:40;background:var(--bg-now);pointer-events:none}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
a{touch-action:manipulation}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

#gl{position:fixed;inset:0;width:100%;height:100%;display:block;z-index:0}
html[dir="rtl"] #gl{transform:scaleX(-1)}
#track{position:relative;height:1100svh;z-index:1;pointer-events:none}
