/* ============================================================
   Airport Cyber Resilience Simulator V2 — Kiosk Theme
   Fixed 1920x1080 stage, auto-scaled. Core state animation is
   CSS-driven for robustness; GSAP handles odometer + particles.
   ============================================================ */

:root{
  --bg:#040810; --panel:#0a1524; --panel-2:#0f1e33; --line:#173355;
  --text:#cfe4ff; --text-dim:#6f8bad;
  --green:#39ff9e; --green-soft:#12ffa0; --red:#ff3b52; --amber:#ffb03a;
  --cyan:#38e6ff; --violet:#a06bff; --white:#eaf6ff;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:var(--bg);overflow:hidden;color:var(--text);
  font-family:'Rajdhani',system-ui,sans-serif;-webkit-user-select:none;user-select:none;cursor:default}
#root{height:100%}
.hidden{display:none!important}

/* ---- Stage scaling ---- */
#stage-wrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at 50% 30%,#08131f,#020509 70%)}
#stage{width:1920px;height:1080px;transform-origin:center center;position:relative;
  background:linear-gradient(135deg,#050b16,#020509);border:1px solid var(--line);overflow:hidden}

/* ============ CONFIG SCREEN ============ */
#config{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:radial-gradient(circle at 50% 30%,#0a1c30,#020509 78%);overflow:hidden;z-index:20}
#config::before{content:"";position:absolute;inset:0;background-image:
  linear-gradient(rgba(56,230,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(56,230,255,.06) 1px,transparent 1px);
  background-size:54px 54px;animation:drift 20s linear infinite}
@keyframes drift{to{background-position:54px 54px}}
.cfg-inner{position:relative;width:1100px;max-width:92%;text-align:center}
.cfg-badge{color:var(--green);filter:drop-shadow(0 0 16px rgba(57,255,158,.6));animation:floaty 4s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.cfg-inner h1{font-family:'Orbitron';font-weight:900;font-size:40px;letter-spacing:4px;color:var(--white);margin:14px 0 4px;text-shadow:0 0 26px rgba(56,230,255,.5)}
.cfg-inner h2{font-family:'Orbitron';font-weight:500;font-size:15px;letter-spacing:6px;color:var(--cyan);margin-bottom:26px}
.cfg-panel{background:linear-gradient(180deg,rgba(15,30,51,.8),rgba(8,18,32,.7));border:1px solid var(--line);
  border-radius:18px;padding:26px 30px;box-shadow:0 0 60px rgba(0,20,40,.6)}
.cfg-label{font-family:'Orbitron';font-size:13px;letter-spacing:3px;color:var(--cyan);text-align:left;margin-bottom:12px;text-transform:uppercase}
.airport-list{height:340px;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:4px;margin-bottom:22px}
.airport-item{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;
  background:rgba(10,22,38,.6);cursor:pointer;transition:.15s;text-align:left}
.airport-item:hover{border-color:var(--cyan);background:rgba(18,40,66,.85);transform:translateY(-2px)}
.airport-item.sel{border-color:var(--green);box-shadow:0 0 20px rgba(57,255,158,.4);background:rgba(12,40,30,.7)}
.airport-item .code{font-family:'Orbitron';font-weight:700;font-size:14px;color:var(--violet);width:44px}
.airport-item.sel .code{color:var(--green)}
.airport-item .an{font-size:14.5px;font-weight:600;color:var(--white);line-height:1.1}
.airport-item .at{font-size:11.5px;color:var(--text-dim)}
.cfg-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:6px}
.cfg-audio{display:flex;align-items:center;gap:14px;font-size:16px;color:var(--text)}
.cfg-init{font-family:'Orbitron';font-size:20px;font-weight:700;letter-spacing:3px;color:#04121a;padding:18px 46px;border:none;border-radius:14px;
  background:linear-gradient(180deg,#40ffa8,#12c877);box-shadow:0 0 32px rgba(57,255,158,.5);cursor:pointer;transition:.15s}
.cfg-init:hover{transform:translateY(-2px);box-shadow:0 0 46px rgba(57,255,158,.75)}
.cfg-init:disabled{opacity:.4;cursor:not-allowed;box-shadow:none;filter:grayscale(.5)}

/* toggle switch */
.toggle{position:relative;width:66px;height:34px;border-radius:20px;background:#123049;border:1px solid var(--line);cursor:pointer;transition:.2s;flex:0 0 auto}
.toggle.on{background:linear-gradient(90deg,#12c877,#40ffa8);box-shadow:0 0 16px rgba(57,255,158,.5)}
.toggle .knob{position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#eaf6ff;transition:.2s;box-shadow:0 2px 6px rgba(0,0,0,.5)}
.toggle.on .knob{left:37px}

/* ============ DASHBOARD ============ */
#dash{position:absolute;inset:0;display:flex}
#sidebar{width:460px;flex:0 0 460px;height:100%;background:linear-gradient(180deg,#08111f,#050b14);
  border-right:1px solid var(--line);display:flex;flex-direction:column;padding:18px;gap:13px;overflow:hidden}
#brand{display:flex;align-items:center;gap:12px}
.brand-mark{color:var(--green);filter:drop-shadow(0 0 8px rgba(57,255,158,.6))}
#brand h1{font-family:'Orbitron';font-weight:900;font-size:18px;letter-spacing:1.5px;color:var(--white);line-height:1}
#brand h2{font-family:'Orbitron';font-weight:500;font-size:11px;letter-spacing:3px;color:var(--cyan)}
#brand .apt{margin-left:auto;text-align:right}
#brand .apt b{font-family:'Orbitron';font-size:16px;color:var(--green)}
#brand .apt span{display:block;font-size:11px;color:var(--text-dim)}

.panel{background:linear-gradient(180deg,rgba(15,30,51,.7),rgba(8,18,32,.55));border:1px solid var(--line);border-radius:11px;padding:12px}
.panel-title{display:flex;align-items:center;justify-content:space-between;font-family:'Orbitron';font-size:11px;letter-spacing:2.5px;color:var(--cyan);margin-bottom:10px;text-transform:uppercase}
.panel-title .dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green);animation:pulseDot 1.6s infinite}
@keyframes pulseDot{0%,100%{opacity:1}50%{opacity:.3}}

/* financial odometer */
.fin-main{font-family:'Orbitron';font-weight:900;font-size:34px;letter-spacing:1px;color:var(--white);line-height:1;transition:color .4s}
.fin-main.amber{color:var(--amber)} .fin-main.red{color:var(--red);text-shadow:0 0 18px rgba(255,59,82,.6)}
.fin-sub{display:flex;justify-content:space-between;margin-top:9px;font-size:12px;color:var(--text-dim)}
.fin-sub b{display:block;font-family:'Orbitron';font-size:13px;color:var(--text)}
.fin-bleed{margin-top:8px;font-size:12.5px;color:var(--amber)}
.mini-metrics{display:flex;gap:8px;margin-top:10px}
.mini{flex:1;background:rgba(8,18,32,.6);border:1px solid var(--line);border-radius:8px;padding:7px 9px}
.mini span{font-size:10.5px;color:var(--text-dim);letter-spacing:1px}
.mini b{display:block;font-family:'Orbitron';font-size:15px;margin-top:2px}
.mini.sec b{color:var(--green)} .mini.cap b{color:var(--cyan)} .mini.rep b{color:var(--amber)}

/* playbook select */
.pb-select{max-height:150px;overflow-y:auto;display:flex;flex-direction:column;gap:6px}
.pb-card{display:flex;gap:9px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:rgba(10,22,38,.6);cursor:pointer;transition:.15s}
.pb-card:hover{border-color:var(--cyan);background:rgba(18,40,66,.8)}
.pb-card.sel{border-color:var(--violet);box-shadow:0 0 16px rgba(160,107,255,.35)}
.pb-card .pbx{font-family:'Orbitron';font-size:13px;font-weight:700;color:var(--violet);width:24px;text-align:center}
.pb-card b{font-size:13.5px;color:var(--white);font-weight:600;line-height:1.1}
.pb-card span{font-size:11px;color:var(--text-dim)}
.start-btn{width:100%;margin-top:10px;padding:14px;border:none;border-radius:11px;font-family:'Orbitron';font-size:16px;font-weight:700;letter-spacing:2px;
  color:#04121a;background:linear-gradient(180deg,#40ffa8,#12c877);box-shadow:0 0 22px rgba(57,255,158,.4);cursor:pointer;transition:.15s}
.start-btn:hover:not(:disabled){transform:translateY(-2px)}
.start-btn:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(.5);box-shadow:none}
.start-btn.armed{background:linear-gradient(180deg,#ff6b7e,#ff3b52);box-shadow:0 0 26px rgba(255,59,82,.5);color:var(--white)}

/* crisis comms */
#comms .comms-body{font-size:13px;color:var(--text-dim);line-height:1.4;min-height:30px}
.comms-proactive{width:100%;margin-top:9px;padding:12px;border:1px solid var(--amber);border-radius:10px;background:rgba(255,176,58,.12);
  color:var(--amber);font-family:'Orbitron';font-size:13px;letter-spacing:1px;cursor:pointer;transition:.15s}
.comms-proactive:hover{background:rgba(255,176,58,.24)}
.comms-proactive:disabled{opacity:.3;cursor:not-allowed}
.reactive-row{display:flex;gap:10px;margin-top:10px}
.reactive-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:10px;border:1px solid var(--red);
  background:rgba(255,59,82,.12);color:var(--red);font-family:'Orbitron';font-size:12px;letter-spacing:1px;cursor:pointer}
.reactive-btn.flash{animation:ring .5s infinite}
@keyframes ring{0%,100%{background:rgba(255,59,82,.12);transform:translateX(0)}25%{transform:translateX(-2px) rotate(-3deg)}
  50%{background:rgba(255,59,82,.4);box-shadow:0 0 24px rgba(255,59,82,.7)}75%{transform:translateX(2px) rotate(3deg)}}

/* incident log */
#log-panel{flex:1;min-height:0;display:flex;flex-direction:column}
#event-log{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:5px;font-family:'Rajdhani';padding-right:4px}
.log-item{font-size:12.5px;line-height:1.3;padding:6px 9px;border-left:3px solid var(--line);background:rgba(10,22,38,.5);border-radius:0 7px 7px 0}
.log-item .t{font-family:'Orbitron';font-size:10px;color:var(--text-dim);margin-right:6px}
.log-item.ingress{border-left-color:var(--violet)} .log-item.compromise{border-left-color:var(--red);color:#ffd0d6}
.log-item.spread{border-left-color:var(--amber)} .log-item.mit{border-left-color:var(--cyan)}
.log-item.good{border-left-color:var(--green)} .log-item.fine{border-left-color:var(--red);color:#ffb0bb}
.log-item.comms{border-left-color:var(--amber);color:#ffe4b0}

.side-actions{display:flex;gap:9px}
#reset-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:15px;border:none;border-radius:12px;
  font-family:'Orbitron';font-size:14px;font-weight:700;letter-spacing:1.5px;color:#04121a;cursor:pointer;
  background:linear-gradient(180deg,#40ffa8,#12c877);box-shadow:0 0 22px rgba(57,255,158,.4);transition:.15s}
#reset-btn:hover{transform:translateY(-2px)}
.audio-toggle{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:rgba(10,22,38,.6);color:var(--cyan);cursor:pointer}

/* ============ MAP ============ */
#map-area{flex:1;position:relative}
#map-header{position:absolute;top:0;left:0;right:0;z-index:5;padding:16px 30px;display:flex;align-items:baseline;gap:16px;
  background:linear-gradient(180deg,rgba(4,10,20,.85),rgba(4,10,20,0));pointer-events:none}
#scenario-title{font-family:'Orbitron';font-size:21px;font-weight:700;letter-spacing:1.5px;color:var(--white);text-shadow:0 0 16px rgba(56,230,255,.4)}
#scenario-sub{font-size:13px;color:var(--text-dim);flex:1}
#sim-clock{font-family:'Orbitron';font-size:20px;color:var(--green);letter-spacing:2px;min-width:120px;text-align:right;text-shadow:0 0 12px rgba(57,255,158,.5)}
#map{width:100%;height:100%;display:block}

/* nodes: pulsing halos via CSS */
.node{cursor:pointer}
.node .halo{fill:none;stroke:var(--green);stroke-width:2.5;transform-origin:center;transform-box:fill-box;animation:haloGreen 2s ease-in-out infinite}
.node .core{fill:#081a2b;stroke:#2f6f8f;stroke-width:2}
.node .ico{color:var(--green)}
.node .label{font-family:'Rajdhani';font-weight:600;font-size:14px;fill:var(--text);text-anchor:middle}
.node .cap{font-family:'Orbitron';font-size:10px;fill:var(--text-dim);text-anchor:middle}
@keyframes haloGreen{0%,100%{stroke-opacity:.85;stroke-width:2.5}50%{stroke-opacity:.35;stroke-width:4}}
@keyframes haloRed{0%,100%{stroke-opacity:1;stroke-width:3}50%{stroke-opacity:.4;stroke-width:6}}
.node.ingress .halo{stroke:var(--violet)}
.node.compromised .halo,.node.patching .halo{stroke:var(--red);animation:haloRed .7s ease-in-out infinite}
.node.compromised .core,.node.patching .core{stroke:var(--red);fill:#2a0810}
.node.compromised .ico,.node.patching .ico{color:var(--red)}
.node.throttled .halo{stroke:var(--amber);animation:haloRed 1.1s ease-in-out infinite}
.node.throttled .core{stroke:var(--amber)} .node.throttled .ico{color:var(--amber)}
.node.isolated .halo{stroke:#5a6a80;stroke-dasharray:6 6;animation:none;stroke-opacity:.6}
.node.isolated .core{stroke:#5a6a80;fill:#10161f} .node.isolated .ico{color:#7f8ea3}
.node.patched .halo{stroke:var(--green)} .node.patched .core{stroke:var(--green);fill:#062015} .node.patched .ico{color:var(--green)}

/* animated in-circle icons (ATC, Aircraft Comms, EV Charging, Wi-Fi) */
.node .ico-anim{transform-box:fill-box;transform-origin:center}
.node .ico-comms{animation:icoPulse 1.8s ease-in-out infinite}
.node .ico-wifi{animation:icoPulse 1.5s ease-in-out infinite}
.node .ico-ev{animation:icoFlicker 1.3s steps(4,end) infinite}
.node .ico-atc{animation:icoBeacon 2s ease-in-out infinite}
@keyframes icoPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.18);opacity:.65}}
@keyframes icoFlicker{0%,100%{opacity:1}30%{opacity:.3}55%{opacity:.9}80%{opacity:.5}}
@keyframes icoBeacon{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(1.09)}}

.patch-ring{fill:none;stroke:var(--cyan);stroke-width:4;stroke-linecap:round}

/* links + particles */
.link{stroke:#1c3d5f;stroke-width:2;stroke-dasharray:2 8;fill:none;opacity:.7}
.link.hot{stroke:var(--red);opacity:.9;stroke-dasharray:4 6;animation:dash .5s linear infinite}
@keyframes dash{to{stroke-dashoffset:-20}}
.particle{r:3.4}
.particle.g{fill:var(--green);filter:drop-shadow(0 0 4px var(--green))}
.particle.r{fill:var(--red);filter:drop-shadow(0 0 5px var(--red));r:4.4}
@keyframes glide{to{transform:translate(var(--dx),var(--dy))}}
.particle.ambient{animation:glide var(--dur,3s) linear infinite}
.particle.spread{animation:glide var(--dur,1.1s) ease-in forwards}

/* patch progress ring */
@keyframes patchspin{from{stroke-dashoffset:301}to{stroke-dashoffset:0}}

/* attack approaching the next node during a patch */
.link.approaching{stroke:var(--red);opacity:.95;stroke-width:3.5;stroke-dasharray:7 6;animation:dash .35s linear infinite}
.approach-particle{fill:var(--red);filter:drop-shadow(0 0 7px var(--red));r:5.2;animation:glide var(--dur,1.5s) ease-in infinite}
.approach-ring{fill:none;stroke:var(--red);stroke-width:3.5;transform-box:fill-box;transform-origin:center;animation:approachRing 1.1s ease-out infinite}
@keyframes approachRing{0%{transform:scale(.72);opacity:.95}100%{transform:scale(1.75);opacity:0}}
.approach-warn{fill:var(--red);font-family:'Orbitron';font-weight:700;font-size:13px;text-anchor:middle;
  filter:drop-shadow(0 0 6px rgba(255,59,82,.7));animation:warnBlink .6s steps(2) infinite}
@keyframes warnBlink{0%,100%{opacity:1}50%{opacity:.25}}

/* floating regulatory-fine text (SVG) */
.ffine{fill:var(--red);font-family:'Orbitron';font-weight:700;font-size:19px;text-anchor:middle;
  filter:drop-shadow(0 0 8px rgba(255,59,82,.7));animation:ffineUp 2.4s ease-out forwards}
@keyframes ffineUp{0%{opacity:0;transform:translateY(8px)}15%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-70px)}}

/* runway lights strip */
.rwlight{fill:#0a1420;stroke:#2f4a63;stroke-width:1}
.rwlight.on{fill:#ffffff;filter:drop-shadow(0 0 5px #fff)}
.rwlight.dim{fill:#8a9bb0;animation:flick 0.5s steps(2) infinite}
@keyframes flick{0%,100%{opacity:1}50%{opacity:.35}}
.rwlight.dark{fill:#0a1420;filter:none}

/* ingress marker */
.ingress-marker .halo{fill:rgba(160,107,255,.12);stroke:var(--violet);stroke-width:2.5;filter:drop-shadow(0 0 8px var(--violet));
  transform-origin:center;transform-box:fill-box;animation:haloRed .9s ease-in-out infinite}
.ingress-marker .ico{color:var(--violet)}
.ingress-marker .il{fill:var(--white);font-family:'Rajdhani';font-weight:600;font-size:13px;text-anchor:middle}
.ingress-marker{animation:bob 1.4s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}

/* floating fine text */
.float-fine{position:absolute;font-family:'Orbitron';font-weight:700;font-size:17px;color:var(--red);
  text-shadow:0 0 12px rgba(255,59,82,.7);pointer-events:none;animation:floatUp 2.4s ease-out forwards;white-space:nowrap;z-index:15}
@keyframes floatUp{0%{opacity:0;transform:translateY(10px) scale(.8)}15%{opacity:1;transform:translateY(0) scale(1)}
  100%{opacity:0;transform:translateY(-90px) scale(1)}}

/* ============ COUNTDOWN OVERLAY ============ */
#countdown{position:absolute;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:radial-gradient(circle at 50% 50%,rgba(255,59,82,.15),rgba(2,6,12,.94) 60%);backdrop-filter:blur(3px)}
#countdown .cd-label{font-family:'Orbitron';font-size:22px;letter-spacing:6px;color:var(--red);margin-bottom:14px;text-transform:uppercase}
#countdown .cd-num{font-family:'Orbitron';font-weight:900;font-size:260px;line-height:1;color:var(--white);text-shadow:0 0 60px rgba(255,59,82,.7)}
.cd-pop{animation:cdpop 1s ease-out}
@keyframes cdpop{0%{transform:scale(.3);opacity:0}30%{transform:scale(1.1);opacity:1}100%{transform:scale(1);opacity:.9}}
#countdown .cd-pb{margin-top:20px;font-family:'Orbitron';font-size:18px;letter-spacing:3px;color:var(--cyan)}

/* ============ NODE OVERLAY ============ */
.overlay{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:rgba(2,6,12,.72);backdrop-filter:blur(4px)}
.overlay-card{width:560px;max-height:84%;overflow:auto;background:linear-gradient(180deg,#0c1a2c,#081320);border:1px solid var(--cyan);
  border-radius:18px;padding:24px;box-shadow:0 0 60px rgba(56,230,255,.3);position:relative}
.overlay-close{position:absolute;top:14px;right:18px;background:none;border:none;color:var(--text-dim);font-size:28px;cursor:pointer;line-height:1}
.overlay-close:hover{color:var(--red)}
.overlay-head{display:flex;align-items:center;gap:15px;margin-bottom:18px}
.overlay-icon{width:62px;height:62px;border-radius:13px;background:#0a1a2b;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--green)}
.overlay-name{font-family:'Orbitron';font-size:21px;font-weight:700;color:var(--white)}
.overlay-status{display:inline-block;font-family:'Orbitron';font-size:11px;letter-spacing:2px;padding:3px 10px;border-radius:20px;margin-top:4px;
  background:rgba(57,255,158,.15);color:var(--green);border:1px solid var(--green)}
.overlay-status.bad{background:rgba(255,59,82,.15);color:var(--red);border-color:var(--red)}
.overlay-status.warn{background:rgba(255,176,58,.15);color:var(--amber);border-color:var(--amber)}
.overlay-tabs{display:flex;gap:6px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.tab{background:none;border:none;color:var(--text-dim);font-family:'Rajdhani';font-weight:600;font-size:15px;padding:9px 13px;cursor:pointer;border-bottom:2px solid transparent}
.tab.active{color:var(--cyan);border-bottom-color:var(--cyan)}
.kv{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(23,51,85,.5);font-size:14.5px}
.kv span{color:var(--text-dim)} .kv b{color:var(--white);font-weight:600}
.kv.col{flex-direction:column;gap:4px} .kv.col p{color:var(--text);font-size:13.5px;line-height:1.4;font-weight:400}
.overlay-desc{margin-top:12px;font-size:14px;line-height:1.5;color:var(--text-dim)}
.mit-help{font-size:13.5px;color:var(--text-dim);margin-bottom:12px}
.mit-btn{display:block;width:100%;text-align:left;border-radius:11px;border:1px solid var(--line);background:rgba(10,22,38,.7);padding:13px 15px;margin-bottom:10px;cursor:pointer;transition:.15s}
.mit-btn b{display:block;font-family:'Orbitron';font-size:14px;margin-bottom:3px}
.mit-btn span{font-size:13px;color:var(--text-dim);line-height:1.35}
.mit-btn.iso b{color:var(--red)} .mit-btn.iso:hover{border-color:var(--red);box-shadow:0 0 20px rgba(255,59,82,.3)}
.mit-btn.thr b{color:var(--amber)} .mit-btn.thr:hover{border-color:var(--amber);box-shadow:0 0 20px rgba(255,176,58,.3)}
.mit-btn.stop b{color:var(--cyan)} .mit-btn.stop:hover{border-color:var(--cyan);box-shadow:0 0 20px rgba(56,230,255,.3)}
.mit-btn:disabled{opacity:.35;cursor:not-allowed}
.reg-badge span{font-family:'Orbitron';font-size:15px;letter-spacing:1px;color:var(--violet);border:1px solid var(--violet);padding:7px 15px;border-radius:22px;background:rgba(160,107,255,.12)}

/* ============ ATTRACT ============ */
#attract{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at 50% 40%,#0a1c30,#020509 75%);overflow:hidden}
#attract::before{content:"";position:absolute;inset:0;background-image:
  linear-gradient(rgba(56,230,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(56,230,255,.06) 1px,transparent 1px);
  background-size:50px 50px;animation:drift 18s linear infinite}
.attract-inner{position:relative;text-align:center;max-width:900px}
.attract-shield{color:var(--green);filter:drop-shadow(0 0 20px rgba(57,255,158,.7));animation:floaty 4s ease-in-out infinite}
.attract-inner h1{font-family:'Orbitron';font-weight:900;font-size:44px;letter-spacing:5px;color:var(--white);margin:20px 0 12px;text-shadow:0 0 30px rgba(56,230,255,.5)}
.attract-inner p{font-size:18px;color:var(--text-dim);line-height:1.6;margin-bottom:30px}
.attract-start{font-family:'Orbitron';font-size:20px;font-weight:700;letter-spacing:4px;color:#04121a;padding:18px 52px;border:none;border-radius:14px;
  background:linear-gradient(180deg,#40ffa8,#12c877);box-shadow:0 0 40px rgba(57,255,158,.6);cursor:pointer;animation:breathe 2.4s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

/* regulatory notification buttons */
#notify-panel .notify-row{display:flex;gap:8px}
.notify-btn{flex:1;text-align:left;border:1px solid var(--line);border-radius:10px;background:rgba(10,22,38,.6);
  padding:9px 11px;cursor:pointer;transition:.15s;color:var(--text)}
.notify-btn .nb-label{font-family:'Orbitron';font-size:12.5px;font-weight:700;letter-spacing:.5px}
.notify-btn .nb-agency{font-size:10px;color:var(--text-dim);margin:1px 0 4px;line-height:1.1}
.notify-btn .nb-state{font-size:10.5px;font-weight:600}
.notify-btn.noduty{opacity:.45;cursor:not-allowed}
.notify-btn.noduty .nb-label,.notify-btn.noduty .nb-state{color:var(--text-dim)}
.notify-btn.pending{border-color:var(--amber);background:rgba(255,176,58,.12);animation:notifyPulse 1.1s ease-in-out infinite}
.notify-btn.pending .nb-label,.notify-btn.pending .nb-state{color:var(--amber)}
.notify-btn.pending:hover{background:rgba(255,176,58,.24)}
.notify-btn.done{border-color:var(--green);background:rgba(57,255,158,.1);cursor:default}
.notify-btn.done .nb-label,.notify-btn.done .nb-state{color:var(--green)}
@keyframes notifyPulse{0%,100%{box-shadow:0 0 0 rgba(255,176,58,0)}50%{box-shadow:0 0 16px rgba(255,176,58,.55)}}

/* end-of-simulation banner (Attack Contained) */
#endbanner{position:absolute;inset:0;z-index:45;display:flex;align-items:center;justify-content:center;pointer-events:none;
  background:radial-gradient(circle at 50% 50%,rgba(57,255,158,.12),rgba(2,6,12,.5) 60%)}
.eb-card{text-align:center;animation:ebpop .5s ease-out}
.eb-card svg{color:var(--green);filter:drop-shadow(0 0 20px rgba(57,255,158,.7))}
.eb-t{font-family:'Orbitron';font-weight:900;font-size:52px;letter-spacing:4px;color:var(--green);text-shadow:0 0 40px rgba(57,255,158,.6);margin-top:10px}
.eb-s{font-size:17px;color:var(--text);margin-top:6px}
@keyframes ebpop{0%{transform:scale(.7);opacity:0}40%{transform:scale(1.05);opacity:1}100%{transform:scale(1)}}

::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-thumb{background:#1c3d5f;border-radius:8px}
::-webkit-scrollbar-track{background:transparent}
