.home-is-hub .home-adventure-bar,.home-is-hub #home-teaching-entry,.home-is-hub .home-tool-dock{display:none!important}.home-hub-quickbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:5px;background:#e7cc8f;border:2px solid #a17b43;box-shadow:0 3px #8d6b3d;flex-shrink:0;margin-top:5px}.home-hub-quickbar>button{min-height:52px;background:#f4e0b0;color:#6a512d;border:1px solid #b9985c;border-radius:3px;font-size:10px;font-weight:750;padding:5px 2px;box-shadow:inset 1px 1px #fff4d0}.home-hub-quickbar span{display:block;font-size:22px;line-height:24px;margin-bottom:3px}.home-hub-context{padding:8px 10px;margin-top:5px;background:#faf0ce;border:1px solid #c7ad75;flex-shrink:0}.hub-place-title{display:flex;align-items:center;justify-content:space-between;gap:7px}.hub-place-title b{font-size:12px;color:#785631}.hub-place-title>button{font-size:10px;background:none;color:#86734f;min-height:30px}.hub-place-games,.hub-room-activities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:5px}.hub-place-games button,.hub-room-activities button{min-height:44px;border:1px solid #d7c08c;border-radius:6px;background:#fff7e1;font-size:10px;color:#78603b;padding:6px 3px}.hub-place-games span,.hub-room-activities span{font-size:17px;margin-right:3px}.hub-room-activities{margin:4px 0 9px}.interior-mode .home-hub-context,.sandbox-building .home-hub-context,.island-editing .home-hub-context,.room-editing .hub-room-activities{display:none}.home-teaching .home-hub-context,.home-teaching .home-hub-quickbar{display:none}.home-is-hub .home-focus-back{min-width:44px!important;min-height:44px!important}.hub-places>p,.hub-places article>p{font-size:12px;line-height:1.8;color:#81916d;margin:8px 0}.hub-places article{padding:12px;background:#fff6df;border:1px solid #e0cca2;border-radius:12px;margin:10px 0}.hub-places article>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.hub-places article b{font-size:13px}.hub-places article button{min-height:44px;border-radius:8px;padding:7px 9px;background:#e8edda;color:#64764f;font-size:11px;margin:6px 4px 0 0}.hub-places article>div:first-child button{font-size:10px;background:none}.hub-life-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hub-life-grid button{padding:12px 8px;background:#f1ebd3;border:1px solid #d4c399;border-radius:12px;min-height:73px;font-size:12px;color:#725f3b}.hub-life-grid span{display:block;font-size:27px;margin-bottom:7px}
#home-game-sheet.home-game-sheet{position:fixed;inset:0;width:min(100vw,560px);max-width:100vw;height:100dvh;max-height:100dvh;margin:auto;padding:0;border:0;border-radius:0;background:#f1f3df;overflow:auto;overscroll-behavior:contain;color:#435d50;box-shadow:0 0 45px #173c3c55}#home-game-sheet::backdrop{background:#183b40d9}.hub-sheet-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(7px + env(safe-area-inset-top)) 10px 7px;background:#efe0b9;border-bottom:2px solid #b49b68;min-height:55px}.hub-sheet-header>button{min-height:44px;min-width:78px;font-size:12px;color:#785f38;background:#fff1c9;border:1px solid #c5ab73;border-radius:8px;padding:7px}.hub-sheet-header>b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:center}.hub-sheet-header>span{font-size:11px;white-space:nowrap}.hub-coach-line{margin:10px 12px;padding:10px 12px;border-left:3px solid #8aac71;border-radius:9px;background:#e6edda;color:#6c7c5b;font-size:12px;line-height:1.7}.hub-local-notice{margin:8px 12px;background:#fff0cf;padding:10px;border-radius:10px;font-size:12px}.hub-local-notice[hidden]{display:none}#home-game-content{padding:0 10px calc(22px + env(safe-area-inset-bottom));min-height:70vh}#home-game-content .lesson{padding-top:0}#home-game-content .front-greeting{margin-top:10px}#home-game-content .chess-screen{padding-top:0}#home-game-sheet .chess-result-backdrop{position:fixed;z-index:30}#home-game-content .front-mode{padding:0}.home-focus .home-hub-context{padding:5px 8px}.home-focus .home-hub-quickbar{margin-top:4px}.home-focus .home-hub-quickbar button{min-height:50px}.home-focus .hub-place-title>button{min-height:26px}.home-is-hub .home-controls-help{display:none}@media(max-width:350px){.hub-place-games button,.hub-room-activities button{font-size:9px}.hub-place-games span,.hub-room-activities span{font-size:14px}.hub-sheet-header>b{font-size:11px}.hub-sheet-header>span{font-size:10px}.home-hub-quickbar{gap:3px}}@media(max-height:650px){.home-focus .home-hub-context{padding:3px 7px}.home-focus .hub-place-title{display:none}.home-focus .home-hub-quickbar button{min-height:48px}.home-focus .hub-place-games{margin-top:0}}

