@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/notosans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/notosans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --glass-opacity: 0.5;
  --glass-blur: 10px;
  --glass-distort: 16;
  --sun-arrow-opacity: 1;

  --label-opacity: 0.7;
  --label-brightness: 0.85;
}
:root {
  color-scheme: light dark;
  --word-gap: 0;
  --font: "Noto Sans", "Outfit", system-ui, -apple-system, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --font-display: var(--font);

  --text: #0d1220;
  --text-2: #242b3f;
  --text-3: #3b445a;
  --accent: #0a5fd0;
  --focus: #0a5fd0;
  --amber: #f5a00b;
  --amber-2: #ffc247;
  --amber-rgb: 245 160 11;
  --amber-text: #8a4e00;
  --on-amber: #2a1700;
  --night-shade: 0.66;
  --night-rgb: 6 12 34;
  --night-gold: 0.30;
  --terrain-shade: 0.80;
  --terrain-light: 0.40;
  --glass-rgb: 255 255 255;
  --solid-rgb: 247 249 252;
  --sheen-rgb: 255 255 255;
  --sheen-k: 0.22;
  --glass-sat: 1.8;
  --glass-tint: rgb(var(--glass-rgb) / var(--glass-opacity));
  --glass-bg: linear-gradient(var(--glass-tint), var(--glass-tint));
  --glass-solid: linear-gradient(150deg, rgb(var(--solid-rgb) / 1), rgb(var(--solid-rgb) / 1));
  --sheen: rgb(var(--sheen-rgb) / calc(var(--glass-opacity) * var(--sheen-k)));
  --sheen-top: rgb(255 255 255 / calc(var(--glass-opacity) * 0.08));
  --inner-glow: rgb(255 255 255 / calc(var(--glass-opacity) * 0.18));
  --text-halo: 0 0 10px rgb(255 255 255 / calc((1 - var(--glass-opacity)) * 0.55));
  --edge-hi: rgb(255 255 255 / 0.9);
  --edge-lo: rgb(255 255 255 / 0.16);
  --inner-hi: rgb(255 255 255 / 0.8);
  --inner-lo: rgb(30 40 80 / 0.10);
  --shadow: 0 18px 50px rgb(18 26 52 / 0.20), 0 3px 10px rgb(18 26 52 / 0.10);
  --shadow-sm: 0 8px 26px rgb(18 26 52 / 0.18), 0 2px 6px rgb(18 26 52 / 0.10);
  --ink-rgb: 30 38 66;
  --chip: rgb(var(--ink-rgb) / 0.075);
  --chip-2: rgb(var(--ink-rgb) / 0.12);
  --chip-hover: rgb(var(--ink-rgb) / 0.15);
  --wash: rgb(var(--ink-rgb) / 0.08);
  --chip-edge: rgb(255 255 255 / 0.5);
  --chip-edge-lo: rgb(var(--ink-rgb) / 0.10);
  --hairline: rgb(var(--ink-rgb) / 0.16);

  --scrim: rgb(18 24 44 / 0.36);

  --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);
  --gap: 16px;
  --ctl: 46px;
  --stack-gap: 8px;
  --stack-h: calc(3 * var(--ctl) + 3 * var(--stack-gap));
  --dock-h: 140px;
  --dock-w: min(560px, calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r)));
  --dock-left: calc(50% - var(--dock-w) / 2 + (var(--safe-l) - var(--safe-r)) / 2);
  --arc-h: 150px;
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --night-shade: 0.72;
    --night-gold: 0.34;
    --terrain-shade: 0.85;
    --terrain-light: 0.44;
    --text: #f6f8fc;
    --text-2: #e6eaf3;
    --text-3: #c9d0df;
    --accent: #a3caff;
    --focus: #8fc0ff;
    --amber-text: #ffc45c;

    --glass-rgb: 34 38 52;
    --solid-rgb: 30 34 46;
    --sheen-rgb: 255 255 255;
    --sheen-k: 0.09;
    --sheen-top: rgb(255 255 255 / calc(var(--glass-opacity) * 0.03));
    --inner-glow: rgb(160 190 255 / calc(var(--glass-opacity) * 0.06));
    --text-halo: 0 0 10px rgb(0 0 0 / calc((1 - var(--glass-opacity)) * 0.5));
    --edge-hi: rgb(255 255 255 / 0.42);
    --edge-lo: rgb(255 255 255 / 0.06);
    --inner-hi: rgb(255 255 255 / 0.20);
    --inner-lo: rgb(0 0 0 / 0.35);
    --shadow: 0 20px 56px rgb(0 0 0 / 0.5), 0 3px 12px rgb(0 0 0 / 0.35);
    --shadow-sm: 0 10px 30px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.3);

    --ink-rgb: 255 255 255;
    --chip: rgb(var(--ink-rgb) / 0.09);
    --chip-2: rgb(var(--ink-rgb) / 0.15);
    --chip-hover: rgb(var(--ink-rgb) / 0.17);
    --wash: rgb(var(--ink-rgb) / 0.11);
    --chip-edge: rgb(255 255 255 / 0.18);
    --chip-edge-lo: rgb(var(--ink-rgb) / 0.07);
    --hairline: rgb(var(--ink-rgb) / 0.16);

    --map-filter: var(--map-filter-dark);
    --scrim: rgb(4 6 14 / 0.50);
  }
}
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%; height: 100vh; height: 100dvh;
  width: 100%;
  overscroll-behavior: none;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: #0e2a3a;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (display-mode: standalone) { html, body { height: 100%; height: 100vh; } }

body { font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
:where(*) { word-spacing: var(--word-gap); }
button { -webkit-appearance: none; appearance: none; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: inherit;
}

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 14px; height: 14px; }

#app { position: fixed; top: 0; right: 0; bottom: 0; left: 0; }
#map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #0e2a3a; }
#globe { position: absolute; inset: 0; z-index: 430; opacity: 0; visibility: hidden; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #0a1322 0%, #04070d 55%, #000 100%);
  transition: opacity 0.25s cubic-bezier(0, 0, 0.25, 1), visibility 0s linear 0.25s; }
