:root{--ink:#101722;--panel:#192331;--white:#f7f6f1;--muted:#c0cad7;--lime:#cafa55;--orange:#ff8644;--line:#ffffff25}
*{box-sizing:border-box}
body{margin:0;background:var(--ink);color:var(--white);font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:4px}[hidden]{display:none!important}
.app{max-width:1680px;padding:0 28px;margin:auto}.topbar{height:88px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.brand{display:flex;gap:13px;align-items:center;color:var(--white);text-decoration:none;font-size:24px;font-weight:900;line-height:1;letter-spacing:-.5px}.brand-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--orange);color:var(--ink);transform:rotate(-7deg);font-size:24px}.brand-sub{display:block;font-size:11px;font-weight:650;letter-spacing:2px;margin-top:8px;color:var(--muted)}
.top-right{display:flex;align-items:center;gap:10px}.edition{font-size:12px;letter-spacing:1.5px;margin-right:14px;color:var(--muted)}.live-dot,.tiny-dot{width:7px;height:7px;background:var(--lime);border-radius:50%;flex-shrink:0}
.icon-button{display:grid;place-items:center;position:relative;width:44px;height:44px;min-width:44px;border:1px solid var(--line);border-radius:10px;background:#202c3b;color:var(--white);font-size:24px}.icon-button:hover{background:#354458}#sound-slash{position:absolute;left:20px;top:5px;color:#fff;font-size:29px;transform:rotate(15deg)}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px}.stage{height:min(820px,calc(100dvh - 146px));min-height:600px;overflow:hidden;position:relative;border-radius:22px;background:#243746;border:1px solid var(--line);isolation:isolate;touch-action:none}canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.stage-grain{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#101722bb,#10172240 65%,#10172218)}.stage.playing .stage-grain{background:linear-gradient(180deg,#10172266,transparent 24%,transparent 88%,#10172255)}.stage:not(.playing) .hud,.stage:not(.playing) .location-tag,.stage:not(.playing) .stage-bottom{visibility:hidden}.stage:focus-within canvas:focus{outline:none}
.hud{position:absolute;top:22px;left:24px;right:24px;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.run-badge{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:750;letter-spacing:.6px;background:#101722ed}.hud-stats{display:flex;align-items:center;gap:22px}.score-block{text-align:right;text-shadow:0 2px 5px #101722}.stat-label{display:block;font-size:11px;font-weight:700;letter-spacing:1px;color:#e6eaf0}.hud strong{font-size:28px;font-weight:850;letter-spacing:.3px;font-variant-numeric:tabular-nums}
.high-score-line{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin-top:1px;font-size:11px;font-weight:650;color:#e3e7ee;white-space:nowrap}.high-score-line b{font-size:12px;color:#ffda86}.high-score-line.is-record{color:#ffda86}.token-stat{display:flex;align-items:center;gap:8px;text-shadow:0 2px 5px #101722}.token-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid #b6f6ff;background:#62e6f5;color:#14334a;font-size:10px;font-weight:900;box-shadow:0 0 14px #62e6f544}.token-stat.collected{animation:token-bounce .22s ease-out}
.pause{display:none;width:auto;min-width:78px;padding:0 11px;font-size:12px;font-weight:800;letter-spacing:.5px;gap:7px;grid-auto-flow:column;background:#101722ed}.pause>span{font-size:20px}.stage.playing .pause{display:grid}
.location-tag{position:absolute;right:24px;top:104px;z-index:3;display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:7px;background:#101722e0;font-size:11px;font-weight:700;letter-spacing:.4px;color:#e7edf4}.route-badge{display:grid;place-items:center;width:22px;height:22px;border:1px solid #b99879;border-radius:4px;background:#774e32;color:#fff;font-weight:900;font-size:12px}.location-line{width:16px;height:1px;background:#ffffff55}#difficulty{color:var(--lime)}
.chase-indicator{position:absolute;left:24px;top:80px;z-index:3;display:flex;gap:8px;align-items:center;background:#101722ed;border:1px solid var(--line);border-radius:7px;padding:8px 10px;color:#e7edf7;font-size:11px;font-weight:750;letter-spacing:.5px}.police-lights{display:flex;gap:4px}.police-lights i{width:7px;height:7px;display:block;border-radius:50%;background:#ff615b;box-shadow:0 0 8px #ff615b80;animation:cpd-blink 1s ease-in-out infinite}.police-lights i+i{background:#63b6ff;box-shadow:0 0 8px #63b6ff80;animation-delay:.5s}
.power-hud{position:absolute;left:24px;top:146px;z-index:3;display:flex;gap:6px;flex-wrap:wrap;max-width:calc(100% - 48px);pointer-events:none}.power-chip{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid currentColor;border-radius:7px;background:#101722f2;font-size:10px;font-weight:750;box-shadow:0 3px 14px #0003}.power-chip b{font-size:18px;line-height:1}.power-chip strong{font-size:12px;color:#fff}.magnet{color:#ff8196}.sneakers{color:var(--lime)}.multiplier{color:#ffd166}.jetpack{color:#cfacff}.board{color:#62e6f5}
.board-button{position:absolute;right:24px;bottom:24px;z-index:5;display:flex;align-items:center;gap:8px;min-height:46px;padding:9px 12px;border:1px solid #62e6f599;border-radius:10px;background:#101722ed;color:#bcfaff;font-size:12px;font-weight:800;box-shadow:0 0 16px #62e6f522}.board-button>span{font-size:20px}.board-button strong{padding:2px 6px;border-radius:4px;background:#62e6f5;color:#102036;font-size:13px}.board-button:disabled{opacity:.5;cursor:default}.board-button:active:not(:disabled){background:#246278}
kbd{display:inline-grid;place-items:center;min-width:29px;min-height:28px;padding:0 7px;font-family:inherit;font-size:12px;border:1px solid #ffffff40;border-radius:5px;background:#ffffff08;box-shadow:0 2px 0 #ffffff10;color:#f2f3ed}.board-button kbd{min-width:20px;min-height:23px;padding:0 4px;font-size:11px}
.start-panel{position:absolute;inset:0;z-index:4;width:100%;max-width:none;padding:30px;display:flex;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;background:radial-gradient(ellipse at 20% 60%,#ff75331a,transparent 60%)}
.launch-card{position:relative;width:100%;max-width:920px;margin:auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:32px;padding:32px 32px 48px;background:linear-gradient(125deg,#151d2afa,#101722f7);border:1px solid #ffffff32;border-radius:22px;box-shadow:0 24px 70px #0008;overflow:hidden}.launch-card:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#ff8644,#ffca68,#62e6f5,#ff8644);background-size:200% 100%;animation:city-glow 10s linear infinite}.launch-hero{min-width:0;position:relative}
.title-lockup{display:flex;align-items:center;gap:15px;margin:0 0 22px}.sc-logo{display:block;width:90px;height:90px;object-fit:contain;border-radius:12px;flex-shrink:0}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#ffbe96;font-size:12px;line-height:1.4;font-weight:750;letter-spacing:1.1px}.launch-subtitle{display:block;margin-top:8px;font-size:13px;font-weight:650;letter-spacing:2px;color:#c1d1e3}.game-title{margin:0 0 22px;font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:clamp(56px,6vw,90px);line-height:.96;font-weight:900;letter-spacing:1px;color:var(--white);text-shadow:0 5px 0 #0004}.game-title>span{color:var(--orange)}
.intro{display:block;margin:0;font-size:16px;line-height:1.7;color:#d1dce8;max-width:370px}.intro strong{color:#fff;font-weight:750}.route-strip{display:flex;align-items:center;gap:9px;margin:23px 0;color:#b6c9dd;font-size:10px;font-weight:750;letter-spacing:.8px;white-space:nowrap}.route-strip i{height:2px;min-width:8px;flex:1;background:#ff864466;position:relative}.route-strip i:after{content:'';position:absolute;right:0;top:-2px;width:6px;height:6px;border-radius:50%;background:var(--orange);box-shadow:0 0 12px #ff864477}
.menu-record{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin-top:22px;border:1px solid #ffd16650;border-radius:12px;background:#ffd16608}.menu-record span{display:block;font-size:12px;font-weight:750;letter-spacing:.7px;color:#ffda86}.menu-record small{display:block;font-size:12px;color:#bdc7d4;margin-top:5px;line-height:1.4}.menu-record>strong{font-size:32px;line-height:1.1;font-weight:850;font-variant-numeric:tabular-nums;color:#fff2cd;overflow-wrap:anywhere}
.launch-crew{min-width:0;align-self:center}.crew-label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 12px;width:100%;max-width:none;color:#e8eef5;font-size:12px;line-height:1.5;font-weight:750;letter-spacing:.6px}.inspect-runner{min-height:44px;padding:0 4px;border:0;background:none;color:#ffbe96;font-size:11px;font-weight:750;letter-spacing:.3px;text-underline-offset:4px}.inspect-runner:hover{text-decoration:underline;color:#fff}
.crew{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:none}.character{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;min-height:139px;border:2px solid #ffffff27;border-radius:14px;background:#233145;color:#e7edf4;padding:12px;transition:transform .15s,background .15s,border-color .15s}.character:hover{background:#314158;border-color:#ffffff66;transform:translateY(-2px)}.character[aria-pressed=true]{border-color:var(--orange);background:#ff864418;box-shadow:0 0 0 3px #ff86440a}.character .portrait{display:block;width:80px;height:80px;margin:0;border-radius:10px;background-image:url('assets/characters.png');background-size:400%;background-repeat:no-repeat;box-shadow:inset 0 0 0 1px #ffffff25}.character svg{display:block;width:80px;height:80px;margin:0}.character-name{font-size:16px;line-height:1.2;font-weight:800}.character-check{display:none;position:absolute;right:8px;top:8px;width:22px;height:22px;place-items:center;border-radius:50%;background:var(--orange);color:var(--ink);font-size:14px;font-weight:900}.character[aria-pressed=true] .character-check{display:grid}
.play-button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;max-width:none;min-height:56px;padding:12px 18px;margin-top:20px;border:0;border-radius:11px;background:var(--orange);color:var(--ink);font-size:16px;font-weight:850;letter-spacing:.5px;box-shadow:0 4px 0 #a84719;transition:background .15s,transform .15s}.play-button:hover{background:#ffa46f;transform:translateY(-1px)}.play-button:active{transform:translateY(2px);box-shadow:0 2px 0 #a84719}.play-button>span{font-size:27px}
.home-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.menu-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;width:100%;padding:12px 14px;border:1px solid #ffffff30;border-radius:10px;background:#243247;color:#f4f6fa;font-size:15px;line-height:1.3;font-weight:700;transition:background .15s,border-color .15s}.menu-button:hover{background:#344760;border-color:#ffffff66}.home-tools .menu-button{font-size:12px;letter-spacing:.5px}.start-hint{display:block;margin-top:18px;font-size:12px;line-height:1.5;color:#bdc9d8;text-align:center}.launch-footer{position:absolute;bottom:17px;left:32px;right:32px;color:#96aabe;font-size:11px;font-weight:650;letter-spacing:1.5px}.stage-bottom{position:absolute;bottom:23px;right:24px;z-index:3;font-size:11px;letter-spacing:1px;color:#d4dfeb}.stage.playing .stage-bottom{display:none}
.side-panel{padding:24px 20px;border:1px solid #ffffff15;border-radius:18px;background:linear-gradient(145deg,#1e2939,#151f2d);display:flex;flex-direction:column}.side-heading{display:flex;justify-content:space-between;align-items:center}.side-arrow{font-size:28px;color:var(--orange)}.side-panel h2{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:40px;line-height:1.1;letter-spacing:.5px;margin:22px 0 16px}.side-panel>p{font-size:14px;line-height:1.7;color:var(--muted);margin:0}.instructions{display:grid;gap:12px;margin:22px 0}.instructions>div{display:flex;align-items:center;gap:12px}.key-pair{display:flex;align-items:center;gap:5px;min-width:81px}.instructions>div>span:last-child{font-size:10px;line-height:1.5;color:#c9d5e3;font-weight:650}.space-key{font-size:10px;padding:0 7px}.power-guide{margin:0 0 20px;color:#c2cedd;font-size:12px;line-height:1.4}.power-guide>.eyebrow{margin-bottom:12px}.power-guide>div{display:flex;gap:8px;align-items:center;margin-bottom:9px}.power-guide b{min-width:22px;text-align:center;font-size:18px}
.best-card{display:flex;gap:11px;align-items:center;padding:14px 10px;border:1px solid #ffffff25;border-radius:10px;background:#ffffff04}.best-card>div>span{display:block;font-size:10px;line-height:1.5;color:#c7d3e1;letter-spacing:.5px}.best-card strong{display:block;margin-top:3px;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}.trophy{color:#ffd166;font-size:26px}.best-arrow{margin-left:auto;color:#b3c6da}.tip{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.tip>span{color:#ffbe96;font-size:12px;font-weight:750;letter-spacing:.8px}.tip p{font-size:13px;line-height:1.7;color:#b9c7d7;margin:10px 0 18px}.side-bottom{font-size:11px;letter-spacing:.4px;color:#adbdcf;margin-top:auto}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 2px;color:#adbccd;font-size:11px;font-weight:600;letter-spacing:.6px}.footer-right span{color:var(--orange);margin-left:10px}
.modal-backdrop{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;padding:24px;background:#0b1220e6;backdrop-filter:blur(10px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.game-menu-dialog{width:100%;max-width:540px;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:26px;border:1px solid #ffffff32;border-radius:20px;background:#162130;box-shadow:0 20px 80px #0007;scrollbar-width:thin;touch-action:pan-y}.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.menu-heading .eyebrow{font-size:11px;letter-spacing:1px}.game-menu-dialog h2{margin:18px 0 8px;font-size:32px;line-height:1.15;font-weight:850;letter-spacing:-.7px;color:#fff}#menu-context{margin:0 0 20px;font-size:15px;line-height:1.6;color:#c5d2e2}
.menu-run-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px;padding:16px 10px;border:1px solid #ffffff24;border-radius:11px;background:#101722}.menu-run-summary>div{text-align:center;border-right:1px solid #ffffff24}.menu-run-summary>div:last-child{border:0}.menu-run-summary span{display:block;font-size:11px;line-height:1.5;letter-spacing:.5px;color:#c2d1e4;font-weight:700}.menu-run-summary strong{display:block;margin-top:6px;font-size:25px;font-variant-numeric:tabular-nums;color:#fff;overflow-wrap:anywhere}.menu-page>.play-button{margin-top:0}.menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.menu-actions .menu-button{justify-content:flex-start}.menu-actions .menu-button>span{font-size:20px;color:#ffbe96}.menu-home,.menu-back{margin-top:16px;background:#ffffff07}.menu-back{color:#ffcfb0}
.controls-list{display:grid;gap:12px}.controls-list>div{padding-bottom:12px;border-bottom:1px solid #ffffff1a}.controls-list strong{display:block;font-size:16px;margin-bottom:4px;color:#fff}.controls-list span{display:block;font-size:14px;line-height:1.6;color:#c3d1e3}.menu-tip{padding:14px 16px;border-left:3px solid var(--orange);border-radius:0 8px 8px 0;background:#ff86440a;color:#cad7e7;font-size:14px;line-height:1.7;margin:20px 0}.game-menu-dialog h3{margin:22px 0 14px;font-size:13px;letter-spacing:1.2px;color:#ffbe96}.boost-list{display:grid;gap:14px}.boost-list>div{display:flex;align-items:center;gap:14px}.boost-list b{display:grid;place-items:center;min-width:38px;height:38px;border-radius:8px;background:#101722;font-size:23px}.boost-list span{font-size:13px;line-height:1.6;color:#c3d1e3}.boost-list strong{display:block;font-size:15px;color:#fff}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-height:86px;padding:18px 0;border:0;border-bottom:1px solid #ffffff24;text-align:left;background:none;color:#fff}.setting-row strong{display:block;font-size:16px;font-weight:750}.setting-row small{display:block;margin-top:6px;font-size:13px;line-height:1.5;color:#c3d1e3}.setting-switch{position:relative;display:block;width:48px;height:28px;flex-shrink:0;border:1px solid #6d7b8d;border-radius:18px;background:#384657}.setting-switch:after{content:'';position:absolute;top:3px;left:4px;width:20px;height:20px;border-radius:50%;background:#e3eaf2;transition:transform .15s}.setting-row[aria-pressed=true] .setting-switch{background:var(--orange);border-color:var(--orange)}.setting-row[aria-pressed=true] .setting-switch:after{transform:translateX(18px);background:#101722}.confirm-copy{font-size:17px;line-height:1.7;color:#e0e8f4;margin:8px 0 24px}
.modal{max-width:420px;width:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:24px;border:1px solid var(--line);border-radius:18px;background:#162130;text-align:center;scrollbar-width:thin}.modal h2{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:64px;line-height:1;letter-spacing:1px;margin:15px 0 10px}.modal p{font-size:15px;color:#c3d1e3;line-height:1.6}.modal .play-button{width:100%;margin-top:24px}.cuffs-symbol{display:block;width:90px;height:54px;margin:14px auto 0}.modal .cuffs-symbol+h2{margin-top:12px}.result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:22px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-stats>div{border-right:1px solid var(--line)}.result-stats>div:last-child{border:0}.result-stats span{display:block;font-size:11px;line-height:1.5;font-weight:650;letter-spacing:.5px;color:#c2d1e3}.result-stats strong{display:block;margin-top:6px;font-size:28px;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.record-result{margin-top:16px;padding:14px;border:1px solid #ffd16655;border-radius:11px;background:#ffd16608;text-align:left}.record-result>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-result>div>span{font-size:11px;font-weight:700;letter-spacing:.6px;color:#e5cd9b}.record-result strong{font-size:28px;font-weight:850;font-variant-numeric:tabular-nums;color:#ffe3a7}.modal .record-result p{margin:8px 0 6px;font-size:13px;line-height:1.5;font-weight:800;color:#ffd166}.record-result>span{display:block;color:#c3d1e3;font-size:13px;line-height:1.5}.record-result.is-new-record{border-color:#ffd166aa;box-shadow:0 0 26px #ffd16622;animation:record-reveal .4s ease-out}.text-button{min-height:44px;padding:12px 10px;border:0;background:none;color:#d3dfed;font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:4px}
.toast{position:absolute;top:198px;left:50%;transform:translateX(-50%);z-index:5;max-width:calc(100% - 32px);width:max-content;padding:11px 16px;border:1px solid #cafa5566;border-radius:9px;background:#101722f0;color:var(--lime);font-size:13px;font-weight:650;line-height:1.5;text-align:center;opacity:0;transition:opacity .2s;pointer-events:none}.toast.visible{opacity:1}.touch-controls{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);z-index:5;display:flex;gap:10px}.touch-controls button{width:52px;height:48px;border:1px solid #ffffff66;border-radius:11px;background:#101722d9;color:#fff;font-size:25px;backdrop-filter:blur(5px)}.touch-controls button:active{background:#ff8644aa}
.runner-preview-panel{z-index:8;background:#0d172bee}.runner-preview-dialog{width:390px;max-width:100%;max-height:100%;overflow-y:auto;padding:22px;border:1px solid #ffffff32;border-radius:18px;background:#192735;box-shadow:0 20px 50px #0006}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.runner-preview-dialog h2{margin:10px 0 0;text-align:center;font-size:36px;font-weight:850}.model-viewport{height:330px;position:relative;overflow:hidden;border-radius:10px}.model-viewport canvas{touch-action:none;cursor:grab}.model-viewport canvas:active{cursor:grabbing}.stage .model-viewport canvas:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}.preview-portrait{position:absolute;inset:15px 30px;border-radius:12px;background-image:url('assets/characters.png');background-size:400%;background-repeat:no-repeat}.preview-rotate{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 4px 0}.preview-rotate span{font-size:12px;font-weight:650;color:#c3d1e3}.preview-rotate button{width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:#ffffff08;color:var(--lime);font-size:22px}.preview-rotate button:disabled{visibility:hidden}.runner-preview-dialog .play-button{margin-top:16px;font-size:14px;min-height:50px}
@keyframes city-glow{to{background-position:200% 0}}@keyframes cpd-blink{0%,40%,100%{opacity:1}50%,90%{opacity:.3}}@keyframes record-reveal{from{transform:scale(.95);opacity:.3}to{transform:scale(1);opacity:1}}@keyframes token-bounce{50%{transform:scale(1.15)}}
.stage.reduce-motion *,.stage.reduce-motion *:before,.stage.reduce-motion *:after{animation:none!important;transition:none!important}.stage.reduce-motion .character:hover,.stage.reduce-motion .play-button:hover{transform:none}
@media(max-width:1250px){.game-layout{grid-template-columns:1fr}.side-panel{display:none}.stage{height:calc(100dvh - 146px);max-height:900px}.launch-card{max-width:880px}}
@media(max-width:850px){.app{padding:0 16px}.topbar{height:78px}.stage{height:calc(100dvh - 130px);min-height:420px}.start-panel{padding:22px}.launch-card{padding:24px 24px 44px;gap:24px}.game-title{font-size:68px}.character{min-height:120px;padding:10px}.character .portrait,.character svg{width:64px;height:64px}.sc-logo{width:72px;height:72px}.route-strip{font-size:9px;letter-spacing:.3px;gap:6px}.launch-footer{left:24px;right:24px}.brand{font-size:21px}.edition{font-size:11px}}
@media(max-width:620px){.app{padding:0 10px}.topbar{height:76px}.brand{font-size:19px;gap:10px}.brand-icon{width:42px;height:42px;font-size:22px}.brand-sub{font-size:10px;letter-spacing:1px}.edition,.top-right .live-dot{display:none}.stage{height:calc(100dvh - 116px);min-height:320px;border-radius:16px}.start-panel{padding:16px}.launch-card{grid-template-columns:minmax(0,1fr);gap:22px;padding:22px 22px 42px;border-radius:16px;max-width:460px}.title-lockup{margin-bottom:18px;gap:12px}.sc-logo{width:64px;height:64px}.launch-subtitle{font-size:12px;margin-top:6px}.game-title{font-size:64px;line-height:.94;margin-bottom:18px}.game-title br{display:none}.game-title>span{display:block}.intro{font-size:16px;max-width:none}.route-strip{font-size:10px;margin:18px 0;letter-spacing:.3px}.menu-record{padding:12px 14px;margin-top:16px}.menu-record>strong{font-size:29px}.crew-label{font-size:12px;margin-bottom:10px}.character{min-height:122px}.character .portrait,.character svg{width:68px;height:68px}.play-button{font-size:15px;min-height:54px;margin-top:18px}.launch-footer{font-size:10px;letter-spacing:.9px;bottom:15px;left:22px;right:22px}.hud{top:16px;left:14px;right:14px;gap:8px}.hud-stats{gap:12px}.hud strong{font-size:23px}.run-badge{font-size:11px;padding:9px 10px;letter-spacing:0}.pause{min-width:70px;font-size:11px;padding:0 8px;gap:5px}.location-tag{right:14px;top:108px;font-size:10px;gap:6px;padding:5px 7px}.location-line{width:8px}.route-badge{height:20px;width:20px;font-size:11px}.chase-indicator{left:14px;top:76px;font-size:10px;padding:7px 9px}.power-hud{left:14px;top:150px;max-width:calc(100% - 28px);gap:5px}.power-chip{font-size:10px;gap:5px;padding:5px 7px}.power-chip b{font-size:16px}.toast{top:209px;font-size:12px}.board-button{right:14px;bottom:84px;font-size:12px}.board-button kbd{display:none}.touch-controls{bottom:18px;gap:10px}.touch-controls button{width:52px;height:48px}.modal-backdrop{padding:16px}.game-menu-dialog{padding:22px;border-radius:16px}.game-menu-dialog h2{font-size:29px}.menu-actions .menu-button{font-size:14px;gap:8px;padding:12px 10px}.menu-run-summary strong{font-size:23px}.modal{padding:22px}.modal h2{font-size:60px}.result-stats strong{font-size:25px}footer{padding:14px 2px;font-size:10px}.footer-right{display:none}}
@media(max-width:370px){.start-panel{padding:10px}.launch-card{padding:18px 18px 40px;gap:18px}.game-title{font-size:58px}.title-lockup .eyebrow{font-size:11px;letter-spacing:.4px}.sc-logo{width:58px;height:58px}.character .portrait,.character svg{width:64px;height:64px}.launch-footer{left:18px;right:18px;font-size:9px}.menu-actions{grid-template-columns:1fr}.menu-run-summary{gap:5px;padding:12px 5px}.menu-run-summary span{font-size:10px}.menu-run-summary strong{font-size:21px}.hud-stats{gap:8px}.token-stat{gap:5px}.hud strong{font-size:21px}.token-icon{width:24px;height:24px;font-size:9px}.run-badge{font-size:10px;padding:8px}.pause{min-width:66px;font-size:10px}}
@media(max-height:700px){.stage{min-height:300px}.model-viewport{height:240px}.runner-preview-dialog{padding:18px}.runner-preview-dialog h2{font-size:30px}.game-menu-dialog{padding:22px}.modal{padding:20px}}
@media(max-height:500px) and (min-width:621px){.topbar{height:64px}footer{display:none}.stage{height:calc(100dvh - 76px);min-height:220px}.start-panel{padding:16px}.launch-card{padding:20px 24px 42px;gap:24px;margin:auto}.sc-logo{width:58px;height:58px}.title-lockup{margin-bottom:14px}.game-title{font-size:60px;margin-bottom:16px}.model-viewport{height:150px}.hud{top:12px}.board-button{bottom:18px}.touch-controls{bottom:14px}.touch-controls button{height:44px;width:48px}}
/* Menus scroll at the stage level; touch-action on a child cannot override an ancestor. */
.stage:not(.playing),.stage.menu-open,.stage:has(#end-panel:not([hidden])),.stage:has(#runner-preview-panel:not([hidden])){touch-action:pan-y}
/* Instructions live in the game menu; keep the entire play area for the chase. */
.game-layout{grid-template-columns:minmax(0,1fr)}.side-panel{display:none}
.stat-label,.high-score-line,.location-tag,.chase-indicator,.inspect-runner,.launch-footer,.menu-heading .eyebrow{font-size:12px}
@media(max-width:620px){
  .sc-logo{width:48px;height:48px}.title-lockup{margin-bottom:14px}
  .game-title{font-size:clamp(30px,9vw,50px);margin-bottom:14px;white-space:nowrap}
  .game-title>span{display:inline;margin-left:.18em}
  .route-strip{display:none}
  .character{flex-direction:row;min-height:80px;padding:10px;gap:10px;justify-content:flex-start}
  .character .portrait,.character svg{width:48px;height:48px;flex-shrink:0}
  .character-check{width:16px;height:16px;font-size:11px;right:5px;top:5px}
  .crew-label{margin-bottom:8px}.menu-record{margin-top:14px}
  .launch-footer{font-size:12px}.title-lockup .eyebrow{font-size:12px}
  .launch-card{gap:18px}.launch-footer{letter-spacing:.5px}
  .hud .run-badge{display:none}.hud-stats{width:100%;justify-content:space-between}
  .score-block{text-align:left}.high-score-line{justify-content:flex-start}
}
@media(max-width:370px){.character{padding:8px;gap:8px;min-height:74px}.character .portrait,.character svg{width:40px;height:40px}.game-title{font-size:clamp(28px,9vw,33px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.character:hover,.play-button:hover{transform:none}}

.compatibility-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;color:#e5d8ba;font:700 12px/1.4 Arial,sans-serif;text-decoration:underline}.stage.playing{touch-action:none}.touch-controls button{touch-action:none}