/* A square scene with separate, child-friendly button rows. */
.home-is-hub .home-workspace .home-touch-world{flex:0 0 auto;width:100%;height:auto;min-height:0!important;aspect-ratio:1;display:flex;overflow:hidden;margin:0;box-sizing:border-box}
.home-is-hub .home-workspace .home-touch-world .world-canvas{flex:1;width:100%;height:auto;min-height:0;aspect-ratio:1}
.home-focus.home-is-hub .home-workspace{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;justify-content:flex-start}
.home-is-hub .home-scene-meta{display:none}
.home-is-hub .home-hub-quickbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:7px;margin-top:9px;border:1px solid #c3d6c6;border-radius:16px;background:#fffdf3;box-shadow:0 3px 12px #365c4215}
.home-is-hub .home-hub-quickbar>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:54px;padding:8px 3px;border:0;border-radius:11px;background:#ecf2e5;color:#3d6155;font-size:14px;line-height:1.3;box-shadow:none;white-space:nowrap}
.home-is-hub .home-hub-quickbar span{display:inline-block;font-size:22px;line-height:26px;margin:0}
.home-is-hub .home-hub-quickbar .hub-shop-entry{background:#ffe3a1;color:#64431b;box-shadow:inset 0 0 0 1px #edc573}
.home-is-hub .home-hub-quickbar>button:active{transform:translateY(1px);background:#e7efdd}
.home-is-hub .home-camera-toolbar{grid-template-columns:repeat(4,minmax(0,1fr));border-radius:14px;margin-top:8px;flex-shrink:0}
.home-is-hub .home-camera-toolbar [data-home-view="out"],.home-is-hub .home-camera-toolbar [data-home-view="in"],.home-is-hub .home-camera-toolbar [data-home-view="motion"]{display:none;order:4}
.home-is-hub .home-camera-toolbar.camera-expanded [data-home-view]{display:block}
.home-is-hub .home-camera-toolbar [data-home-view="reset"]{order:0}
.home-is-hub .home-camera-toolbar [data-home-view="hero"]{order:1}
.home-is-hub .home-camera-toolbar [data-room-enter],.home-is-hub .home-camera-toolbar [data-room-exit]{order:2}
.home-is-hub .home-camera-toolbar [data-hub-camera]{order:3}
.home-is-hub .home-camera-toolbar button>small{font-size:12px}
.home-is-hub button:focus-visible{outline:3px solid #227987;outline-offset:3px}
@media(max-width:350px){.home-is-hub .home-hub-quickbar{gap:5px;padding:5px}.home-is-hub .home-hub-quickbar>button{font-size:12px;gap:4px;min-height:48px}.home-is-hub .home-hub-quickbar span{font-size:19px}}
.home-arrange-panel>h3{font-size:19px;color:#4e6b56}.home-arrange-panel>p{font-size:13px;line-height:1.8;margin:10px 0;color:#6c8060}.home-arrange-panel>.secondary{width:100%;margin-top:12px;min-height:46px}
