:root {
  --blue: #0a7cff;
  --blue-deep: #0757bf;
  --blue-ink: #0b3f78;
  --sky: #eaf4ff;
  --ice: #f4f9ff;
  --panel: rgba(255, 255, 255, .82);
  --panel-strong: rgba(255, 255, 255, .94);
  --ink: #0e2740;
  --ink-2: #34536e;
  --muted: #6e8ba4;
  --faint: #98aec1;
  --line: rgba(26, 84, 140, .13);
  --line-strong: rgba(26, 84, 140, .23);
  --warm: #f0a66d;
  --mint: #32b8a0;
  --shadow: 0 18px 50px rgba(24, 79, 136, .14);
  --shadow-soft: 0 8px 28px rgba(24, 79, 136, .1);
  --radius: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #f4f9ff;
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  user-select: none;
}
button, input { font: inherit; color: inherit; }
button { appearance: none; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid rgba(10, 124, 255, .7); outline-offset: 3px; }
::selection { background: rgba(10, 124, 255, .18); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(24, 91, 151, .24); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

#app { position: fixed; inset: 0; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.atmosphere-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: .025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.edge-vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(125% 100% at 50% 42%, transparent 55%, rgba(224, 241, 255, .16) 82%, rgba(224, 241, 255, .3) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, transparent 18%, transparent 80%, rgba(238, 247, 255, .22) 100%);
}
body.is-night .edge-vignette {
  background:
    radial-gradient(125% 100% at 50% 42%, transparent 50%, rgba(4, 14, 27, .16) 82%, rgba(3, 10, 20, .34) 100%),
    linear-gradient(180deg, rgba(4, 13, 25, .2) 0%, transparent 22%, transparent 78%, rgba(2, 8, 17, .3) 100%);
}

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background:
    radial-gradient(90% 85% at 82% 8%, rgba(111, 185, 255, .22), transparent 55%),
    linear-gradient(145deg, #f7fbff 0%, #ecf6ff 54%, #f8fcff 100%);
  color: var(--ink);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.loader-orb {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(34px);
  background: radial-gradient(circle at 36% 34%, rgba(112, 185, 255, .38), rgba(218, 240, 255, .06) 58%, transparent 72%);
}
.orb-a { width: 78vw; height: 78vw; right: -24vw; top: -36vw; }
.orb-b { width: 56vw; height: 56vw; left: -20vw; bottom: -30vw; opacity: .62; }
.loader-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28, 99, 160, .15) .6px, transparent .6px);
  background-size: 23px 23px;
  -webkit-mask-image: radial-gradient(78% 74% at 53% 48%, #000 0%, rgba(0,0,0,.7) 55%, transparent 100%);
  mask-image: radial-gradient(78% 74% at 53% 48%, #000 0%, rgba(0,0,0,.7) 55%, transparent 100%);
  opacity: .7;
}
.loader-river {
  position: absolute; left: -12%; top: 62%; width: 126%; height: 30vw;
  border-top: 1px solid rgba(80, 153, 220, .18);
  border-radius: 50%;
  transform: rotate(-7deg);
  background: linear-gradient(180deg, rgba(187, 225, 255, .18), transparent 36%);
}
.loader-river::before, .loader-river::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 153, 220, .2) 25%, rgba(80, 153, 220, .12) 72%, transparent);
}
.loader-river::before { top: 38px; }
.loader-river::after { top: 82px; opacity: .6; }
.loader::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 44%, rgba(255, 255, 255, .38));
}
.loader-top {
  position: absolute; top: 34px; left: 42px; right: 42px;
  display: flex; align-items: center; gap: 16px; z-index: 2;
}
.loader-coord { font-family: var(--mono); color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.loader-main {
  position: absolute; z-index: 2; left: 8.5vw; top: 50%; transform: translateY(-50%);
  width: min(660px, 72vw);
}
.loader-kicker {
  color: var(--blue-deep); font-size: 10px; font-weight: 600; letter-spacing: .2em;
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.tiny-rule { width: 30px; height: 1px; background: var(--blue); display: inline-block; opacity: .55; }
.loader h1 {
  margin: 0; font-family: var(--sans); font-weight: 600; font-size: clamp(48px, 7vw, 102px);
  letter-spacing: -.06em; line-height: .94; color: var(--ink);
}
.loader h1 .thin {
  display: block; font-family: var(--sans); font-weight: 400; font-size: clamp(20px, 2vw, 29px);
  letter-spacing: .2em; color: var(--ink-2); margin-top: 19px;
}
.loader-sub {
  font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .42em; color: var(--blue-deep);
  margin: 23px 0 56px; opacity: .78;
}
.loader-status-row {
  display: flex; justify-content: space-between; align-items: baseline; max-width: 530px;
  font-size: 11px; color: var(--muted); letter-spacing: .06em;
}
#loaderPercent { font-family: var(--mono); font-size: 18px; color: var(--blue); letter-spacing: .02em; }
.loader-progress {
  width: min(530px, 100%); height: 3px; background: rgba(33, 106, 168, .12); margin-top: 16px; overflow: visible; position: relative;
  border-radius: 99px;
}
.loader-progress i {
  display: block; height: 3px; width: 0%; background: linear-gradient(90deg, rgba(94, 176, 255, .4), var(--blue));
  border-radius: 99px; transition: width .6s var(--ease); position: relative;
}
.loader-progress i::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); box-shadow: 0 0 18px rgba(10, 124, 255, .35);
}
.loader-details {
  display: flex; justify-content: space-between; max-width: 530px; margin-top: 15px;
  font-family: var(--mono); color: var(--faint); font-size: 9px; letter-spacing: .12em;
}
.loader-footer {
  position: absolute; z-index: 2; bottom: 32px; left: 42px; right: 42px;
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; color: var(--faint);
}
.loader-main::before {
  content: ""; position: absolute; left: -32px; top: -24px; width: 1px; height: 68px;
  background: linear-gradient(180deg, transparent, rgba(10, 124, 255, .45), transparent);
}

