/* One compact postal palette, with room left for the playable staircase. */
:root{--post-ink:#174e4c;--post-muted:#73816c;--post-edge:#dac198;--post-paper:linear-gradient(#fffdf3,#f7e9ce);--post-green:linear-gradient(#188b76,#076953 85%,#075444)}
#app button:focus-visible{outline:2px solid #277b70;outline-offset:4px}
#app .icon-button{width:44px;height:44px;border:1px solid #d9c6a5;border-radius:14px;background:var(--post-paper);box-shadow:inset 0 2px 0 #fffef6,0 3px 0 #cbb18b;color:var(--post-ink)}
#app .icon-button svg{width:19px;height:19px}
#play .game-top{top:calc(12px + var(--safe-top));width:min(720px,calc(100% - 28px));height:60px;grid-template-columns:minmax(0,1fr) 126px minmax(0,1fr);gap:16px}
#play .level-badge{height:46px;padding:5px 12px 5px 0;gap:8px;border:1px solid #fff8e6;border-radius:12px;background:var(--post-paper);box-shadow:inset 0 0 0 1px #dfc69d88,0 3px 0 #cbb18b}
#play .level-badge>span{width:45px;height:53px;font-size:29px;border:3px double #fffaf0;border-radius:12px;outline:1px solid #bb946b;outline-offset:-6px;box-shadow:0 3px 0 #cbb18b;text-shadow:0 1px 0 #fff7df}
#play .level-badge small{font-size:16px;color:var(--post-ink)}
#play .level-badge:after{left:52px;height:3px;bottom:4px;background:repeating-linear-gradient(135deg,#d87d61 0 10px,#fff5df 10px 17px,#75ac98 17px 27px,#fff5df 27px 34px)}
#play .clock{width:126px;height:60px;border:2px solid #fff8e6;border-radius:20px;background:var(--post-paper);box-shadow:inset 0 0 0 1px #dec298,0 3px 0 #cbb18b;color:var(--post-ink)}
#play .clock>span{font-size:37px;line-height:1;letter-spacing:-1px;font-style:normal}
#play .clock small{display:block;font-size:10px;letter-spacing:1px;margin-bottom:2px;color:#72816b}
#play .clock:before,#play .clock:after{font-size:20px;bottom:9px;color:#c4a571}
#play .clock:before{left:5px}#play .clock:after{right:5px}
#play .clock.urgent{color:#ba4d32}
#play .hud-actions{gap:9px}
#play #hearts{height:40px;min-width:83px;padding:0 8px;border:1px solid #fff8e6;border-radius:12px;font-size:23px;letter-spacing:0;background:var(--post-paper);box-shadow:inset 0 0 0 1px #dfc69d88,0 3px 0 #cbb18b}
#play .pause-button{flex-shrink:0;margin:0}
#play .route-status{top:calc(83px + var(--safe-top));width:min(720px,calc(100% - 28px));height:33px;gap:12px;padding:4px 12px;border:1px solid #e3d0aa;border-radius:12px;background:var(--post-paper);box-shadow:inset 0 1px 0 #fff,0 2px 0 #cbb18b}
#play .route-meta{font-size:12px;color:var(--post-ink)}#play .route-meta b{font-size:15px}
#play .route-progress{height:11px;border:1px solid #fdf7e4;background:#c5d7cc;box-shadow:inset 0 1px 2px #476d5a24}
#play .route-progress>span{background:linear-gradient(#f9d777,#eab844);box-shadow:inset 0 1px 0 #fff4b7}
#app #play .mission-pill{font-size:12px;gap:5px;padding-left:10px;color:var(--post-ink);border-color:#d9c6a5}
#app #play .mission-pill b{font-size:12px;color:var(--post-ink)}#play .mission-symbol{font-size:18px}
#play .free-status{top:calc(123px + var(--safe-top));width:min(720px,calc(100% - 28px));min-height:24px;padding:3px 10px;border:1px solid #dac19899;border-radius:8px;background:#fff8e8ed;box-shadow:0 2px 0 #c7ad8233;font-size:11px;color:var(--post-muted)}
#play .combo-display,#app[data-mode="free"] #play .combo-display{left:max(18px,calc(50% - 356px));top:calc(158px + var(--safe-top));padding:4px 12px 5px 10px;gap:5px;border:2px solid #fff2c6;border-radius:12px;background:linear-gradient(120deg,#dc9c58,#bd6c44);box-shadow:0 3px 0 #a77d4b}
#play .combo-display b,#app[data-mode="free"] #play .combo-display b{font-size:31px}
#play .combo-display span,#app[data-mode="free"] #play .combo-display span{font-size:15px}
#play .combo-display:after{display:none}
#play .game-toast,#app[data-mode="free"] #play .game-toast{top:calc(158px + var(--safe-top));left:auto;right:max(16px,calc(50% - 356px));transform:none;max-width:220px;padding:8px 11px;font-size:11px;line-height:1.45;border:1px solid #dbc39a;border-radius:11px;background:#fff8e8f5;box-shadow:inset 0 1px 0 #fff,0 3px 0 #cbb18b;color:var(--post-ink)}
#play .special-route{top:calc(158px + var(--safe-top));right:max(16px,calc(50% - 356px));width:178px;padding:8px 10px;border-radius:11px;border-top-color:#dfc79e;border-right-color:#dfc79e;background:linear-gradient(#fffaf0,var(--special-paper));box-shadow:0 3px 0 #cbb18b;gap:4px 6px}
#play #special-route-title{font-size:12px}#play #special-route-detail{font-size:10px}
#play .play-controls{left:50%;right:auto;transform:translateX(-50%);bottom:calc(18px + var(--safe-bottom));width:min(470px,calc(100% - 28px))}
#play .control-row{display:grid;grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr);gap:15px;align-items:center}
#app #play .control-hint{position:relative;left:auto;right:auto;bottom:auto;transform:none;display:table;margin:0 auto 13px;padding:6px 14px;max-width:100%;width:auto;border:1px solid #dbc39a;border-radius:12px;background:var(--post-paper);box-shadow:0 2px 0 #cbb18b;color:var(--post-ink);font-size:11px;line-height:1.35;letter-spacing:0}
#play .jump-button{height:70px;width:100%;flex-direction:row;gap:8px;border:2px solid #fff5dc;border-radius:24px;background:var(--post-paper);color:var(--post-ink);box-shadow:0 0 0 1px #d9bb82,inset 0 2px 0 #fffef6,inset 0 -2px 0 #e6d1a9,0 4px 0 #c5a47b,0 7px 12px #23546b25}
#play .jump-button:before{inset:4px;border-radius:18px;border-color:#d6bd9255;border-top-color:#fffdf6}
#play .jump-button:after{display:none}
#play .jump-button svg{width:26px;height:26px;fill:#337c6a;stroke:#215e50;stroke-width:1.5}
#play .jump-button span{font-size:23px;letter-spacing:1px;text-shadow:0 1px 0 #fff8e7}
#play .jump-button.right{border-color:#fff0b7;background:var(--post-green);color:#fff7dd;box-shadow:0 0 0 1px #cfa255,inset 0 2px 0 #a3d5b4,inset 0 -2px 0 #035448,0 4px 0 #b08b47,0 7px 12px #23546b25}
#play .jump-button.right:before{border-color:#dae4b533}
#play .jump-button.right svg{fill:#e5ecca;stroke:#d4dbb4;filter:drop-shadow(0 1px 0 #075444)}
#play .jump-button.right span{text-shadow:0 2px 0 #075444}
#play .jump-button kbd{right:11px;bottom:6px;font-size:9px}
#play .jump-button.pressed,#play .jump-button:active:not(:disabled){transform:translateY(3px);filter:brightness(.98);box-shadow:0 0 0 1px #d9bb82,inset 0 -2px 0 #e6d1a9,0 1px 0 #c5a47b}
#play .jump-button.right.pressed,#play .jump-button.right:active:not(:disabled){box-shadow:0 0 0 1px #cfa255,inset 0 -2px 0 #035448,0 1px 0 #b08b47}
#play .dash-button{width:74px;height:74px;margin:0;border:3px solid #fff2b7;background:radial-gradient(circle at 35% 10%,#fff1aa,#f2c250 70%,#dca23e);box-shadow:inset 0 0 0 1px #d29b3a,0 4px 0 #b58d47;color:#805b24}
#play .dash-button svg{width:25px;height:25px;fill:#b87c1e;stroke:#99641a}
#play .dash-button>span:not(.energy-ring){font-size:16px;line-height:1.15;margin:0}
#play .dash-button small{bottom:-12px;padding:3px 8px;border:1px solid #fff2cc;border-radius:7px;background:var(--post-paper);box-shadow:0 2px 0 #bd9b66;font-size:9px}
#play .energy-ring{inset:-7px;filter:drop-shadow(0 0 3px #d4aa4f)}
#play .dash-button:disabled{background:linear-gradient(#eae5ce,#c9bd97);border-color:#f3edda;color:#82775c;box-shadow:inset 0 0 0 1px #b5a57d,0 4px 0 #ad9a70}
#play .dash-button:disabled svg{fill:#9c8f6e;stroke:#8a7c5c}
#play .dash-button.ready{animation:postal-charge 1.6s ease-in-out infinite}
#app #play .play-controls>p{margin-top:19px;font-size:9px;letter-spacing:.1px;color:#315f62}
#play .collapse-warning{bottom:calc(161px + var(--safe-bottom));padding:7px 12px;border:1px solid #e5bb87;border-radius:10px;background:#fff1d8;box-shadow:0 2px 0 #c5965c;font-size:11px}
#play .record-celebration{bottom:calc(185px + var(--safe-bottom));padding:15px 20px 12px;gap:4px;border:1px solid #e0bf79;border-radius:16px;background:linear-gradient(#fff9e7,#f6e5bd);box-shadow:inset 0 0 0 3px #fff3d6,0 3px 0 #bfa06d}
#play #record-celebration-title{font-size:20px}#play #record-celebration-detail{font-size:11px}
.global-toast{font-size:12px;padding:9px 14px;border:1px solid #dbc39a;border-radius:11px;background:#fff8e8f5;box-shadow:0 3px 0 #cbb18b;color:var(--post-ink)}
.asset-loader{gap:10px;background:#f9f1dfeb;color:var(--post-ink)}
.asset-loader-mark{width:58px;height:58px;font-size:32px;border-radius:17px;border-color:#fff8e6;box-shadow:0 3px 0 #cbb18b}
.asset-loader strong{font-size:18px}.asset-loader p{font-size:12px}.asset-loader-track{height:9px}
@keyframes postal-charge{50%{box-shadow:inset 0 0 0 1px #d29b3a,0 4px 0 #b58d47,0 0 18px #f2ca6580}}
@media(max-width:760px){
 #play .game-top{width:calc(100% - 24px);top:calc(10px + var(--safe-top));height:54px;grid-template-columns:minmax(0,1fr) 83px minmax(0,1fr);gap:7px}
 #play .level-badge{height:39px;padding-right:6px;gap:5px;border-radius:10px}
 #play .level-badge>span{width:32px;height:45px;font-size:23px;border-radius:9px;letter-spacing:-1px}
 #play .level-badge small{font-size:11px}#play .level-badge:after{left:37px;right:5px;height:2px}
 #play .clock{width:83px;height:54px;border-radius:16px}#play .clock>span{font-size:29px}#play .clock small{font-size:9px;letter-spacing:0}
 #play .clock:before,#play .clock:after{display:none}
 #play .hud-actions{gap:5px}#play #hearts{width:59px;min-width:0;height:34px;padding:0 2px;border-radius:10px;font-size:17px;letter-spacing:-1px}
 #play .route-status{top:calc(73px + var(--safe-top));width:calc(100% - 24px);height:31px;padding:4px 9px;gap:7px}
 #play .route-meta{font-size:11px}#play .route-meta b{font-size:13px}
 #app #play .mission-pill{font-size:10px;padding-left:6px;gap:4px}#app #play .mission-pill b{font-size:10px}#play .mission-symbol{font-size:16px}
 #play .free-status{top:calc(112px + var(--safe-top));width:calc(100% - 24px);min-height:24px;padding:4px 8px;font-size:10px;gap:8px}
 #play .combo-display,#app[data-mode="free"] #play .combo-display{left:14px;top:calc(147px + var(--safe-top));padding:3px 9px 4px 8px;gap:3px;border-radius:10px}
 #play .combo-display b,#app[data-mode="free"] #play .combo-display b{font-size:26px}#play .combo-display span,#app[data-mode="free"] #play .combo-display span{font-size:13px}
 #play .game-toast,#app[data-mode="free"] #play .game-toast{top:calc(147px + var(--safe-top));right:12px;max-width:calc(100% - 130px);font-size:10px;padding:7px 9px}
 #play .special-route{top:calc(147px + var(--safe-top));right:12px;width:155px;max-width:calc(100% - 130px);padding:7px 8px}
 #play #special-route-title{font-size:11px}#play #special-route-detail{font-size:10px}
 #play .play-controls{width:min(390px,calc(100% - 24px));bottom:calc(20px + var(--safe-bottom))}
 #play .control-row{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:12px}
 #play .jump-button{height:64px;gap:4px;border-radius:22px}#play .jump-button:before{border-radius:16px}
 #play .jump-button span{font-size:21px}#play .jump-button svg{width:22px;height:22px}
 #play .dash-button{width:64px;height:64px}#play .dash-button svg{width:22px;height:22px}#play .dash-button>span:not(.energy-ring){font-size:15px}
 #app #play .control-hint{font-size:10px;padding:5px 11px;margin-bottom:12px}
 #app #play .play-controls>p{margin-top:18px;font-size:8px}
 #play .record-celebration{bottom:calc(173px + var(--safe-bottom));max-width:calc(100% - 54px);padding:13px 17px 11px}
 #play #record-celebration-title{font-size:18px}#play #record-celebration-detail{font-size:10px}
}
@media(max-width:360px){
 #play .game-top{width:calc(100% - 20px);grid-template-columns:minmax(0,1fr) 73px 100px;gap:5px}
 #play .clock{width:73px}#play .clock>span{font-size:27px}
 #play #hearts{width:51px;font-size:15px}
 #play .level-badge small{font-size:10px}#play .level-badge>span{width:29px;font-size:21px}#play .level-badge{gap:3px;padding-right:4px}
 #play .level-badge:after{left:32px}#play .jump-button span{font-size:19px}#play .jump-button svg{width:20px;height:20px}
 #play .control-row{gap:9px;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}
 #play .dash-button{width:60px;height:60px}#play .free-status{font-size:9px}
}
@media(orientation:landscape) and (max-height:540px){
 #play .game-top{top:calc(7px + var(--safe-top));height:45px;grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr);gap:14px}
 #play .level-badge{height:35px}#play .level-badge>span{height:42px;width:36px;font-size:24px}#play .level-badge small{font-size:12px}
 #play .clock{width:94px;height:45px;border-radius:14px}#play .clock>span{font-size:27px}#play .clock small{font-size:8px;margin-bottom:1px}
 #play #hearts{height:33px;font-size:19px;min-width:70px}#play .hud-actions{gap:8px}
 #play .route-status{top:calc(61px + var(--safe-top));height:28px}#play .free-status{top:calc(95px + var(--safe-top));min-height:21px;font-size:9px;padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 #play .free-status>span{max-width:calc(50% - 84px);padding:3px 8px;background:#fff8e8ed;border:1px solid #dac19899;border-radius:7px;box-shadow:0 2px 0 #c7ad8233}#play #station-status{max-width:calc(50% - 84px)}
 #play .combo-display,#app[data-mode="free"] #play .combo-display{top:calc(124px + var(--safe-top));left:16px}
 #play .game-toast,#app[data-mode="free"] #play .game-toast,#play .special-route{top:calc(124px + var(--safe-top));right:16px;max-width:140px;font-size:9px}
 #play .special-route{width:140px}#play #special-route-title{font-size:10px}#play #special-route-detail{font-size:9px}
 #play .play-controls{left:20px;right:20px;bottom:calc(17px + var(--safe-bottom));transform:none;width:auto}
 #play .control-row{display:flex;justify-content:space-between;align-items:center}#play .jump-button{width:116px;height:54px}#play .jump-button span{font-size:20px}#play .jump-button svg{width:22px;height:22px}
 #play .dash-button{width:55px;height:55px}#play .dash-button svg{width:19px;height:19px}#play .dash-button>span:not(.energy-ring){font-size:13px}
 #app #play .control-hint{position:absolute;left:50%;bottom:75px;transform:translateX(-50%);width:max-content;max-width:55vw;margin:0;font-size:9px}
 #app #play .play-controls>p{display:none}#play .collapse-warning{bottom:calc(123px + var(--safe-bottom));font-size:10px}
 #play .record-celebration{top:7px;bottom:auto;padding:8px 14px;max-width:250px}#play #record-celebration-title{font-size:16px}#play #record-celebration-detail{font-size:9px}
}
@media(prefers-reduced-motion:reduce){#play .dash-button.ready{animation:none}}
/* Run-only reward counters stay attached to their existing controls. */
#play .heart-group{position:relative;flex-shrink:0}
#play .shield-count{position:absolute;right:0;bottom:-9px;z-index:1;padding:2px 5px;border:1px solid #c6d6b4;border-radius:6px;background:#f0f8dd;color:#46745c;font-size:9px;font-weight:750;line-height:1;white-space:nowrap;box-shadow:0 1px 0 #a7bd94;pointer-events:none}
#play .free-dash-count{position:absolute;right:-5px;top:-7px;z-index:2;padding:3px 5px;border:1px solid #fff4c3;border-radius:7px;background:#287e65;color:#fff7d4;font-size:10px;font-weight:800;line-height:1;white-space:nowrap;box-shadow:0 2px 0 #b79555;pointer-events:none}
#play .dash-button.pressed,#play .dash-button:active:not(:disabled){transform:translateY(3px);filter:brightness(1.06)}
