:root{font-family:Arial,Helvetica,sans-serif;color:#25483f;background:#82e5f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden;touch-action:none;user-select:none}canvas{position:fixed;inset:0;display:block;width:100%;height:100%}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #f18a52;outline-offset:6px}header{position:fixed;top:26px;right:28px;z-index:2}#sound{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:8px;border-radius:0;background:transparent;box-shadow:none}#sound svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#sound .waves{display:none}#sound[aria-pressed=true] .waves{display:block}#sound[aria-pressed=true] .muted{display:none}#sound:active{opacity:.6}.bottom{position:fixed;left:32px;right:32px;bottom:28px;display:flex;align-items:flex-end;justify-content:center;gap:20px}.pedal{width:112px;height:112px;border-radius:0;flex-direction:column;display:flex;align-items:center;justify-content:center;gap:14px;box-shadow:0 5px 0 #24473f22;transition:transform 80ms,box-shadow 80ms,background 80ms}.pedal svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.pedal span{font-size:10px;font-weight:800;letter-spacing:1.5px}.reverse{background:#fffdf4;color:#36574a}.gas{background:#ff803f;color:#fffdf4;box-shadow:0 5px 0 #c36c3e}.pedal.pressed{transform:translateY(4px);box-shadow:0 1px 0 #24473f22}.gas.pressed{background:#e9692a;box-shadow:0 1px 0 #c36c3e}.readout{position:fixed;top:24px;left:50%;transform:translateX(-50%);text-align:center;min-width:110px;pointer-events:none}.distance{display:flex;align-items:baseline;justify-content:center;gap:4px}.distance b{font-size:31px;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums}.distance>span{font-size:12px;opacity:.65}#onboard{display:flex;justify-content:center;gap:6px;margin-top:0}.overlay{position:fixed;inset:0;background:#ffffffd9;display:flex;align-items:center;justify-content:center;z-index:5}.hidden{display:none!important}.result{text-align:center;padding:24px}.result h2{font-size:38px;letter-spacing:-1.5px;font-weight:700;margin:0 0 15px}.result p{font-size:21px;margin:0 0 28px;display:flex;flex-direction:column;gap:8px;font-variant-numeric:tabular-nums}.result button{width:180px;height:56px;padding:12px 24px;border-radius:0;background:#ff803f;color:#fffdf4;font-weight:700;font-size:15px;box-shadow:0 4px 0 #c36c3e}.result button:active{background:#e9692a;transform:translateY(3px);box-shadow:0 1px 0 #c36c3e}#loaderror{position:fixed;inset:30% 10%;background:white;padding:25px;z-index:20}@media(max-width:600px){header{top:20px;right:20px}.bottom{left:20px;right:20px;bottom:24px;gap:13px}.pedal{width:104px;height:104px;flex-direction:column;gap:5px;border-radius:0}.pedal svg{width:38px;height:38px}.pedal span{font-size:9px}.distance b{font-size:26px}.result h2{font-size:31px}}@media(max-height:600px){.bottom{bottom:16px}.pedal{height:76px;width:76px;flex-direction:column;gap:3px}.pedal svg{width:34px;height:34px}}

.passengers{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:8px}.person-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.person-icon circle{fill:currentColor;stroke:none}.result-passengers{display:flex;align-items:center;justify-content:center;gap:8px}.result-passengers .person-icon{width:24px;height:24px}@media(max-width:600px){.readout{top:22px}.bottom{gap:18px}.passengers{gap:6px}.person-icon{width:18px;height:18px}}


.bank{position:fixed;left:28px;top:30px;z-index:2}.gold-value{display:flex;align-items:center;justify-content:center;gap:7px;font-size:22px;font-variant-numeric:tabular-nums}.coin-icon{width:24px;height:24px;fill:none;stroke:none}.build-link{margin-top:10px;padding:8px 0;background:none;font-size:11px;font-weight:700}.earned{color:inherit}.result .result-build{display:block;margin:15px auto 0;background:transparent;color:#25483f;box-shadow:none;height:38px;font-size:13px}.result .result-build:active{background:#25483f0a}.garage-panel{width:min(460px,calc(100% - 32px));max-height:94dvh;overflow:auto;touch-action:pan-y;background:#fffdf4;padding:25px 28px;box-shadow:0 12px 50px #25483f14}.garage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.garage-heading h2{font-size:26px;letter-spacing:-.8px;margin:0}.garage-heading button{width:40px;height:40px;background:none;font-size:30px;flex-shrink:0}.garage-bank{justify-content:flex-start;margin-top:10px}.frame-preview{display:block;width:100%;height:150px;margin:8px 0 12px}.frame-preview .installed{stroke:#25483f;stroke-dasharray:none}.part{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #25483f18;padding:16px 0}.part strong{display:block;font-size:15px}.part small{display:block;font-size:11px;line-height:1.5;max-width:190px;margin-top:5px;color:#57766c}.part button{min-width:105px;padding:13px 10px;background:#ff803f;color:#fffdf4;font-weight:700;font-size:12px;flex-shrink:0}.part button:disabled{cursor:default;background:#e9eee5;color:#7a8d81}.part.max button{background:#d8efbf;color:#355e39}.garage-note{font-size:11px;color:#57766c;text-align:center;margin:15px 0 0}#garage{z-index:10;background:#fffffff0}#saveWarning{color:#986b24}@media(max-width:600px){.bank{left:20px;top:25px}.bank .gold-value{font-size:19px}.coin-icon{width:21px;height:21px}.garage-panel{padding:18px 20px}.garage-heading h2{font-size:23px}.part{gap:10px}.part button{min-width:90px}.frame-preview{height:125px}}

.level-pips{display:flex;gap:4px;margin-top:7px}.level-pips i{width:18px;height:4px;background:#25483f18}.level-pips i.on{background:#25483f}@media(max-height:550px){.garage-panel{padding:12px 20px}.frame-preview{height:70px;margin:0}.part{padding:9px 0}.garage-bank{margin-top:0}.garage-note{margin-top:8px}}

.result{font-weight:700}.result p,.result .gold-value{font-size:22px;font-weight:700}.build-link{padding:12px 19px;background:#fffdf4;color:#36574a;box-shadow:0 4px 0 #24473f22;font-size:12px}.build-link:active{transform:translateY(3px);box-shadow:0 1px 0 #24473f22}.result .result-build{background:#fffdf4;color:#36574a;box-shadow:0 4px 0 #24473f22;height:56px;font-size:15px;margin-top:14px}.result .result-build:active{background:#f4f3e9;box-shadow:0 1px 0 #24473f22}

.gold-value{color:#25483f}.garage-panel{background:transparent;box-shadow:none;text-align:center;width:min(490px,calc(100% - 32px));padding:24px;max-height:96dvh}.garage-heading{justify-content:center}.garage-heading h2{font-size:38px;letter-spacing:-1.5px}.garage-bank{justify-content:center;margin-top:16px;font-weight:700}.frame-preview{height:130px;margin:12px 0}.part{text-align:left;gap:12px}.part>div{flex:1}.part small{max-width:none}.part button{min-width:110px}#garage{background:#ffffffd9}.trip-start{width:180px;height:56px;margin-top:24px;background:#ff803f;color:#fffdf4;box-shadow:0 4px 0 #c36c3e;font-weight:700;font-size:15px}.trip-start:active{background:#e9692a;transform:translateY(3px);box-shadow:0 1px 0 #c36c3e}.guard-icon{width:39px;height:34px;flex-shrink:0;fill:none;stroke-linecap:square}.guard-outline{stroke:#25483f30;stroke-width:2}.guard-highlight{stroke:#25483f;stroke-width:4}.guard-arrow{stroke:#ff803f;stroke-width:2}.rider-slot{display:flex}.rider-icon{width:19px;height:25px;fill:none;stroke:#25483f;stroke-width:1.2;stroke-linejoin:round}.rider-slot.on .rider-icon{fill:#25483f}.rider-slot.driver{padding-right:6px;margin-right:2px;border-right:1px solid #25483f30}#onboard{gap:5px}.readout{min-width:130px}.garage-note{font-weight:400}@media(max-width:600px){.garage-heading h2{font-size:31px}.garage-panel{padding:20px 10px}.part{gap:9px}.part button{min-width:95px}.guard-icon{width:33px}.rider-icon{width:17px;height:23px}}@media(max-height:600px){.garage-panel{padding:16px 20px}.garage-heading h2{font-size:30px}.frame-preview{height:70px;margin:0}.garage-bank{margin-top:8px}.part{padding:9px 0}.trip-start{margin-top:14px}.garage-note{margin-top:10px}}


.part button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:146px}.upgrade-price{display:flex;align-items:center;gap:4px}.upgrade-price .coin-icon{width:19px;height:19px}.part button:disabled .coin-icon{opacity:.65}@media(max-width:600px){.part button{min-width:132px;padding:13px 8px;gap:7px}.part strong{font-size:14px}}

.result #resultGold{font:inherit}.result .earned{font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit}




.pedal-control{display:flex;flex-direction:column;align-items:center}.bottom{flex-wrap:wrap;row-gap:10px;bottom:10px}.control-hint{flex:0 0 100%;display:flex;align-items:center;justify-content:center;gap:9px;margin:0;color:#25483f;font-size:14px;font-weight:700;line-height:1;white-space:nowrap;pointer-events:none}.key-grid{display:grid;grid-template-columns:repeat(4,19px);gap:3px}.control-hint kbd{display:flex;align-items:center;justify-content:center;width:19px;height:19px;border:1px solid #25483f70;background:#fffdf4b3;box-shadow:0 1px 0 #25483f33;font:700 11px Arial,Helvetica,sans-serif}@media(max-width:400px){.control-hint{font-size:12px;gap:7px}}@media(max-height:600px){.bottom{bottom:7px;row-gap:8px}.control-hint{font-size:12px}.key-grid{grid-template-columns:repeat(4,17px);gap:2px}.control-hint kbd{width:17px;height:17px;font-size:10px}}

/* Platform viewport: keep the active game within a 2:1 ratio. */
html{height:100%;background:#25483f}body{height:100%;overscroll-behavior:none;-webkit-user-select:none;-webkit-touch-callout:none}
#stage{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,200dvh);height:min(100dvh,200vw);overflow:hidden;background:#82e5f3}
#loading{position:absolute;inset:0;z-index:30;background:#82e5f3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;font-weight:700}
#loading button{background:#ff803f;color:#fffdf4;padding:16px 28px;font-weight:700}
#saveStatus{position:absolute;top:88px;left:50%;transform:translateX(-50%);z-index:15;padding:8px 12px;background:#fffdf4;font-size:12px;text-align:center;max-width:90%}
@media(max-height:420px){.garage-panel{padding:10px 20px}.garage-heading h2{font-size:25px}.garage-bank{margin-top:4px}.frame-preview{height:55px}.part{padding:7px 0}.part button{padding:10px}.trip-start{height:42px;margin-top:10px}}


/* Keyboard hints double as hold controls, with one shared visual language. */
#garage{background:#ffffffed}
.icon-definitions{position:absolute;overflow:hidden;pointer-events:none}
.preview-boost .boost-installed{display:none}
.preview-boost .boost-outline{fill:none;stroke:#9bb6aa;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none}
.preview-boost.installed .boost-installed{display:initial}
.preview-boost.installed .boost-outline{display:none}
.control-hint{gap:20px;align-items:center;pointer-events:auto;position:relative;font-size:12px}
.control-group{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;background:none;min-width:60px;font:700 12px Arial,Helvetica,sans-serif;color:#25483f}
.control-hint .key-grid{height:20px;grid-template-columns:repeat(4,20px);gap:3px}
.control-hint .key-grid kbd{width:20px;height:20px}
.control-hint .control-group>kbd{width:20px;height:20px;font-size:11px}
.control-label{line-height:1;white-space:nowrap}
.boost-control.active>kbd{background:#ff803f;color:#fffdf4;border-color:#d96b32}
.boost-control:disabled{cursor:default;opacity:.45}
#aimHint{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);margin:0;padding:7px 10px;background:#fffdf4dd;color:#25483f;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none}
#game.aiming{cursor:crosshair}
@media(max-height:600px){.control-hint{gap:21px}.control-group{gap:5px;font-size:11px}.control-hint .key-grid{height:17px;grid-template-columns:repeat(4,17px)}.control-hint .key-grid kbd{width:17px;height:17px}.control-hint .control-group>kbd{width:17px;height:17px;font-size:10px}.bottom{row-gap:8px}}

.resource-top{display:flex;align-items:center;gap:19px}
.canister-stock{display:flex;align-items:center;gap:5px;font-size:22px;font-variant-numeric:tabular-nums}
.canister-stock svg{width:30px;height:26px;flex-shrink:0}
.thruster-stock{display:flex;align-items:center;gap:7px;margin-top:9px}
.thruster-stock>svg{width:27px;height:24px;flex-shrink:0}
.thruster-meter{width:74px;height:7px;background:#25483f26;overflow:hidden}
.thruster-meter i{display:block;width:100%;height:100%;background:#ff803f}
#thrusterFuel{font-size:11px;font-variant-numeric:tabular-nums;min-width:34px}
/* Preserve the original pedal sizes; compact hints take only one key row. */
.pedal{width:112px;height:112px;flex-shrink:0}
@media(max-width:600px){.pedal{width:104px;height:104px}.canister-stock{font-size:19px}.resource-top{gap:12px}.thruster-meter{width:60px}}
@media(max-height:600px){.pedal{width:76px;height:76px}}

.canister-stock.unowned,.thruster-stock.unowned{opacity:.5}
/* Five upgrade rows must fit without hiding the heading or the Start trip button. */
@media(max-height:800px){
 .garage-panel{padding:16px 24px;max-height:96dvh}
 .garage-heading h2{font-size:30px}
 .garage-bank{margin-top:8px}
 .frame-preview{height:105px;margin:8px 0}
 .part{padding:11px 0}
 .trip-start{margin-top:16px;height:50px}
}
@media(max-height:600px){
 .garage-panel{padding:10px 20px}
 .garage-heading h2{font-size:26px}
 .garage-bank{margin-top:4px}
 .frame-preview{height:70px;margin:4px 0}
 .part{padding:7px 0}
 .part button{padding:10px}
 .trip-start{height:42px;margin-top:10px}
}
@media(max-height:460px){
 .garage-panel{padding:8px 20px}
 .garage-heading h2{font-size:23px}
 .garage-bank{margin-top:3px;font-size:18px}
 .frame-preview{height:50px;margin:2px 0}
 .part{padding:5px 0}
 .part button{padding:7px 10px}
 .trip-start{height:36px;margin-top:8px}
}

/* Device-specific controls. SDK device type wins over viewport size. */
.pedal-control,.touch-boost-icon,.touch-move-hint{display:none}
[data-controls="touch"] .pedal-control{display:flex}
[data-controls="keyboard"] .bottom{bottom:18px}
#adWait{position:absolute;inset:0;z-index:40;background:#fffdf4dd;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700}
[data-controls="touch"] .bottom{left:18px;right:18px;bottom:max(10px,env(safe-area-inset-bottom));gap:12px;display:grid;grid-template-columns:76px 76px 1fr 72px 72px;align-items:end}
[data-controls="touch"] .pedal{width:76px;height:76px;gap:5px}
[data-controls="touch"] .pedal svg{width:32px;height:32px}
[data-controls="touch"] .pedal span{font-size:9px}
[data-controls="touch"] .control-hint{display:contents}
[data-controls="touch"] .move-hint,[data-controls="touch"] .boost-control>kbd{display:none}
[data-controls="touch"] #thrusterControl{grid-column:4}
[data-controls="touch"] #canisterControl{grid-column:5}
[data-controls="touch"] .boost-control{width:72px;height:76px;justify-content:center;background:#fffdf4;box-shadow:0 4px 0 #24473f22;font-size:10px;gap:5px}
[data-controls="touch"] .boost-control.active{background:#ffcf35;transform:translateY(2px)}
[data-controls="touch"] .touch-boost-icon{display:block;width:36px;height:32px}
[data-controls="touch"] .touch-move-hint{display:block;grid-column:1/3;grid-row:2;text-align:center;white-space:nowrap;font-size:11px;font-weight:700;margin:0}
[data-controls="touch"] .boost-control:disabled{opacity:.5}
[data-controls="touch"] .garage-panel{display:flex;flex-direction:column;height:min(680px,96dvh);overflow:hidden}
[data-controls="touch"] .garage-heading,[data-controls="touch"] .garage-bank,[data-controls="touch"] .frame-preview{flex-shrink:0}
[data-controls="touch"] #parts{min-height:0;flex:1;overflow-y:auto;touch-action:pan-y}
[data-controls="touch"] .part button{min-height:44px}
[data-controls="touch"] .trip-start{align-self:center;flex-shrink:0;min-height:44px}
@media(max-height:420px){[data-controls="touch"] .frame-preview{display:none}[data-controls="touch"] .garage-bank{margin-bottom:7px}}
[data-controls="touch"] #aimHint{font-size:11px;bottom:calc(100% + 8px)}
@media(max-width:500px){[data-controls="touch"] .bottom{left:10px;right:10px;gap:7px;grid-template-columns:62px 62px 1fr 60px 60px}[data-controls="touch"] .pedal,[data-controls="touch"] .boost-control{width:100%;height:64px}[data-controls="touch"] .pedal span{font-size:8px}[data-controls="touch"] .boost-control{font-size:9px}}

/* Mobile safe areas: preserve full-bleed scenery, protect interactive UI. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
[data-controls="touch"] .bottom{left:max(18px,var(--safe-left));right:max(18px,var(--safe-right));bottom:max(10px,var(--safe-bottom))}
[data-controls="touch"] .bank{left:max(28px,var(--safe-left));top:max(30px,var(--safe-top))}
[data-controls="touch"] header{right:max(28px,var(--safe-right));top:max(26px,var(--safe-top))}
[data-controls="touch"] .readout{top:max(24px,var(--safe-top))}
[data-controls="touch"] .overlay{padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left)}
[data-controls="touch"] .garage-panel{height:min(680px,calc(96dvh - var(--safe-top) - var(--safe-bottom)));max-height:100%}
[data-controls="touch"] #saveStatus{top:calc(88px + var(--safe-top))}
@media(max-width:600px){[data-controls="touch"] .bank{left:max(20px,var(--safe-left));top:max(25px,var(--safe-top))}[data-controls="touch"] .readout{top:max(22px,var(--safe-top))}}
@media(max-width:500px){[data-controls="touch"] .bottom{left:max(10px,var(--safe-left));right:max(10px,var(--safe-right))}}

/* Responsive UI coordinates, independent of the physical canvas. */
#ui{position:absolute;inset:0 auto auto 0;transform-origin:top left;pointer-events:none}
#ui button,#ui .overlay,#ui #loading,#ui #adWait{pointer-events:auto}
header{display:flex;align-items:center;gap:12px}
#retryTrip{width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:8px;background:transparent;color:#25483f;box-shadow:none}
#retryTrip svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#retryTrip:active{opacity:.6}
.garage-panel,[data-controls="touch"] .garage-panel{display:flex;flex-direction:column;height:min(700px,calc(var(--ui-height,100dvh) - var(--safe-top) - var(--safe-bottom) - 20px));max-height:100%;overflow:hidden}
.garage-heading,.garage-bank,.frame-preview,.trip-start,#rewardOffer,#rewardStatus{flex-shrink:0}
#parts{min-height:0;flex:1;overflow-y:auto;touch-action:pan-y}
.trip-start{align-self:center}
#rewardOffer{margin:9px 0 0;text-align:center}
#rewardTitle{display:block;font-size:13px;margin-bottom:5px}
#rewardUpgrade{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 13px;background:#fffdf4;box-shadow:0 3px 0 #25483f22;font-size:13px;font-weight:700}
#rewardUpgrade svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
#rewardStatus{font-size:12px;margin:8px 0 0}
[data-controls="touch"] header{gap:6px}
@media(max-height:420px){#rewardOffer{margin-top:5px}#rewardTitle{font-size:12px;margin-bottom:2px}#rewardUpgrade{font-size:12px;padding:4px 10px}.result{padding:8px}.result h2{margin-bottom:8px}.result p{gap:4px;margin-bottom:14px}.result button{height:48px}.result .result-build{height:44px;margin-top:10px}}

/* Garage scrollbar: flat orange/cream game palette, no browser arrow buttons. */
#parts{scrollbar-width:thin;scrollbar-color:#ff803f #25483f12;scrollbar-gutter:stable;padding-right:8px;overscroll-behavior:contain}
#parts::-webkit-scrollbar{width:8px;height:8px}
#parts::-webkit-scrollbar-track{background:#25483f12;border-radius:0}
#parts::-webkit-scrollbar-thumb{background:#ff803f;border-radius:0;min-height:32px;border:0}
#parts::-webkit-scrollbar-thumb:hover{background:#e9692a}
#parts::-webkit-scrollbar-thumb:active{background:#c85b24}
#parts::-webkit-scrollbar-button{display:none;width:0;height:0}
#parts::-webkit-scrollbar-corner{background:transparent}
@supports selector(::-webkit-scrollbar){#parts{scrollbar-width:auto;scrollbar-color:auto}}

/* Optional reward lives only on results. Regular play buttons remain independent. */
.result{max-height:100%;overflow-y:auto;touch-action:pan-y;max-width:100%;scrollbar-width:thin;scrollbar-color:#ff803f #fffdf4}
.result #rewardOffer{margin:0 auto 22px;max-width:310px}
.result #rewardTitle{font-size:18px;margin-bottom:4px}
.result #rewardCopy{display:block;font-size:13px;margin:0 0 10px}
.result #rewardUpgrade{width:100%;height:auto;min-height:48px;padding:10px 16px;white-space:normal;background:#fffdf4;color:#25483f;border:2px solid #ff803f;box-shadow:none;font-size:15px}
.result #rewardUpgrade svg{flex-shrink:0}
.result #rewardStatus{display:block;max-width:310px;font-size:13px;margin:0 auto 14px}
@media(max-height:480px){.result h2{font-size:28px;margin-bottom:6px}.result #resultText{flex-direction:row;justify-content:center;gap:16px;font-size:17px;margin-bottom:10px}.result #rewardOffer{margin-bottom:10px}.result #rewardTitle{font-size:15px}.result #rewardCopy{margin-bottom:5px}.result #rewardUpgrade{min-height:42px;font-size:13px}.result .result-build{height:30px;margin-top:6px}.result #retry{height:44px}.result #rewardStatus{margin-bottom:8px}}

.result #rewardStatus.upgrade-success{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 auto 22px;text-align:center;flex-direction:column}
.result #rewardStatus.upgrade-success .guard-icon{width:48px;height:40px;flex-shrink:0}
.result #rewardStatus.upgrade-success>span{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:15px}
.result #rewardStatus.upgrade-success strong{font-size:21px;font-weight:900}
@media(max-height:480px){.result #rewardStatus.upgrade-success{margin-bottom:12px}.result #rewardStatus.upgrade-success strong{font-size:18px}}

#sound:focus,#sound:focus-visible{outline:none}
#sound:focus-visible svg{stroke-width:2.5}

/* Rewarded and ordinary continuation receive equal visual weight. */
.result #rewardOffer{width:310px;max-width:100%}
.result #rewardUpgrade,.result #retry{display:flex;align-items:center;justify-content:center;width:310px;max-width:100%;height:56px;min-height:56px;margin-left:auto;margin-right:auto;padding:10px 16px;background:#ff803f;color:#fffdf4;border:0;box-shadow:0 4px 0 #c36c3e;font-size:15px;font-weight:700}
@media(max-height:480px){.result #rewardUpgrade,.result #retry{height:44px;min-height:44px;font-size:13px}}
