/* V20: a single owner for input, and a compact touch-only gameplay shell. */
#pause{z-index:1000!important}#pause .panel{max-width:min(80vw,560px);max-height:85dvh;overflow:auto;box-sizing:border-box}#front-panel,#adventure-kit,#wardrobe,#realms,#dream-forge{z-index:1100!important}#build-label{z-index:1200}body:has(#pause[style*="flex"]) #build-label{display:block}
body.hud-blocked .ui,body.hud-blocked #touch,body.hud-blocked #bow-ui,body.hud-blocked #bow-reticle,body.hud-blocked #bag-open,body.hud-blocked #kit-open,body.hud-blocked #kit-hotbar,body.hud-blocked #kit-powers,body.hud-blocked #kit-status,body.hud-blocked #wardrobe-open,body.hud-blocked #realm-open,body.hud-blocked #front-open,body.hud-blocked #dream-interact,body.hud-blocked #bed-whisper,body.hud-blocked #shadow-star-hint{visibility:hidden!important;pointer-events:none!important}
body.front-open #touch,body.kit-open #touch,body.dream-open #touch{visibility:hidden!important;pointer-events:none!important}
#bag-open{display:none;position:fixed;top:76px;right:14px;z-index:18;min-width:82px;min-height:50px;border-radius:16px;border:1px solid #e4cc8f;background:#214b4deF;color:#fff0c5;font:bold 14px system-ui;touch-action:manipulation;cursor:pointer}body.touch.playing #bag-open{display:block}body.touch #kit-hotbar,body.touch #kit-powers,body.touch #kit-status,body.touch #wardrobe-open,body.touch #realm-open,body.touch #kit-open,body.touch #front-open{display:none!important}
.bag-items{max-width:1000px;margin:24px auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bag-items button{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;padding:16px;position:relative;background:#fff6df!important;color:#294d43!important;min-height:140px}.bag-items strong{font-size:17px}.bag-items b{font-size:22px;color:#486b55}.bag-items small{font-size:11px!important;line-height:1.4;color:#557167!important;letter-spacing:0!important}.bag-items button:disabled{opacity:.5}.bag-menu{max-width:1000px;margin:14px auto 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bag-menu button{min-height:52px;padding:12px}.bag-note{max-width:1000px;margin:20px auto!important}#adventure-kit:has(.bag-items)>h2{max-width:1000px;margin:20px auto 8px}
@media(max-width:760px){#adventure-kit:has(.bag-items){padding:18px}.bag-items{gap:8px;margin:18px auto}.bag-items button{min-height:132px;padding:10px}.bag-items strong{font-size:14px}.bag-items small{font-size:10px!important}.bag-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.bag-menu button{font-size:13px;padding:10px}}
@media(max-width:450px){.bag-items{grid-template-columns:repeat(2,minmax(0,1fr))}.bag-items button{min-height:120px}#pause .panel{padding:18px!important;max-width:90vw}#pause .title{font-size:36px!important}#bag-open{top:76px;right:12px;min-width:72px}}
button,.tb,a{-webkit-tap-highlight-color:transparent}body:has(#pause[style*="flex"]) #namecard,body.front-open #namecard,body.kit-open #namecard,body.dream-open #namecard{visibility:hidden!important}
