:root { --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: #fff; overflow: hidden; overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; font: 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
#map { position: fixed; inset: 0; background: #000; }
.maplibregl-canvas { outline: none; }
#ctl { position: fixed; right: calc(10px + var(--safe-r)); bottom: calc(34px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px; z-index: 5; }
#ctl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.55); color: #fff; font: 300 20px/1 -apple-system, system-ui, sans-serif; display: grid; place-items: center; padding: 0; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#ctl button:active { background: rgba(255,255,255,.2); }
#ctl svg { width: 18px; height: 18px; transition: transform .05s linear; }
#north { opacity: .55; } #north.on { opacity: 1; }
#tip { position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); max-width: calc(100vw - 100px); padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 6; text-align: center; pointer-events: none; }
#tip[hidden] { display: none; }
#tip b { display: block; font-weight: 600; } #tip span { opacity: .7; font-size: 12px; }
.maplibregl-ctrl-bottom-left { left: var(--safe-l); bottom: calc(var(--safe-b) - 4px); }
.maplibregl-ctrl-attrib { background: rgba(0,0,0,.5) !important; color: #aaa; }
.maplibregl-ctrl-attrib a { color: #bbb; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
#halo { position: fixed; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle closest-side, rgba(0,0,0,0) 0, rgba(0,0,0,0) 76%, rgba(90,160,255,.55) 81.5%, rgba(50,110,255,.2) 89%, rgba(30,80,220,0) 100%); }
