/* Dead Streets — dark IQ house style, solid pink #FF00C6 accents. */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:#070912;color:#F4F6FF;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-tap-highlight-color:transparent;overflow-x:hidden}
header{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#0B0E1C;border-bottom:2px solid #FF00C6;position:relative;z-index:5}
.hero-tile{width:44px;height:44px;flex:0 0 44px}
.hero-tile svg{width:44px;height:44px;display:block}
header h1{font-size:19px;line-height:1.05;margin:0;flex:1}
header h1 span{font-size:12.5px;color:#FF7AE2;font-weight:600;letter-spacing:.4px}
.iconbtn{background:#161B31;border:1px solid #2A3350;color:#F4F6FF;border-radius:10px;width:40px;height:40px;font-size:18px;cursor:pointer}
main{max-width:680px;margin:0 auto;padding:12px 10px 90px}
.card{background:#0D1122;border:1px solid #232B47;border-radius:16px;padding:16px 14px;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.hidden{display:none!important}
h2{font-size:20px}
.muted{color:#A9B2CC;font-size:13.5px;line-height:1.45}
.gold{color:#FFD166}
.btn{background:#FF00C6;color:#fff;border:0;border-radius:12px;padding:14px 18px;font-size:16px;font-weight:800;cursor:pointer;letter-spacing:.3px}
.btn:active{transform:translateY(1px)}
.scheme-row{display:flex;gap:8px;margin:6px 0 4px;flex-wrap:wrap}
.scheme-btn{background:#161B31;color:#F4F6FF;border:1.5px solid #2A3350;border-radius:999px;padding:9px 14px;font-size:13.5px;font-weight:700;cursor:pointer}
.scheme-btn.sel{border-color:#FF00C6;background:#2A0A24;color:#FF9BEB}
/* district map */
#districtMap{position:relative;height:340px;margin:12px 0;border-radius:14px;background:#0A0D18;border:1px solid #232B47;overflow:hidden}
#districtMap .road{position:absolute;background:#141A30;border-radius:6px}
#districtMap .road-h{left:0;right:0;height:44px}
#districtMap .road-v{top:0;bottom:0;width:44px}
#districtMap .dash-h{position:absolute;left:0;right:0;height:0;border-top:3px dashed rgba(255,209,102,.35)}
#districtMap .dash-v{position:absolute;top:0;bottom:0;width:0;border-left:3px dashed rgba(255,209,102,.35)}
.node{position:absolute;width:118px;transform:translate(-50%,-50%);background:#161B31;border:2px solid #2A3350;color:#F4F6FF;border-radius:12px;padding:8px 6px;font-size:12px;font-weight:700;cursor:pointer;text-align:center;line-height:1.25;z-index:2}
.node small{display:block;font-weight:500;color:#A9B2CC;font-size:10.5px;margin-top:2px}
.node.current{border-color:#FF00C6;box-shadow:0 0 0 3px rgba(255,0,198,.25),0 0 18px rgba(255,0,198,.35)}
.node.cleared{border-color:#2EE6A8;color:#B9FFE9}
.node.locked{opacity:.45;cursor:not-allowed}
.campaign-line{display:flex;gap:16px;flex-wrap:wrap;font-weight:700;font-size:14px;margin:4px 0 12px}
/* HUD */
.hud{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;font-weight:700;margin-bottom:6px}
.hud span{background:#161B31;border:1px solid #2A3350;border-radius:999px;padding:4px 10px}
.hud .hud-street{border-color:#FF00C6;color:#FF9BEB}
.bar{height:12px;background:#161B31;border-radius:999px;overflow:hidden;margin:4px 0 8px;border:1px solid #2A3350}
.bar i{display:block;height:100%;width:100%;background:#FF3B5C;transition:width .15s}
.bar.hp i.low{animation:hpblink .6s infinite alternate}
@keyframes hpblink{from{filter:brightness(1)}to{filter:brightness(1.7)}}
#game{width:100%;height:auto;display:block;border-radius:12px;background:#0A0D16;touch-action:none}
.open-banner{background:#2A0A24;border:1px solid #FF00C6;color:#FFD7F6;border-radius:10px;padding:8px 10px;font-size:13.5px;font-weight:600;text-align:center}
.wave-banner{position:relative;text-align:center;font-weight:800;color:#FFD166;font-size:16px;padding:4px}
/* upgrades */
.upgrades{display:grid;gap:10px}
.upgrade{background:#161B31;border:2px solid #2A3350;color:#F4F6FF;border-radius:14px;padding:14px;text-align:left;font-size:15px;cursor:pointer;line-height:1.35}
.upgrade b{font-size:16px}
.upgrade small{color:#A9B2CC}
.upgrade:hover,.upgrade:active{border-color:#FF00C6}
.upgrade:disabled{opacity:.45;cursor:not-allowed}
/* NEO sticks (Controller V2 — parity with Horde v18) */
#joy,#aimJoy{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));width:176px;height:176px;border-radius:50%;z-index:40;touch-action:none;opacity:.8}
#joy{left:50%;transform:translateX(-50%)}
#aimJoy{right:14px;width:150px;height:150px;left:auto;transform:none}
#joy.on,#aimJoy.on{opacity:1}
#joy .neo-ring,#aimJoy .neo-ring{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(244,246,255,.35);background:rgba(13,17,34,.45);pointer-events:none}
#joy.rim .neo-ring{border:4px solid #FF00C6}
#aimJoy.rim .neo-ring{border:4px solid #00CFFF}
.neo-pulse{position:absolute;inset:0;border-radius:50%;border:3px solid #FF00C6;opacity:0;pointer-events:none}
#aimJoy .neo-pulse{border-color:#00CFFF}
.neo-pulse.go{animation:pulse .32s ease-out}
@keyframes pulse{from{opacity:.9;transform:scale(.8)}to{opacity:0;transform:scale(1.25)}}
.neo-tick{position:absolute;left:50%;top:50%;width:4px;height:12px;margin:-6px 0 0 -2px;background:rgba(244,246,255,.28);border-radius:2px;pointer-events:none}
.neo-tick.lit{background:#FF00C6}
#aimJoy .neo-tick.lit{background:#00CFFF}
#joyKnob,#aimKnob{position:absolute;width:76px;height:76px;border-radius:50%;background:#232B47;border:2px solid rgba(244,246,255,.5);box-shadow:0 8px 18px rgba(0,0,0,.55);pointer-events:none}
#aimKnob{width:68px;height:68px}
.neo-hi{position:absolute;left:14px;top:10px;width:22px;height:14px;border-radius:50%;background:rgba(255,255,255,.35);pointer-events:none}
.aim-lab{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);font-size:11px;font-weight:800;color:#7FD8FF;letter-spacing:2px}
.overlay{position:fixed;inset:0;background:rgba(3,4,10,.8);z-index:60;display:flex;align-items:flex-start;justify-content:center;padding:18px 12px;overflow:auto}
.overlay .card{max-width:560px;width:100%}
.overlay li{margin:7px 0;line-height:1.4;font-size:14.5px}
footer{text-align:center;color:#5E6884;font-size:12px;padding:14px}
@media (prefers-reduced-motion:reduce){.neo-pulse.go{animation:none}.bar.hp i.low{animation:none}}
