:root{color:#172026;--surface:#fff;--surface-2:#f7faf9;--ink:#172026;--muted:#5b676d;--line:#cdd8d5;--focus:#0b6bcb;--accent:#0a7c66;--warning:#8a5a00;--radius:8px;background:#eef3f1;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,select,input{font:inherit}button,select{min-height:44px}button{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);cursor:pointer;padding:.75rem 1rem}.button-link{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--ink);align-items:center;padding:.75rem 1rem;text-decoration:none;display:inline-flex}button:hover,.button-link:hover{border-color:var(--accent)}button:disabled{cursor:not-allowed;opacity:.5}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.app-shell{max-width:1180px;margin:0 auto;padding:1rem}.topbar{justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;display:flex}.brand{background:0 0;border:0;align-items:center;gap:.65rem;padding-left:0;font-weight:800;display:inline-flex}.brand-mark{color:#fff;background:#172026;border-radius:50%;place-items:center;width:48px;height:48px;display:grid}nav{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}nav button{align-items:center;gap:.45rem;display:inline-flex}.nav-bullet{display:inline-flex}nav button.selected,.route-strip button.selected{border-color:var(--ink);box-shadow:inset 0 -4px 0 var(--accent)}main{padding:1rem 0 3rem}.home-grid,.split-layout,.quiz-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.35fr);align-items:start;gap:1rem;display:grid}.hero-panel,.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(1rem,2.2vw,1.5rem)}.hero-panel{background:linear-gradient(90deg,#fffffff5,#ffffffb8),repeating-linear-gradient(35deg,#dce7e3 0 10px,#eef3f1 10px 24px);flex-direction:column;justify-content:center;min-height:340px;display:flex}.hero-trains{flex-wrap:wrap;gap:.5rem;margin-top:.75rem;display:flex}.eyebrow,.step-count{color:var(--muted);letter-spacing:0;text-transform:uppercase;font-size:.78rem;font-weight:700}h1,h2,h3,p{margin-top:0}h1{max-width:10ch;font-size:clamp(2rem,5vw,4rem);line-height:1.02}.panel h1{max-width:20ch;font-size:clamp(1.8rem,3.2vw,2.6rem)}.choice-grid,.answer-grid,.stats-grid,.settings-grid{gap:1rem;display:grid}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-button{text-align:left;border-top:8px solid var(--line);flex-direction:column;justify-content:space-between;gap:.5rem;min-height:160px;padding:1.25rem;display:flex}.home-button-lines{gap:.35rem;display:flex}.home-button-label{font-size:1.6rem;font-weight:800}.home-button small,.muted{color:var(--muted);font-size:1rem}label,fieldset{gap:.5rem;display:grid}select{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:.65rem .8rem}fieldset{border:1px solid var(--line);border-radius:var(--radius);padding:1rem}legend{padding:0 .4rem;font-weight:800}.route-summary,.section-header,.button-row{align-items:center;gap:1rem;display:flex}.section-header{justify-content:space-between;margin-bottom:1rem}.route-summary{margin:1.25rem 0}.bullet{border-radius:50%;flex:none;place-items:center;font-weight:900;line-height:1;display:inline-grid}.bullet-sm{width:24px;height:24px;font-size:.78rem}.bullet-md{width:36px;height:36px}.bullet-lg{width:64px;height:64px;font-size:1.8rem}.step-card,.feedback,.stat{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:1rem}.map-panel{max-height:76vh;overflow:auto}.schematic{margin:0;padding:.5rem 0 .5rem 1.2rem;list-style:none}.schematic li{border-left:6px solid #172026;grid-template-columns:1fr auto;align-items:center;gap:.65rem;min-height:46px;padding:.45rem .5rem .45rem 1rem;display:grid;position:relative}.schematic li:first-child{border-top-left-radius:8px}.schematic li:last-child{border-bottom-left-radius:8px}.track-dot{background:#fff;border:4px solid #172026;border-radius:50%;width:20px;height:20px;position:absolute;left:-13px}.active-stop{background:#fff6d6}.stop-name{font-weight:750}.transfer-list{flex-wrap:wrap;justify-content:flex-end;gap:.25rem;display:flex}.answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:1.5rem 0}.answer-grid button{min-height:86px;font-size:1.15rem;font-weight:750}.answer-grid button.line-choice{text-align:left;justify-content:flex-start;align-items:center;gap:.9rem;display:flex}.choice-bullet{display:inline-flex}.correct-choice{border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent);background:#e5f5ef;animation:.6s ease-out correct-glow}.answer-grid button.correct-choice:disabled{opacity:1}@keyframes correct-glow{0%{background:#a9e6cb}to{background:#e5f5ef}}.quiet-button{color:var(--muted)}.compact-panel{position:sticky;top:1rem}.route-strip{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.6rem;margin-bottom:1.25rem;display:grid}.route-strip button,.line-picker label{text-align:left;align-items:center;gap:.6rem;display:flex}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat strong{font-size:2rem;display:block}.activity-list{gap:.75rem;padding:0;list-style:none;display:grid}.activity-list li{border-top:1px solid var(--line);padding-top:.75rem}.activity-list span{font-weight:800}.line-picker{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.7rem;display:grid}.radio-row{align-items:center;gap:.65rem;min-height:44px;display:flex}body.low-stimulation{--accent:#35685d;--focus:#194f75;background:#f4f6f5}body.low-stimulation .hero-panel{background:#fff}body.low-stimulation .correct-choice{animation:none}.picker-hint{color:var(--muted);margin:0 0 .75rem;font-weight:700}.route-strip{grid-template-columns:repeat(auto-fill,minmax(116px,1fr))}.route-strip .route-chip{text-align:center;flex-direction:column;gap:.45rem;min-height:104px;padding:.8rem .5rem}.route-strip .route-chip span{color:var(--muted);font-size:.8rem;font-weight:700;line-height:1.15}.route-strip.bullet-strip{gap:.5rem;margin:0 0 1.25rem;padding:.25rem .25rem .6rem;display:flex;overflow-x:auto}.route-strip.bullet-strip .route-chip{flex:none;min-height:0;padding:.55rem}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell-full{max-width:none}.app-shell-full .topbar{padding:.5rem 0}.explore-layout{grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:1rem;display:grid}@media (width>=821px){.app-shell-full{flex-direction:column;height:100svh;display:flex;overflow:hidden}.app-shell-full main{flex:1;min-height:0;padding:0 0 1rem}.explore-layout{height:100%}.train-sidebar{height:100%;overflow-y:auto}.map-column{min-width:0;display:flex}.map-column .route-map{flex:1;height:auto}}.train-summary{cursor:pointer;justify-content:space-between;align-items:center;gap:.5rem;min-height:44px;font-size:1.2rem;font-weight:800;display:flex}.train-summary-bullets{flex-wrap:wrap;justify-content:flex-end;gap:.2rem;display:flex}.train-list{gap:.4rem;display:grid}.train-row{text-align:left;align-items:center;gap:.6rem;padding:.5rem .75rem;display:flex}.train-row-name{color:var(--muted);flex:1;font-size:.85rem;font-weight:700;line-height:1.15}.train-row-check{color:var(--accent);width:1.2em;font-weight:900}.train-row.selected{border-color:var(--accent);background:#e5f5ef}.route-map{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2);width:100%;height:min(60vh,520px);overflow:hidden}.route-map-fallback{text-align:center;height:220px;color:var(--muted);place-items:center;padding:2rem;display:grid}.stop-list-details{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:.5rem}.stop-list-details summary{cursor:pointer;align-items:center;min-height:44px;font-weight:800;display:flex}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}@media (width<=820px){.topbar,.section-header{flex-direction:column;align-items:stretch}nav{justify-content:flex-start}.home-grid,.split-layout,.quiz-layout,.choice-grid,.answer-grid,.stats-grid,.settings-grid,.explore-layout{grid-template-columns:minmax(0,1fr)}.map-column .route-map{height:60vh;min-height:260px}.hero-panel{min-height:260px}.compact-panel{position:static}}
