/* Shared palette, type scale and accessible controls. */
:root{--ink:#153d43;--mint:#d8f1e7;--cream:#f7faf7;--secondary:#456961;--accent:#f6cd65}
body,#storyHub,#trailApp{font-family:'Segoe UI',Arial,sans-serif}
.caption,.muted,.keyboard,.storynote,.reading-note{opacity:1;color:var(--secondary);font-size:14px}
.brand span{opacity:1}.brand{white-space:nowrap;flex-shrink:0}
.eyebrow,.chapter,.rt-kicker{font-size:12px;letter-spacing:.6px;text-transform:none}
.hudbox,.hud button,.raceStats small,.raceHint,#trailApp #rtRun .rt-stat,#trailApp #rtRun .rt-stat strong,#trailApp #rtDistance,#trailApp #rtPower,#trailApp #rtSensorLine,#trailApp #rtRun .rt-radio,#trailApp .rt-top button{font-size:12px!important}
.storypanel figcaption,.caption,#trailApp #rtVictor p,.pipe small{font-size:14px!important}
.chapter{background:#153d43;color:#fff;padding:7px 11px;border-radius:9px;text-shadow:none;z-index:2}
.pipes .red,.pipes .red:hover{background:#ffd0c4}.pipes .blue,.pipes .blue:hover{background:#bfe7ed}.pipes .yellow,.pipes .yellow:hover{background:#f9e5ab}.pipes .other,.pipes .other:hover{background:#ddd0ed}
.pipe:hover{outline:3px solid #153d43;outline-offset:2px;transform:none}
.tokenicon{background:#e5ecea!important;color:#153d43;border-color:#6a817b!important}
.real-life{margin:32px 0}.real-life h2{font-size:32px}.real-life article{border-color:#43867c}.real-life-note{padding:18px;border-left:4px solid #43867c;background:#eef6f1;font-size:16px}
#storyHub,#trailApp{background:#153d43}#storyHub .rt-card,#trailApp .rt-card,#trailApp .rt-stat,#trailApp .rt-radio{background:#1e4c50;border-color:#6b9c96}
#storyHub .rt-sub,#trailApp .rt-sub,#storyHub .rt-card p,#trailApp .rt-stat{color:#d4e7e3;opacity:1}
#storyHub button,#trailApp button{background:#285a5e;border-color:#6b9c96}
#rtStories{position:static;box-shadow:none;margin-left:8px;flex-shrink:0}
#play.racing{background:#153d43}.racing .hud{z-index:3}.racing #biomarkerBubble{top:220px}
#play.racing .hud{top:12px!important;left:12px!important;right:12px!important;flex-wrap:nowrap!important}
#play.racing .hudgroup:last-child{flex-wrap:nowrap!important;max-width:none;width:auto;margin-left:auto}
#play.racing .touch{bottom:14px!important}
#stadiumInfo,#stadiumHealth{display:none}
#play.racing #stadiumInfo{display:block;position:absolute;top:70px;left:12px;right:12px;padding:10px;background:#153d43;color:white;font-size:14px;border:1px solid #82aaa3;border-radius:8px}
#play.racing #stadiumHealth{display:grid;position:absolute;bottom:88px;left:8px;right:8px;grid-template-columns:repeat(5,1fr);gap:4px;color:#fff;font-size:12px}
#stadiumHealth>div{padding:8px 4px;background:#153d43;border:1px solid;text-align:center;border-radius:6px}
@media(max-width:600px){#play.racing #stadiumHealth{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){header{flex-wrap:wrap;gap:8px}.brand{font-size:22px}header>div:last-child{display:flex;align-items:center;gap:5px}header button{padding:10px 12px}.screen{padding:16px}.pipes{grid-template-columns:1fr 1fr}.pipe{min-height:125px}.mapfoot{font-size:13px}.hud{flex-wrap:wrap}.hudgroup{max-width:100%}.hud button,.hudbox{padding:8px!important}.racing .hudgroup:last-child{margin-left:auto}#trailApp #rtRun .rt-hud{max-width:58%}#trailApp #rtVictor{top:188px}#trailApp #rtVictor p{line-height:1.4}.real-life h2{font-size:28px}}
@media(pointer:coarse){.keyboard,.rt-controls small{display:none}}