/* ============ BRAND / SEAL ============ */
.seal {
  width: 46px; height: 46px; flex: none; position: relative;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #3ba7ff, #0870eb);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 14px;
  box-shadow: 0 7px 18px rgba(7, 87, 191, .24), inset 0 1px 0 rgba(255, 255, 255, .34);
}
.seal::before, .seal::after {
  content: ""; position: absolute; width: 4px; height: 4px; border: 1px solid rgba(255, 255, 255, .5);
}
.seal::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; border-radius: 2px 0 0; }
.seal::after { right: 5px; bottom: 5px; border-left: 0; border-top: 0; border-radius: 0 0 2px; }
.seal span { font-size: 24px; line-height: 1; font-weight: 500; letter-spacing: .02em; transform: translateY(-1px); }
.seal.small { width: 38px; height: 38px; border-radius: 12px; }
.seal.small span { font-size: 20px; }

/* ============ TOP BAR ============ */
.topbar {
  position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 72px;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(248, 252, 255, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(24, 79, 136, .08), 0 8px 30px rgba(23, 78, 134, .06);
  backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2);
  color: var(--ink); pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand .seal { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 5px 14px rgba(7, 87, 191, .2); }
.brand .seal span { font-size: 20px; }
.brand-words { display: flex; flex-direction: column; gap: 3px; }
.brand-words strong { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1; color: var(--ink); }
.brand-words span { font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.view-switch {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 4px 14px rgba(30, 87, 143, .06);
}
.view-switch button {
  display: flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 16px;
  color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: .02em;
  transition: color .22s, background .22s, box-shadow .22s;
}
.view-switch button .ico { width: 14px; height: 14px; opacity: .72; }
.view-switch button:hover { color: var(--blue); background: rgba(234, 244, 255, .8); }
.view-switch button.is-active {
  color: #fff; background: var(--blue);
  box-shadow: 0 5px 14px rgba(10, 124, 255, .26), inset 0 1px 0 rgba(255,255,255,.22);
}
.view-switch button.is-active .ico { opacity: .95; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.weather-pill {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .68); border-radius: 999px;
  font-size: 10px; font-weight: 500; letter-spacing: .01em; color: var(--ink-2);
}
.weather-pill .ico { width: 14px; height: 14px; color: var(--blue); }
.weather-pill em { font-style: normal; color: var(--muted); border-left: 1px solid var(--line); padding-left: 9px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); border: 1px solid var(--line); background: rgba(255, 255, 255, .68);
  transition: .2s;
}
.icon-btn:hover { color: var(--blue); border-color: rgba(10, 124, 255, .28); background: #fff; box-shadow: 0 4px 14px rgba(24, 79, 136, .09); }
.icon-btn.is-on { color: var(--blue); background: var(--sky); border-color: rgba(10, 124, 255, .3); }
.icon-btn .ico { width: 15px; height: 15px; }
.eyebrow { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .18em; color: var(--blue); }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none;
  box-shadow: 0 0 0 3px rgba(10, 124, 255, .09); animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 2px rgba(10,124,255,.08); } 50% { box-shadow: 0 0 0 5px rgba(10,124,255,.03); } }

