:root{--bg:#111827;--panel:#182231;--panel2:#202c3b;--line:#314052;--text:#eef3f8;--muted:#9eb0c3;--accent:#ef4444;--green:#22c55e;--yellow:#fbbf24;--blue:#3b82f6}*{box-sizing:border-box}html,body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:#0b111a;color:var(--text)}body{min-height:100vh}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:var(--bg);border-bottom:1px solid var(--line)}.brand{letter-spacing:.08em;font-weight:800}.brand b{color:#f05252}.stats{display:flex;gap:18px;align-items:center;font-weight:700}.stats a{color:var(--muted);font-weight:500;text-decoration:none}.toolbar{min-height:54px;padding:8px 12px;display:flex;align-items:center;gap:10px;background:#141d29;border-bottom:1px solid var(--line)}button,select,input{font:inherit}button{border:1px solid #405168;background:#233247;color:#fff;border-radius:7px;padding:9px 13px;cursor:pointer;font-weight:700}button:hover{background:#2c3e55}button:disabled{opacity:.45;cursor:not-allowed}.toolbar button:first-child{background:#b91c1c;border-color:#dc2626}.toolbar #spawnBtn{background:#1d4ed8;border-color:#3b82f6}#hint{color:var(--muted);font-size:13px;margin-left:auto}.game{display:grid;grid-template-columns:minmax(0,1fr) 355px;height:calc(100vh - 112px)}.map-wrap{position:relative;min-width:0}#map{width:100%;height:100%;background:#dbe4ed}.sidebar{background:#111a26;border-left:1px solid var(--line);overflow:auto}.side-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#111a26;z-index:2}.side-head h2{font-size:15px;margin:0}.side-head span{background:#27364a;padding:3px 8px;border-radius:999px;font-size:12px}.mission-list{padding:8px}.mission{border:1px solid var(--line);background:var(--panel);border-radius:8px;margin-bottom:8px;padding:11px;cursor:pointer}.mission:hover{border-color:#60758e}.mission-top{display:flex;gap:8px;align-items:flex-start}.service-dot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex:none}.service-fire{background:#ef4444}.service-ambulance{background:#facc15}.service-police{background:#3b82f6}.service-mixed{background:#a855f7}.mission h3{font-size:14px;margin:0 0 5px}.mission small{color:var(--muted)}.progress{height:5px;background:#0c131d;border-radius:999px;overflow:hidden;margin-top:9px}.progress>i{height:100%;display:block;background:#22c55e}.floating{position:absolute;z-index:800;top:15px;left:60px;background:rgba(15,23,34,.97);border:1px solid #405168;border-radius:10px;padding:14px;width:280px;box-shadow:0 8px 25px rgba(0,0,0,.3)}.floating h3{margin:0 0 12px}.floating select,.floating input{width:100%;margin-bottom:9px;background:#0c1420;color:#fff;border:1px solid #405168;border-radius:6px;padding:9px}.floating p{font-size:12px;color:var(--muted)}.hidden{display:none!important}.drawer{position:fixed;z-index:1100;right:0;top:58px;bottom:0;width:min(470px,100%);background:#101925;border-left:1px solid #405168;box-shadow:-14px 0 35px rgba(0,0,0,.32);overflow:auto;padding:22px}.drawer .close{position:absolute;right:12px;top:10px;background:none;border:0;font-size:28px;font-weight:400}.drawer h2{font-size:21px;margin:0 40px 3px 0}.drawer h3{font-size:14px;margin:22px 0 8px;text-transform:uppercase;letter-spacing:.06em;color:#b7c6d6}.meta{color:var(--muted);font-size:13px}.req{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:#172333;border:1px solid #2b3d52;margin:5px 0;border-radius:6px}.req.ok{border-color:#1d6d42}.vehicle-row{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;padding:8px;border-bottom:1px solid #29384b}.vehicle-row small{display:block;color:var(--muted)}.shop-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #29384b}.shop-row b{display:block}.shop-row small{color:var(--muted)}.primary{width:100%;margin-top:15px;background:#b91c1c;border-color:#ef4444;padding:12px}.toast{position:fixed;z-index:2000;left:50%;bottom:24px;transform:translateX(-50%);padding:10px 15px;background:#111827;border:1px solid #4b6078;border-radius:7px;box-shadow:0 8px 28px rgba(0,0,0,.35)}.toast.error{border-color:#ef4444}.auth{display:grid;place-items:center;min-height:100vh;padding:20px;background:#0c131c}.auth-card{width:min(430px,100%);padding:28px;background:#151f2c;border:1px solid #324256;border-radius:12px}.auth-card h1{margin-top:0}.auth-card form{display:grid;gap:12px}.auth-card label{display:grid;gap:5px;color:#c7d3df}.auth-card input{padding:11px;background:#0d1520;border:1px solid #405168;border-radius:6px;color:#fff}.auth-card button{background:#b91c1c}.auth-card a{color:#7eb6ff}.error{padding:10px;background:#3a171a;border:1px solid #7f1d1d;border-radius:6px;margin:10px 0}.map-icon{font-size:24px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.45));white-space:nowrap}.map-mission{font-size:23px}.callsign{font-size:10px;background:#111827;color:#fff;padding:1px 4px;border-radius:3px;margin-left:2px}@media(max-width:800px){.game{grid-template-columns:1fr;height:auto}.map-wrap,#map{height:62vh}.sidebar{border-left:0;border-top:1px solid var(--line);max-height:none}.topbar{height:auto;min-height:58px;gap:10px;flex-wrap:wrap;padding:10px 12px}.stats{font-size:13px;gap:10px}.toolbar{flex-wrap:wrap}.toolbar #hint{width:100%;margin-left:0}.floating{left:10px;right:10px;width:auto}.drawer{top:0}.brand{font-size:13px}}
.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:8px;background:#1967d2;color:#fff;text-decoration:none;font-weight:700}.success{padding:12px 14px;margin:14px 0;border:1px solid #a7d7b5;border-radius:8px;background:#edf8f0;color:#245b33}