#globe .globe-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#globe .maplibregl-canvas { outline: none; }
.globe-on #globe { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.25s cubic-bezier(0, 0, 0.25, 1); }
.globe-on #map { visibility: hidden; transition: visibility 0s linear 0.25s; }
.globe-on #map .leaflet-control-container { visibility: visible; }
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--inner-hi),
    inset 0 -1px 0 var(--inner-lo),
    inset 0 0 22px var(--inner-glow);
  border-radius: 24px;
  text-shadow: var(--text-halo);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 0% 0%, var(--sheen), rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, var(--sheen-top), rgb(255 255 255 / 0) 34%);
}
.glass::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, var(--edge-hi), var(--edge-lo) 45%, var(--edge-lo) 62%, var(--edge-hi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
html.lg-distort { --inner-hi: rgb(255 255 255 / 0.95); --edge-lo: rgb(255 255 255 / 0.3); }
html.lg-distort .glass:not(.welcome-sheet), html.lg-distort .leaflet-popup-content-wrapper {
  -webkit-backdrop-filter: url(#liquid-glass) blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: url(#liquid-glass) blur(var(--glass-blur)) saturate(var(--glass-sat));
}
@media (prefers-color-scheme: dark) { html.lg-distort { --inner-hi: rgb(255 255 255 / 0.32); --edge-lo: rgb(255 255 255 / 0.12); } }
.ctl {
  position: relative; border: 0; padding: 0; cursor: pointer; color: var(--text);
  width: var(--ctl); height: var(--ctl); border-radius: 50%; display: grid; place-items: center; flex: none;
  transition: transform 0.35s var(--spring), box-shadow 0.2s, opacity 0.2s, background-color 0.2s;
  -webkit-user-select: none; user-select: none;
}
.ctl:not(:disabled):hover {
  box-shadow: var(--shadow), inset 0 1px 0 var(--inner-hi), inset 0 -1px 0 var(--inner-lo), inset 0 0 22px var(--inner-glow), inset 0 0 0 999px var(--wash);
}
.ctl:not(:disabled):active { transform: scale(0.94); }
.ctl:disabled { opacity: 0.4; cursor: default; }
.ctl.is-active, .ctl.is-active:hover { color: var(--on-amber); background: linear-gradient(145deg, var(--amber-2), var(--amber)); text-shadow: none; }
.leaflet-top.leaflet-left {
  top: calc(var(--safe-t) + var(--gap));
  left: calc(var(--safe-l) + var(--gap));
}
.leaflet-top.leaflet-left .leaflet-control { margin: 0; }

.leaflet-control-geocoder.search {
  --search-w: min(420px, calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r)));
  display: grid; grid-template-columns: var(--ctl) minmax(0, 1fr);
  width: var(--ctl);
  border: 0;
  border-radius: calc(var(--ctl) / 2);
  overflow: hidden;
  pointer-events: auto;
  transition: width 0.38s var(--ease), border-radius 0.3s var(--ease), box-shadow 0.2s;
}
.leaflet-control-geocoder.search.is-open { width: var(--search-w); }
.leaflet-control-geocoder.search.is-open.has-results { border-radius: 26px; }
.search-toggle {
  grid-column: 1; grid-row: 1;
  width: var(--ctl); height: var(--ctl); padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 0.2s, transform 0.35s var(--spring);
}
.search-toggle:hover { background: var(--wash); }
.search-toggle:active { transform: scale(0.9); }
.search-toggle:focus-visible { outline: none; }
.leaflet-control-geocoder.search .leaflet-control-geocoder-form {
  grid-column: 2; grid-row: 1; position: relative;
  display: flex; align-items: center; min-width: 0; height: var(--ctl); padding: 0 16px 0 2px;
  opacity: 1; transition: opacity 0.2s 0.08s;
}
.leaflet-control-geocoder.search:not(.is-open) .leaflet-control-geocoder-form {
  opacity: 0; visibility: hidden; transition: opacity 0.12s, visibility 0s 0.38s;
}
.leaflet-control-geocoder.search input[type="search"] {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: 16px; font-weight: 500; color: var(--text); padding: 0; border-radius: 8px;
  -webkit-appearance: none; appearance: none;
}
.leaflet-control-geocoder.search input[type="search"]::placeholder { color: var(--text-3); opacity: 1; }
.leaflet-control-geocoder.search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; height: 18px; width: 18px; cursor: pointer;
  background: currentColor; opacity: 0.6; border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm4.2 12.8l-1.4 1.4L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.leaflet-control-geocoder.search input[type="search"]:focus-visible { outline: none; }
.leaflet-control-geocoder.search.is-open:focus-within, .leaflet-control-geocoder.search:has(.search-toggle:focus-visible) { box-shadow: var(--shadow), 0 0 0 2px var(--focus), inset 0 1px 0 var(--inner-hi); }
.leaflet-control-geocoder.search input[type="submit"] { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }

.search-results { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--hairline); max-height: min(52vh, 360px); overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.search-status { padding: 14px 14px; font-size: 14px; color: var(--text-2); }
.result-list { list-style: none; margin: 0; padding: 0; }
.result {
  width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px;
  text-align: left; padding: 8px 12px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; color: var(--text);
  transition: background-color 0.15s, transform 0.3s var(--spring);
}
.result:hover { background: var(--chip-hover); }
.result:active { transform: scale(0.985); }
.result .ic { color: var(--text-2); }
.result-text { display: flex; flex-direction: column; min-width: 0; }
.result-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-detail { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tools {
  position: fixed; z-index: 520;
  top: calc(var(--safe-t) + var(--gap)); right: calc(var(--safe-r) + var(--gap));
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--stack-gap);
  pointer-events: none; transition: opacity 0.2s, visibility 0s;
}
.tools > * { pointer-events: auto; }
.tools .ctl[aria-expanded="true"] { box-shadow: var(--shadow), inset 0 1px 0 var(--inner-hi), inset 0 0 0 999px var(--wash); }
.menu {
  position: absolute; z-index: 3; top: var(--stack-h); right: 0; width: 232px; padding: 6px; border-radius: 26px;
  display: flex; flex-direction: column; gap: 2px; transform-origin: 100% 0; animation: menuIn 0.4s var(--spring) both;
}
.menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(0.92); } to { opacity: 1; transform: none; } }
.menu-item {
  width: 100%; min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border: 0; border-radius: 20px;
  background: transparent; color: var(--text); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; text-shadow: inherit;
  transition: background-color 0.15s, transform 0.3s var(--spring);
}
a.menu-item { text-decoration: none; }
.menu-item .ic { color: var(--text-2); }
.menu-item:hover, .menu-item:focus-visible { background: var(--chip-hover); }
.menu-item:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.menu-item:active { transform: scale(0.98); }
.menu-item:disabled { opacity: 0.4; cursor: default; }
.menu-sep { height: 1px; margin: 4px 12px; background: var(--hairline); }
.share-wrap { position: relative; flex: none; width: var(--ctl); height: var(--ctl); }
.share-ring {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
  box-shadow: 0 0 0 2px rgb(var(--amber-rgb) / 0.55), 0 0 14px 3px rgb(var(--amber-rgb) / 0.4);
}
.share-wrap.is-hint .share-ring { opacity: 1; }
.share-wrap.is-hint .share-ring, .share-wrap.is-leaving .share-ring { animation: share-glow 1.6s ease-in-out infinite; }
@keyframes share-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgb(var(--amber-rgb) / 0.45), 0 0 10px 1px rgb(var(--amber-rgb) / 0.30); }
  50% { box-shadow: 0 0 0 3px rgb(var(--amber-rgb) / 0.85), 0 0 24px 6px rgb(var(--amber-rgb) / 0.55); }
}
.tools .share-hint {
  position: absolute; z-index: 1; right: calc(100% + 10px); top: 50%;
  display: flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px;
  font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; color: var(--text);
  pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  opacity: 0; visibility: hidden; transform: translate(8px, -50%);
  transition: opacity 0.4s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.share-wrap.is-hint .share-hint { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .share-wrap.is-hint .share-ring, .share-wrap.is-leaving .share-ring { animation: none; box-shadow: 0 0 0 3px rgb(var(--amber-rgb) / 0.6), 0 0 14px 2px rgb(var(--amber-rgb) / 0.4); }
  .share-ring { transition: opacity 0.2s; }
  .tools .share-hint { transform: translate(0, -50%); transition: opacity 0.2s, visibility 0s linear 0.2s; }
}
.dock {
  position: fixed; z-index: 500;
  left: var(--dock-left); width: var(--dock-w);
  bottom: calc(var(--safe-b) + var(--gap));
  padding: 10px; border-radius: 32px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 2 * var(--gap) - var(--ctl) - var(--stack-gap));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.detail {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.25s, visibility 0s 0.45s;
}
.dock[data-expanded="true"] .detail {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s 0.06s, visibility 0s;
}
.detail-inner { min-height: 0; overflow: hidden; }
.arc-box { width: min(100%, calc(var(--arc-h) * 2.6133)); margin: 4px auto 0; }
.arc { display: block; width: 100%; height: auto; overflow: visible; }
.arc-base { fill: none; stroke: var(--text-3); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.1 6.5; opacity: 0.7; }
.arc-horizon { stroke: var(--hairline); stroke-width: 1; }
.arc-gold { fill: none; stroke: url(#arcGold); stroke-width: 4.5; stroke-linecap: round; }
.arc-glow { fill: none; stroke: var(--amber); stroke-width: 8; stroke-linecap: round; opacity: 0.5; }
.arc-now-halo { fill: url(#arcHalo); }
.arc-now-dot { fill: #fff; stroke: var(--amber); stroke-width: 3.4; }
.arc-pv-dot { fill: var(--amber); stroke: #fff; stroke-width: 2.5; }
.arc-ends { display: grid; width: min(100%, calc(var(--arc-h) * 2.6133)); margin: 14px auto 18px; }
.arc-end { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; line-height: 1.35; white-space: nowrap; }
.arc-end-l { justify-self: start; margin-left: 11.73%; transform: translateX(-50%); }
.arc-end-r { justify-self: end; margin-right: 11.73%; transform: translateX(50%); }
.arc-end .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); }
.arc-end b { font-size: 19px; font-weight: 650; line-height: 1.2; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.arc-end .dir .deg { display: inline-block; width: 0; overflow: visible; }
.arc-end .dir { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 24px;
  background: var(--chip); box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px var(--chip-edge-lo);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.mini-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip-2); color: var(--text-2); transition: background 0.3s, color 0.3s; }
.mini-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mini-label { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.mini-time { font-size: 15px; font-weight: 650; letter-spacing: 0; color: var(--text); white-space: nowrap; }
.mini-time .dash { font-weight: 500; color: var(--text-2); }
.mini.is-now { background: rgb(var(--amber-rgb) / 0.22); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 0 0 1px rgb(var(--amber-rgb) / 0.45); }
.mini.is-now .mini-ic { background: linear-gradient(145deg, var(--amber-2), var(--amber)); color: var(--on-amber); }
.mini.is-now .mini-label { color: var(--amber-text); font-weight: 650; }
.mini[role="button"] { cursor: pointer; }
.mini[role="button"]:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 2px; }
.mini[aria-pressed="true"] { background: var(--chip-hover); box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1.5px rgb(var(--ink-rgb) / 0.5); }
.mini.is-now[aria-pressed="true"] { background: rgb(var(--amber-rgb) / 0.32); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 0 0 1.5px rgb(var(--amber-rgb) / 0.95); }
.mini[aria-pressed="true"] .mini-ic { color: var(--text); }
.mini.is-now[aria-pressed="true"] .mini-ic { color: var(--on-amber); }
.mini[role="button"] { transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--ease); }
.mini[role="button"]:active { transform: scale(0.98); }
.mini { position: relative; overflow: hidden; }
.mini-ic, .mini-txt { position: relative; }
.mini-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--f, 0) * 100%); background: linear-gradient(90deg, rgb(var(--amber-rgb) / 0.06), rgb(var(--amber-rgb) / 0.30)); box-shadow: inset -2px 0 0 rgb(var(--amber-rgb) / 0.9); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.mini-pv { position: absolute; top: 50%; left: clamp(72px, calc(var(--f, 0) * 100%), calc(100% - 30px)); transform: translate(-50%, -50%); display: none; padding: 1px 7px; border-radius: 9px; background: var(--amber); color: var(--on-amber); font-size: 12px; font-weight: 700; line-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.mini-ic .ic-play, .mini-ic .ic-pause { display: none; }
.mini.is-scrub { touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; }
.mini.is-scrub .mini-fill { opacity: 1; }
.mini.is-scrub .mini-pv { display: block; }
.mini.is-scrub .mini-txt { visibility: hidden; }
.mini.is-scrub .mini-ic { background: linear-gradient(145deg, var(--amber-2), var(--amber)); color: var(--on-amber); cursor: pointer; }
.mini.is-scrub .mini-ic .ic-kind { display: none; }
.mini.is-scrub .mini-ic .ic-play { display: block; fill: currentColor; }
.mini.is-scrub .mini-ic[aria-pressed="true"] .ic-play { display: none; }
.mini.is-scrub .mini-ic[aria-pressed="true"] .ic-pause { display: block; }
.mini-ic:focus-visible, .mini[role="slider"]:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 2px; }
@media (hover: hover) {
  .mini[role="button"]:not([aria-pressed="true"]):hover { background: var(--chip-hover); box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px rgb(var(--ink-rgb) / 0.2); }
  .mini.is-now[role="button"]:not([aria-pressed="true"]):hover { background: rgb(var(--amber-rgb) / 0.3); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 0 0 1px rgb(var(--amber-rgb) / 0.6); }
  .mini[role="button"]:not([aria-pressed="true"]):hover .mini-ic { background: var(--chip-hover); }
  .mini.is-now[role="button"]:not([aria-pressed="true"]):hover .mini-ic { background: linear-gradient(145deg, var(--amber-2), var(--amber)); }
}
@media (prefers-reduced-motion: reduce) {
  .mini[role="button"] { transition: background-color 0.15s ease, box-shadow 0.15s ease; }
  .mini[role="button"]:active { transform: none; }
}

.notice {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 24px;
  background: var(--chip); box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px var(--chip-edge-lo);
}
.notice .ic { color: var(--amber-text); }
.notice h3 { font-size: 15px; font-weight: 650; margin-bottom: 1px; }
.notice p { font-size: 13px; line-height: 1.35; color: var(--text-2); }

.dock-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.datebar {
  flex: 1; min-width: 0; display: flex; align-items: center; height: var(--ctl); border-radius: calc(var(--ctl) / 2);
  background: var(--chip); box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px var(--chip-edge-lo);
}
.step, .datepill-btn, .expand {
  position: relative; border: 0; padding: 0; cursor: pointer; color: var(--text); background: transparent; text-shadow: inherit;
  transition: transform 0.3s var(--spring), background-color 0.2s; -webkit-user-select: none; user-select: none;
}
.step { flex: none; width: var(--ctl); height: var(--ctl); border-radius: 50%; display: grid; place-items: center; }
.step:hover, .datepill-btn:hover { background: var(--chip-hover); }
.step:active, .datepill-btn:active { transform: scale(0.94); }
.datepill { position: relative; flex: 1; min-width: 0; }
.datepill-btn {
  width: 100%; height: var(--ctl); border-radius: calc(var(--ctl) / 2);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 10px; font-size: 16px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.datepill-btn .ic { color: var(--text-2); }
.expand {
  flex: none; width: var(--ctl); height: var(--ctl); border-radius: 50%; display: grid; place-items: center;
  background: var(--chip); box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px var(--chip-edge-lo);
}
.expand:hover { background: var(--chip-hover); }
.expand:active { transform: scale(0.92); }
.expand .ic { transition: transform 0.4s var(--ease); }
.expand[aria-expanded="true"] .ic { transform: rotate(180deg); }
.dock[data-state="polar-day"] .detail, .dock[data-state="polar-night"] .detail, .dock[data-state="partial"] .detail,
.dock[data-state="polar-day"] .expand, .dock[data-state="polar-night"] .expand, .dock[data-state="partial"] .expand { display: none; }
.attrib {
  position: fixed; z-index: 470; left: calc(var(--dock-left) - 4px); bottom: calc(var(--dock-h) + 2px);
  display: flex; align-items: flex-start; max-width: calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r));
  pointer-events: none;
}
.attrib > .attrib-link, .attrib-pop { pointer-events: auto; }
.attrib-link {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: rgb(235 238 240 / 0.85);
}
.attrib-link {
  display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 4px 0 12px; margin: 0; border: 0; background: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.attrib-link:hover, .attrib-link:focus-visible, .attrib-link[aria-expanded="true"] { color: rgb(245 247 248 / 0.98); }
.attrib-link:focus-visible { border-radius: 10px; }
.attrib-pop {
  position: absolute; left: 0; bottom: calc(100% + 2px); width: min(360px, calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r)));
  max-height: min(60vh, 420px); overflow-y: auto; padding: 14px 18px 16px; border-radius: 22px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-2); text-shadow: var(--text-halo); transform-origin: 20px 100%;
  animation: attribIn 0.45s var(--spring) both;
}
.attrib-pop[hidden] { display: none; }
@keyframes attribIn { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
.attrib-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.attrib-head h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.attrib-close {
  flex: none; width: 44px; height: 44px; margin: -12px -14px -8px 0; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); cursor: pointer; transition: background 0.2s, transform 0.2s var(--spring);
}
.attrib-close:hover { background: var(--chip-hover); }
.attrib-close:active { transform: scale(0.9); }
.attrib-text { margin: 0; }
.attrib a { color: var(--accent); text-underline-offset: 2px; }
.cal-scrim { position: fixed; inset: 0; z-index: 590; background: var(--scrim); opacity: 0.55; animation: calFade 0.25s ease both; }
.cal-scrim[hidden], .calendar[hidden] { display: none; }
.cal-scrim.is-closing { animation: calFadeOut 0.17s ease both; }
.calendar {
  position: fixed; z-index: 600; width: 320px; padding: 8px 6px 8px; border-radius: 28px;
  color: var(--text); font-variant-numeric: tabular-nums; transform-origin: 50% 0;
  animation: calIn 0.36s var(--spring) both;
}
.calendar.cal-modal {
  inset: 0; margin: auto; height: max-content; max-height: calc(100dvh - 24px - var(--safe-t) - var(--safe-b));
  width: min(320px, calc(100vw - 16px)); overflow-y: auto; transform-origin: 50% 50%;
}
.calendar.cal-above { transform-origin: 50% 100%; animation-name: calInUp; }
.calendar.is-closing { animation: calOut 0.17s ease both; pointer-events: none; }
@keyframes calIn { from { opacity: 0; transform: translateY(-6px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes calInUp { from { opacity: 0; transform: translateY(6px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes calOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-4px) scale(0.97); } }
@keyframes calFade { from { opacity: 0; } to { opacity: 0.55; } }
@keyframes calFadeOut { from { opacity: 0.55; } to { opacity: 0; } }

.cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; margin-bottom: 2px; }
.cal-nav, .cal-title, .cal-day, .cal-month, .cal-btn {
  border: 0; cursor: pointer; color: var(--text); font: inherit; -webkit-tap-highlight-color: transparent; text-shadow: inherit;
  transition: background 0.2s, transform 0.2s var(--spring);
}
.cal-nav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--chip);
  box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px var(--chip-edge-lo);
}
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-title {
  height: 44px; border-radius: 22px; background: transparent; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 16px; font-weight: 650; letter-spacing: 0; padding: 0 10px;
}
.cal-caret { color: var(--text-2); transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.cal-title[aria-expanded="true"] .cal-caret { transform: rotate(-90deg); }
.cal-nav:not(:disabled):hover, .cal-title:hover, .cal-btn:hover { background: var(--chip-hover); }
.cal-nav:not(:disabled):active, .cal-title:active, .cal-btn:active { transform: scale(0.95); }

.cal-body { min-height: 294px; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow {
  height: 30px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.cal-day {
  width: min(44px, 100%); height: 44px; justify-self: center; border-radius: 22px; background: transparent;
  font-size: 15px; font-weight: 600; padding: 0; display: grid; place-items: center;
}
.cal-day.is-out { font-weight: 500; opacity: 0.78; }
.cal-day:not(:disabled):hover, .cal-month:hover { background: var(--chip-hover); }
.cal-day:disabled { opacity: 0.3; cursor: default; }
.cal-day:not(:disabled):active, .cal-month:active { transform: scale(0.92); }
.cal-day.is-today, .cal-month.is-today { box-shadow: inset 0 0 0 2px var(--amber-text); }
.cal-day.is-sel, .cal-month.is-sel, .cal-day.is-sel:hover, .cal-month.is-sel:hover {
  color: var(--on-amber); font-weight: 700; opacity: 1; text-shadow: none;
  background: linear-gradient(145deg, var(--amber-2), var(--amber));
  box-shadow: 0 3px 12px rgb(var(--amber-rgb) / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.6);
}
.cal-day.is-sel.is-today, .cal-month.is-sel.is-today {
  box-shadow: 0 3px 12px rgb(var(--amber-rgb) / 0.4), inset 0 0 0 2px rgb(42 23 0 / 0.6);
}
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 6px; height: 294px; padding: 4px 2px 2px; }
.cal-months[hidden] { display: none; }
.cal-month { border-radius: 20px; background: var(--chip); font-size: 16px; font-weight: 600; box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px var(--chip-edge-lo); }
.cal-foot { display: flex; gap: 8px; margin-top: 6px; padding: 0 2px; }
.cal-btn {
  flex: 1; min-height: 44px; border-radius: 22px; background: var(--chip); font-size: 15px; font-weight: 600;
  box-shadow: inset 0 1px 0 var(--chip-edge), inset 0 0 0 1px var(--chip-edge-lo);
}
.cal-btn-today { background: var(--amber); color: #1a1408; }
.cal-btn-today:hover { background: var(--amber); filter: brightness(1.06); }
.calendar button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 359px) {
  .calendar.cal-modal { width: calc(100vw - 8px); padding: 8px 4px; }
}
@media (max-height: 460px) {
  .cal-head { grid-template-columns: 38px 1fr 38px; }
  .cal-nav { width: 38px; height: 38px; }
  .cal-title { height: 38px; }
  .cal-dow { height: 22px; }
  .cal-day { height: 33px; border-radius: 17px; font-size: 14px; }
  .cal-body { min-height: 0; }
  .cal-months { height: 218px; }
  .cal-btn { min-height: 38px; }
  .cal-foot { margin-top: 4px; }
}
.toast {
  position: fixed; z-index: 1200; left: 50%; top: calc(var(--safe-t) + var(--gap) + var(--ctl) + 16px);
  transform: translate(-50%, -12px) scale(0.96); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 99px; font-size: 14.5px; font-weight: 600;
  transition: opacity 0.3s, transform 0.5s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tour-ring {
  position: fixed; z-index: 1090; left: 0; top: 0; width: 0; height: 0; box-sizing: border-box; pointer-events: none;
  border: 1.5px solid rgb(255 255 255 / 0.95);
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.14), 0 0 0 0 rgb(var(--amber-rgb) / 0.5);
  opacity: 0;
  transition: opacity 0.3s, left 0.4s var(--ease), top 0.4s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease), border-radius 0.4s var(--ease);
  animation: tour-pulse 2.2s ease-out infinite;
}
.tour-ring.show { opacity: 1; }
.tour-ring.is-placing { transition: none; }
@keyframes tour-pulse { 0% { box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.14), 0 0 0 0 rgb(var(--amber-rgb) / 0.5); } 80%, 100% { box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.14), 0 0 0 11px rgb(var(--amber-rgb) / 0); } }

