#wpWorldObjective{display:none!important}
#wpStageRuleButton{position:absolute;left:50%;transform:translateX(-50%);z-index:7;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;max-width:calc(100% - 30px);padding:5px 12px;border:2px solid #79583d;border-radius:14px;background:#fff4d9;color:#573b30;box-shadow:0 3px #755039;font:800 11px/1.15 system-ui;cursor:pointer;touch-action:manipulation}
#wpStageRuleButton[hidden]{display:none!important}#wpStageRuleButton svg{width:32px;height:30px;flex:none}#wpStageRuleButton small{display:block;margin-top:2px;font-size:9px;color:#795946}
#wpStageRuleButton:focus-visible{outline:3px solid #8051bd;outline-offset:3px}
.wp-rule-enter{animation:wp-rule-enter 1.8s ease-out 1}@keyframes wp-rule-enter{0%,45%{box-shadow:0 0 0 5px #ffd26a99,0 3px #755039}100%{box-shadow:0 0 0 0 #ffd26a00,0 3px #755039}}
@media(prefers-reduced-motion:reduce){.wp-rule-enter{animation:none}}.reduced-motion .wp-rule-enter{animation:none}
.wp-rule-detail{display:flex;gap:12px;align-items:center;padding:12px;border:2px solid #c5a783;border-radius:14px;background:#fff6e1;margin:9px 0}.wp-rule-detail svg{width:62px;height:54px;flex:none;color:#8456a1}.wp-rule-detail strong{font-size:15px}.wp-rule-detail p{font-size:12px;line-height:1.4;margin:5px 0 0}
#app.ranked-power-free #gameHud .hud-left-top{gap:7px!important}
#app.ranked-power-free #gameHud #bubble,#app.ranked-power-free #gameHud #daily{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
#app.ranked-power-free #gameHud .hud-left-top>.hud-power[hidden]{display:none!important}
#wpStageRuleButton{z-index:3}
#wpStageRuleButton.wp-rule-compact{left:8px;transform:none;width:120px;padding:4px 6px;gap:4px;font-size:10px}#wpStageRuleButton.wp-rule-compact svg{width:25px;height:26px}
#wpGuidedRoot{padding-bottom:env(safe-area-inset-bottom,0px)}
#modalBody:has(.wp-rule-detail) .ui-footer{position:static!important;margin-top:12px}


/* Follow the exact Next + Auto Stage group; keep Combo in the middle lane. */
#wpStageRuleButton,#wpStageRuleButton.wp-rule-compact{transform:none;min-height:44px;padding:3px 2px;gap:2px;font-size:9px;line-height:1.05;box-sizing:border-box}
#wpStageRuleButton svg{width:15px;height:20px;flex:0 0 15px}
#wpStageRuleButton small{font-size:7px;line-height:1.1;margin-top:3px}
#app.wp-world-playing:has(#wpStageRuleButton:not([hidden])) #comboRush{top:var(--wp-rule-row-top,125px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:var(--wp-combo-safe-width,150px)!important;max-width:var(--wp-combo-safe-width,150px)!important}
#app.wp-world-playing:has(#wpStageRuleButton:not([hidden])) .combo-rush-main{gap:3px}

/* Next Pal occupies the left card lane below the power-ups in every mode. */
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers{
 position:absolute!important;right:auto!important;bottom:auto!important;transform:none!important;
 display:grid!important;grid-template-columns:1fr!important;grid-template-rows:12px 44px!important;
 width:var(--next-card-width,80px)!important;min-width:var(--next-card-width,80px)!important;height:64px!important;min-height:64px!important;
 padding:2px 4px!important;margin:0!important;gap:0!important;pointer-events:auto!important;
 border:2px solid #79583d!important;border-radius:14px!important;background:linear-gradient(#fff7df,#ffe6b3)!important;
 box-shadow:0 3px #755039!important;opacity:1!important;filter:none!important;
}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers::before{display:none!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers .next-label{
 position:static!important;clip:auto!important;overflow:visible!important;width:auto!important;height:auto!important;
 grid-column:1!important;grid-row:1!important;font-size:9px!important;line-height:12px!important;color:#62472e!important;
}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #nextPreview{
 grid-column:1!important;grid-row:2!important;width:44px!important;height:44px!important;min-width:44px!important;
 margin:0!important;opacity:1!important;filter:none!important;animation:none!important;transform:none!important;
}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount{right:-4px!important;bottom:-4px!important}
#app.wp-world-playing #gameHud .hud-right-top{grid-template-columns:1fr!important;justify-items:end!important;row-gap:8px!important}
#app.wp-world-playing #gameHud .hud-right-top>.hud-top-actions{grid-column:1!important}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium{
 grid-column:1!important;grid-row:2!important;width:76px!important;min-width:76px!important;height:40px!important;min-height:40px!important;
 grid-template-columns:22px 1fr!important;grid-template-rows:1fr!important;gap:4px!important;padding:4px!important;transform:none!important;
}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium #autoStageHudLabel{display:block!important;grid-column:2!important;grid-row:1!important;font-size:9px!important;line-height:1!important}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium .journey-auto-icon{grid-column:1!important;grid-row:1!important;width:22px!important;height:22px!important}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium::after{right:-4px!important;bottom:-5px!important}
#wpStageRuleButton,#wpStageRuleButton.wp-rule-compact{height:64px;min-height:64px;flex-direction:column;gap:2px;font-size:9px;padding:3px}
#wpStageRuleButton svg{width:24px;height:26px;flex:0 0 26px}#wpStageRuleButton small{font-size:8px}

#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium #autoStageHudLabel{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;text-align:center!important}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium .journey-auto-icon{transform:none!important}
#app.wp-world-playing #gameHud #autoStageHud #autoStageHudLabel::after{content:'OFF';display:block;margin-top:3px;font-size:8px;font-weight:850}
#app.wp-world-playing #gameHud #autoStageHud[aria-pressed="true"] #autoStageHudLabel::after{content:'ON'}

@media(max-height:450px){
 #wpGuidedRoot .wp-guide-card{padding:7px 10px!important;max-height:190px!important}
 #wpGuidedRoot .wp-guide-card h2{font-size:15px!important;margin:2px 0!important}
 #wpGuidedRoot .wp-guide-card p{font-size:11px!important;line-height:1.25!important;margin:3px 0!important}
 #wpGuidedRoot .wp-guide-caption{font-size:9px!important;margin-top:3px!important}
 #wpGuidedRoot .wp-guide-top{margin-bottom:3px!important}
 #wpGuidedRoot .wp-guide-action{margin-top:5px!important}
}

/* Align Auto Stage with Habitat + Pause; keep the Next count inside its header. */
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium{
 width:var(--auto-card-width,84px)!important;min-width:var(--auto-card-width,84px)!important;
 border-radius:12px!important;padding:4px 6px!important;column-gap:5px!important;
 box-shadow:0 3px #456744,inset 0 0 0 2px #ffffff99!important;
}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium[aria-pressed="false"]{box-shadow:0 3px #6e5c47,inset 0 0 0 2px #ffffff99!important}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium .journey-auto-icon{border-radius:7px!important;box-shadow:inset 0 1px #ffffff77,inset 0 -2px #00000022!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers .next-label{justify-self:start!important;margin-left:2px!important;font-size:8.5px!important;letter-spacing:.3px!important;line-height:16px!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount{
 position:absolute!important;top:3px!important;right:3px!important;bottom:auto!important;left:auto!important;
 display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;
 width:auto!important;min-width:22px!important;height:16px!important;padding:0 3px!important;
 border:1px solid #a58a63!important;border-radius:7px!important;background:#fff9e8!important;color:#654a32!important;
 opacity:1!important;box-shadow:none!important;font-size:0!important;
}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount::before{content:'↔';font:900 9px/1 system-ui}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount::after{font-size:8px!important;line-height:1!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers:disabled #swapCount{background:#eee6d9!important;color:#80715e!important;border-color:#b7a68b!important}

#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers{grid-template-rows:14px 42px!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers .next-label{line-height:14px!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #nextPreview{width:42px!important;height:42px!important;min-width:42px!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount{top:2px!important;height:14px!important}

/* Clear, compact Auto Stage state; retain the existing toggle and tutorial target. */
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium{
 height:44px!important;min-height:44px!important;grid-template-columns:24px 1fr!important;
 padding:5px 7px!important;gap:5px!important;border-radius:12px!important;
}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium .journey-auto-icon{
 width:24px!important;height:24px!important;font-size:11px!important;
}
#app.wp-world-playing #gameHud #autoStageHud #autoStageHudLabel{font-size:9px!important;letter-spacing:.2px!important}
#app.wp-world-playing #gameHud #autoStageHud #autoStageHudLabel::after{
 content:'OFF';font-size:10px;line-height:12px;margin-top:2px;font-weight:900;
}
#app.wp-world-playing #gameHud #autoStageHud[aria-pressed="true"] #autoStageHudLabel::after{content:'ON'}
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium::after{display:none!important}
#app.wp-world-playing #gameHud #autoStageHud:focus-visible{outline:3px solid #fff4b5!important;outline-offset:3px!important}

/* Match both lower cards while retaining the Auto control's 44px touch target. */
#app.wp-world-playing #gameHud #autoStageHud.journey-auto-premium.journey-auto-premium{margin-top:-4px!important}

.wp-compact-goal-label{display:none}
#app.wp-hud-compact #gameHud #goal,#app.wp-hud-landscape #gameHud #goal{position:absolute!important;transform:none!important;margin:0!important;right:auto!important;bottom:auto!important;height:44px!important;min-height:44px!important;padding:4px!important;border-width:2px!important;display:grid!important;place-items:center!important;z-index:8!important}
#app.wp-hud-compact #goal>*:not(.wp-compact-goal-label),#app.wp-hud-landscape #goal>*:not(.wp-compact-goal-label){display:none!important}
#app.wp-hud-compact #goal .wp-compact-goal-label,#app.wp-hud-landscape #goal .wp-compact-goal-label{display:block!important;font-size:10px!important;line-height:1.15!important;text-align:center!important;font-weight:900!important}
#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers{height:56px!important;min-height:56px!important;grid-template-rows:12px 32px!important;padding:2px!important;border-radius:11px!important}
#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers #nextPreview{width:30px!important;height:30px!important;min-width:30px!important}
#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers .next-label{font-size:6.5px!important;margin-left:0!important;letter-spacing:0!important;line-height:12px!important}
#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount{min-width:15px!important;height:12px!important;top:2px!important;right:2px!important;padding:0 1px!important;gap:0!important;font-size:6px!important}
#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount::before{display:none!important}
#app.wp-hud-compact #wpStageRuleButton{height:56px!important;min-height:56px!important;font-size:8px!important;padding:2px!important}
#app.wp-hud-compact #wpStageRuleButton small{display:none!important}
#app.wp-hud-landscape #gameHud{position:fixed!important;left:0!important;right:0!important;width:100vw!important;height:100vh!important;top:0!important;z-index:12!important}
#app.wp-hud-landscape #gameHud .hud-left-top{position:fixed!important;left:12px!important;top:12px!important}
#app.wp-hud-landscape #gameHud .hud-right-top{position:fixed!important;right:12px!important;top:12px!important}
#app.wp-hud-landscape #gameHud .hud-score-center{position:fixed!important;left:auto!important;right:12px!important;width:150px!important;transform:none!important;pointer-events:none!important}
#app.wp-hud-landscape #gameHud .hud-score-center #rank{max-width:150px!important}
#app.wp-hud-landscape #gameHud #goal .wp-compact-goal-label{font-size:13px!important}

#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount{font-size:0!important;min-width:13px!important}
#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount::after{font-size:6px!important;line-height:1!important}

#app.wp-hud-landscape #wpStageRuleButton{position:fixed!important;z-index:13!important}

#app.wp-hud-compact #comboRush#comboRush,#app.wp-hud-landscape #comboRush#comboRush{top:var(--compact-combo-top)!important;width:84px!important;max-width:84px!important;padding:3px 4px!important;border-radius:7px!important}
#app.wp-hud-landscape #comboRush#comboRush{position:fixed!important;left:auto!important;right:12px!important;transform:none!important;width:150px!important;max-width:150px!important}
#app.wp-hud-compact #comboRush .combo-rush-main,#app.wp-hud-landscape #comboRush .combo-rush-main{gap:3px!important}
#app.wp-hud-compact #comboRush .combo-rush-count,#app.wp-hud-landscape #comboRush .combo-rush-count{display:flex!important;gap:2px!important}
#app.wp-hud-compact #comboRush .combo-rush-flame,#app.wp-hud-landscape #comboRush .combo-rush-flame,#app.wp-hud-compact #comboRush .combo-rush-mult small,#app.wp-hud-landscape #comboRush .combo-rush-mult small{display:none!important}
#app.wp-hud-compact #comboRush strong,#app.wp-hud-landscape #comboRush strong{font-size:11px!important;line-height:1!important}
#app.wp-hud-compact #comboRush .combo-rush-count small,#app.wp-hud-landscape #comboRush .combo-rush-count small{font-size:5px!important;letter-spacing:0!important;margin:0!important}
#app.wp-hud-compact #comboRush .combo-rush-divider,#app.wp-hud-landscape #comboRush .combo-rush-divider{height:12px!important}
#app.wp-hud-compact #comboRush .combo-rush-track,#app.wp-hud-landscape #comboRush .combo-rush-track{margin-top:2px!important}

/* Use the score-caption lane for the live combo instead of covering the held Pal. */
#app:not(.wp-hud-compact):not(.wp-hud-landscape):has(#comboRush:not([hidden])) .hud-score-center>small{visibility:hidden!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush#comboRush{top:var(--combo-score-top,88px)!important;width:158px!important;max-width:158px!important;height:15px!important;box-sizing:border-box!important;padding:1px 5px!important;border-width:1px!important;border-radius:6px!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush .combo-rush-main{gap:3px!important;height:10px!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush .combo-rush-count{display:flex!important;gap:4px!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush .combo-rush-flame,#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush .combo-rush-mult small{display:none!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush strong{font-size:10px!important;line-height:10px!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush .combo-rush-count small{font-size:6px!important;line-height:8px!important;margin:0!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush .combo-rush-divider{height:9px!important}
#app:not(.wp-hud-compact):not(.wp-hud-landscape) #comboRush .combo-rush-track{height:1px!important;margin-top:0!important}

#app.wp-hud-compact:has(#comboRush:not([hidden])) .hud-score-center>small{visibility:hidden!important}

/* Readable swap stock styled like the neighboring power-up counts. */
#app#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount{top:auto!important;right:-7px!important;bottom:-4px!important;min-width:22px!important;height:22px!important;padding:0 3px!important;border:2px solid #79583d!important;border-radius:12px!important;background:#fff9e8!important;color:#503629!important;box-shadow:0 1px 0 #755039!important;z-index:5!important}
#app#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount::before{display:none!important}
#app#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount::after{font:900 12px/1 system-ui!important;color:#503629!important}
#app #gameHud #next.next-below-powers.next-below-powers.next-below-powers:focus-visible{outline:3px solid #fff4b5!important;outline-offset:3px!important}

/* Compact screens: reserve a distinct header row so swap stock does not obscure the Pal. */
#app#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers{height:66px!important;min-height:66px!important;grid-template-rows:24px 32px!important}
#app#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers .next-label{align-self:start!important;line-height:14px!important}
#app#app.wp-hud-compact #gameHud #next.next-below-powers.next-below-powers.next-below-powers #swapCount{top:2px!important;right:-5px!important;bottom:auto!important}
