:root { --bg:#fbfaf7; --ink:#1d1d1f; --mute:#77756f; }
* { box-sizing:border-box }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.4 -apple-system,Helvetica,Arial,sans-serif; }
header { padding:20px 20px 4px; max-width:1100px; margin:auto }
h1 { margin:0; font-size:clamp(26px,6vw,44px); letter-spacing:-.02em }
.vs { color:var(--mute); font-weight:400 }
.sub { margin:4px 0 0; color:var(--mute) }
nav { position:sticky; top:0; z-index:5; display:flex; gap:6px; padding:10px 20px; max-width:1100px; margin:auto;
      overflow-x:auto; background:color-mix(in srgb,var(--bg) 88%,transparent); backdrop-filter:blur(6px) }
nav button { flex:0 0 auto; border:0; border-radius:999px; padding:8px 14px; font-weight:700; font-size:14px;
             background:#eceae4; color:var(--ink); cursor:pointer; display:flex; align-items:center; gap:6px }
nav button i { width:10px; height:10px; border-radius:50%; display:inline-block }
nav button.on { background:var(--ink); color:#fff }
main { max-width:1100px; margin:auto; padding:0 12px }
.stage { position:relative }
#map { width:100%; height:auto; display:block; touch-action:pan-y }
#phase { position:absolute; right:8px; top:4px; font-weight:700; color:#555; font-size:14px }
#phase span { position:absolute; right:0; white-space:nowrap }
#tracks { fill:none; stroke:#c7c5bf; stroke-width:.8; stroke-linejoin:round; stroke-linecap:round; opacity:0 }
#lines path { fill:none; stroke-linecap:round; stroke-linejoin:round }
#stations circle { fill:#fff }
#labels text { font-size:9px; fill:#333; paint-order:stroke; stroke:var(--bg); stroke-width:2.5px; stroke-linejoin:round }
.controls { display:flex; gap:10px; align-items:center; padding:8px 8px 0 }
.controls button { border:0; border-radius:10px; padding:10px 14px; font-weight:700; background:var(--ink); color:#fff; cursor:pointer; min-width:48px }
#scrub { flex:1; accent-color:var(--ink) }
#stat { color:var(--mute); padding:4px 8px; margin:0; font-size:14px; min-height:2.8em }
footer { max-width:1100px; margin:24px auto; padding:0 20px; color:var(--mute); font-size:12px }
footer a { color:inherit }
footer { padding-bottom:80px }

#ties { fill:none; stroke:#c7c5bf; opacity:0 }
.legend { color:var(--mute); font-size:12px; padding:0 8px }

#roads { opacity:0 }
#roads path { fill:none; stroke:#e4d9c6; stroke-linejoin:round; stroke-linecap:round }
#roads path.major { stroke:#dccbae; }

#roadlabels text { fill:#a8936f; font-weight:700; letter-spacing:.06em; paint-order:stroke; stroke:var(--bg); stroke-linejoin:round }

.src-h { font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--mute); margin:1.5em 0 .5em }
.sources { margin:0; padding-left:1.1em; color:var(--mute); font-size:13px; line-height:1.6 }
.sources a { color:inherit }
