#sandbox-enter{position:fixed;top:80px;right:20px;z-index:60;background:#d9f7b4;color:#203821;padding:12px 22px;font-weight:800}
.sandbox-button{font:inherit;border:2px solid #435438;border-radius:10px;box-shadow:inset 0 0 0 2px #fff9,0 3px 0 #435438;background:#f7f8ee;color:#253528;padding:9px 13px;cursor:pointer;font-size:13px;font-weight:650}
.sandbox-button:hover{filter:brightness(1.07)}
.sandbox-button:focus-visible{outline:3px solid #ffbc36;outline-offset:3px}
#sandbox-play{position:fixed;inset:0;z-index:100;pointer-events:none;font-family:inherit;color:#243129}
#sandbox-play[hidden],#sandbox-enter[hidden],.sandbox-pause[hidden]{display:none!important}
.sandbox-panel,.sandbox-target,.sandbox-hotbar,.sandbox-pause{pointer-events:auto}
.sandbox-panel{position:absolute;left:20px;top:20px;width:min(420px,calc(100vw - 40px));box-sizing:border-box;border:2px solid #4a5b3f;background:#f8faefed;box-shadow:0 5px 0 #43543844;border-radius:16px;padding:16px;backdrop-filter:blur(10px)}
.sandbox-panel strong{font-size:20px}.sandbox-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.sandbox-inventory{font-size:14px;font-weight:700;margin:15px 0 8px}.sandbox-help{font-size:12px;line-height:1.8;color:#52634e;margin:0}.sandbox-notice{font-size:12px;color:#506329;min-height:18px;margin:8px 0 0}
.sandbox-target{position:absolute;bottom:110px;left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap;border-radius:12px;padding:10px 14px;background:#f8faefe8}.sandbox-target p{margin:0 0 8px;font-size:13px}.sandbox-target button{margin:0 4px}
.sandbox-hotbar{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:8px;padding:10px;border:2px solid #4a5b3f;border-radius:15px;background:#f3f6e9ed;max-width:calc(100vw - 32px);overflow:auto}
.sandbox-hotbar button{min-width:106px;min-height:46px;border-color:var(--sandbox-tint);font-size:12px;white-space:nowrap}.sandbox-hotbar button[aria-pressed=true]{background:#e4f6bd;border-color:#536b32;outline:2px solid #ffe281;outline-offset:1px}
.sandbox-pause{position:absolute;inset:0;display:grid;place-items:center;background:#1c2c2866;backdrop-filter:blur(5px)}.sandbox-pause>div{background:#f8faef;border:2px solid #435438;border-radius:20px;padding:28px;max-width:380px;margin:20px}.sandbox-pause p{font-size:14px;line-height:1.8}.sandbox-pause button{margin-right:10px}
body.sandbox-active #toolbar,body.sandbox-active #fp-hint,body.sandbox-active #fp-crosshair{display:none!important}
@media(max-width:700px){.sandbox-panel{top:10px;left:10px;width:calc(100vw - 20px);padding:12px}.sandbox-panel strong{font-size:17px}.sandbox-hotbar{bottom:12px;width:calc(100vw - 40px)}.sandbox-target{bottom:96px;max-width:calc(100vw - 24px);box-sizing:border-box;white-space:normal}.sandbox-target button{font-size:12px;padding:8px}.sandbox-help{font-size:11px}}

body.sandbox-active .brand,body.sandbox-active #world-menu-btn,body.sandbox-active #world-menu{display:none!important}
body.welcome-launch-open #sandbox-enter,body.auth-required #sandbox-enter{display:none!important}
body:has(#auth-modal:not([hidden])) #sandbox-enter,body.sandbox-active #sandbox-enter{display:none!important}

#magnetic-adventure-enter{position:fixed;top:136px;right:20px;z-index:60;background:#315b46;color:#fffde5;padding:12px 18px;text-decoration:none;font-size:13px}
#magnetic-adventure-enter[hidden],body:has(#auth-modal:not([hidden])) #magnetic-adventure-enter,body.welcome-launch-open #magnetic-adventure-enter,body.sandbox-active #magnetic-adventure-enter{display:none!important}
