* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: Arial, sans-serif; color: #f5f5f5; background: #101010; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
.map-header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 2px solid #cf242c; background: #161616; flex-shrink: 0; }
.map-title { min-width: 0; flex: 1; }
h1 { margin: 0; font-size: 18px; line-height: 1.3; }
.map-title p { margin: 3px 0 0; font-size: 12px; color: #bdbdbd; }
.tool { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #515151; border-radius: 6px; color: #fff; background: #232323; text-decoration: none; font-size: 24px; }
.tool:hover, .point-link:hover { background: #373737; }
.tool:disabled { opacity: .35; cursor: default; }
.tool:focus-visible, .map-pin:focus-visible, .point-link:focus-visible, .map-scroll:focus-visible { outline: 3px solid #60d9ff; outline-offset: 3px; }
.zoom-tools { display: flex; gap: 5px; }
.zoom-value { width: 56px; font-size: 12px; font-weight: bold; }
.progress { font-size: 14px; font-weight: bold; color: #74ecab; white-space: nowrap; }
.map-scroll { flex: 1; min-height: 0; overflow: auto; position: relative; background: #202020; overscroll-behavior: contain; }
.map-surface { width: max-content; min-width: 100%; min-height: 100%; display: grid; place-items: center; padding: 28px; }
.map-stage { position: relative; width: min(720px, calc(100vw - 56px)); flex-shrink: 0; }
.map-stage img { width: 100%; height: auto; display: block; user-select: none; }
.map-pins { position: absolute; inset: 0; pointer-events: none; }
.map-pin { position: absolute; width: 32px; height: 32px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: #fff; transform: translate(-50%, -50%); pointer-events: auto; }
.pin-number { display: grid; place-items: center; position: relative; width: 32px; height: 32px; border-radius: 50%; background: #a80b20; border: 2px solid #fff; box-shadow: 0 2px 8px #000b; font-size: 15px; font-weight: 800; }
.map-pin::before { content: ''; position: absolute; inset: -5px; border: 2px solid #ffdb48; border-radius: 50%; animation: point-pulse 2s ease-out infinite; animation-delay: var(--delay); }
.map-legend-arrows { position: absolute; inset: 0; pointer-events: none; }
.legend-arrow { position: absolute; width: 3%; height: .7%; transform: translate(-100%, -50%); background: #ffe15a; clip-path: polygon(0 32%, 60% 32%, 60% 0, 100% 50%, 60% 100%, 60% 68%, 0 68%); }
.map-pin.selected .pin-number { background: #ffe15a; color: #101010; border-color: #101010; }
.map-pin.selected { z-index: 2; }
.map-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: #161616; border-top: 1px solid #424242; flex-shrink: 0; }
.points-label { font-size: 13px; font-weight: bold; }
.point-nav { display: flex; gap: 8px; }
.point-link { width: 40px; height: 40px; border: 1px solid #757575; border-radius: 50%; background: #242424; color: #fff; font-weight: bold; }
.point-link[aria-pressed="true"] { background: #ffe15a; color: #111; border-color: #ffe15a; }
.selection { font-size: 12px; color: #ffe15a; }
.selection:empty { display: none; }
.map-error { position: absolute; top: 30%; left: 0; right: 0; text-align: center; padding: 20px; background: #161616; }
.map-error a { color: #ffe15a; }
@keyframes point-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.65); opacity: 0; } }
@media (max-width: 480px) {
    .map-header { gap: 8px; padding: 8px; flex-wrap: wrap; }
    h1 { font-size: 16px; }
    .map-title p { font-size: 10px; }
    .zoom-tools { gap: 3px; }
    .tool { width: 34px; height: 38px; }
    .zoom-value { width: 44px; }
    .map-footer { gap: 8px; padding-left: 8px; padding-right: 8px; }
    .point-nav { gap: 7px; }
    .selection { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .map-pin::before { animation: none; }
    .map-pin::before { opacity: .9; }
}
