:root {
  color-scheme: dark;
  --page: #0b1728; --panel: #14253d; --border: #3c5473;
  --text: #f3f7fd; --muted: #bdcee3; --amber: #f5ac35; --accent: #ffcc72;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #ffe4ad; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 4; top: 8px; left: 8px; transform: translateY(-150%); background: var(--page); padding: 12px; }
.skip-link:focus { transform: none; }
.shell { width: min(930px, calc(100% - 2 * clamp(12px, 4vw, 32px))); margin-inline: auto; }
.top { border-bottom: 1px solid var(--border); background: #102038; }
.top-inner, .top-inner .tpnav-utils, .top-inner .path-links { display: flex; align-items: center; }
.top-inner { flex-wrap: wrap; justify-content: space-between; column-gap: 12px; }
.top-inner .tpnav-utils { gap: 4px; }
.top-inner .path-links { flex-wrap: wrap; column-gap: 12px; }
.top a { display: inline-flex; align-items: center; min-height: 52px; }
.top .tp-x-link { min-width: 44px; justify-content: center; }
.brand { color: var(--text); font-weight: 850; font-size: 1.12rem; text-decoration: none; }
.brand span, .eyebrow { color: var(--accent); }
.intro { padding-block: clamp(26px, 5vw, 56px) 28px; max-width: 72ch; }
.eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; margin: 0; letter-spacing: -.035em; }
h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
h3 { font-size: 1.15rem; }
.intro > p:not(.eyebrow) { color: var(--muted); margin: 12px 0 16px; }
.button { min-height: 44px; display: inline-flex; align-items: center; gap: .35em; padding: 7px 12px; text-decoration: none; font-weight: 750; border-radius: 8px; border: 1px solid #647b99; }
.button.primary { color: #182134; background: var(--amber); border-color: var(--amber); }
.button:hover { background: var(--accent); color: #182134; text-decoration: underline; }
.map-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 4px 16px; margin: 0 0 16px; }
.map-heading p, .station p { color: var(--muted); margin: 6px 0 10px; }
.map-key { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; background: #213853; color: var(--text); border-radius: 999px; font-size: .78rem; font-weight: 750; }
.badge.play { background: #35281b; color: var(--accent); box-shadow: inset 0 0 0 1px #9b7238; }
.route { margin: 0; padding: 0; list-style: none; counter-reset: station; position: relative; }
.route::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 45px; width: 2px; background: #547096; }
.route > li { position: relative; counter-increment: station; padding-inline-start: 49px; padding-bottom: 12px; scroll-margin: 12px; }
.route > li::before {
  content: counter(station); position: absolute; left: 0; top: 16px; width: 36px; height: 36px;
  display: grid; place-items: center; background: #18314d; border: 1px solid #7290ad; border-radius: 50%; font-weight: 850;
}
.route > li:has(.playable)::before { color: #1c2434; background: var(--amber); border-color: var(--amber); }
.station { padding: clamp(11px, 2.4vw, 20px); border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.station.playable { border-color: #ae8550; background: #182b43; }
.route li:target .station { outline: 2px solid var(--accent); outline-offset: 2px; }
.station-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.station .station-note { font-size: .88rem; margin: 7px 0 0; }
details { border-top: 1px solid var(--border); margin-top: 12px; }
summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 720; color: var(--accent); }
details a { display: inline-flex; align-items: center; min-height: 44px; }
.scope { border-inline-start: 3px solid var(--amber); background: #102039; color: var(--muted); margin: 8px 0 0; padding: 12px 15px; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-block: 20px 32px; }
.footer .tp-legal, .footer .tp-x-follow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer a { display: inline-flex; min-height: 44px; align-items: center; }
.footer .tp-x-follow svg { width: 14px; height: 14px; }
@media (max-width: 380px) {
  .route::before { left: 13px; }
  .route > li { padding-inline-start: 37px; }
  .route > li::before { width: 28px; height: 28px; top: 13px; }
}

.path-progress{margin-top:1.25rem;padding:1rem;border:1px solid var(--line,#657089);border-radius:12px;max-width:37rem}
.path-progress h2{font-size:1.12rem;margin:0 0 .35rem}
.path-progress p{margin:.45rem 0}
.path-progress progress{display:block;width:min(16rem,100%);height:1rem;accent-color:#8de1d0}
.path-progress .button{margin-top:.35rem;font:inherit;cursor:pointer}
.path-progress .button:disabled{opacity:.65;cursor:not-allowed}