/* ============ SIDEBAR ============ */
.sidebar {
  position: absolute; z-index: 20; top: 92px; bottom: 112px; left: 24px; width: 268px;
  display: flex; flex-direction: column; padding: 18px 0 11px; border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius); background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(26, 84, 140, .08), var(--shadow-soft);
  backdrop-filter: blur(30px) saturate(1.15); -webkit-backdrop-filter: blur(30px) saturate(1.15);
  transition: opacity .4s, transform .5s var(--ease);
}
.side-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 19px; }
.side-head h2 { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin: 4px 0 0; color: var(--ink); }
.count {
  font-family: var(--mono); font-size: 9px; color: var(--blue-deep);
  background: rgba(10, 124, 255, .07); border: 1px solid rgba(10, 124, 255, .14); border-radius: 999px; padding: 4px 8px;
  margin-top: 3px; letter-spacing: .03em;
}
.side-rule { height: 1px; margin: 14px 19px 5px; background: var(--line); }
.landmark-list { flex: 1; min-height: 0; overflow: auto; padding: 0 9px; scrollbar-width: thin; }
.landmark-item {
  width: 100%; display: grid; grid-template-columns: 23px 1fr 13px; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 10px; text-align: left; color: var(--ink-2);
  transition: color .22s, background .22s, box-shadow .22s; position: relative;
}
.landmark-item:hover { color: var(--blue-deep); background: rgba(234, 245, 255, .72); }
.landmark-item.is-active { color: var(--blue-deep); background: linear-gradient(90deg, rgba(218, 239, 255, .94), rgba(244, 250, 255, .9)); box-shadow: inset 0 0 0 1px rgba(10, 124, 255, .08); }
.landmark-item.is-active::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--blue); transform: translateY(-50%);
}
.landmark-num { font-family: var(--mono); font-size: 8.5px; color: var(--faint); letter-spacing: -.02em; }
.landmark-item.is-active .landmark-num { color: rgba(10, 108, 220, .7); }
.landmark-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.landmark-copy strong {
  font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1.28; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.landmark-copy span { font-size: 7px; line-height: 1.1; letter-spacing: .1em; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landmark-arrow { font-family: var(--sans); font-size: 13px; opacity: 0; transform: translateX(-3px); transition: .2s; color: var(--blue); }
.landmark-item:hover .landmark-arrow, .landmark-item.is-active .landmark-arrow { opacity: 1; transform: none; }
.side-foot { padding: 9px 19px 0; margin-top: 4px; border-top: 1px solid var(--line); }
.data-chip { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); letter-spacing: .01em; margin-bottom: 8px; }
.data-chip em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 8px; color: var(--faint); }
.text-btn {
  padding: 0; display: flex; justify-content: space-between; width: 100%;
  color: var(--muted); font-size: 10px; letter-spacing: .01em; transition: color .2s;
}
.text-btn span { color: var(--blue); font-size: 12px; }
.text-btn:hover { color: var(--blue); }

