body.chapter-three { --mint:#e7c699;--gold:#ffc699;--line:#494352;--cream:#f2e5d8;background:#080b12; }
.chapter-three .game-shell { background:#070b12;border-color:#5f4e53; }
.chapter-three .console-bar { background:#13131c; }
.chapter-three .overlay { background:linear-gradient(90deg,#080b13d9,#080b1359,#080b13b3);backdrop-filter:none; }
.chapter-three .title-card h1 {color:#f3e3c9;text-shadow:0 4px #583848,0 8px #0b0b15;}
.chapter-three .title-card h1 span {color:#f2baab;text-shadow:0 2px #251c28;}
.chapter-three #lightning-status {color:#eac49a;}
.chapter-three .route-line span {background:#ec8b91;}
.chapter-three .primary-button {background:#e9c99e;border-color:#ffe6b8;color:#271e20;box-shadow:0 4px #816049;}
.chapter-three .primary-button:hover {background:#ffe0ac;}
.chapter-three .start-controls>span:not(:nth-child(2)) {display:none;}
.chapter-three .start-controls {font-size:11px;color:#f6d7b9;}
.chapter-three .touch-controls [data-key]:not([data-key="jump"]) {display:none;}
.chapter-three .touch-controls>div:first-child:before {content:'AUTO SLIDE\A TAP JUMP TWICE';white-space:pre;font-size:10px;letter-spacing:1px;line-height:2;color:#b7adab;align-self:center;margin-left:12px;}
.chapter-three .touch-controls .jump-control {width:85px;height:72px;border-radius:28px;background:#e9c99e;color:#211b21;font:700 13px ui-monospace,monospace;border-color:#ffe5b9;}
.chapter-three .touch-controls .jump-control:after {content:' JUMP';}
.chapter-three .hud {text-shadow:1px 2px 2px #000;}
.chapter-three .win-card {background:#000;border-color:#36353c;}
.chapter-three #win-card h2 {font-size:clamp(22px,3vw,37px);font-weight:500;}
.chapter-three #win-card .playtest-note {font-size:14px;letter-spacing:1px;color:#b2c2c6;}
.slide-ending .hud,.slide-ending .scene-toast {opacity:0;transition:none;}
.slide-ending .overlay {background:#000;}
.scene-toast {top:88px;bottom:auto!important;max-width:88%;white-space:normal;text-align:center;}
#exit-expanded {display:none;}
.game-expanded {overflow:hidden;overscroll-behavior:none;}
.game-expanded .arcade {position:fixed;inset:0;z-index:2147483000;width:100%;height:100dvh;max-width:none;padding:0;background:#050709;display:flex;flex-direction:column;justify-content:center;}
.game-expanded .masthead,.game-expanded .footnote,.game-expanded .workshop {display:none!important;}
.game-expanded .game-shell {width:100%;border:0;border-radius:0;max-height:calc(100dvh - 150px);flex-shrink:0;}
.game-expanded .console-bar {border:0;border-radius:0;min-height:44px;}
.game-expanded #exit-expanded {display:grid;place-items:center;position:absolute;right:max(8px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));z-index:100;width:42px;height:42px;background:#080c18bc;border:1px solid #b4b4b459;border-radius:50%;font:26px sans-serif;color:#f4e6d6;}
.game-expanded .hud-right {margin-right:36px;}
.game-expanded .touch-controls {display:flex;}
@media (orientation:landscape) {
 .game-expanded .arcade {display:block;}
 .game-expanded .game-shell {height:100dvh;max-height:none;width:min(100vw,177.77778dvh);margin:auto;aspect-ratio:16/9;}
 .game-expanded #game {object-fit:contain;}
 .game-expanded .console-bar {position:absolute;bottom:6px;left:50%;transform:translateX(-50%);z-index:20;background:#090d1599;padding:3px 10px;border-radius:20px;min-height:32px;}
 .game-expanded .console-bar .location,.game-expanded .console-bar #account-button,.game-expanded .console-bar #restart-button {display:none;}
 .game-expanded .console-actions button {font-size:15px;}
 .game-expanded .console-actions button span {display:none!important;}
 .game-expanded .touch-controls {position:absolute;left:0;right:0;bottom:max(9px,env(safe-area-inset-bottom));z-index:21;padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));margin:0;pointer-events:none;}
 .game-expanded .touch-controls>div {pointer-events:auto;}
 .game-expanded .touch-controls button {background:#142c2799;border-color:#cee9d866;color:#edf3db;}
 .game-expanded.chapter-three .touch-controls .jump-control {background:#e9c99ecc;width:83px;height:68px;}
 .game-expanded .touch-controls>div:first-child:before {font-size:8px;}
 .game-expanded .overlay {z-index:23;}
 .game-expanded .title-card {padding:10px;}
 .game-expanded .title-card h1 {font-size:37px;}
 .game-expanded .title-card h1 span {font-size:13px;}
 .game-expanded .title-card>p {display:none;}
 .game-expanded .title-card .start-controls {display:none;}
}
@media(max-width:600px){.scene-toast{top:48px;max-width:85%;font-size:9px;}.chapter-three .touch-controls{margin-top:18px;}.chapter-three .title-card .chapter-tag{font-size:8px;}.chapter-three #win-card .playtest-note{font-size:10px;}.chapter-three .run-stats{gap:30px;}}
@media(prefers-reduced-motion:reduce){.scene-toast,.slide-ending .hud{transition:none;}}
