:root{--bg:#0a1219;--panel:#0f1a24;--panel2:#132230;--line:#1f3040;--txt:#eef3f8;--mut:#8fa3b8;--red:#ff3b5c;--yel:#ffcf5c;--grn:#5ef2a0;--blu:#48c6ff;--org:#ff8a4c;--r:16px}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--txt);font-family:Inter,-apple-system,system-ui,"Segoe UI",Roboto,sans-serif;-webkit-tap-highlight-color:transparent;font-feature-settings:"tnum"}
#map{position:fixed;inset:0;background:#06101a}
#map::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 120px #05090ecc;z-index:400}
.top{position:fixed;top:0;left:0;right:0;z-index:900;display:flex;justify-content:space-between;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 14px 8px;background:linear-gradient(#0a1219f2 40%,#0a121900);pointer-events:none}
.brand{font-weight:800;font-size:17px;letter-spacing:-.01em;display:flex;align-items:center;gap:9px;text-shadow:0 1px 8px #000}.dot{width:10px;height:10px;border-radius:50%;background:var(--red);box-shadow:0 0 14px var(--red)}
.now{font-size:11px;font-weight:600;color:var(--mut);background:#0f1a24cc;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:5px 9px;border-radius:999px;border:1px solid #ffffff14;pointer-events:auto}
.layers{position:fixed;top:calc(50px + env(safe-area-inset-top));left:10px;z-index:900;display:flex;gap:6px;flex-wrap:wrap;max-width:72vw}
.layers button,.tools button{border:1px solid #ffffff18;background:#0f1a24cc;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:var(--mut);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px #0006}
.layers button.on{color:#0a1219;border-color:transparent;background:var(--yel)}
.tools{position:fixed;right:10px;top:calc(50px + env(safe-area-inset-top));z-index:900;display:flex;flex-direction:column;gap:6px}
.tools button{width:40px;height:40px;border-radius:12px;font-size:18px;padding:0;color:var(--txt)}.tools button.on{border-color:var(--yel);color:var(--yel)}
.hero{position:fixed;left:10px;right:10px;bottom:calc(46vh + 10px);z-index:940;pointer-events:none;transition:bottom .2s}
.hero-in{pointer-events:auto;background:#0f1a24d9;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #ffffff14;border-radius:14px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px;box-shadow:0 10px 30px #0008}
.h-k{display:block;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}.h-best b{font-size:14px;font-weight:800;cursor:pointer;display:block;margin-top:2px;line-height:1.2}
.h-stats{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:11px;color:var(--mut);white-space:nowrap;font-weight:600}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:950;background:var(--panel);border-top:1px solid #ffffff12;border-radius:20px 20px 0 0;height:46vh;max-height:92vh;display:flex;flex-direction:column;transition:height .2s;box-shadow:0 -10px 40px #000a;padding-bottom:env(safe-area-inset-bottom)}
.sheet.big{height:86vh}.sheet.small{height:126px}
.grab{padding:9px 0 2px;display:flex;justify-content:center;cursor:grab}.grab span{width:40px;height:5px;border-radius:3px;background:#2b3d50}
.timebar{display:flex;align-items:center;gap:8px;padding:6px 14px;flex-wrap:wrap}.timebar input{flex:1 1 140px;accent-color:var(--yel);height:28px}.timebar button{border:1px solid var(--line);background:var(--panel2);color:var(--txt);border-radius:9px;padding:7px 10px;font-weight:700;font-size:12px}
.timebar .tq{color:var(--mut)}.tlabel{font-size:12px;font-weight:800;min-width:110px;text-align:right;color:var(--yel)}
.tabs{display:flex;gap:4px;padding:2px 14px 0;border-bottom:1px solid var(--line)}.tabs button{flex:1;border:0;background:transparent;color:var(--mut);padding:9px 0;font-weight:700;font-size:13px;border-bottom:2px solid transparent;cursor:pointer}.tabs button.on{color:var(--txt);border-bottom-color:var(--yel)}
.tab{display:none;overflow:auto;padding:12px 14px 24px;flex:1;overscroll-behavior:contain}.tab.on{display:block}
.hint{color:var(--mut);font-size:12px;margin-bottom:8px;line-height:1.45}
.spot{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:14px;margin-bottom:8px;background:var(--panel2);cursor:pointer;transition:transform .1s}.spot:active{transform:scale(.99)}
.spot .rank{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:800;color:#0a1219;flex-shrink:0;font-size:15px}
.spot .n{font-weight:700;font-size:14px;letter-spacing:-.01em}.spot .why{font-size:12px;color:var(--mut);margin-top:3px;line-height:1.35}.spot .sc{margin-left:auto;font-weight:800;font-size:20px;letter-spacing:-.02em}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.kv>div{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px}.kv b{display:block;font-size:10px;color:var(--mut);font-weight:700;text-transform:uppercase;letter-spacing:.08em}.kv span{font-size:16px;font-weight:800;letter-spacing:-.01em}.kv .hint{margin:4px 0 0}
h3{margin:12px 0 6px;font-size:16px;letter-spacing:-.01em}h4{margin:14px 0 6px;font-size:12px;color:var(--yel);text-transform:uppercase;letter-spacing:.08em}
.score{display:inline-block;padding:3px 9px;border-radius:999px;font-weight:800;color:#0a1219;font-size:13px;vertical-align:middle}
.win{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;margin-bottom:6px;background:var(--panel2);font-size:13px;line-height:1.4}
.win b{font-weight:700}.win .s{color:var(--mut);font-size:12px}
.tl{display:flex;gap:2px;margin:6px 0 10px;height:36px;align-items:flex-end}.tl i{flex:1;border-radius:2px 2px 0 0;min-height:3px;opacity:.9}.tl i.sel{outline:2px solid #fff}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:12px;white-space:nowrap}
.warn{background:#3a1a1a;border:1px solid var(--red);border-radius:10px;padding:8px 10px;font-size:12px;margin:8px 0;line-height:1.4}
.ok{background:#12352a;border:1px solid var(--grn);border-radius:10px;padding:8px 10px;font-size:12px;margin:8px 0;line-height:1.4}
a{color:var(--blu)}.btnrow{display:flex;gap:8px;margin:10px 0}.btnrow a,.btnrow button{flex:1;text-align:center;border:1px solid var(--line);background:var(--panel2);color:var(--txt);border-radius:12px;padding:10px;font-weight:700;font-size:13px;text-decoration:none;cursor:pointer}
.leaflet-container{font-family:inherit;background:#06101a}.leaflet-control-attribution{background:#0a1219aa!important;color:#8fa3b8!important;font-size:9px}.leaflet-control-attribution a{color:#8fa3b8!important}
.leaflet-top.leaflet-left{top:auto;bottom:calc(46vh + 70px);transition:bottom .2s}.leaflet-bar{border:1px solid #ffffff18!important;box-shadow:0 4px 14px #0006!important}.leaflet-bar a{background:#0f1a24cc;color:#eef3f8;border-bottom-color:#1f3040}
.zlabel{background:#0f1a24e6;color:#fff;border:1px solid var(--red);border-radius:6px;padding:2px 7px;font-size:11px;font-weight:800;white-space:nowrap}
.mk{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:3px solid #fff;font-weight:800;color:#0a1219;font-size:12px;box-shadow:0 2px 10px #000b}
.mk.best{width:34px;height:34px;font-size:15px;box-shadow:0 0 0 4px #ffcf5c55,0 2px 10px #000b}
.pt{width:16px;height:16px;border-radius:50%;background:#fff;border:4px solid var(--red);box-shadow:0 0 0 3px #0a1219}
.profile{display:flex;gap:4px;align-items:flex-end;height:80px;margin:20px 0 6px}.profile div{flex:1;background:linear-gradient(#1a4a6e,#10304a);border-radius:4px 4px 0 0;position:relative}.profile div b{position:absolute;top:-16px;left:0;right:0;text-align:center;font-size:10px;color:var(--mut)}.profile div i{position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:11px;font-style:normal;color:#fff;font-weight:800}
@media (min-width:900px){.sheet{left:auto;right:14px;bottom:14px;width:440px;height:72vh;border-radius:20px;border:1px solid #ffffff12}.sheet.big{height:88vh}.layers{max-width:none}.leaflet-top.leaflet-left{top:64px;bottom:auto}.hero{left:14px;right:auto;bottom:14px;width:420px}.tools{top:calc(50px + env(safe-area-inset-top))}}

.fsbar{display:none}
body.fs .sheet,body.fs .hero,body.fs .layers,body.fs .tools,body.fs .top{display:none}
body.fs .fsbar{display:block}
body.fs #fs-close{position:fixed;top:calc(12px + env(safe-area-inset-top));left:12px;z-index:990;width:42px;height:42px;border-radius:50%;border:1px solid #ffffff22;background:#0f1a24cc;backdrop-filter:blur(10px);color:#fff;font-size:18px;cursor:pointer}
body.fs .fs-in{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:990;background:#0f1a24d9;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #ffffff14;border-radius:16px;padding:10px 12px;display:flex;align-items:center;gap:12px;box-shadow:0 10px 30px #0008}
body.fs .fs-in .play{width:42px;height:42px;border-radius:50%;border:0;background:var(--yel);color:#0a1219;font-weight:800;font-size:15px;cursor:pointer;flex-shrink:0}
.fs-mid{flex:1}.fs-mid div{font-size:13px;font-weight:800;color:var(--yel);margin-bottom:4px}.fs-mid input{width:100%;accent-color:var(--yel)}
body.fs .leaflet-top.leaflet-left{top:auto;bottom:110px}
.timebar .play{background:var(--yel);color:#0a1219;border:0;width:34px;padding:7px 0}
@media (min-width:900px){body.fs .fs-in{left:auto;right:14px;width:420px}}
