.runner-section { padding-top: 36px; scroll-margin-top: 140px; }
.runner-shell { position: relative; width: min(1200px, 100%); max-width: 100%; margin-inline: auto; aspect-ratio: 16 / 9; background: #2500ff; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.runner-shell * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.runner-shell canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.runner-shell:has(.runner-overlay[hidden]) canvas { touch-action: none; }
.runner-shell:focus-visible { outline: 3px solid #111; outline-offset: 4px; }
.runner-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: #2500ff; color: white; text-align: center; }
.runner-overlay[hidden], .runner-hud[hidden] { display: none; }
.runner-overlay h3 { font: 400 clamp(54px,8vw,112px)/.9 "Cityburn", Impact, sans-serif; margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.runner-overlay p { margin: 0; font: 400 21px/1 "Cityburn", Impact, sans-serif; }
.runner-overlay [data-runner-message] { font-size: clamp(22px,3vw,38px); }
.runner-overlay [data-play] { display: block; width: max-content; height: auto; margin: 12px auto 4px; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; filter: none; text-shadow: none; color: #fff; text-align: center; font: 400 38px/1 "Cityburn", Impact, sans-serif; }
.runner-overlay [data-play]:hover,.runner-overlay [data-play]:focus-visible { background: transparent; opacity: .72; box-shadow: none !important; outline: 0; }
.runner-overlay [data-play]:disabled { width: max-content; min-width: 0; border-radius: 0; opacity: .72; cursor: wait; }
.runner-overlay .runner-instructions { font: 400 17px/1 "Cityburn", Impact, sans-serif; }
.runner-character-picker { display: grid; gap: 13px; font: 400 20px/1 "Cityburn", Impact, sans-serif; }
.runner-character-picker[hidden] { display: none; }
.runner-character-picker > div { display: flex; justify-content: center; gap: 18px; }
.runner-character-picker button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 194px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.55); background: transparent; box-shadow: none; color: #fff; font: 400 22px/1 "Cityburn", Impact, sans-serif; }
.runner-character-picker button[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.16); }
.runner-character-picker img { display: block; width: 166px; height: 166px; object-fit: contain; }
.runner-hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 12px; pointer-events: none; color: #111; font: 400 17px/1 "Cityburn", Impact, sans-serif; }
.runner-hud > div:first-child { background: #fff; padding: 8px 12px; }
.runner-hud strong { display: block; font-size: 29px; font-weight: 400; }
.runner-hud small { display: block; margin-top: 3px; }
.runner-power { position: absolute; z-index: 2; top: 18px; left: 50%; width: min(230px,34%); transform: translateX(-50%); text-align: center; pointer-events: none; }
.runner-power[hidden] { display: none; }
.runner-power strong { display: block; color: #111; font: 400 31px/.9 "Cityburn", Impact, sans-serif; }
.runner-power > span { display: block; height: 7px; margin-top: 7px; background: rgba(255,255,255,.78); border: 1px solid #111; }
.runner-power i { display: block; width: 100%; height: 100%; background: #111; transition: width .08s linear; }
.runner-tools { display: flex; gap: 5px; pointer-events: auto; }
.runner-tools button { background: #fff; border: 1px solid #111; padding: 10px 8px; min-height: 44px; color: #111; font: 700 11px Arial; }
.runner-now-playing { display: grid; align-content: center; min-width: 150px; max-width: 230px; min-height: 44px; padding: 5px 9px; overflow: hidden; background: #fff; border: 1px solid #111; font-family: Arial, sans-serif; }
.runner-now-playing small { font-size: 8px; font-weight: 700; }
.runner-now-playing strong { overflow: hidden; font: 700 10px/1.15 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.runner-bonus-editor { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.runner-track-editor { display: grid; gap: 14px; margin: 8px 0; padding: 18px; border: 1px solid #111; }
.runner-track-editor legend { padding: 0 8px; font-weight: 800; }
.runner-track-editor p { margin: 0; }
.runner-track-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #ccc; }
.runner-track-row > div { min-width: 0; }
.runner-track-fields { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(130px,.7fr) minmax(180px,1fr); align-items: end; gap: 12px; }
.runner-track-row audio { width: 100%; min-width: 0; }
.runner-shell:fullscreen, .runner-shell.runner-expanded { background: #2500ff; display: grid; place-items: center; }
.runner-shell:fullscreen canvas,.runner-shell.runner-expanded canvas { width: min(100vw,177.7778dvh); height: auto; aspect-ratio:16/9; }
.runner-shell.runner-expanded { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; z-index: 100; aspect-ratio: auto; }
@media(max-width:620px){
 .runner-section { padding-inline: 10px; }
 .runner-overlay { gap: 3px; padding: 6px; }
 .runner-overlay h3 { font-size: 44px; }
 .runner-overlay p { font-size: 16px; }
 .runner-overlay .runner-instructions { font-size: 10px; }
 .runner-character-picker { gap: 5px; font-size: 11px; }
 .runner-character-picker > div { gap: 7px; }
 .runner-character-picker button { min-width: 104px; padding: 2px 5px; gap: 1px; font-size: 13px; }
 .runner-character-picker img { width: 80px; height: 80px; }
 .runner-overlay [data-play] { width: max-content; height: auto; margin: 2px auto; padding-block: 3px; font-size: 25px; }
 .runner-hud { padding: 5px; }
 .runner-hud > div:first-child { padding: 4px 6px; font-size: 9px; }
 .runner-hud strong { font-size: 17px; }
 .runner-power { top: 8px; width: 30%; }
 .runner-power strong { font-size: 19px; }
 .runner-power > span { height: 5px; margin-top: 3px; }
 .runner-tools { gap: 2px; }
 .runner-tools button { min-height: 30px; font-size: 7px; padding: 3px 4px; }
 .runner-now-playing { min-width: 72px; max-width: 82px; min-height: 30px; padding: 2px 4px; }
 .runner-now-playing small { margin-top: 0; font-size: 5px; }
 .runner-now-playing strong { font-size: 6px; }
 .runner-bonus-editor { grid-template-columns: 1fr; }
 .runner-track-editor { padding: 12px; }
 .runner-track-row,.runner-track-fields { grid-template-columns: 1fr; }
}
