/* Compact activity cards live on the left edge, leaving the center play targets open. */
body.cover-screen-active #world #packGamePanel:not([hidden]),
body.cover-screen-active #world #bathWashPanel:not([hidden]),
body.cover-screen-active #world #syrupPanel:not([hidden]){
 position:absolute!important;top:50px!important;left:4px!important;right:auto!important;bottom:auto!important;
 transform:none!important;width:min(40vw,205px)!important;max-width:none!important;
 max-height:calc(100dvh - 55px)!important;overflow:auto!important;overscroll-behavior:contain;
 padding:6px!important;background:#f4e5caf2!important;border:2px solid #9f764c;border-radius:10px;
 box-shadow:0 2px 8px #17291b99;z-index:28;
}
body.cover-screen-active #world #packGamePanel:not([hidden]){display:block!important}
body.cover-screen-active #world #packGamePanel h3,
body.cover-screen-active #world #packStatus,
body.cover-screen-active #world #packGamePanel .pack-controls{
 display:block;grid-column:auto;grid-row:auto;max-width:none;max-height:none;
 white-space:normal;overflow:visible;
}
body.cover-screen-active #world #packGamePanel h3{font-size:13px;line-height:1.1;margin:0 0 4px}
body.cover-screen-active #world #packStatus{font-size:11px;line-height:1.2;margin:3px 0}
body.cover-screen-active #world #packGamePanel .pack-controls{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px;margin-top:5px}
body.cover-screen-active #world #packGamePanel .pack-controls button,
body.cover-screen-active #world #bathWashPanel button,
body.cover-screen-active #world #syrupPanel button{min-height:30px;font-size:11px}
body.cover-screen-active #world #fetchbar.show{
 position:absolute!important;top:50px!important;left:4px!important;right:auto!important;bottom:auto!important;
 transform:none!important;width:min(40vw,205px)!important;max-height:calc(100dvh - 55px)!important;
 display:flex!important;flex-wrap:wrap;overflow:auto;z-index:27;
}
@media(max-width:340px){
 body.cover-screen-active #world #packGamePanel:not([hidden]),
 body.cover-screen-active #world #bathWashPanel:not([hidden]),
 body.cover-screen-active #world #syrupPanel:not([hidden]),
 body.cover-screen-active #world #fetchbar.show{width:51vw!important}
}

/* Cover display: controls sit beside Places and Needs without instruction copy. */
body.cover-screen-active #world :is(#packGamePanel,#bathWashPanel,#syrupPanel,#fetchbar):not([hidden]){left:54px!important;top:72px!important;width:min(37vw,145px)!important;max-height:calc(100dvh - 82px)!important;padding:4px!important;font-size:10px!important}
body.cover-screen-active #world :is(#packGamePanel,#bathWashPanel,#syrupPanel) :is(p,small,.pack-instructions,.pack-hint,.activity-description){display:none!important}
body.cover-screen-active #world #packStatus{display:none!important}
body.cover-screen-active #world :is(#packGamePanel,#bathWashPanel,#syrupPanel,#fetchbar) button{font-size:10px!important;min-height:26px!important;padding:2px 5px!important}
body.cover-screen-active #piggyChoices{max-width:min(78vw,270px)!important;padding:6px!important}
body.cover-screen-active #piggyChoices :is(p,small){display:none!important}
body.cover-screen-active #piggyChoices .piggy-choices-grid{gap:3px!important}
/* Bath gestures belong to the washing layer, not the cover menu hotspot. */
body.cover-screen-active #world.bath-wash-active #coverMapleHotspot{pointer-events:none!important;display:none!important}
body.cover-screen-active #world.bath-wash-active .bath-wash-layer:not([hidden]){pointer-events:auto!important;touch-action:none!important;z-index:35}
body.cover-screen-active #world #bathWashPanel:not([hidden]){z-index:39!important}
body.cover-screen-active #world #bathWashPanel #bathWashInstruction{display:none!important}
body.cover-screen-active #world #bathWashPanel .bath-wash-meter{display:flex;gap:2px;font-size:9px}
body.cover-screen-active #world #bathWashPanel #bathWashDry:not([hidden]){display:block!important}
/* Three choices fit the short landscape cover without scrolling. */
body.cover-screen-active #piggyChoices{width:min(78vw,320px)!important;max-height:calc(100dvh - 8px)!important;overflow:visible!important;padding:0!important;border-radius:12px!important}
body.cover-screen-active #piggyChoices .piggy-choices-inner{padding:24px 5px 5px!important}
body.cover-screen-active #piggyChoices .piggy-choices-heading{display:none!important}
body.cover-screen-active #piggyChoices .piggy-choices-close{top:2px;right:3px;width:20px;height:20px;font-size:16px;z-index:2}
body.cover-screen-active #piggyChoices .piggy-choices-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px!important}
body.cover-screen-active #piggyChoices .piggy-choice{min-height:0!important;height:min(31dvh,80px)!important;padding:1px!important;gap:0!important;border-radius:8px!important;box-shadow:none!important}
body.cover-screen-active #piggyChoices .piggy-choice-art{width:min(15dvh,39px)!important;height:min(15dvh,39px)!important}
body.cover-screen-active #piggyChoices .piggy-choice strong{font-size:9px!important;line-height:1!important}
/* Place compact controls in the marked lower-left cover slot. */
@media (orientation:landscape) and (max-height:350px){
 body.cover-screen-active #world :is(#packGamePanel,#bathWashPanel,#syrupPanel,#fetchbar):not([hidden]){
  left:4px!important;top:105px!important;right:auto!important;bottom:auto!important;
  transform:none!important;width:min(28vw,116px)!important;max-width:116px!important;
  max-height:calc(100dvh - 112px)!important;overflow:auto!important;
 }
 body.cover-screen-active #world #packGamePanel h3{font-size:10px!important}
 body.cover-screen-active #world #packGamePanel .pack-controls{display:flex!important;flex-direction:column;align-items:stretch}
 body.cover-screen-active #world #packGamePanel .pack-controls button{width:100%;min-height:25px!important}
}
