:root { color-scheme: light; font-family: "Helvetica Neue", Arial, sans-serif; color: #263e35; background: #526960; }
* { box-sizing: border-box; }
body { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#map { background: linear-gradient(to bottom, #526960 0%, #74867a 65%, #819084 100%); position: relative; width: 100%; height: 100svh; overflow: hidden; }
#viewport { position: absolute; inset: 0; touch-action: none; outline-offset: -4px; }
canvas { display: block; width: 100%; height: 100%; }
header { position: absolute; top: 12px; left: 12px; pointer-events: none; max-width: calc(100% - 130px); color: #fff; text-shadow: 0 1px 2px #18251f, 0 0 1px #18251f; }
header a { pointer-events: auto; }
a { color: inherit; text-underline-offset: 4px; }
.back { font-size: 14px; }
button { cursor: pointer; }
button { font: inherit; color: inherit; background: #fff; border: 1px solid #c0cfc9; border-radius: 5px; padding: 10px 13px; }
button:hover { background: #edf3ef; }
button:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid #1d6cb0; outline-offset: 3px; }
#loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; padding: 18px 24px; border-radius: 8px; display: flex; align-items: center; gap: 12px; max-width: 90%; }
#loading[hidden] { display: none; }
.loader { width: 18px; height: 18px; border: 2px solid #c0cfc9; border-top-color: #365747; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: white; padding: 24px; line-height: 1.6; }
@media (max-width: 650px) {
  header { max-width: calc(100% - 100px); }
  button { padding: 8px; }
}
@media (pointer: coarse) {
  button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .loader { animation: none; } }

.map-navigation { position: absolute; top: 8px; right: 8px; display: grid; gap: 10px; }
.map-icon { display: grid; place-items: center; width: 48px; height: 48px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: #fff; filter: drop-shadow(0 0 1px #18251f) drop-shadow(0 1px 2px #18251f); }
.map-icon:hover { background: transparent; }
.map-icon svg { display: block; width: 30px; height: 30px; }
.north { height: 60px; gap: 0; padding: 4px 8px; font-size: 11px; }
.north svg { width: 32px; height: 32px; }
