/* A single icon row. View controls and profile live in Explorer options. */
body .house-control-dock{flex:0 0 auto;width:100%;min-width:0;margin:0;}
body .house-control-dock .house-bottom-controls{display:block;width:100%;height:52px;min-height:52px;box-sizing:border-box;padding:4px 8px;margin:0;border:1px solid #34472c;border-radius:0 0 12px 12px;background:#101a13;overflow:visible;}
.house-control-dock .game-dock-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;width:100%;height:44px;min-width:0;}
.house-control-dock .game-dock-actions .house-bottom-control{position:relative;display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:0;width:auto;min-width:0;height:44px;min-height:44px;max-height:44px;box-sizing:border-box;padding:0;margin:0;border:1px solid transparent;border-radius:7px;background:transparent;color:#cfe3c4;box-shadow:none;cursor:pointer;}
.house-control-dock .game-dock-actions .house-bottom-control>b:first-child{display:grid;place-items:center;width:22px;height:22px;font-size:20px;line-height:1;}
.house-control-dock .game-dock-actions .house-bottom-control svg{display:block;width:22px;height:22px;}
.house-control-dock .game-dock-actions .house-bottom-control>span{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.house-control-dock .game-dock-actions .house-bottom-control:hover,.house-control-dock .game-dock-actions .house-bottom-control[aria-expanded=true]{border-color:#6c8d4f;background:#263a21;color:#e4ffbf;transform:none;}
.house-control-dock .game-dock-actions .house-bottom-control:focus-visible{outline:2px solid #d5ff8a;outline-offset:-2px;background:#263a21;}
.house-control-dock .game-dock-actions #crib-online-count{position:absolute;top:1px;right:5px;color:#dcff94;font:700 9px/1.2 system-ui;}
.house-control-dock .game-dock-actions .house-bottom-control:disabled{opacity:.45;cursor:default;}
/* Flex the stage into the space remaining above the icon dock. */
body .house-explorer-shell{min-width:0;min-height:0;max-width:100%;height:min(900px,calc(100svh - 24px));max-height:calc(100svh - 24px);}
body .house-explorer-shell>.house-stage{flex:1 1 0;min-height:0!important;max-height:none;}
body .house-explorer-shell .mobile-move-pad{flex:0 0 auto;}
/* Explorer options use the same controls without crowding the footer. */
.game-view-options .game-dock-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px;}
.game-view-options .game-dock-summary>*{min-width:0;box-sizing:border-box;}
.game-view-options .house-space-scale,.game-view-options .house-view-controls{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:12px;border:1px solid #48613e;border-radius:10px;background:#121d15;}
.game-view-options .house-view-controls{grid-template-columns:repeat(2,minmax(0,1fr));}
.game-view-options .house-space-scale strong,.game-view-options .house-view-controls strong{display:flex;justify-content:space-between;grid-column:1/-1;gap:8px;color:#e2efd9;font-size:13px;}
.game-view-options output{color:#dcff94;font-size:13px;}
.game-view-options input[type=range]{width:100%;min-width:0;min-height:44px;accent-color:#baff49;}
.game-view-options .house-space-scale button,.game-view-options .house-view-controls button{min-height:44px;min-width:0;}
.game-view-options .game-profile-wallet{display:grid!important;grid-template-columns:32px minmax(0,1fr) auto;grid-column:auto;align-items:center;gap:10px;min-height:84px;padding:12px;text-align:left;}
.game-view-options .game-profile-wallet__avatar{display:grid!important;width:32px;height:32px;}
.game-view-options .game-profile-wallet__identity,.game-view-options .game-profile-wallet__balance{display:grid;min-width:0;gap:4px;}
.game-view-options .game-profile-wallet small{display:block!important;font-size:10px;}
.game-view-options .game-profile-wallet b,.game-view-options .game-profile-wallet strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media(max-height:500px){body .house-explorer-shell{height:calc(100svh - 8px);max-height:calc(100svh - 8px);}}
/* Workspace navigation belongs above the workspace, never over the game. */
body.model-explorer-page .explorer-options{position:relative;inset:auto;width:calc(100% - 24px);max-width:1100px;min-width:0;margin:8px auto;z-index:80;}
body.model-explorer-page .explorer-options__toggle{width:auto;min-height:44px;height:auto;margin:0;padding:8px 12px;border-radius:8px;justify-content:flex-start;}
body.model-explorer-page .explorer-options__toggle>span:last-child{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;}
body.model-explorer-page .explorer-options__panel{position:absolute;inset:calc(100% + 6px) auto auto 0;width:min(380px,100%);max-height:calc(100dvh - 170px);margin:0;overflow-y:auto;overscroll-behavior:contain;}
body.model-explorer-page .explorer-options__panel ul{max-height:none;}
@media(max-height:500px){body.model-explorer-page .explorer-options__panel{max-height:70dvh;}}

.rad-tox-fire-trigger{position:absolute;right:18px;bottom:20px;z-index:19;display:grid;place-items:center;width:64px;height:64px;padding:12px;border:2px solid #caff49;border-radius:50%;background:#091b10ed;color:#efffd7;box-shadow:0 4px 18px #0008;touch-action:none;user-select:none;cursor:pointer}.rad-tox-fire-trigger[hidden]{display:none}.rad-tox-fire-trigger:active{background:#caff49;color:#091b10}.rad-tox-fire-trigger:focus-visible{outline:3px solid #fff;outline-offset:3px}
/* Keep the toolbar and touch panel inside the fullscreen game surface. */
body .house-explorer-shell:fullscreen,body .house-explorer-shell:-webkit-full-screen{display:flex;flex-direction:column;width:100%;height:100dvh;max-height:none;margin:0;border-radius:0;}
body .house-control-dock .mobile-move-pad-glb{width:100%;max-width:none;margin:0;box-sizing:border-box;}
body .house-control-dock .mobile-move-pad-glb[hidden]{display:none!important;}
.house-control-dock .rad-tox-game-toggle[aria-pressed=true]{background:#caff69;color:#102009;}
@media(max-width:760px),(pointer:coarse){
 body .house-control-dock{order:2;}
 body .house-control-dock .mobile-move-pad-glb:not([hidden]){position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 8px max(8px,env(safe-area-inset-bottom));background:#071006;}
 body .house-control-dock .thumbstick-base{width:clamp(76px,21vw,112px);height:clamp(76px,21vw,112px);min-height:0;}
 body .house-control-dock .game-dock-actions{gap:0;}
 body .house-control-dock .house-bottom-controls{padding-inline:2px;}
}
