:root {
  color-scheme: dark;
  --ink: #eef4e9;
  --muted: #9eaa9b;
  --line: rgba(197, 215, 181, .17);
  --mint: #9fe2bc;
  --amber: #e4b35e;
  --bg: #071015;
  --panel: rgba(8, 18, 22, .72);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; }
body { overflow: hidden; }
.vm-shell { position: relative; width: 100vw; height: 100vh; min-height: 480px; overflow: hidden; background: radial-gradient(ellipse at 54% 48%, #0f2226 0%, #071015 62%, #040a0d 100%); }
#vm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: grab; }
#vm-canvas:active { cursor: grabbing; }
.vm-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 52% 50%, transparent 40%, rgba(2, 7, 9, .48) 100%), linear-gradient(180deg, rgba(2, 7, 9, .28), transparent 24%, transparent 76%, rgba(2, 7, 9, .55)); }
.vm-head { position: absolute; left: clamp(20px, 5vw, 72px); top: clamp(22px, 5vh, 62px); pointer-events: none; max-width: 380px; }
.vm-back { display: inline-block; pointer-events: auto; color: var(--mint); text-decoration: none; font: 600 10px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .13em; text-transform: uppercase; opacity: .86; }
.vm-kicker { margin: 24px 0 8px; color: var(--amber); font: 600 9px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .18em; text-transform: uppercase; }
.vm-head h1 { margin: 0; color: #f1f0e5; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.7rem, 6.6vw, 5.8rem); font-weight: 400; letter-spacing: -.055em; line-height: .92; text-shadow: 0 10px 50px rgba(0, 0, 0, .45); }
.vm-sub { margin: 16px 0 0; max-width: 32ch; color: var(--muted); font-size: clamp(11px, 1.2vw, 13px); line-height: 1.55; }
.vm-panel { position: absolute; right: clamp(16px, 4vw, 58px); top: clamp(86px, 17vh, 158px); width: min(262px, 27vw); padding: 17px 18px 16px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(18px); border-radius: 10px; box-shadow: 0 24px 90px rgba(0, 0, 0, .24); }
.vm-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(197, 215, 181, .08); }
.vm-stat:first-child { padding-top: 0; }
.vm-stat span { color: var(--muted); font: 500 8px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .15em; }
.vm-stat strong { font: 500 10px/1.3 ui-monospace, SFMono-Regular, monospace; color: var(--ink); letter-spacing: .03em; }
.vm-note { margin: 14px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.vm-legend { display: grid; gap: 7px; padding: 10px 0 13px; border-top: 1px solid rgba(197, 215, 181, .08); color: var(--muted); font: 500 8px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .06em; }
.vm-legend span { display: flex; align-items: center; gap: 8px; }
.vm-sw { width: 14px; height: 3px; display: inline-block; border-radius: 2px; }
.vm-sw--active { background: var(--amber); }
.vm-sw--reserve { background: rgba(228, 179, 94, .42); }
.vm-sw--water { background: #2d7276; }
.vm-sw--road { background: #9d9687; }
.vm-meta { margin: 0; color: rgba(158, 170, 155, .65); font: 500 8px/1.4 ui-monospace, SFMono-Regular, monospace; letter-spacing: .05em; text-transform: uppercase; }
.vm-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vm-label { position: absolute; transform: translate(-50%, -130%); padding: 4px 7px 3px; border: 1px solid rgba(228, 179, 94, .55); border-radius: 3px; background: rgba(7, 16, 19, .82); color: #f7e4b7; font: 600 10px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .03em; box-shadow: 0 3px 12px rgba(0, 0, 0, .28); white-space: nowrap; }
.vm-label--reserve { border-color: rgba(205, 178, 128, .34); background: rgba(7, 16, 19, .58); color: rgba(229, 205, 163, .78); font-size: 8px; letter-spacing: .08em; padding: 3px 6px 2px; }
.vm-label--hidden { display: none; }
.vm-loading { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: min(230px, 60vw); padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: rgba(5, 13, 18, .85); color: var(--muted); font: 500 9px/1.3 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.vm-bar { height: 2px; margin-top: 10px; background: rgba(197, 215, 181, .14); overflow: hidden; }
.vm-bar i { display: block; width: 0; height: 100%; background: var(--mint); transition: width .25s ease; }
.vm-error { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); z-index: 4; max-width: 340px; margin: 0; padding: 14px 16px; border: 1px solid rgba(255, 127, 142, .4); border-radius: 8px; background: rgba(30, 8, 12, .88); color: #ffb3bd; font-size: 12px; line-height: 1.5; }
.vm-foot { position: absolute; left: clamp(20px, 5vw, 72px); right: clamp(20px, 5vw, 72px); bottom: 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font: 500 8px/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .62; pointer-events: none; }
@media (max-width: 760px) {
  .vm-head { top: 20px; left: 18px; max-width: 290px; }
  .vm-kicker { margin-top: 18px; }
  .vm-head h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .vm-sub { max-width: 27ch; font-size: 10px; }
  .vm-panel { top: auto; bottom: 40px; right: 12px; width: min(246px, calc(100vw - 24px)); padding: 12px 14px 10px; }
  .vm-note { display: none; }
  .vm-legend { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 8px 0 10px; }
  .vm-stat { padding: 6px 0; }
  .vm-foot { left: 18px; right: 18px; bottom: 13px; font-size: 7px; }
  .vm-foot span:last-child { display: none; }
  .vm-label { padding: 3px 6px 2px; font-size: 9px; }
  .vm-label--reserve { font-size: 7px; }
}
