@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--bg:#08151e;--ink:#f1f6f4;--muted:#80959e;--orange:#ff885e;--cyan:#80e6df;--line:#283a43;font-family:'Noto Sans JP',sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--cyan);outline-offset:5px}button{touch-action:manipulation}a{color:inherit;text-decoration:none}.app{max-width:1660px;margin:auto;padding:0 38px}.header{height:104px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:13px;align-items:center}.brand svg{width:41px;height:41px;fill:none;stroke:var(--orange);stroke-width:1.6}.brand>span{font-family:'Barlow Condensed',Impact,sans-serif;font-size:25px;line-height:1;letter-spacing:1px;font-weight:700}.brand-light{font-weight:500;margin-left:5px;color:var(--cyan)}.brand small{display:block;font-family:'Noto Sans JP',sans-serif;font-size:10px;font-weight:500;letter-spacing:3px;margin-top:8px}.header-center{font-family:'Barlow Condensed',sans-serif;font-size:13px;letter-spacing:2.3px;color:#91a4a9;display:flex;align-items:center;gap:12px}.mini-line{height:1px;width:32px;background:var(--orange)}.controls{display:flex;gap:10px;align-items:center}.icon-button,.help-button{width:39px;height:39px;border:1px solid var(--line);border-radius:50%;background:transparent;display:grid;place-items:center}.icon-button:hover,.help-button:hover{background:#23363e}.icon-button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.help-button{font-family:monospace;font-size:18px}.sound-waves{display:none}[aria-pressed=true] .sound-waves{display:block}[aria-pressed=true] .sound-off{display:none}.game{position:relative;height:min(690px,calc(100svh - 225px));min-height:530px;border:1px solid #446071;border-radius:14px;overflow:hidden;isolation:isolate;touch-action:manipulation;user-select:none;background:#285e78}#universe,.scene-shade{position:absolute;inset:0;width:100%;height:100%}.scene-shade{pointer-events:none;background:linear-gradient(180deg,#061a3157,transparent 48%,#06111cef 100%);z-index:1}#universe{z-index:0}.hud-top{position:absolute;left:35px;right:35px;top:29px;display:flex;justify-content:space-between;gap:20px;z-index:3;pointer-events:none}.eyebrow{font-family:'Barlow Condensed','Noto Sans JP',sans-serif;font-weight:500;font-size:12px;letter-spacing:1.9px;line-height:1.6}.location .eyebrow{display:flex;align-items:center;gap:8px;color:#d0f3f6}.location i{width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 12px #77e4e7}.location h1{font-size:36px;letter-spacing:.05em;font-weight:800;margin:8px 0}.location p{font-size:13px;letter-spacing:.04em;margin:0;color:#deebec}.distance{text-align:right}.distance>.eyebrow{color:#c8dfe4}.distance>div{display:flex;align-items:baseline;justify-content:flex-end;gap:9px}.distance strong{font-family:'Barlow Condensed',Impact,sans-serif;font-size:69px;font-weight:500;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:1px}.distance>div>span{font-size:17px;color:#d3e2e5}.distance>span:last-child{display:block;font-size:12px;color:#d2e3e8;margin-top:7px}.altitude-rule{position:absolute;left:35px;top:44%;display:flex;flex-direction:column;align-items:flex-start;gap:16px;opacity:.4;z-index:2;pointer-events:none}.altitude-rule span{font:12px 'Barlow Condensed',sans-serif;letter-spacing:2px}.altitude-rule i{width:8px;height:1px;background:#d4ecf3}.altitude-rule i:nth-child(3n){width:17px}.character-wrap{position:absolute;left:50%;top:53%;width:200px;height:255px;transform:translate(-50%,-50%);z-index:2;pointer-events:none;will-change:transform}.character-body{width:100%;height:100%;transform-origin:50% 73%;will-change:transform}.character-body img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 7px #08233855);pointer-events:none}.launch-shadow{position:absolute;width:95px;height:13px;background:#101d3266;filter:blur(4px);border-radius:50%;bottom:-6px;left:50%;transform:translateX(-50%);z-index:-1}.character-callout{position:absolute;bottom:calc(100% + 17px);left:50%;transform:translateX(-50%) rotate(-4deg);font-size:12px;font-weight:700;white-space:nowrap;color:#18303d;background:#fff8e7;padding:10px 15px;border-radius:7px}.character-callout:after{content:'';position:absolute;bottom:-7px;left:48%;border-top:8px solid #fff8e7;border-right:8px solid transparent}.flight-stats{position:absolute;right:35px;top:44%;z-index:3;display:flex;flex-direction:column;gap:17px;text-align:right;pointer-events:none}.flight-stats>div{display:flex;flex-direction:column}.flight-stats .eyebrow{color:#c3d7dd;font-size:11px;letter-spacing:1.3px}.flight-stats strong{font-family:'Barlow Condensed',Impact,sans-serif;font-weight:500;font-size:28px;line-height:1.1;letter-spacing:1px;font-variant-numeric:tabular-nums}.flight-stats strong span{font-size:18px;color:#cbdde1}.bottom-hud{position:absolute;left:35px;right:35px;bottom:25px;display:flex;justify-content:space-between;align-items:flex-end;gap:28px;z-index:3}.thrust-panel{width:230px;padding-bottom:20px}.thrust-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.thrust-head>.eyebrow{font-size:11px;color:#c2d8dd}.thrust-head strong{font-size:24px;font-family:'Barlow Condensed',sans-serif;color:var(--cyan)}.thrust-bars{height:16px;display:flex;gap:4px;margin:8px 0 11px}.thrust-bars i{flex:1;border-radius:1px;background:#90bec526;transition:background .1s}.thrust-bars i.on{background:var(--cyan);box-shadow:0 0 6px #80e6df33}.thrust-bars.hot i.on{background:var(--orange)}#combo-hint{font-size:11px;color:#a4bec5;letter-spacing:.04em}.boost-area{text-align:center}.boost-button{width:292px;min-height:79px;display:flex;align-items:center;justify-content:center;gap:17px;border:none;border-radius:9px;background:var(--orange);color:#142833;box-shadow:0 5px 0 #a34c38,0 9px 27px #060e1955;transition:background .15s,transform .07s,box-shadow .07s}.boost-button:hover{background:#ff9e7a}.boost-button:active,.boost-button.tapped{transform:translateY(4px);box-shadow:0 1px 0 #a34c38,0 3px 15px #060e1955}.boost-button>svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.boost-button strong{font-size:18px;font-weight:900;letter-spacing:.03em}.boost-button small{display:block;font-size:11px;font-family:'Barlow Condensed',sans-serif;letter-spacing:2px;margin-top:5px}.key-cap{width:25px;height:24px;border:1px solid #5a443d6b;border-radius:4px;display:grid;place-items:center;font-size:17px}.boost-area p{font-size:11px;color:#b5c8ce;letter-spacing:.03em;margin:13px 0 0}.event-banner{position:absolute;left:50%;top:30%;transform:translate(-50%,-20%);z-index:4;text-align:center;opacity:0;pointer-events:none;white-space:nowrap;filter:drop-shadow(0 2px 6px #07202b);transition:opacity .25s,transform .25s}.event-banner.visible{opacity:1;transform:translate(-50%,0)}.event-banner span{font-family:'Barlow Condensed',Impact,sans-serif;display:block;font-size:49px;letter-spacing:6px;color:#b1fff3;font-weight:600}.event-banner strong{font-size:15px;letter-spacing:3px;display:block;margin-top:4px}.combo-pop{position:absolute;left:calc(50% + 105px);top:46%;z-index:4;font-family:'Barlow Condensed',sans-serif;font-size:26px;font-weight:700;transform:rotate(-12deg);color:#fff5bf;pointer-events:none;opacity:0}.journey{padding:21px 4px 0;position:relative}.journey-label{display:flex;align-items:center;justify-content:space-between;color:#78949f}.journey-label .eyebrow{font-size:11px}.journey-label>span:last-child{font-family:'Barlow Condensed',sans-serif;font-size:14px;color:#cee2e6}.journey-line{position:absolute;top:64px;left:19px;right:19px;height:1px;background:#2a414b}.journey-line>div{width:0;height:1px;background:var(--cyan);transition:width .1s}#journey-stops{list-style:none;padding:0;margin:15px 0 0;display:flex;justify-content:space-between;position:relative}#journey-stops li{position:relative;min-width:31px;color:#6f8892;text-align:center;font-size:11px;white-space:nowrap}#journey-stops li:before{content:'';display:block;margin:0 auto 10px;width:7px;height:7px;outline:5px solid var(--bg);background:var(--bg);border:1px solid #49616b;border-radius:50%}#journey-stops li.active{color:var(--cyan)}#journey-stops li.active:before{background:var(--cyan);border-color:var(--cyan);box-shadow:0 0 0 4px #183b40}#journey-stops li.passed:before{background:#578689;border-color:#578689}footer{display:flex;justify-content:space-between;gap:12px;padding:25px 4px 24px;color:#697f89;font-size:11px;letter-spacing:.04em}footer>span:last-child{display:flex;gap:8px;align-items:center}footer b{font-weight:400;color:#344d58}kbd{font-family:'Barlow Condensed',monospace;font-size:10px;border:1px solid #324650;border-radius:3px;padding:1px 4px}.footer-id{margin-left:25px;letter-spacing:1.5px;font-family:'Barlow Condensed',sans-serif}.overlay{position:absolute;inset:0;z-index:10;display:grid;place-items:center;background:#06151dd9;backdrop-filter:blur(9px);overflow:auto;padding:25px}.overlay[hidden]{display:none}.pause-card,.result-card{max-width:530px;width:100%;text-align:center}.pause-card h2{font-size:30px;margin:18px 0 5px}.pause-card p,.result-card>p{font-size:14px;color:#b1c5cb;line-height:1.8}.pause-card>.eyebrow{color:var(--cyan)}.primary-button{display:block;border:0;background:var(--orange);border-radius:8px;color:#132833;font-weight:800;padding:18px 25px;min-width:230px;margin:25px auto 0;font-size:16px}.primary-button:hover{background:#ffa17a}.primary-button span{margin-left:30px}.text-button{display:block;border:0;background:transparent;color:#afc4cd;margin:20px auto 0;font-size:13px}.finish-badge{display:inline-block;color:var(--cyan);border:1px solid #69c6c269;border-radius:30px;padding:7px 16px;font-size:12px;font-family:'Barlow Condensed',sans-serif;letter-spacing:3px}.result-card h2{font-size:clamp(35px,5vw,59px);line-height:1.35;letter-spacing:.05em;margin:20px 0 15px}.result-card em{font-style:normal;color:var(--cyan)}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0 0;padding:21px 0;border-block:1px solid #59708066}.result-stats>div{display:flex;flex-direction:column;gap:8px}.result-stats>div+div{border-left:1px solid #59708066}.result-stats span{font-size:12px;color:#abc2c8}.result-stats strong{font-family:'Barlow Condensed',sans-serif;font-size:35px;font-weight:500}dialog{background:#10252f;color:var(--ink);border:1px solid #41616a;border-radius:15px;width:min(480px,calc(100% - 30px));padding:33px;max-height:90svh}dialog::backdrop{background:#020c13b8;backdrop-filter:blur(5px)}dialog h2{font-size:30px;margin:13px 0 20px}dialog>.eyebrow{color:var(--cyan)}dialog p,dialog li{font-size:14px;line-height:1.9;color:#b7ccd1}dialog ol{padding-left:23px}dialog li{padding-left:3px;margin-bottom:13px}dialog strong{color:#f2f7f6;font-weight:600}dialog .help-note{font-size:12px;border-top:1px solid var(--line);padding-top:16px}.dialog-close{position:absolute;right:18px;top:12px;background:transparent;border:0;font-size:28px;color:#a0b7be}dialog .primary-button{width:100%}body.flying .character-callout{display:none}body.flying .launch-shadow{opacity:0}body.flying .game{border-color:#3a6a7b}body.flying .scene-shade{background:linear-gradient(180deg,#06122465,transparent 45%,#06111ced 100%)}
@media(min-width:1500px){.game{height:720px}.character-wrap{width:235px;height:300px}.header{height:114px}}@media(max-width:1000px){.app{padding:0 23px}.header-center{display:none}.game{min-height:545px}.character-wrap{width:175px;height:223px}.hud-top{left:26px;right:26px}.bottom-hud{left:26px;right:26px}.thrust-panel{width:190px}.boost-button{width:264px}.location h1{font-size:30px}.distance strong{font-size:57px}.flight-stats{right:26px}.altitude-rule{left:26px}}
@media(max-width:600px){.app{padding:0 12px}.header{height:77px;gap:10px}.brand{gap:9px}.brand svg{width:31px;height:31px}.brand>span{font-size:22px}.brand small{font-size:8px;letter-spacing:2px;margin-top:6px}.controls{gap:6px}.icon-button,.help-button{width:34px;height:34px}.game{height:calc(100svh - 182px);min-height:570px;border-radius:11px}.hud-top{left:19px;right:19px;top:22px;gap:10px}.location h1{font-size:25px;margin-top:6px}.location p{font-size:11px;max-width:170px;line-height:1.7}.location>.eyebrow{font-size:10px;letter-spacing:1.2px}.distance>.eyebrow{font-size:9px;letter-spacing:1px}.distance strong{font-size:47px;letter-spacing:0}.distance>div{gap:5px}.distance>div>span{font-size:13px}.distance>span:last-child{font-size:9px;max-width:130px;margin-left:auto;line-height:1.8}.character-wrap{width:157px;height:201px;top:47%;left:48%}.character-callout{font-size:11px;bottom:calc(100% + 5px)}.flight-stats{right:18px;top:35%;gap:15px}.flight-stats .eyebrow{font-size:9px;letter-spacing:1px}.flight-stats strong{font-size:24px}.flight-stats strong span{font-size:15px}.altitude-rule{left:20px;top:34%;gap:14px}.bottom-hud{left:20px;right:20px;bottom:19px;flex-direction:column;align-items:stretch;gap:13px}.thrust-panel{width:100%;padding:0}.thrust-head{justify-content:space-between}.thrust-head strong{font-size:22px}.thrust-bars{margin:5px 0 0;height:10px;gap:4px}#combo-hint{position:absolute;top:5px;left:0;width:100%;text-align:center;font-size:9px;pointer-events:none}.thrust-head>.eyebrow{font-size:9px;letter-spacing:1px}.boost-button{width:100%;min-height:68px;gap:18px;border-radius:7px}.boost-button strong{font-size:17px}.boost-button small{font-size:10px;margin-top:4px}.boost-area p{font-size:9px;margin-top:11px}.event-banner{top:23%}.event-banner span{font-size:35px;letter-spacing:4px}.event-banner strong{font-size:12px;letter-spacing:1px}.combo-pop{left:calc(50% + 61px);top:50%;font-size:23px}.journey{padding:16px 3px 0}.journey-label .eyebrow{font-size:10px}.journey-line{top:53px;left:13px;right:13px}#journey-stops{margin-top:13px}#journey-stops li{font-size:9px;min-width:24px}#journey-stops li:before{width:6px;height:6px;margin-bottom:8px;outline-width:4px}#journey-stops li.optional{display:none}footer{padding:19px 3px;font-size:9px}footer>span:last-child{display:none}.result-card h2{font-size:37px}.result-card>p{font-size:12px}.result-stats strong{font-size:31px}.result-stats span{font-size:10px}.overlay{padding:25px 18px}.pause-card h2{font-size:25px}dialog{padding:28px 24px}dialog h2{font-size:27px}dialog p,dialog li{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}.character-body{will-change:auto}}

/* Portrait playfield on phones and desktop. */
.app{max-width:520px;padding:0 12px}.header{height:76px;gap:10px}.header-center{display:none}.brand{gap:9px}.brand svg{width:31px;height:31px}.brand>span{font-size:23px}.brand small{font-size:9px;letter-spacing:2px;margin-top:6px}.controls{gap:7px}.icon-button,.help-button{width:35px;height:35px}.game{height:min(760px,calc(100svh - 174px));min-height:570px;border-radius:12px;touch-action:manipulation}.hud-top{left:20px;right:20px;top:24px;gap:12px}.location{min-width:0;flex:1}.location>.eyebrow{font-size:11px;letter-spacing:.8px}.location h1{font-size:27px;letter-spacing:0;margin:9px 0;line-height:1.4}.location p{font-size:12px;line-height:1.75;max-width:190px}.distance{max-width:47%}.distance>.eyebrow{font-size:11px;letter-spacing:.6px}.distance strong{font-size:59px;letter-spacing:0;line-height:1.25}.distance>div{gap:6px}.distance>div>span{font-size:15px}.distance>span:last-child{font-size:11px;line-height:1.7;max-width:170px;margin-left:auto}.character-wrap{width:175px;height:223px;left:48%;top:51%}.character-callout{font-size:12px;bottom:calc(100% + 8px)}.flight-stats{right:20px;top:39%;gap:18px}.flight-stats .eyebrow{font-size:10px;letter-spacing:.7px}.flight-stats strong{font-size:29px}.flight-stats strong span{font-size:17px}.altitude-rule{left:20px;top:37%;gap:15px}.bottom-hud{left:20px;right:20px;bottom:20px;flex-direction:column;align-items:stretch;gap:17px}.thrust-panel{width:100%;padding:0}.thrust-head{justify-content:space-between}.thrust-head>.eyebrow{font-size:12px;letter-spacing:1px}.thrust-head strong{font-size:26px}.thrust-bars{height:12px;margin:5px 0 7px;gap:4px}#combo-hint{position:static;display:block;width:auto;text-align:left;font-size:12px;line-height:1.6}.boost-button{width:100%;min-height:79px;gap:13px;border-radius:8px}.boost-button strong{font-size:18px}.boost-button small{font-size:12px;letter-spacing:1.3px;margin-top:5px}.boost-button:disabled{opacity:.7;cursor:default;transform:none;box-shadow:0 5px 0 #6f5147}.boost-area p{font-size:12px;margin-top:12px;line-height:1.6}.event-banner{top:28%}.event-banner span{font-size:36px;letter-spacing:3px}.event-banner strong{font-size:13px;letter-spacing:1px}.combo-pop{left:calc(50% + 55px);top:55%;font-size:24px}.journey{padding:16px 3px 0}.journey-label .eyebrow{font-size:11px}.journey-line{top:54px;left:14px;right:14px}#journey-stops{margin-top:13px}#journey-stops li{font-size:10px;min-width:24px}#journey-stops li:before{width:6px;height:6px;outline-width:4px;margin-bottom:8px}#journey-stops li.optional{display:none}footer{padding:18px 3px;font-size:11px;line-height:1.6}footer>span:last-child{display:none}.overlay{padding:28px 20px}.result-card h2{font-size:38px;margin:24px 0 16px;line-height:1.4}.result-caption{display:block;color:#b3cdd3;font-size:14px;font-weight:500;margin-bottom:12px;letter-spacing:3px}.result-card>p{font-size:14px;line-height:1.9}.result-stats span{font-size:12px}.result-stats strong{font-size:32px}.result-card .primary-button{font-size:15px;width:100%;padding-inline:14px}.primary-button span{margin-left:10px}#result-distance{font-size:13px;color:var(--cyan)}.charging .character-callout{display:none}.charging .location h1{font-family:'Barlow Condensed','Noto Sans JP',sans-serif;font-size:57px;line-height:1.2;font-weight:700;color:var(--orange);margin:7px 0}.charging .flight-stats>div:first-child{display:none}.charging .distance strong{color:var(--cyan)}.score-table{width:100%;border-collapse:collapse;margin-top:24px;font-size:14px;text-align:left}.score-table caption{text-align:left;color:#f1f6f4;font-weight:700;font-size:16px;margin-bottom:12px}.score-table th{color:#80e6df;font-weight:500}.score-table th,.score-table td{padding:9px 8px;border-bottom:1px solid #3b56604d}.score-table tr:last-child td{color:var(--orange);font-weight:700}dialog{width:min(460px,calc(100% - 28px));padding:29px 24px}dialog p,dialog li{font-size:14px}
@media(max-width:380px){.app{padding:0 8px}.header{gap:7px}.brand>span{font-size:21px;letter-spacing:.5px}.brand small{letter-spacing:1.5px}.controls{gap:5px}.icon-button,.help-button{width:32px;height:32px}.hud-top{left:16px;right:16px;gap:9px}.location h1{font-size:24px}.distance strong{font-size:50px}.location>.eyebrow,.distance>.eyebrow{font-size:10px}.character-wrap{width:154px;height:196px}.flight-stats{right:16px}.bottom-hud{left:16px;right:16px;gap:14px}.boost-button strong{font-size:16px}.boost-button>svg{width:24px}.boost-area p,#combo-hint{font-size:11px}.thrust-head>.eyebrow{font-size:11px}.result-card h2{font-size:32px}}
@media(max-height:750px){.game{min-height:550px}.character-wrap{width:151px;height:192px}.bottom-hud{gap:11px;bottom:17px}.boost-button{min-height:68px}.thrust-bars{height:10px}.boost-area p{margin-top:10px}.event-banner{top:27%}.flight-stats{top:38%;gap:13px}.flight-stats strong{font-size:24px}.hud-top{top:20px}}

/* Arrival holds and requested score presets. */
.debug-panel{margin:24px 3px 0;border:1px solid #304a57;border-radius:10px;background:#10232e;padding:15px 16px}.debug-panel summary{font-size:14px;font-weight:700;color:#b3eee8;cursor:pointer;line-height:1.7}.debug-panel p{font-size:13px;line-height:1.8;color:#bed0d6;margin:12px 0}.debug-option{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.8}.debug-option input{accent-color:var(--orange);width:19px;height:19px;margin:0}.debug-panel .debug-note{font-size:12px;color:#93adb9}.debug-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-top:1px solid #334f5b70}.debug-row>span{flex:1;font-size:14px}.debug-row button{min-width:53px;min-height:42px;border:1px solid #45616d;border-radius:6px;padding:8px 9px;background:#203b48;color:#e7f6f4;font-size:14px}.debug-row button:hover{background:#2b5a62;border-color:var(--cyan)}.debug-row button:active{transform:translateY(1px)}.result-card{animation:arrival-card .55s ease both}.result-card #result-destination{display:block}.ending .boost-button{background:#789a9f;box-shadow:0 5px 0 #415c66}.ending .character-callout{display:none}#result-overlay{background:#06151dc2;backdrop-filter:blur(4px)}@keyframes arrival-card{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.result-card{animation:none}}@media(max-width:380px){.debug-panel{padding:13px 12px}.debug-row{gap:5px}.debug-row>span{font-size:13px}.debug-row button{min-width:45px;font-size:13px;padding:8px 7px}}

/* Last three seconds: one pulse per second, without moving the HUD layout. */
.distance strong{display:inline-block;transform-origin:75% 55%;will-change:transform}.charging .distance.countdown-danger strong,.charging .distance.countdown-danger>div>span{color:#ff4d59;text-shadow:0 0 18px #ff293858}.charging .distance.countdown-danger>.eyebrow{color:#ff9ca3}

/* Keep the character and results in separate rows, even on a narrow phone. */
#result-overlay{background:transparent;backdrop-filter:none;padding:16px;grid-template-rows:minmax(150px,1fr) auto;gap:10px;align-items:stretch;justify-items:center}
.result-character-slot{width:100%;min-height:150px;display:flex;align-items:center;justify-content:center;padding:12px}
.result-view:not(.landed-result) .character-wrap{position:relative;inset:auto;transform:none!important;width:auto;max-width:100%;height:min(100%,223px);aspect-ratio:175/223}
.result-view .character-callout,.result-view .launch-shadow,.result-view .hud-top,.result-view .flight-stats,.result-view .bottom-hud,.result-view .altitude-rule,.result-view .event-banner,.result-view .combo-pop{display:none}
.result-card{align-self:end;background:#091c27ed;border:1px solid #6fabb34a;border-radius:16px;padding:16px 18px;box-shadow:0 8px 32px #020a1440}
.result-card .finish-badge{font-size:10px;padding:4px 12px;letter-spacing:2px}
.result-card h2{font-size:30px;line-height:1.25;margin:10px 0 6px}
.result-caption{font-size:11px;letter-spacing:2px;margin-bottom:4px}
.result-card>p{font-size:12px;line-height:1.65;margin:6px 0}
.result-card #result-distance{font-size:11px}
.result-card .result-stats{margin-top:12px;padding:10px 0}
.result-stats>div{gap:3px}.result-card .result-stats span{font-size:10px}.result-card .result-stats strong{font-size:25px}
.result-card .primary-button{min-width:0;margin-top:12px;padding:13px 8px;font-size:14px;min-height:48px}
@media(max-width:380px){#result-overlay{padding:12px;gap:6px}.result-card{padding:14px 12px}.result-card h2{font-size:27px}.result-card .primary-button{font-size:13px}}

/* Distinct failure / gravity endings. */
.absorbing .bottom-hud,.absorbing .flight-stats,.overloading .bottom-hud,.overloading .flight-stats,.overloading .hud-top{display:none}
.overloading .event-banner{top:20%;white-space:normal;width:calc(100% - 32px)}
.overloading .event-banner strong{font-size:20px;color:#fff2e5;letter-spacing:0}
.overloading .event-banner span{color:#ff9e79;font-size:32px;letter-spacing:2px}
.result-view.zero-click .character-callout{display:block;font-size:17px;letter-spacing:1px;padding:10px 16px}
.result-view.zero-click .result-character-slot{padding-top:62px}
.result-view.zero-click .character-wrap{height:min(100%,175px)}
.debug-row:last-child{flex-wrap:wrap}.debug-row:last-child>span{flex-basis:100%}

.absorbing .character-body,.overloading .character-body{transform-origin:50% 50%}

/* Cinematic finales share the game's clock; no independent CSS timers. */
#ending-effects{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none}
.finale-scene{position:absolute;inset:0;z-index:5;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;overflow:hidden;pointer-events:none;padding:30px 0 64px}
#finale-art{display:block;width:94%;max-width:470px;max-height:68%;object-fit:contain;flex-shrink:1;mask-image:radial-gradient(ellipse,black 54%,transparent 73%);will-change:transform}
#finale-title{font-size:clamp(28px,8vw,42px);line-height:1.5;font-weight:800;letter-spacing:.18em;padding-left:.18em;color:#ecfff7;text-shadow:0 0 28px #9dffd587}
.finale-curtain{position:absolute;inset:0;z-index:7;pointer-events:none}
.finale-rumble{position:absolute;top:26%;right:11%;z-index:4;font-size:clamp(28px,8vw,40px);font-weight:900;font-style:italic;letter-spacing:.1em;color:#d4fbef;text-shadow:2px 3px #102d38;pointer-events:none}
.finale-narrative{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:40px 28px 70px;color:#16313b;pointer-events:none;text-align:center}
.finale-narrative p{margin:0;max-width:100%;font-size:clamp(16px,4.3vw,23px);font-weight:600;line-height:2.1;letter-spacing:0;white-space:pre-line;overflow-wrap:normal;text-wrap:wrap}
.finale-narrative.the-end p{font-family:'Barlow Condensed',sans-serif;font-size:56px;letter-spacing:.15em;font-weight:500}
.skip-ending{position:fixed;right:max(16px,calc((100vw - 520px)/2 + 28px));bottom:max(16px,env(safe-area-inset-bottom));z-index:40;display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 17px;border:1px solid #a5c9d2;border-radius:24px;background:#10242eed;color:#f1faf8;font-size:14px;font-weight:600;touch-action:manipulation}
.skip-ending span{font-size:22px;line-height:1}.skip-ending:hover{background:#28515a}
.cinematic .hud-top,.cinematic .flight-stats,.cinematic .bottom-hud,.cinematic .altitude-rule,.cinematic .event-banner,.cinematic .combo-pop,.cinematic .character-callout,.cinematic .launch-shadow{display:none}
.cinematic .character-body{transform-origin:50% 50%}
#pause-overlay{z-index:30}
.result-view.transformed .character-wrap{display:none}
.result-form{display:block;height:min(100%,240px);width:min(100%,240px);object-fit:contain;mask-image:radial-gradient(ellipse,black 56%,transparent 73%)}
.finale-scene[hidden],.finale-curtain[hidden],.finale-narrative[hidden],.finale-rumble[hidden],.skip-ending[hidden],.result-form[hidden]{display:none}
@media(max-width:380px){.finale-narrative{padding-inline:16px}.finale-narrative p{font-size:clamp(15px,4.3vw,16px)}.finale-narrative.the-end p{font-size:48px}.skip-ending{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}}

/* The launch clears persistent labels toward their nearest playfield edge. */
.hud-top,.flight-stats,.bottom-hud,.altitude-rule{transition:transform .55s cubic-bezier(.4,0,.8,.2),opacity .45s ease,visibility 0s .55s}
.flight-clear .hud-top{transform:translateY(calc(-100% - 40px))}
.flight-clear .flight-stats{transform:translateX(calc(100% + 30px))}
.flight-clear .bottom-hud{transform:translateY(calc(100% + 30px))}
.flight-clear .altitude-rule{transform:translateX(calc(-100% - 30px))}
.flight-clear .hud-top,.flight-clear .flight-stats,.flight-clear .bottom-hud,.flight-clear .altitude-rule{opacity:0;visibility:hidden;pointer-events:none}
.flight-clear .combo-pop{display:none}
.brand,.journey,footer{transition:transform .55s ease,opacity .45s ease,visibility 0s .55s}
.flight-clear:not(.result-view) .brand{transform:translateY(-100%);opacity:0;visibility:hidden}
.flight-clear:not(.result-view) .journey,.flight-clear:not(.result-view) footer{transform:translateY(35px);opacity:0;visibility:hidden}
#combo-hint:empty{display:none}

/* AR direction selector: separate from the only counted input. */
.altitude-rule{top:40%;opacity:1;pointer-events:auto;z-index:4}
.direction-switch{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:68px;min-height:82px;padding:8px 3px;background:linear-gradient(135deg,#0a303ccf,#12323cc9);color:#9dfff0;border:1px solid #80e6df;border-radius:3px 14px 3px 14px;box-shadow:inset 0 0 16px #71ffe225,0 0 15px #123c5059;touch-action:manipulation;cursor:pointer}
.direction-switch:before,.direction-switch:after{content:'';position:absolute;pointer-events:none;width:14px;height:14px;border-color:currentColor;border-style:solid}
.direction-switch:before{left:-4px;top:-4px;border-width:2px 0 0 2px}.direction-switch:after{right:-4px;bottom:-4px;border-width:0 2px 2px 0}
.direction-switch strong{font:600 38px/1 'Barlow Condensed',sans-serif;letter-spacing:2px}
#direction-name{font:600 11px/1.4 'Barlow Condensed',sans-serif;letter-spacing:1px}
.direction-indicator{height:3px;width:20px;background:currentColor;box-shadow:0 0 8px currentColor;margin-bottom:3px}
.direction-switch[aria-pressed=true]{color:#ffd295;border-color:#ffd295;background:linear-gradient(135deg,#48301aca,#241d21db)}
.direction-switch:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 0 20px #0009}
.direction-switch:disabled{cursor:default;opacity:.6}.direction-switch:focus-visible{outline:3px solid white;outline-offset:6px}
.grounded .character-body{transform-origin:50% 97%}
.grounded .character-body img{filter:none}
.grounded .launch-shadow{bottom:0;width:64px;height:10px;background:#23332666;filter:blur(2px);transform:translate(-35%,-4px)}
.grounded .scene-shade{background:linear-gradient(180deg,#061a3166,transparent 28%,transparent 62%,#06111cf5 97%)}
.burning .character-body{transform-origin:50% 50%}
.flight-clear:not(.ending):not(.result-view) .hud-top{transform:none;opacity:1;visibility:visible;transition:none}
.flight-clear .hud-top .location h1{font-size:clamp(21px,5.8vw,27px);text-shadow:0 2px 10px #031723}
.flight-clear .hud-top .distance strong{font-size:clamp(36px,10vw,49px)}

/* Dark glass consoles keep white readouts legible on the sunny plaza. */
.hud-top,.flight-stats,.thrust-panel,.boost-area p{
  border:1px solid #76d7df70;background:linear-gradient(135deg,#071e2aed,#102f3be8);
  box-shadow:inset 0 1px 0 #b4ffff26,inset 3px 0 0 #80e6df80,0 5px 18px #00101b36;
  border-radius:3px 13px 3px 13px;
}
.hud-top{padding:10px 12px;gap:10px;align-items:center}
.hud-top:before,.thrust-panel:after{content:'';position:absolute;width:22px;height:7px;border-top:2px solid #a5fff1;border-right:2px solid #a5fff1;right:6px;top:5px;pointer-events:none}
.hud-top .location h1{font-size:clamp(22px,5.7vw,27px);margin:4px 0}
.charging .hud-top .location h1{font-size:clamp(28px,8.6vw,40px)}
.hud-top .distance{min-width:0;max-width:49%}.hud-top .distance strong{font-size:clamp(40px,11vw,54px)}
.hud-top .distance>.eyebrow{font-size:10px;letter-spacing:.3px}.hud-top .distance>span:last-child{font-size:10px}
.flight-stats{padding:10px 9px;gap:12px}.flight-stats strong{font-size:26px}.flight-stats .eyebrow{font-size:10px}
.thrust-panel{position:relative;padding:7px 10px}.thrust-head>.eyebrow{font-size:11px}.thrust-head strong{font-size:23px}
.boost-area p{padding:5px 8px;margin-top:9px;color:#edf9fb;font-size:11px}
.bottom-hud{gap:10px}
.event-banner{padding:10px 14px;max-width:calc(100% - 36px);white-space:normal;width:max-content}
.event-banner span{font-size:clamp(25px,7vw,34px);letter-spacing:2px}.event-banner strong{line-height:1.7}
.debug-row:first-child{flex-wrap:wrap}.debug-row:first-child>span{flex-basis:100%}
.jumping .character-body{transform-origin:50% 97%}.jumping:not(.result-view) .launch-shadow{display:block;opacity:1}
.guardian-scene{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden;background:#030e18}
.guardian-scene img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;opacity:.85}
.guardian-scene[hidden]{display:none}
.watching .finale-narrative{padding-top:45%;padding-bottom:4%;text-shadow:0 2px 15px #001019}
.result-view.watching .character-wrap{display:none}
@media(max-width:380px){.hud-top{padding:9px;gap:7px}.flight-stats{right:12px;padding:8px 7px}.flight-stats strong{font-size:23px}.boost-area p{font-size:10px}.thrust-panel{padding:6px 8px}}
@media(max-width:380px){.altitude-rule{left:15px}.direction-switch{width:54px;min-height:72px}.direction-switch strong{font-size:32px}#direction-name{font-size:10px;letter-spacing:.3px}}

/* Shared AR blue; transient flavor remains directly on the scene. */
:root{--ar:#0c7bbb}
.hud-top,.flight-stats,.thrust-panel,.boost-area p{
  border-color:var(--ar);background:linear-gradient(135deg,#071e2af5,#0c7bbb38),#071e2aea;
  box-shadow:inset 0 1px 0 #d3efff26,inset 3px 0 0 var(--ar),0 5px 18px #00101b36;
}
.hud-top:before,.thrust-panel:after{border-color:var(--ar)}
.direction-switch,.direction-switch[aria-pressed=true]{color:#e7f5ff;border-color:var(--ar);background:linear-gradient(135deg,#0c7bbb40,#071e2aee);box-shadow:inset 0 0 18px #0c7bbb55,0 0 15px #0c7bbb30}
.direction-switch:before,.direction-switch:after{border-color:var(--ar)}
.direction-indicator{background:var(--ar);box-shadow:0 0 10px var(--ar)}
.thrust-bars i.on,.thrust-bars.hot i.on{background:var(--ar);box-shadow:0 0 7px #0c7bbb80}
.thrust-head strong{color:#e6f6ff}
.event-banner{border:0;border-radius:0;background:none;box-shadow:none;padding:0;text-shadow:0 2px 8px #021420,0 0 3px #021420}
#overheat-tint{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;pointer-events:none}
.character-body{position:relative}
.tumbling .character-body{transform-origin:50% 50%}
.header .controls{flex-shrink:0;gap:4px}
.header .icon-button,.header .help-button{width:38px;height:40px}
.header .brand{min-width:0;gap:6px}.header .brand>span{font-size:clamp(18px,4.7vw,23px);white-space:nowrap}
.header .brand svg{width:27px;flex-shrink:0}.header .brand small{letter-spacing:1px}
#trophies:hover{border-color:var(--ar);color:#bce8ff}
#trophy-dialog{padding:28px 20px;border-color:var(--ar);background:linear-gradient(145deg,#123143,#081b29)}
#trophy-dialog h2{font-size:26px;margin:9px 0 14px}
.trophy-summary{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px}
.trophy-summary strong{font:600 24px 'Barlow Condensed',sans-serif;color:#c0eaff}
.trophy-max-distance{margin:-10px 0 15px;padding:8px 11px;border:1px solid #0c7bbb80;border-radius:4px;background:#0c7bbb20;color:#d7f5ff;font:600 17px/1.4 'Barlow Condensed','Noto Sans JP',sans-serif;letter-spacing:.04em}
#trophy-list{list-style:none;padding:0;margin:0}
#trophy-list li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;padding:14px 0;border-top:1px solid #0c7bbb45}
#trophy-list strong{font-size:16px;line-height:1.6;display:block}
#trophy-list p{font-size:12px;line-height:1.7;margin:3px 0 0;color:#a6c2d2}
.trophy-emblem{font-size:27px;color:#698999;line-height:1}
.earned .trophy-emblem{color:#ffda87;text-shadow:0 0 14px #ffd58055}
.trophy-status{font-size:12px;white-space:nowrap;color:#88a2b1}
.earned .trophy-status{color:#bce8ff}.locked strong{color:#a3b9c5}
.storage-note{color:#ffbd96!important;font-size:12px!important}
.birthday-message{position:absolute;left:50%;top:20%;z-index:9;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);text-align:center;color:#fff9df;text-shadow:0 2px 8px #1d1027,0 0 18px #ff9ecf}.birthday-message span{display:block;font:700 clamp(25px,8vw,38px)/1 'Barlow Condensed',sans-serif;letter-spacing:.12em}.birthday-message strong{display:block;margin-top:8px;font-size:clamp(16px,4.6vw,22px);letter-spacing:.12em}.birthday-message[hidden]{display:none}.walking-home .character-callout{display:block;transform:translateX(-50%) rotate(-4deg)}.walking-home .character-callout a{color:#18303d;text-decoration:underline;text-underline-offset:3px;pointer-events:auto}.walking-home .character-body{transform-origin:50% 93%}

/* Short launch sweep and unobtrusive result-only unlock notifications. */
.launch-go{position:absolute;left:50%;top:35%;z-index:10;pointer-events:none;font:800 clamp(80px,24vw,128px)/1 'Barlow Condensed',sans-serif;font-style:italic;letter-spacing:.04em;color:#fffbee;text-shadow:0 3px 0 #0c7bbb,0 0 28px #0c7bbb;will-change:transform,opacity}
.launch-go[hidden],.trophy-toast[hidden]{display:none}
.trophy-toast{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:60;display:flex;align-items:center;gap:12px;width:min(320px,calc(100vw - 24px));min-height:78px;padding:14px 17px;background:linear-gradient(115deg,#163446fa,#0a1722fa);border:1px solid #0c7bbb;border-radius:13px;box-shadow:0 8px 30px #0007,inset 3px 0 #0c7bbb;pointer-events:none;will-change:transform,opacity}
.trophy-toast-icon{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:50%;background:#0c7bbb22;box-shadow:0 0 18px #0c7bbb33;color:#f1dfae}
.trophy-toast-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.trophy-toast small{display:block;font-size:10px;color:#b2cbd7;line-height:1.5;margin-bottom:4px}.trophy-toast strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.home-ending .brand,.home-ending .header-center,.home-ending .journey,.home-ending footer,.home-ending .debug-panel,.home-ending .hud-top,.home-ending .flight-stats,.home-ending .bottom-hud,.home-ending .altitude-rule,.home-ending .event-banner,.home-ending .combo-pop,.home-ending #help{visibility:hidden!important;opacity:0!important;pointer-events:none;transition:none}
.walking-home.result-view .character-wrap{visibility:hidden}.home-ending .character-callout{display:block}
.debug-home{margin-top:12px;padding:10px 14px;border:1px solid #0c7bbb;border-radius:7px;background:#173b51;color:#f0f8ff;font:inherit;min-height:44px}
.debug-row{flex-wrap:wrap}
.jumping.ending:not(.result-view) .hud-top{transform:none;opacity:1;visibility:visible;transition:none}

/* Landed sprites never teleport into the result slot: the compact card sits above them. */
.landed-result #result-overlay{grid-template-rows:auto 1fr;padding:10px;pointer-events:none;align-content:start}
.landed-result .result-character-slot{display:none}
.landed-result .result-card{grid-row:1;align-self:start;pointer-events:auto;width:100%;padding:9px 12px;border-radius:12px}
.landed-result .result-card .finish-badge{font-size:9px;padding:2px 8px}
.landed-result .result-card h2{font-size:22px;line-height:1.2;margin:5px 0 3px}
.landed-result .result-caption{display:inline;font-size:10px;margin-right:8px;letter-spacing:1px}
.landed-result .result-card #result-destination{display:inline}
.landed-result .result-card>p{font-size:11px;line-height:1.4;margin:3px 0}
.landed-result .result-card .result-stats{margin-top:5px;padding:5px 0}
.landed-result .result-card .result-stats span{font-size:9px}.landed-result .result-card .result-stats strong{font-size:20px;line-height:1.1}
.landed-result .result-card .primary-button{min-height:38px;font-size:13px;margin-top:6px;padding:7px}
.tumbling .launch-shadow{display:block;opacity:.55}
@media(max-width:380px){.header .icon-button,.header .help-button{width:33px;height:38px}.header .brand svg{width:23px}.header .brand small{font-size:8px}.header{gap:6px}#trophy-dialog{padding:25px 16px}#trophy-list li{gap:7px;grid-template-columns:25px minmax(0,1fr) auto}}
/* Edited copy: retain line breaks and fit the longer name on portrait screens. */
.header .brand>span{font-size:clamp(14px,3.7vw,19px)}
.header .brand svg{width:23px}
.character-callout{white-space:pre-line;max-width:calc(100vw - 40px);font-size:clamp(12px,3.5vw,17px)}
#distance-note[hidden],#input-hint[hidden],#combo-pop:empty{display:none!important}
#result-message,#finale-title{white-space:pre-line;overflow-wrap:anywhere}

/* Copy and memory controls for the portrait game. */
#character-callout{white-space:pre;text-align:center;width:max-content;max-width:calc(100vw - 44px);line-height:1.5}
.zero-click #character-callout,.walking-home #character-callout{white-space:nowrap}
#finale-title{display:block;width:100%;text-align:center;white-space:pre;line-height:1.45;font-size:clamp(21px,6vw,32px)}
.trophy-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 20px}
.trophy-heading #trophy-title{margin:0;min-width:0;font-size:clamp(18px,4.6vw,25px)}
.memory-button{flex-shrink:0;min-height:44px;padding:8px 10px;border:1px solid #0c7bbb;border-radius:7px;background:#0c7bbb25;color:#d9f2ff;font:inherit;font-size:12px;cursor:pointer}
.memory-button:hover,.memory-button:focus-visible{background:#0c7bbb65}
.memory-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:24px}
.memory-actions button{width:auto;margin:0;min-height:44px}
#memory-dialog{max-width:420px}#memory-dialog p{line-height:1.8}#memory-error{color:#ff9b7d}
#result-overlay[hidden]{display:none!important}
.trophy-play-count{font-size:14px;color:#bddfeb;margin:8px 0 18px;line-height:1.6}
.overloading:not(.result-view) .hud-top,.overloading:not(.result-view) .bottom-hud,.overloading:not(.result-view) .flight-stats,.overloading:not(.result-view) .character-callout,.overloading:not(.result-view) .event-banner{visibility:hidden}
.result-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.result-actions .primary-button{width:100%;font-size:clamp(11px,3vw,14px);padding-inline:4px;letter-spacing:0}
.result-actions .post-button{background:#0c7bbb;color:white;box-shadow:none}

#back-home{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;color:var(--cyan);text-decoration:underline;text-underline-offset:4px}#back-home:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