/* ============ MAP TOOLS ============ */
.map-tools {
  position: absolute; z-index: 21; right: 24px; top: 94px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: opacity .3s, transform .3s;
}
.compass { width: 50px; height: 50px; position: relative; cursor: pointer; transition: transform .25s var(--ease); }
.compass:hover { transform: translateY(-1px); }
.compass-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.94);
  background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px rgba(26,84,140,.1), 0 8px 24px rgba(24,79,136,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.compass-ring::before, .compass-ring::after { content: ""; position: absolute; background: rgba(52, 108, 160, .22); }
.compass-ring::before { left: 50%; top: 5px; width: 1px; height: 4px; box-shadow: 0 36px 0 rgba(52,108,160,.1); }
.compass-ring::after { top: 50%; left: 5px; height: 1px; width: 4px; box-shadow: 36px 0 0 rgba(52,108,160,.1); }
.compass-needle {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 23px; transform-origin: 50% 0;
  transform: translate(-50%, -50%) rotate(0deg); transition: transform .12s linear;
}
.compass-needle::before {
  content: ""; position: absolute; left: -3.5px; top: 0; width: 0; height: 0;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 13px solid var(--blue);
}
.compass-needle::after {
  content: ""; position: absolute; left: -2.5px; top: 13px; width: 0; height: 0;
  border-left: 2.5px solid transparent; border-right: 2.5px solid transparent; border-top: 9px solid rgba(39, 96, 148, .28);
}
.compass-needle span { position: absolute; left: -6px; top: -15px; font-family: var(--mono); font-size: 8px; color: var(--blue-deep); letter-spacing: .04em; }
.tool-stack, .zoom-stack {
  display: flex; flex-direction: column; padding: 5px; gap: 2px;
  border: 1px solid rgba(255,255,255,.94); border-radius: 14px; background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(26,84,140,.08), 0 10px 28px rgba(24,79,136,.11);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.tool {
  width: 38px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 9px; color: var(--muted); transition: color .2s, background .2s;
}
.tool .ico { width: 15px; height: 15px; }
.tool span { font-size: 7px; font-weight: 500; letter-spacing: .06em; }
.tool:hover { color: var(--blue-deep); background: rgba(234, 245, 255, .9); }
.tool.is-on { color: var(--blue-deep); background: linear-gradient(180deg, #edf7ff, #e2f1ff); }
.tool.is-off { color: var(--faint); opacity: .58; }
.tool.tiny { width: 34px; height: 30px; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.tool.tiny .ico { width: 13px; height: 13px; }
.zoom-stack { margin-top: 0; }

/* ============ MAP LABELS ============ */
.map-labels { position: absolute; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; }
.map-label {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; opacity: 0;
  transition: opacity .35s, filter .25s; will-change: left, top;
}
.map-label.is-visible { opacity: 1; }
.map-label .pin-caption {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 10px 5px 8px; border: 1px solid rgba(255,255,255,.95); border-radius: 999px;
  background: rgba(255, 255, 255, .86); box-shadow: 0 5px 18px rgba(23, 78, 134, .13), inset 0 0 0 1px rgba(26,84,140,.07);
  color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: border-color .2s, background .2s, transform .2s, color .2s;
}
.map-label .pin-caption::before {
  content: ""; width: 5px; height: 5px; background: var(--blue); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(10,124,255,.1);
}
.map-label .pin-caption em { display: none; }
.map-label .pin-stem {
  width: 1px; height: 18px;
  background: linear-gradient(180deg, rgba(10,124,255,.48), rgba(10,124,255,.08));
  position: relative;
}
.map-label .pin-stem::after {
  content: ""; position: absolute; left: -2.5px; bottom: -2px; width: 5px; height: 5px;
  border: 1px solid rgba(10, 124, 255, .66); border-radius: 50%; background: #fff;
}
.map-label:hover .pin-caption, .map-label.is-active .pin-caption {
  border-color: rgba(255,255,255,.98);
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 22px rgba(10, 124, 255, .24);
  transform: translateY(-2px);
}
.map-label:hover .pin-caption::before, .map-label.is-active .pin-caption::before { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.map-label.is-major .pin-caption { font-size: 11.5px; }
.map-label.is-major .pin-caption em, .map-label.is-minor .pin-caption em { display: none; }
.map-label.is-hidden { opacity: 0 !important; pointer-events: none; }

/* ============ INFO CARD ============ */
.info-card {
  position: absolute; z-index: 35; right: 24px; top: 92px; width: min(374px, calc(100vw - 40px));
  border: 1px solid rgba(255,255,255,.96); border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, .95);
  box-shadow: inset 0 0 0 1px rgba(26,84,140,.08), 0 28px 80px rgba(18, 69, 122, .2);
  backdrop-filter: blur(30px) saturate(1.15); -webkit-backdrop-filter: blur(30px) saturate(1.15);
  transform: translateX(20px) scale(.985); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .35s var(--ease);
}
.info-card.is-open { transform: none; opacity: 1; pointer-events: auto; }
.card-close {
  position: absolute; z-index: 3; top: 12px; right: 12px; width: 28px; height: 28px;
  border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 3px 12px rgba(17, 58, 99, .14); font-family: var(--sans); font-size: 18px; line-height: 1; transition: .2s;
}
.card-close:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.card-media { position: relative; height: 214px; overflow: hidden; background: var(--sky); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02);
  transition: transform 1.4s var(--ease), opacity .4s; opacity: 1;
}
.info-card:hover .card-media img { transform: scale(1.06); }
.card-media-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, transparent 26%, rgba(8, 27, 47, .04) 52%, rgba(8, 28, 49, .78) 100%);
}
.card-media-meta { position: absolute; top: 13px; left: 15px; display: flex; align-items: center; gap: 9px; }
.card-media-meta span {
  font-size: 8px; font-weight: 600; letter-spacing: .08em; color: var(--blue-deep);
  border: 1px solid rgba(255,255,255,.8); background: rgba(255, 255, 255, .84); padding: 4px 8px; border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card-media-meta em { font-family: var(--mono); font-style: normal; font-size: 8px; letter-spacing: .04em; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.card-title { position: absolute; bottom: 16px; left: 19px; right: 19px; }
.card-title span { display: block; font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: .15em; color: rgba(255,255,255,.76); margin-bottom: 6px; }
.card-title h2 {
  margin: 0; font-family: var(--sans); font-weight: 600; font-size: 28px; letter-spacing: -.03em; line-height: 1.08;
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.22);
}
.card-body { padding: 17px 19px 16px; }
.card-body p {
  margin: 0 0 15px; color: var(--ink-2); font-size: 11.5px; font-weight: 400; line-height: 1.9;
  letter-spacing: .015em; text-align: justify;
}
.fact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(240,248,255,.65), rgba(255,255,255,.4));
  border-radius: 10px; overflow: hidden;
}
.fact-item { padding: 11px 9px 12px; border-right: 1px solid var(--line); }
.fact-item:last-child { border-right: 0; }
.fact-item span { display: block; font-size: 8px; font-weight: 500; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; white-space: nowrap; }
.fact-item strong { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--blue-ink); letter-spacing: -.01em; }
.card-coord { padding: 12px 1px 14px; display: flex; justify-content: space-between; align-items: center; }
.card-coord span { font-size: 8px; color: var(--faint); letter-spacing: .06em; }
.card-coord strong { font-family: var(--mono); font-size: 8px; font-weight: 400; color: var(--muted); letter-spacing: -.01em; }
.card-actions { display: flex; gap: 7px; }
.primary-btn {
  flex: 1; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border-radius: 12px; font-size: 10px; font-weight: 600;
  letter-spacing: .04em; transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(10, 124, 255, .22);
}
.primary-btn .ico { width: 13px; height: 13px; }
.primary-btn:hover { background: #006fe8; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10, 124, 255, .28); }
.ghost-btn {
  height: 42px; flex: 0 0 auto; padding: 0 13px; display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(10, 124, 255, .18); border-radius: 12px; font-size: 9px; font-weight: 500;
  color: var(--blue-deep); background: rgba(239, 247, 255, .9); transition: .2s;
}
.ghost-btn .ico { width: 14px; height: 14px; }
.ghost-btn:hover { color: var(--blue); border-color: rgba(10, 124, 255, .38); background: #fff; }
.card-foot {
  display: flex; justify-content: space-between; padding: 10px 19px; background: rgba(243, 249, 255, .9);
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: var(--faint);
}

/* ============ TIMELINE ============ */
.timeline {
  position: absolute; z-index: 22; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(1080px, calc(100vw - 48px)); min-height: 92px;
  display: grid; grid-template-columns: 146px minmax(220px, 1fr) 156px; align-items: center; gap: 22px;
  padding: 15px 19px; border-radius: 20px; border: 1px solid rgba(255,255,255,.95);
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 0 0 1px rgba(26,84,140,.08), 0 20px 50px rgba(19, 71, 124, .14);
  backdrop-filter: blur(30px) saturate(1.18); -webkit-backdrop-filter: blur(30px) saturate(1.18);
  color: var(--ink);
  transition: opacity .4s, transform .4s var(--ease);
}
.time-block { min-width: 0; }
.date-line { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.date-line i { font-style: normal; color: var(--faint); }
.date-line #phaseLabel { color: var(--blue); font-weight: 600; }
.clock-line { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; }
.clock-line span {
  font-family: var(--sans); font-weight: 600; font-size: 31px; letter-spacing: -.045em; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.clock-line em { font-style: normal; font-family: var(--sans); font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.timeline-track-wrap { align-self: center; min-width: 0; padding: 1px 0 0; }
.timeline-ticks { height: 13px; position: relative; margin: 0 2px 3px; }
.timeline-ticks span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 7px; letter-spacing: .02em; color: var(--faint); }
.timeline-ticks span:first-child { transform: none; }
.timeline-ticks span:last-child { transform: translateX(-100%); }
.timeline-track {
  height: 14px; border-radius: 99px; position: relative; cursor: pointer; touch-action: none;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 4px rgba(19, 70, 122, .11), 0 0 0 1px rgba(26,84,140,.08);
}
.timeline-sky {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; opacity: 1;
  background: linear-gradient(90deg,
    #315b87 0%, #4c76a1 17%, #c7def3 25%, #ecf7ff 30%,
    #d9edff 42%, #e9f6ff 50%, #fbf8f0 61%, #f3d7bd 67%,
    #c4daed 73%, #6588aa 81%, #3e6388 91%, #294b6c 100%);
}
.timeline-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%, rgba(22,65,107,.08)); }
.timeline-progress {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 99px 0 0 99px;
  background: rgba(255, 255, 255, .09); border-right: 1px solid rgba(255, 255, 255, .45);
  pointer-events: none;
}
.timeline-events { position: absolute; inset: 0; pointer-events: none; }
.event { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(255, 255, 255, .45); }
.event b {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 7px; font-weight: 500; letter-spacing: .01em; color: var(--muted); white-space: nowrap;
}
.event.sunrise { background: rgba(255, 255, 255, .6); }
.event.sunset { background: rgba(255, 255, 255, .55); }
.timeline-handle {
  position: absolute; top: 50%; left: 67.5%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  background: transparent; outline: none; z-index: 2; cursor: grab;
}
.timeline-handle:active { cursor: grabbing; }
.timeline-handle:focus-visible .handle-knob { box-shadow: 0 0 0 4px rgba(10, 124, 255, .18); }
.handle-glow {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px;
  border-radius: 50%; background: radial-gradient(circle, rgba(10, 124, 255, .22), transparent 68%);
  animation: handleGlow 3s ease-in-out infinite;
}
@keyframes handleGlow { 0%,100% { transform: scale(.82); opacity: .62; } 50% { transform: scale(1.15); opacity: 1; } }
.handle-knob {
  position: absolute; inset: 1px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: 0 3px 12px rgba(10, 95, 190, .22), inset 0 0 0 2px rgba(255,255,255,.8);
  transition: box-shadow .2s, transform .2s;
}
.timeline-handle:hover .handle-knob { transform: scale(1.06); }
.handle-knob .ico { width: 10px; height: 10px; }
.handle-tip {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); white-space: nowrap;
  background: rgba(255, 255, 255, .98); border: 1px solid rgba(10, 124, 255, .16); border-radius: 7px;
  box-shadow: 0 5px 16px rgba(18, 66, 113, .15);
  padding: 4px 7px; color: var(--blue-deep); font-family: var(--mono); font-size: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.timeline-handle:hover .handle-tip, .timeline-handle:focus-visible .handle-tip { opacity: 1; }
.timeline-caption { display: flex; justify-content: space-between; margin-top: 9px; color: var(--faint); font-size: 7px; font-weight: 500; letter-spacing: .01em; }
.timeline-caption span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
.legend-dot.dawn { background: var(--warm); }
.legend-dot.night { background: #5e86ac; }
.time-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.round-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--blue); flex: none; transition: .2s;
  box-shadow: 0 6px 16px rgba(10, 124, 255, .24);
}
.round-btn:hover { background: #006ee8; transform: scale(1.04); }
.round-btn .ico { width: 13px; height: 13px; }
.live-btn {
  height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); background: rgba(255,255,255,.7);
  font-size: 8px; font-weight: 500; letter-spacing: .01em; transition: .2s;
}
.live-btn .pulse-dot { width: 4px; height: 4px; background: var(--mint); box-shadow: 0 0 0 2px rgba(50,184,160,.12); }
.live-btn:hover { color: var(--blue); border-color: rgba(10,124,255,.28); background: #fff; }
.speed-mini { font-family: var(--mono); color: var(--faint); font-size: 8px; cursor: pointer; }

/* ============ ROAM ============ */
.roam-ui { position: absolute; inset: 0; z-index: 28; display: none; pointer-events: none; }
body.roaming .roam-ui { display: block; }
.roam-ui::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 50% 50%, transparent 42%, rgba(10,43,73,.22) 100%); }
.roam-top { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; z-index: 8; pointer-events: none; }
.roam-top > * { pointer-events: auto; }
.roam-location {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.92);
  background: rgba(255, 255, 255, .8); box-shadow: 0 6px 18px rgba(20, 75, 129, .12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 10px;
  font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2);
}
.ghost-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 7px; padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.94); border-radius: 10px; background: rgba(255,255,255,.82);
  box-shadow: 0 6px 18px rgba(20, 75, 129, .12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: var(--ink-2); font-size: 9px; font-weight: 500; letter-spacing: .02em; transition: .2s;
}
.ghost-pill:hover { color: var(--blue); border-color: rgba(10,124,255,.3); background: #fff; }
.ghost-pill .ico { width: 13px; height: 13px; }
.ghost-pill em { font-family: var(--mono); font-style: normal; color: var(--faint); font-size: 7px; margin-left: 3px; }
.roam-crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); z-index: 2; opacity: .7; }
.roam-crosshair span, .roam-crosshair i { position: absolute; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(20, 68, 112, .2), 0 0 8px rgba(255,255,255,.6); }
.roam-crosshair span { left: 50%; top: 4px; bottom: 4px; width: 1px; }
.roam-crosshair i { top: 50%; left: 4px; right: 4px; height: 1px; }
.roam-prompt {
  position: absolute; left: 50%; top: calc(50% + 38px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 3; opacity: 0; transition: opacity .3s;
  font-size: 9px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2);
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.98); box-shadow: 0 8px 24px rgba(20,75,129,.14);
  padding: 7px 10px; border-radius: 10px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); pointer-events: auto;
}
.roam-prompt.is-visible { opacity: 1; }
.roam-prompt kbd { background: var(--blue); color: #fff; border-color: transparent; }
.roam-bottom { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.roam-instructions {
  display: flex; flex-wrap: wrap; gap: 8px 13px; align-items: center;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.94); border-radius: 12px;
  padding: 10px 12px; box-shadow: 0 8px 24px rgba(20,75,129,.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.roam-instructions div { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .01em; }
kbd {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px;
  border: 1px solid rgba(26,84,140,.18); border-radius: 5px;
  font-family: var(--mono); font-size: 8px; color: var(--ink-2);
  background: rgba(255,255,255,.75); box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(24,79,136,.05);
}
.roam-instructions kbd { color: var(--blue-deep); border-color: rgba(10,124,255,.16); background: rgba(238,247,255,.9); }
.roam-readout {
  display: flex; align-items: baseline; gap: 12px; color: var(--ink-2);
  background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.95); border-radius: 12px;
  padding: 8px 13px; box-shadow: 0 8px 24px rgba(20,75,129,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.roam-readout span { font-family: var(--sans); font-size: 8px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.roam-readout em { font-family: var(--sans); font-style: normal; font-size: 19px; color: var(--blue-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.roam-lock {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  background: rgba(228, 242, 255, .38); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  pointer-events: none; opacity: 0; transition: opacity .25s; cursor: pointer;
}
.roam-lock.is-visible { opacity: 1; pointer-events: auto; }
.lock-inner {
  text-align: center; padding: 25px 30px; border: 1px solid rgba(255,255,255,.96); border-radius: 18px;
  background: rgba(255,255,255,.9); box-shadow: 0 24px 70px rgba(14, 60, 107, .2);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.reticle-anim { width: 30px; height: 30px; border: 1px solid rgba(10,124,255,.55); border-radius: 50%; margin: 0 auto 14px; position: relative; }
.reticle-anim::before, .reticle-anim::after { content: ""; position: absolute; background: var(--blue); }
.reticle-anim::before { left: 50%; top: -5px; width: 1px; height: 9px; }
.reticle-anim::after { top: 50%; left: -5px; width: 9px; height: 1px; }
.lock-inner strong { display: block; font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--ink); margin-bottom: 6px; }
.lock-inner span { display: block; font-size: 9px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
body.roaming .topbar { opacity: 0; pointer-events: none; }
body.roaming .sidebar, body.roaming .map-tools, body.roaming .map-labels,
body.roaming .timeline, body.roaming .orientation-hint, body.roaming .info-card { opacity: 0 !important; pointer-events: none !important; }
body.roaming #scene { cursor: none; }
body.roaming .edge-vignette { background: radial-gradient(120% 100% at 50% 42%, transparent 45%, rgba(209,233,255,.12) 78%, rgba(18,64,105,.28) 100%); }
body.touring .sidebar, body.touring .map-tools, body.touring .map-labels, body.touring .orientation-hint { opacity: 0 !important; pointer-events: none !important; }
body.touring #scene { cursor: pointer; }

/* ============ MISC ============ */
.toast {
  position: absolute; z-index: 100; left: 50%; bottom: 142px; transform: translate(-50%, 8px);
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(255,255,255,.96); border-radius: 12px;
  padding: 9px 15px; font-size: 10px; font-weight: 500; letter-spacing: .01em; color: var(--ink-2);
  box-shadow: 0 12px 34px rgba(18, 66, 112, .16), inset 3px 0 0 var(--blue);
  opacity: 0; pointer-events: none; transition: .35s var(--ease); backdrop-filter: blur(20px); white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.orientation-hint {
  position: absolute; z-index: 15; left: 50%; bottom: 151px; transform: translateX(-50%);
  color: var(--ink-2); font-size: 9px; font-weight: 500; letter-spacing: .02em; pointer-events: none;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: 999px;
  padding: 7px 13px; box-shadow: 0 4px 16px rgba(18,66,112,.08); backdrop-filter: blur(16px);
  transition: opacity .8s; white-space: nowrap;
}
.orientation-hint.is-hidden { opacity: 0; }

.modal-backdrop {
  position: absolute; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(214, 232, 249, .56); backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  width: min(780px, 100%); max-height: min(90vh, 800px); overflow: auto; position: relative;
  border: 1px solid rgba(255,255,255,.97); border-radius: 22px; padding: 32px 34px 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: inset 0 0 0 1px rgba(26,84,140,.08), 0 36px 100px rgba(13, 56, 99, .24);
  transform: translateY(14px) scale(.985); transition: transform .4s var(--ease);
}
.modal-backdrop.is-open .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 15px; width: 28px; height: 28px; border-radius: 50%;
  color: var(--ink-2); border: 1px solid var(--line); background: rgba(255,255,255,.8);
  font-size: 17px; transition: .2s;
}
.modal-close:hover { color: var(--blue); border-color: rgba(10,124,255,.28); background: var(--ice); }
.modal h2 { margin: 7px 0 9px; font-family: var(--sans); font-weight: 600; font-size: 31px; letter-spacing: -.03em; color: var(--ink); }
.modal-lede { margin: 0 0 24px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .01em; line-height: 1.8; max-width: 510px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.guide-block { padding: 16px 17px 15px; background: rgba(246, 251, 255, .9); }
.guide-num { font-family: var(--mono); font-size: 8px; color: var(--blue); font-weight: 600; letter-spacing: .04em; }
.guide-block h3 { margin: 6px 0 5px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.guide-block p { margin: 0; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.8; letter-spacing: .01em; }
.data-note {
  display: grid; grid-template-columns: 155px 1fr; gap: 20px; margin-top: 22px; padding: 18px 0 21px;
  border-top: 1px solid var(--line);
}
.data-note h3 { margin: 5px 0 0; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.data-note p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.9; letter-spacing: .01em; }
.data-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.data-stats span {
  font-family: var(--sans); font-size: 7.5px; font-weight: 500; letter-spacing: .01em; color: var(--blue-deep);
  border: 1px solid rgba(10, 124, 255, .14); background: rgba(238,247,255,.8); padding: 4px 7px; border-radius: 6px;
}
.modal-foot {
  display: flex; justify-content: space-between; gap: 16px; margin: 0 -34px; padding: 10px 34px;
  border-top: 1px solid var(--line); background: rgba(246,251,255,.75);
  font-family: var(--mono); font-size: 7px; color: var(--faint); letter-spacing: .04em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  .topbar { padding: 0 18px; }
  .sidebar { left: 18px; width: 250px; }
  .map-tools { right: 18px; }
  .timeline { width: calc(100vw - 36px); grid-template-columns: 134px minmax(180px, 1fr) 148px; gap: 15px; }
  .weather-pill em { display: none; }
}
@media (max-width: 900px) {
  .topbar { height: 64px; padding: 0 16px; }
  .view-switch { position: absolute; left: 50%; transform: translateX(-50%); top: 13px; }
  .view-switch button { padding: 7px 12px; }
  .view-switch button span { display: none; }
  .weather-pill { display: none; }
  .brand-words span { display: none; }
  .sidebar { top: 80px; bottom: 132px; left: 16px; width: 228px; }
  .side-head h2 { font-size: 19px; }
  .map-tools { right: 16px; top: 82px; }
  .compass { width: 44px; height: 44px; }
  .tool { width: 34px; height: 34px; }
  .timeline { bottom: 12px; width: calc(100vw - 28px); padding: 12px 14px; grid-template-columns: 108px 1fr 108px; gap: 10px; min-height: 82px; }
  .clock-line span { font-size: 24px; }
  .timeline-ticks { display: none; }
  .time-actions { gap: 5px; }
  .live-btn { display: none; }
  .info-card { top: 78px; right: 16px; }
  .orientation-hint { bottom: 114px; }
}
@media (max-width: 660px) {
  .topbar { height: 58px; }
  .brand .seal { width: 32px; height: 32px; border-radius: 10px; }
  .brand .seal span { font-size: 18px; }
  .brand-words strong { font-size: 16px; }
  .view-switch { top: 11px; padding: 3px; }
  .view-switch button { padding: 6px 9px; }
  .top-actions .icon-btn { width: 30px; height: 30px; }
  .sidebar { display: none; }
  .map-tools { top: auto; bottom: 103px; flex-direction: row-reverse; gap: 8px; right: 12px; }
  .compass { display: none; }
  .tool-stack, .zoom-stack { flex-direction: row; }
  .tool-stack .tool:nth-child(1), .tool-stack .tool:nth-child(4) { display: none; }
  .tool-stack .tool { width: 32px; height: 32px; }
  .zoom-stack .tool { width: 30px; height: 32px; }
  .tool span { display: none; }
  .timeline { grid-template-columns: 82px 1fr; gap: 8px; padding: 10px 12px; min-height: 70px; bottom: 8px; width: calc(100vw - 16px); }
  .time-block .date-line { font-size: 8px; }
  .clock-line span { font-size: 21px; }
  .clock-line em { display: none; }
  .timeline-caption { display: none; }
  .time-actions { position: absolute; right: 10px; top: 9px; }
  .time-actions .round-btn { width: 28px; height: 28px; }
  .time-actions .round-btn .ico { width: 10px; height: 10px; }
  .speed-mini { display: none; }
  .timeline-track-wrap { padding-top: 7px; }
  .timeline-track { height: 12px; margin-right: 52px; }
  .timeline-ticks { display: none; }
  .info-card { left: 8px; right: 8px; width: auto; top: auto; bottom: 86px; max-height: calc(100vh - 110px); overflow: auto; border-radius: 20px; }
  .card-media { height: 170px; }
  .card-title h2 { font-size: 24px; }
  .card-body { padding: 15px 16px; }
  .card-body p { font-size: 11px; }
  .card-foot { padding: 8px 16px; }
  .map-labels .map-label .pin-caption { font-size: 9px; padding: 4px 8px; }
  .map-label .pin-caption em { display: none; }
  .roam-instructions { display: none; }
  .roam-bottom { left: 14px; right: 14px; bottom: 14px; }
  .roam-top { left: 14px; right: 14px; top: 13px; }
  .loader-main { left: 8vw; width: 84vw; }
  .loader-top { left: 22px; top: 22px; }
  .loader-footer { left: 22px; right: 22px; bottom: 20px; }
  .loader-footer span:first-child { display: none; }
  .modal { padding: 26px 19px 0; border-radius: 20px; }
  .guide-grid { grid-template-columns: 1fr; }
  .data-note { grid-template-columns: 1fr; gap: 8px; }
  .modal-foot { margin: 0 -19px; padding: 10px 19px; flex-direction: column; gap: 4px; }
  .modal h2 { font-size: 25px; }
  .card-actions .ghost-btn span { display: none; }
  .toast { bottom: 94px; max-width: 88vw; white-space: normal; text-align: center; }
  .orientation-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