.tour-card {
  position: fixed; z-index: 1100; left: 12px; top: 12px; box-sizing: border-box;
  width: min(320px, calc(100vw - 24px)); padding: 16px 16px 12px; border-radius: 22px;
  background: linear-gradient(rgb(var(--glass-rgb) / 0.88), rgb(var(--glass-rgb) / 0.88));
  text-shadow: none; color: var(--text);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.4s var(--spring), left 0.4s var(--ease), top 0.4s var(--ease);
}
.tour-card.show { opacity: 1; transform: none; }
.tour-card.is-placing { transition: none; }
.tour-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--text); letter-spacing: 0; }
.tour-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tour-dots { display: flex; align-items: center; gap: 5px; flex: none; }
.tour-dots i { display: block; width: 6px; height: 6px; border-radius: 99px; background: rgb(var(--ink-rgb) / 0.22); transition: width 0.3s var(--ease), background 0.3s; }
.tour-dots i.on { width: 16px; background: var(--text); }
.tour-actions { display: flex; align-items: center; gap: 4px; }
.tour-btn {
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; height: 34px; padding: 0 14px; border-radius: 99px;
  border: 0; cursor: pointer; transition: background 0.2s, opacity 0.2s;
}
.tour-btn-quiet { background: transparent; color: var(--text-2); }
.tour-btn-quiet:hover { background: var(--chip-hover); }
.tour-btn-main { background: var(--text); color: rgb(var(--solid-rgb)); padding: 0 18px; }
.tour-btn-main:hover { opacity: 0.86; }
.tour-open .consent-banner, .tour-open .support-prompt { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tour-ring { animation: none; box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.14), 0 0 0 4px rgb(var(--amber-rgb) / 0.3); transition: opacity 0.2s; }
  .tour-card { transform: none; transition: opacity 0.2s; }
  .tour-dots i { transition: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .tour-card, .faq-card { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tour-card, .faq-card { background: var(--glass-solid); } }
.leaflet-night-pane, .leaflet-terrain-pane { pointer-events: none; transition: opacity 0.7s ease; }
.leaflet-terrain-pane canvas { image-rendering: auto; }
@media (prefers-reduced-motion: reduce) { .leaflet-night-pane, .leaflet-terrain-pane { transition: none; } }
.map-centre { position: fixed; z-index: 450; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.map-centre::before { content: ""; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); }
.map-centre-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #111; transition: background-color 0.4s; animation: map-centre-beat 1.6s ease-in-out infinite; }
.map-centre.is-day .map-centre-dot { background: #a8d8f5; }
.map-centre.is-golden .map-centre-dot { background: var(--amber); }
@keyframes map-centre-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.82); } }
.map-centre.not-today .map-centre-dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .map-centre-dot { animation: none; } }
.welcome {
  position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center;
  padding: calc(var(--safe-t) + 16px) calc(var(--safe-r) + 16px) calc(var(--safe-b) + 16px) calc(var(--safe-l) + 16px);
  background: rgb(8 10 14 / 0.55);
  -webkit-backdrop-filter: blur(6px) saturate(0.8); backdrop-filter: blur(6px) saturate(0.8);
  opacity: 0; transition: opacity 0.3s;
  overflow-y: auto;
}
.welcome.open { opacity: 1; }
.welcome-sheet {
  --welcome-noise: 0.08;
  --welcome-r: 30px;
  --welcome-bg: #fbfaf7;
  --welcome-ink: #1d1407;
  --welcome-video-h: 58%;
  --welcome-blend: 75%;
  width: min(340px, 100%); margin: auto; padding: 0; border-radius: var(--welcome-r);
  background: linear-gradient(to top, transparent var(--welcome-r), var(--welcome-bg) var(--welcome-r));
  overflow: hidden;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 320px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), 0 2px 10px rgb(0 0 0 / 0.25);
  opacity: 0; transform: scale(0.98); transition: transform 0.25s ease, opacity 0.25s ease;
  text-align: left;
}
@media (prefers-color-scheme: dark) { .welcome-sheet { --welcome-bg: #14161a; } }
.welcome-sheet::before, .welcome-sheet::after { display: none; }
.welcome.open .welcome-sheet { opacity: 1; transform: none; }
@media (min-width: 700px) and (min-height: 600px) { .welcome-sheet { width: 380px; min-height: 340px; } }
.welcome-media {
  position: absolute; bottom: -1px; left: -1px; right: -1px; height: calc(var(--welcome-video-h) + 1px); z-index: 0; overflow: hidden; pointer-events: none;
  border-radius: 0 0 calc(var(--welcome-r) + 1px) calc(var(--welcome-r) + 1px);
  background: var(--amber);
  --welcome-fade: linear-gradient(to top,
    rgb(0 0 0) calc(100% - var(--welcome-blend)),
    rgb(0 0 0 / 0.972) calc(100% - var(--welcome-blend) * 0.9),
    rgb(0 0 0 / 0.896) calc(100% - var(--welcome-blend) * 0.8),
    rgb(0 0 0 / 0.784) calc(100% - var(--welcome-blend) * 0.7),
    rgb(0 0 0 / 0.648) calc(100% - var(--welcome-blend) * 0.6),
    rgb(0 0 0 / 0.5) calc(100% - var(--welcome-blend) * 0.5),
    rgb(0 0 0 / 0.352) calc(100% - var(--welcome-blend) * 0.4),
    rgb(0 0 0 / 0.216) calc(100% - var(--welcome-blend) * 0.3),
    rgb(0 0 0 / 0.104) calc(100% - var(--welcome-blend) * 0.2),
    rgb(0 0 0 / 0.028) calc(100% - var(--welcome-blend) * 0.1),
    rgb(0 0 0 / 0) 100%);
  -webkit-mask-image: var(--welcome-fade);
  mask-image: var(--welcome-fade);
}
.welcome-noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  opacity: var(--welcome-noise); mix-blend-mode: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  2.4 0 0 0 -.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
@media (prefers-color-scheme: dark) {
  .welcome-noise { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95  0 0 0 0 .95  0 0 0 0 .95  2.4 0 0 0 -.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
}
.welcome-body { grid-row: 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 4dvh, 30px) clamp(22px, 6vw, 30px) 0; }
.welcome-ver { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 600; color: var(--text); }
.welcome-sheet h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(26px, 4.4dvh, 32px); line-height: 1.08; font-weight: 700; letter-spacing: 0; text-wrap: balance; color: var(--text); }
.welcome-desc { margin: 10px 0 0; max-width: 30ch; font-size: 17px; line-height: 1.4; font-weight: 400; color: var(--text-2); text-wrap: pretty; }
.welcome-foot { grid-row: 3; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(18px, 5vw, 24px) clamp(18px, 5vw, 24px) clamp(22px, 6vw, 32px); }
.welcome-go { width: var(--ctl); height: var(--ctl); flex: none; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--amber-2); background: var(--welcome-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 3px 10px rgb(0 0 0 / 0.25); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.welcome-go .ic { stroke-width: 2; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.25)); }
.welcome-go:focus-visible { outline-offset: 3px; }
.btn { min-height: 54px; border: 0; border-radius: 27px; font-size: 17px; font-weight: 600; letter-spacing: 0; cursor: pointer; transition: transform 0.35s var(--spring), filter 0.2s, background-color 0.2s; text-shadow: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { color: var(--on-amber); background: linear-gradient(145deg, var(--amber-2), var(--amber)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 8px 22px rgb(var(--amber-rgb) / 0.38); }
.btn-primary:hover { filter: brightness(1.04) saturate(1.05); }
.btn-secondary { color: var(--text); background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge-lo); }
.btn-secondary:hover { background: var(--chip-hover); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-sm { flex: 1 1 0; min-width: 0; min-height: var(--sp-btn, var(--ctl)); padding: 0 8px; border-radius: calc(var(--ctl) / 2); font-size: 16px; }
.btn[hidden] { display: none; }
#welcome:focus { outline: none; }
.btn:focus-visible { outline-offset: 3px; }
.welcome-privacy { font-size: 12.5px; line-height: 1.4; color: var(--welcome-ink); opacity: 0.85; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; border-radius: 3px; }
.welcome-privacy:hover { opacity: 1; }
.welcome-privacy:focus-visible, .consent-banner a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@property --btn-glow { syntax: "<color>"; inherits: true; initial-value: rgb(245 160 11 / 0.35); }
#startButton { --welcome-hues: linear-gradient(110deg, #ffb534 0%, #ff8a1f 25%, #ff6a4d 50%, #ff5fa2 75%, #ff8a1f 100%); position: relative; overflow: hidden; }
#startButton:hover, #startButton:focus-visible { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  #startButton { transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.3s ease, filter 0.2s, background-color 0.2s; }
  #startButton:active { transform: translateY(0) scale(0.96); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 2px 6px var(--btn-glow, rgb(var(--amber-rgb) / 0.35)); transition-duration: 0.12s; }
  #startButton:focus-visible { background: var(--welcome-hues); background-size: 300% 100%; animation: welcomeHue 3.6s ease-in-out infinite alternate; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #startButton:hover { transform: translateY(-1px) scale(1.04); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 6px 16px var(--btn-glow, rgb(var(--amber-rgb) / 0.35)), 0 0 14px var(--btn-glow, rgb(var(--amber-rgb) / 0.25));
    background: var(--welcome-hues); background-size: 300% 100%; animation: welcomeHue 3.6s ease-in-out infinite alternate; }
  #startButton:active:hover { transform: translateY(0) scale(0.96); }
}
@keyframes welcomeHue {
  0%   { background-position: 0% 50%;   --btn-glow: rgb(245 160 11 / 0.35); }
  25%  { background-position: 25% 50%;  --btn-glow: rgb(255 138 31 / 0.35); }
  50%  { background-position: 50% 50%;  --btn-glow: rgb(255 106 77 / 0.35); }
  75%  { background-position: 75% 50%;  --btn-glow: rgb(255 95 162 / 0.35); }
  100% { background-position: 100% 50%; --btn-glow: rgb(255 138 31 / 0.35); }
}
@media (prefers-reduced-motion: reduce) { #startButton:hover, #startButton:focus-visible { background: linear-gradient(145deg, #ffb534, #ff8a1f); } }
.welcome-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgb(255 255 255 / 0.7) 0%, rgb(255 255 255 / 0) 70%); transform: translate(-50%, -50%) scale(0); animation: welcomeRipple 0.6s ease-out forwards; }
@keyframes welcomeRipple { from { transform: translate(-50%, -50%) scale(0); opacity: 1; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .welcome-ripple { display: none; } }
@media (max-height: 479px) {
  .welcome-body { padding-top: 18px; }
  .welcome-sheet h2 { font-size: 26px; }
  .welcome-desc { font-size: 15px; }
}
.consent-banner {
  position: fixed; z-index: 510; left: var(--dock-left); width: var(--dock-w);
  bottom: calc(var(--dock-h) + 52px);
  padding: 14px 16px 16px; border-radius: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.3s, transform 0.5s var(--spring), visibility 0s linear 0.3s;
}
.consent-banner[hidden] { display: none; }
.consent-banner.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.consent-text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.consent-text a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; border-radius: 3px; text-shadow: inherit; }
.consent-text a:hover { color: var(--text); }
.consent-actions { display: flex; gap: 8px; margin-top: 12px; }
@media (min-width: 1200px) and (min-height: 500px) { .consent-banner { bottom: calc(var(--dock-h) + 8px); } }
.leaflet-container { font-family: var(--font); background: transparent; }
.leaflet-tile-pane { filter: var(--map-filter); }
.leaflet-labels-pane { opacity: var(--label-opacity); filter: brightness(var(--label-brightness)); }
.sun-arrows { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 440; pointer-events: none; overflow: visible; transition: opacity 0.28s ease; }
#map.is-moving + .sun-arrows { opacity: 0; }
.sun-arrows { opacity: var(--sun-arrow-opacity); }
.sun-arrows.is-preview { opacity: 0; visibility: hidden; }
.sun-chevron-ink { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sun-rays { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 435; pointer-events: none; overflow: visible; transition: opacity 0.28s ease; }
#map.is-moving ~ .sun-rays { opacity: 0; }
.sun-ray-grow { transform-origin: 0 0; transform: scaleX(0); opacity: 0; transition: transform 0.25s ease-out, opacity 0.18s ease; }
.sun-rays[data-on="rise"] .sun-ray--rise .sun-ray-grow, .sun-rays[data-on="set"] .sun-ray--set .sun-ray-grow { transform: scaleX(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sun-ray-grow { transition: none; } }
.sun-chevron-hit { fill: transparent; stroke: none; pointer-events: all; }
.leaflet-marker-icon { color: #1f6bff; filter: drop-shadow(0 2px 4px rgb(14 18 32 / 0.45)); }
.leaflet-marker-icon.loc-me { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); filter: none; }
.loc-me svg { display: block; }
.leaflet-popup-content-wrapper {
  border-radius: 18px; color: var(--text); background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--inner-hi);
}
.leaflet-popup-tip { background: rgb(var(--glass-rgb) / calc(var(--glass-opacity) * 1.1)); box-shadow: none; }
.leaflet-popup-content { margin: 12px 16px; font-size: 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-2); }
@media (max-width: 719px) { .is-searching .tools { opacity: 0; visibility: hidden; } }
@media (pointer: coarse), (max-width: 599px) { .menu-zoom { display: none; } }
@media (min-width: 1200px) and (min-height: 500px) {
  .attrib { left: calc(var(--safe-l) + 4px); bottom: calc(var(--safe-b) + 4px); }
}
@media (max-width: 899px) and (min-height: 480px) {
  :root { --gap: 12px; }
  .search-results { max-height: max(160px, calc(100dvh - var(--dock-h) - 110px - var(--safe-t) - var(--safe-b))); }
}
@media (max-width: 399px) {
  .datepill-btn .ic-sm { display: none; }
}
@media (max-height: 640px) {
  .arc-end .dir { display: none; }
  .arc-ends { margin: 8px auto 10px; }
}
@media (max-width: 359px) {
  .dock { padding: 8px; border-radius: 28px; }
  .datepill-btn { padding: 0 4px; font-size: 15px; gap: 5px; }
  .mini { padding: 8px 10px; gap: 0; }
  .mini-ic { display: none; }
  .mini-time { font-size: 14.5px; }
}
@media (max-height: 479px) {
  :root {
    --gap: 12px; --stack-gap: 6px;
    --dock-w: min(316px, calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r)));
    --dock-left: calc(var(--safe-l) + var(--gap));
  }
  .dock { padding: 8px; border-radius: 28px; }
  .dock-row { margin-top: 6px; }
  .datepill-btn { padding: 0 6px; gap: 6px; font-size: 15px; }
  .mini { padding: 6px 10px 6px 6px; gap: 7px; }
  .mini-ic { width: 30px; height: 30px; }
  .mini-time { font-size: 14px; }
  .attrib-pop { max-height: 52vh; }
}
.support-prompt, .support-panel { --sp-pad: 20px; --sp-btn: var(--ctl); padding: var(--sp-pad); border-radius: 28px; }
.support-panel { --sp-pad: 22px; }
.amounts { display: flex; gap: 8px; min-width: 0; }
.sp-later:focus-visible, .sp-other:focus-visible, .sp-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sp-head { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.sp-head h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-size: 16px; line-height: 1.25; font-weight: 700; letter-spacing: 0; }
.sp-heart { flex: none; width: 20px; height: 20px; color: var(--amber); fill: currentColor; }
.sp-text { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

.support-prompt {
  --sp-x: -50%; --sp-dy: -8px;
  position: fixed; z-index: 470; left: 50%; right: auto; bottom: auto;
  top: calc(var(--safe-t) + var(--gap) + 3 * var(--ctl) + 2 * var(--stack-gap) + 8px);
  width: min(360px, calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r)));
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(var(--sp-x), var(--sp-dy)) scale(0.97);
  transition: opacity 0.3s, transform 0.5s var(--spring), visibility 0s linear 0.3s;
}
.support-prompt[hidden] { display: none; }
.support-prompt.show:not(.is-away) { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(var(--sp-x), 0) scale(1); transition-delay: 0s; }
.sp-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.sp-row .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sp-later {
  flex: none; min-height: var(--sp-btn, var(--ctl)); padding: 0 10px; margin-right: -10px; border: 0; border-radius: calc(var(--ctl) / 2); background: transparent; color: var(--text-2);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-shadow: inherit; transition: background-color 0.15s;
}
.sp-later:hover { background: var(--chip-hover); }
@media (min-width: 720px) { .support-prompt { top: calc(var(--safe-t) + var(--gap) + var(--ctl) + 14px); } }
@media (min-width: 1300px) and (min-height: 500px), (max-height: 479px) and (min-width: 700px) {
  .support-prompt { --sp-x: 0px; --sp-dy: 8px; left: auto; top: auto; right: calc(var(--safe-r) + var(--gap)); bottom: calc(var(--safe-b) + var(--gap)); }
}
@media (max-height: 640px) {
  .support-prompt, .support-panel { --sp-pad: 16px; --sp-btn: 40px; }
  .support-prompt .sp-head + .sp-text { margin-top: 6px; font-size: 13px; line-height: 1.4; }
  .support-prompt .sp-row { margin-top: 12px; }
}

