/* Pocket the paperwork. Leave the lantern, your feet, and the world in view. */
#toggle-mobile-view[hidden]{display:none!important}
#toggle-mobile-view{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:44px;min-height:44px;padding:3px 6px;border:1px solid #b5b795;border-radius:15px 19px 10px 13px;background:#314d49;color:#eee0b9;box-shadow:0 2px 0 #10282c;touch-action:manipulation}
#toggle-mobile-view .mobile-view-icon{font:19px/1 Georgia,serif}
#toggle-mobile-view .mobile-view-copy{font:10px/1.2 Georgia,serif}
#toggle-mobile-view:focus-visible{outline:3px solid #f0d798;outline-offset:3px}
body.compact-ui .top-buttons #toggle-mobile-view{width:48px;height:44px;min-width:48px;flex:none}
body.compact-ui .top-buttons{gap:5px}
@media(max-width:600px){
 body.curio-world.compact-ui>header .brand{max-width:38px;flex:0 0 38px}
 body.curio-world.compact-ui>header .brand>span:last-child{display:none}
 body.curio-world.compact-ui .top-buttons{gap:6px}
 body.curio-world.compact-ui .top-buttons #open-satchel{min-width:85px}
}
body.mobile-clear-view.compact-ui{--controls-h:116px}
body.mobile-clear-view.compact-ui.prestige-hud .status{width:150px;padding:7px 9px 6px;gap:0;grid-template-columns:minmax(0,1fr);border-radius:14px 20px 12px 9px;top:calc(69px + var(--safe-top));left:max(10px,var(--safe-left))}
body.mobile-clear-view.compact-ui.prestige-hud .status h2{font-size:14px}
body.mobile-clear-view.compact-ui.prestige-hud .status #essence-number{font-size:15px}
body.mobile-clear-view.compact-ui.prestige-hud .status .life-track{height:5px;margin-top:5px}
body.mobile-clear-view.compact-ui.prestige-hud .status .survival-readout{display:block;margin-top:4px}
body.mobile-clear-view.compact-ui.prestige-hud .status #drain-label,
body.mobile-clear-view.compact-ui.prestige-hud .status .stats,
body.mobile-clear-view.compact-ui.prestige-hud .status #hallow-wallet,
body.mobile-clear-view.compact-ui.prestige-hud .pu-journal-toggle{display:none!important}
body.mobile-clear-view.compact-ui.prestige-hud .status .survival-readout strong{font-size:10px}
body.mobile-clear-view.compact-ui.prestige-hud .bottom,
body.mobile-clear-view.compact-ui.prestige-hud.simple-controls .bottom{height:calc(116px + var(--safe-bottom));grid-template-columns:96px minmax(0,1fr);gap:12px;padding:6px max(10px,var(--safe-right)) calc(10px + var(--safe-bottom)) max(10px,var(--safe-left));align-items:end}
body.mobile-clear-view.compact-ui.prestige-hud #touch,
body.mobile-clear-view.compact-ui.prestige-hud.simple-controls #touch{width:96px}
body.mobile-clear-view.compact-ui.prestige-hud #touch #thumbstick{width:94px;height:94px;background:radial-gradient(circle,#41554a28,#172c27b3);border-color:#c3cda076}
body.mobile-clear-view.compact-ui.prestige-hud #touch .pad-caption,
body.mobile-clear-view.compact-ui.prestige-hud #touch>small{display:none}
body.mobile-clear-view.compact-ui.prestige-hud .actions,
body.mobile-clear-view.compact-ui.prestige-hud.simple-controls .actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:46px 44px;gap:6px}
body.mobile-clear-view.compact-ui.prestige-hud .actions [data-action=crouch],
body.mobile-clear-view.compact-ui.prestige-hud .actions [data-action=dance]{display:none!important}
body.mobile-clear-view.compact-ui.prestige-hud .actions #nearby-action{grid-column:1/-1!important;grid-row:2!important;min-height:44px}
body.mobile-clear-view.compact-ui.prestige-hud #prompt{display:none!important}
body.mobile-clear-view.compact-ui.prestige-hud #toast{bottom:calc(126px + var(--safe-bottom));padding:6px 11px;font-size:12px;max-width:calc(100% - 24px)}
body.mobile-clear-view.compact-ui #surge-banner{top:calc(139px + var(--safe-top));font-size:9px;max-width:calc(100% - 24px)}
body.mobile-clear-view.compact-ui #unlock-toast{top:calc(139px + var(--safe-top));right:10px;width:min(205px,calc(100% - 20px));padding:7px 10px}
/* A single ghost stamp opens the quick messages; More restores the full coven. */
body.mobile-clear-view.compact-ui #coven-hud{top:calc(69px + var(--safe-top));right:max(10px,var(--safe-right));width:46px;max-width:none;padding:0;border:0;background:none;box-shadow:none}
body.mobile-clear-view.compact-ui #coven-hud-heading,
body.mobile-clear-view.compact-ui #partner-bars,
body.mobile-clear-view.compact-ui #coven-ping-log,
body.mobile-clear-view.compact-ui #coven-hud #quick-heart,
body.mobile-clear-view.compact-ui #coven-hud #quick-gift{display:none!important}
body.mobile-clear-view.compact-ui #coven-hud .coven-quick{position:static;margin:0;display:block}
body.mobile-clear-view.compact-ui #coven-hud #open-spook-wheel{display:block;width:46px;height:46px;border-radius:19px 16px 13px 15px}
body.mobile-clear-view.compact-ui #spook-wheel{top:calc(121px + var(--safe-top));right:10px;max-height:calc(100dvh - 245px - var(--safe-top) - var(--safe-bottom))}
/* Keep the real sand, monsters, own essence, loose skull and open gate. */
body.mobile-clear-view.compact-ui.prestige-hud #forest-watch{top:calc(69px + var(--safe-top));left:max(10px,var(--safe-left));right:max(10px,var(--safe-right));width:auto;padding:7px 10px 6px;max-width:none}
body.mobile-clear-view.compact-ui #forest-watch .fr-watch-heading,
body.mobile-clear-view.compact-ui #forest-watch .fr-carry,
body.mobile-clear-view.compact-ui #forest-watch .fr-chain,
body.mobile-clear-view.compact-ui #forest-watch .fr-live-field,
body.mobile-clear-view.compact-ui #forest-watch .fr-watch-note,
body.mobile-clear-view.compact-ui #forest-watch .fr-loop-whisper{display:none!important}
body.mobile-clear-view.compact-ui #forest-watch .fr-wave-line{grid-template-columns:.55fr 1fr 1.2fr;gap:8px;padding-bottom:4px;border-bottom:0}
body.mobile-clear-view.compact-ui #forest-watch .fr-wave-line small{font-size:7px}
body.mobile-clear-view.compact-ui #forest-watch .fr-wave-line strong{font-size:20px}
body.mobile-clear-view.compact-ui #forest-watch .fr-hourglass>svg:first-child{height:44px;width:26px}
body.mobile-clear-view.compact-ui #forest-watch .fr-party{display:block;margin-top:2px}
body.mobile-clear-view.compact-ui #forest-watch .fr-hero:not(.is-self){display:none}
body.mobile-clear-view.compact-ui #forest-watch .fr-hero.is-self{display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:center;gap:8px}
body.mobile-clear-view.compact-ui #forest-watch .fr-hero.is-self>div{display:flex;align-items:center;justify-content:space-between;gap:7px}
body.mobile-clear-view.compact-ui #forest-watch .fr-hero.is-self strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.mobile-clear-view.compact-ui #forest-watch .fr-hero.is-self small{font-size:10px;white-space:nowrap}
body.mobile-clear-view.compact-ui #forest-watch .fr-hero.is-self meter{height:5px;margin:0}
body.mobile-clear-view.compact-ui #forest-watch .fr-skull-recovery{padding:5px 0;margin-top:5px;gap:7px}
body.mobile-clear-view.compact-ui #forest-watch .fr-skull-recovery>svg{width:25px;height:30px;flex-basis:25px}
body.mobile-clear-view.compact-ui #forest-watch .fr-skull-recovery small,
body.mobile-clear-view.compact-ui #forest-watch .fr-skull-recovery em{display:none}
body.mobile-clear-view.compact-ui #forest-watch .fr-skull-recovery strong,
body.mobile-clear-view.compact-ui #forest-watch [data-skull=direction]{font-size:11px}
body.mobile-clear-view.compact-ui #forest-watch .fr-gate-way{margin:4px 0 0;padding:4px 0}
body.mobile-clear-view.compact-ui #forest-watch .fr-gate-way small{display:none}
body.mobile-clear-view.compact-ui #forest-watch .fr-gate-way strong{font-size:11px}
body.mobile-clear-view.compact-ui.in-forest #coven-hud{top:auto;bottom:calc(124px + var(--safe-bottom))}
body.mobile-clear-view.compact-ui.in-forest #spook-wheel{top:auto;bottom:calc(176px + var(--safe-bottom))}
body.mobile-clear-view.compact-ui .forest-controls{bottom:calc(10px + var(--safe-bottom));right:max(10px,var(--safe-right));width:calc(100vw - 128px - var(--safe-left) - var(--safe-right));max-width:330px;gap:6px;grid-template-columns:1fr 1fr;grid-template-rows:44px 44px}
body.mobile-clear-view.compact-ui .forest-controls button{min-height:44px;padding:5px 6px;gap:4px;flex-direction:row;justify-content:center}
body.mobile-clear-view.compact-ui .forest-controls button svg{width:21px;height:23px;flex-basis:21px}
body.mobile-clear-view.compact-ui .forest-controls button strong{font-size:13px}
body.mobile-clear-view.compact-ui .forest-controls button small,
body.mobile-clear-view.compact-ui .forest-controls button kbd{display:none}
body.mobile-clear-view.compact-ui .forest-controls .fr-cast{grid-column:1;grid-row:1/3}
body.mobile-clear-view.compact-ui .forest-controls .fr-dodge{grid-column:2;grid-row:1}
body.mobile-clear-view.compact-ui .forest-controls .fr-burst{grid-column:2;grid-row:2}
body.mobile-clear-view.compact-ui.prestige-hud.forest-ui-visible .bottom{height:calc(116px + var(--safe-bottom))}
body.mobile-clear-view.compact-ui.prestige-hud:not(.using-stick) .bottom{grid-template-columns:142px minmax(0,1fr)}
body.mobile-clear-view.compact-ui.prestige-hud:not(.using-stick) #touch{width:142px}
body.mobile-clear-view.compact-ui:not(.using-stick) .forest-controls{width:calc(100vw - 174px - var(--safe-left) - var(--safe-right))}
@media(max-width:350px){
 body.compact-ui .top-buttons{gap:4px}
 body.curio-world.compact-ui .top-buttons #open-satchel{min-width:76px;padding-right:5px}
 body.compact-ui .top-buttons #toggle-mobile-view{width:44px;min-width:44px}
 body.mobile-clear-view.compact-ui.prestige-hud .actions button>span{font-size:11px}
 body.mobile-clear-view.compact-ui.prestige-hud .actions #nearby-action>small{display:none}
 body.mobile-clear-view.compact-ui .forest-controls button svg{display:none}
}
@media(max-height:500px) and (orientation:landscape){
 body.mobile-clear-view.compact-ui.prestige-hud .status{width:146px;top:calc(65px + var(--safe-top))}
 body.mobile-clear-view.compact-ui.prestige-hud .bottom{height:calc(106px + var(--safe-bottom));display:block;padding:0}
 body.mobile-clear-view.compact-ui.prestige-hud #touch{left:max(10px,var(--safe-left));bottom:calc(8px + var(--safe-bottom));width:96px}
 body.mobile-clear-view.compact-ui.prestige-hud .actions{right:max(10px,var(--safe-right));bottom:calc(8px + var(--safe-bottom));width:220px;grid-template-columns:1fr 1fr;grid-template-rows:44px 44px}
 body.mobile-clear-view.compact-ui.prestige-hud .actions [data-action=scare]{grid-column:1;grid-row:1!important;height:44px!important;flex-direction:row}
 body.mobile-clear-view.compact-ui.prestige-hud .actions [data-action=jump]{grid-column:2;grid-row:1!important}
 body.mobile-clear-view.compact-ui.prestige-hud .actions #nearby-action{grid-column:1/-1!important;grid-row:2!important;flex-direction:row}
 body.mobile-clear-view.compact-ui.prestige-hud .actions #nearby-action>small{max-width:90px}
 body.mobile-clear-view.compact-ui.prestige-hud #toast{bottom:calc(112px + var(--safe-bottom));left:50%;max-width:calc(100% - 250px)}
 body.mobile-clear-view.compact-ui.prestige-hud #forest-watch{right:auto;width:276px;top:calc(65px + var(--safe-top))}
 body.mobile-clear-view.compact-ui #surge-banner{top:calc(66px + var(--safe-top));left:52%;max-width:200px}
 body.mobile-clear-view.compact-ui.in-forest #coven-hud{top:calc(65px + var(--safe-top));bottom:auto}
 body.mobile-clear-view.compact-ui .forest-controls{width:220px;grid-template-columns:1fr 1fr;max-width:none}
 body.mobile-clear-view.compact-ui:not(.using-stick) .forest-controls{width:220px}
 body.mobile-clear-view.compact-ui.prestige-hud.forest-ui-visible .bottom{height:calc(106px + var(--safe-bottom))}
}
