:root{color-scheme:dark}*{box-sizing:border-box}
body{margin:0;background:linear-gradient(#0b1b2e,#050b14);color:#f4f7fb;font:17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;min-height:100vh}
main{max-width:640px;margin:0 auto;padding:1.5rem 1.1rem 3rem}
.eyebrow{margin:0;color:#8fb3d9;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase}
h1{margin:.2rem 0 0;font-size:clamp(2.4rem,11vw,3.6rem);line-height:1.05}
.bib{margin:.3rem 0 1rem;color:#c5d6ea;font-size:1.1rem}
.badge{display:inline-block;padding:.45rem 1rem;border-radius:999px;background:#24364d;font-weight:700;font-size:1.05rem}
.badge.running{background:#12803c}.badge.finished{background:#c9a227;color:#111}.badge.not_started{background:#3a4a63}
.sub{margin:.6rem 0 1.2rem;color:#c5d6ea;min-height:1.4em}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.stat{background:rgba(255,255,255,.07);border-radius:20px;padding:.9rem 1rem;display:flex;flex-direction:column;gap:.2rem}
.k{font-size:.8rem;color:#8fb3d9;text-transform:uppercase;letter-spacing:.05em}
.v{font-size:clamp(1.6rem,8vw,2.2rem);font-weight:700;font-variant-numeric:tabular-nums}
.bar{margin:1.1rem 0 .4rem;height:10px;border-radius:6px;background:rgba(255,255,255,.12);overflow:hidden}
#barfill{height:100%;width:0;background:#3ddc84;transition:width .6s}
.lastmat{margin:.2rem 0 1.2rem;color:#c5d6ea}
h2{font-size:1.1rem;margin:1.4rem 0 .4rem}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:.55rem .3rem;border-bottom:1px solid rgba(255,255,255,.1)}
th{color:#8fb3d9;font-size:.8rem;text-transform:uppercase;font-weight:600}
.mute{color:#7f95ad}.foot{margin:1.2rem 0 0;font-size:.9rem}a{color:#7cc4ff}

.mapwrap{background:rgba(255,255,255,.06);border-radius:20px;padding:.4rem}
#map{width:100%;height:65vh;min-height:360px;border-radius:14px;z-index:0}
.est-note{font-size:.8rem;font-weight:400}
@keyframes pulse{0%{r:6;opacity:.9}100%{r:18;opacity:0}}
.pulse{animation:pulse 1.6s ease-out infinite}
@media (prefers-reduced-motion:reduce){.pulse{animation:none;opacity:.4}}

.mapctl{display:flex;gap:.5rem;margin:.3rem 0 .6rem}
.mapctl button{flex:1;min-height:44px;border:0;border-radius:12px;background:#24364d;color:#f4f7fb;font:inherit;font-weight:600;cursor:pointer}
.mapctl button.on{background:#000;box-shadow:inset 0 0 0 2px #fff}
.mile-lbl span{display:block;width:20px;height:20px;line-height:20px;text-align:center;border-radius:50%;background:#fff;color:#111;font-size:11px;font-weight:700;border:1.5px solid #d6006f}
.pin-start span{display:block;width:18px;height:18px;border-radius:50%;background:#16a34a;border:3px solid #fff;box-shadow:0 0 0 1px #0006}
.pin-flag span{font-size:26px;line-height:26px;filter:drop-shadow(0 1px 1px #0008)}
.pin-alina{position:relative}
.pin-alina b{position:absolute;left:0;top:0;width:34px;height:34px;border-radius:50%;background:#000;color:#fff;border:3px solid #fff;box-shadow:0 0 0 1px #0008,0 2px 6px #0006;display:flex;align-items:center;justify-content:center;font:700 13px/1 -apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:.02em}
.pin-alina .pulse-ring{position:absolute;left:0;top:0;width:34px;height:34px;border-radius:50%;background:#000;opacity:.5;animation:ring 1.6s ease-out infinite}
@keyframes ring{0%{transform:scale(.5);opacity:.7}100%{transform:scale(1.9);opacity:0}}
@media (prefers-reduced-motion:reduce){.pin-alina .pulse-ring{animation:none}}
.leaflet-container{font:inherit}
