:root{color-scheme:dark;--bg:#101217;--panel:rgba(18,21,28,.92);--text:#f5f2ea;--muted:#a9adb8;--accent:#ef3f4a;--line:#313642}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;overflow:hidden}
button,input{font:inherit}
.shell{height:100%;display:grid;grid-template-rows:auto 1fr auto;position:relative}
.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:14px clamp(18px,4vw,48px);background:#101217;border-bottom:1px solid var(--line);z-index:800}
.eyebrow{margin:0 0 3px;color:#f06970;font-size:11px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}
h1{font-size:clamp(22px,3vw,34px);line-height:1;margin:0;letter-spacing:-.04em}
.ghost,.play{border:1px solid #3a404c;color:var(--text);background:#1b1f27;border-radius:999px;padding:10px 16px;cursor:pointer}
.ghost:hover,.play:hover{background:#282d37}
.map-wrap,#map{min-height:0;height:100%;position:relative}
#map{background:#d7d7d2}
.leaflet-tile-pane{filter:saturate(.28) contrast(.94) brightness(.82)}
.leaflet-control-attribution{background:rgba(16,18,23,.78)!important;color:#d4d6dc!important;font-size:10px!important}.leaflet-control-attribution a{color:#fff!important}
.year-card{position:absolute;z-index:700;left:clamp(14px,3vw,30px);top:clamp(14px,3vw,30px);background:rgba(16,18,23,.9);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:15px 18px;box-shadow:0 12px 40px rgba(0,0,0,.28);display:flex;flex-direction:column}
.year-card strong{font-size:clamp(34px,5vw,54px);line-height:.95;letter-spacing:-.06em}.year-card span{color:var(--muted);margin-top:7px;font-size:13px}
.map-button{position:absolute;z-index:700;right:16px;top:16px;width:44px;height:44px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(16,18,23,.9);color:white;font-size:25px;cursor:pointer}
.timeline{z-index:800;background:var(--panel);backdrop-filter:blur(18px);border-top:1px solid var(--line);padding:18px clamp(18px,4vw,48px) calc(17px + env(safe-area-inset-bottom))}
.timeline-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.timeline-head>div{display:flex;align-items:baseline;gap:12px}.label{font-size:13px;color:var(--muted)}#yearLabel{font-size:22px}
.play{background:var(--accent);border:0;font-weight:750;padding:10px 17px}.play span{font-size:11px;margin-right:5px}.play.active{background:#f5f2ea;color:#15171c}
input[type=range]{width:100%;height:24px;margin:0;accent-color:var(--accent);cursor:ew-resize}
.ticks{display:flex;justify-content:space-between;color:#777d89;font-size:10px;margin-top:-2px}
.new-stations{height:20px;margin-top:8px;font-size:12px;color:#d3d5da;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-stations b{color:#fff}
.metro-marker{width:14px;height:14px;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.5);transition:transform .15s}.metro-marker:hover{transform:scale(1.5)}
.station-popup .leaflet-popup-content-wrapper,.station-popup .leaflet-popup-tip{background:#161922;color:white}.station-popup .leaflet-popup-content{margin:15px 17px;min-width:190px}.popup-date{color:#aeb3bd;font-size:12px;margin:5px 0}.popup-line{display:flex;gap:7px;align-items:center;font-size:12px}.line-dot{width:9px;height:9px;border-radius:50%}.station-popup a{color:#fff}
dialog{width:min(520px,calc(100% - 30px));color:var(--text);background:#191c23;border:1px solid #363b46;border-radius:22px;padding:28px;box-shadow:0 24px 80px #000}dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}dialog h2{margin:3px 0 15px;font-size:29px}dialog p{color:#c8cbd2;line-height:1.55}.dialog-close{position:absolute;right:14px;top:12px;border:0;background:transparent;color:white;font-size:27px;cursor:pointer}.source{font-size:12px}.source a{color:#fff}
@media(max-width:600px){.topbar{height:64px;padding:10px 16px}.eyebrow{font-size:9px}h1{font-size:22px}.ghost{padding:8px 12px;font-size:12px}.timeline{padding:13px 16px calc(12px + env(safe-area-inset-bottom))}.label{display:none}.new-stations{height:18px;margin-top:4px}.year-card{padding:11px 14px;border-radius:14px}.year-card strong{font-size:34px}.map-button{top:auto;bottom:15px}.leaflet-control-zoom{margin-top:82px!important}.leaflet-control-attribution{max-width:230px;white-space:normal;line-height:1.2}.ticks span:nth-child(even){display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.metro-marker{transition:none}}