.support-panel {
  position: absolute; z-index: 3; top: var(--stack-h); right: 0;
  width: min(328px, calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r)));
  max-height: calc(100dvh - var(--stack-h) - 2 * var(--gap) - var(--safe-t) - var(--safe-b));
  overflow-x: hidden; overflow-y: auto; transform-origin: 100% 0; animation: menuIn 0.4s var(--spring) both;
}
.support-panel[hidden] { display: none; }
.support-panel .sp-head h2 { font-size: 16px; }
.support-panel .amounts { margin-top: 16px; }
.sp-close { flex: none; width: 40px; height: 40px; margin: -6px -8px -6px 6px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; transition: background 0.2s, transform 0.2s var(--spring); }
.sp-close:hover { background: var(--chip-hover); }
.sp-close:active { transform: scale(0.9); }
.sp-other {
  display: flex; align-items: center; justify-content: center; min-height: var(--sp-btn, var(--ctl)); margin-top: 10px; border-radius: calc(var(--ctl) / 2);
  font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; text-shadow: inherit;
  background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge-lo); transition: background-color 0.15s;
}
.sp-other:hover { background: var(--chip-hover); }
.faq-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: calc(var(--safe-t) + 16px) calc(var(--safe-r) + 16px) calc(var(--safe-b) + 16px) calc(var(--safe-l) + 16px);
}
.faq-modal[hidden] { display: none; }
.faq-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0.55; animation: calFade 0.25s ease both; }
.faq-card {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden;
  width: min(460px, 100%); max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 32px); border-radius: 28px;
  background: linear-gradient(rgb(var(--glass-rgb) / 0.88), rgb(var(--glass-rgb) / 0.88));
  text-shadow: none; color: var(--text); animation: calIn 0.36s var(--spring) both;
}
.faq-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 20px; border-bottom: 1px solid var(--hairline); }
.faq-head h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: 0; }
.faq-head .sp-close { margin: 0; background: var(--chip); }
.faq-head .sp-close:hover { background: var(--chip-hover); }
.faq-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 20px 20px; }
.faq-body:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 0 0 28px 28px; }
.faq-body h3 { margin: 16px 0 0; font-family: var(--font-display); font-size: 14.5px; line-height: 1.3; font-weight: 600; color: var(--text); }
.faq-body .sp-text { margin-top: 4px; }
@media (max-height: 479px) {
  .support-panel { --sp-pad: 16px; --sp-btn: 40px; }
  .support-panel .sp-text { margin-top: 8px; font-size: 13px; }
  .support-panel .amounts { margin-top: 12px; }
  .sp-other { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; transition-delay: 0s !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-bg: var(--glass-solid); --sheen: rgb(255 255 255 / 0.06); --sheen-top: rgb(255 255 255 / 0); --inner-glow: rgb(255 255 255 / 0.1); --text-halo: none; --scrim: rgb(10 14 26 / 0.62); }
  .glass, .welcome, .leaflet-popup-content-wrapper { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .leaflet-popup-tip { background: rgb(var(--solid-rgb)); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: var(--glass-solid); --sheen: rgb(255 255 255 / 0.06); --sheen-top: rgb(255 255 255 / 0); --text-halo: none; --scrim: rgb(10 14 26 / 0.55); }
  .leaflet-popup-tip { background: rgb(var(--solid-rgb)); }
}

@media (prefers-contrast: more) {
  :root { --glass-bg: var(--glass-solid); --text-3: var(--text-2); --edge-lo: var(--edge-hi); --text-halo: none; }
}
@media (hover: none) and (pointer: coarse) {
  html, body, #app, #map, .leaflet-container, .leaflet-pane, .sun-arrows, .sun-rays, .dock, .tools, .consent-banner, .support-prompt, .support-panel, .welcome, .tour-card, button, .ctl, .mini, .menu-item {
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
  .sun-arrows, .sun-chevron-hit, .mini, .dock button, .tools .ctl, .menu-item, .tour-card button, .search-toggle { touch-action: manipulation; }
  .sun-chevron-hit, .sun-arrows * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  input, textarea, [contenteditable="true"], [contenteditable=""] {
    -webkit-user-select: text; user-select: text;
    -webkit-touch-callout: default;
  }
}
