/* Numbers Island Milestones 1-2: one SVG coordinate system for road + nodes. */
#app .ni-screen { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: #184f61; }
#app .ni-hud { position: relative; z-index: 2; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: linear-gradient(#075477, #073f61); border-bottom: 2px solid #ffffff55; box-shadow: 0 4px 12px #002b4388; }
#app .ni-home { border: 0; border-radius: 50%; width: 46px; height: 46px; padding: 0; background: #fff; color: #174d69; font-size: 23px; font-weight: 900; box-shadow: 0 3px 0 #9ac4d2; cursor: pointer; }
#app .ni-title { flex: 1; text-align: center; }
#app .ni-title strong { display: block; color: #fff4a6; font-size: clamp(20px, 6vw, 30px); text-shadow: 0 2px #03314b; }
#app .ni-title small { display: block; margin-top: 2px; color: #e5f8ff; font-size: 11px; font-weight: 800; }
#app .ni-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #ffffff22; border: 2px solid #ffffff66; font-size: 22px; }
#app .ni-svg-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #78d5bd; }
#app .ni-loading { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(#075477, #168578); color: #fff8cc; font-size: 18px; font-weight: 800; text-align: center; opacity: 1; transition: opacity .2s ease; }
#app .ni-loading::before { content: ''; width: 38px; height: 38px; border: 4px solid #ffffff66; border-top-color: #fff8cc; border-radius: 50%; animation: ni-loading-turn .8s linear infinite; }
#app .ni-loading.is-ready { opacity: 0; pointer-events: none; }
@keyframes ni-loading-turn { to { transform: rotate(360deg); } }
#app .ni-svg-map { display: block; width: 100%; height: auto; touch-action: pan-y; }
#app .ni-decorations, #app .ni-decoration { pointer-events: none; }
#app .ni-upper-regions, #app .ni-region-scenery { pointer-events: none; }
#app .ni-region-scenery { image-rendering: auto; }
#app .ni-coastal-terrain { pointer-events: none; filter: saturate(1.08) contrast(1.04) drop-shadow(0 12px 9px #073a4c99); }
#app .ni-decoration { filter: saturate(1.16) contrast(1.06) drop-shadow(0 7px 4px #123b2d80); }
#app .ni-decoration[data-group="island-cove"], #app .ni-decoration[data-group="flower-grove"], #app .ni-decoration[data-group="palm-garden"] { filter: saturate(1.22) contrast(1.08) drop-shadow(0 9px 5px #123b2d99); }
#app .ni-decoration[data-group="background"] { opacity: .94; }
#app .ni-svg-level { cursor: pointer; outline: none; }
#app .ni-svg-level-disc { fill: #ffbd35; stroke: #fff8d2; stroke-width: 5; filter: drop-shadow(0 5px 2px #173e4f88); }
#app .ni-svg-level-number { fill: #173d55; font: 900 18px system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; user-select: none; }
#app .ni-svg-level.is-locked { cursor: default; opacity: .72; }
#app .ni-svg-level.is-locked .ni-svg-level-disc { fill: #9aaab1; stroke: #dce4e6; }
#app .ni-svg-level:focus-visible .ni-svg-level-disc { stroke: #fff36a; stroke-width: 8; }
#app .ni-natural-level.is-locked { opacity: 1; }
#app .ni-level-platform-art { filter: drop-shadow(0 3px 2px #183d3880); }
#app .ni-natural-level.is-locked .ni-level-platform-art { filter: saturate(.45) brightness(.87) drop-shadow(0 3px 2px #183d3880); }
#app .ni-natural-level .ni-svg-level-number { fill: #fff7d8; stroke: #633c20; stroke-width: 2.5px; paint-order: stroke fill; font-size: 20px; }
#app .ni-natural-level.is-available .ni-level-platform-art { filter: brightness(1.1) drop-shadow(0 0 3px #ffe590) drop-shadow(0 3px 2px #183d3880); }
#app .ni-natural-level:focus-visible .ni-level-platform-art { filter: brightness(1.15) drop-shadow(0 0 5px #fff4b0); }
#app .ni-legacy { flex: 0 0 auto; align-self: center; margin: 8px auto max(12px, env(safe-area-inset-bottom)); border: 2px solid #fff5b0; border-radius: 999px; padding: 9px 17px; background: #0d6688; color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 3px 0 #06415a; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #app .ni-svg-scroll { scroll-behavior: auto; } }
