/* Shared layout for fullscreen game pickers. Keep the viewport scroll at right. */
.game-menu-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(1120px,100%);box-sizing:border-box;margin:0 auto 20px;padding:14px 0;background:#101a13;border-bottom:1px solid #466044}
.game-menu-header h2{margin:0;font:700 clamp(20px,3vw,30px)/1.2 Inter,system-ui,sans-serif;color:#f4ffe9;letter-spacing:-.02em}
.game-menu-close,.game-menu-header .game-fullscreen-close{position:static;float:none!important;margin:0 0 0 auto;min-width:88px;min-height:44px;flex-shrink:0;border:1px solid #6b8c5e;border-radius:8px;padding:10px 16px;background:#223d28;color:#f4ffe9;font:600 14px/1.2 system-ui;cursor:pointer}
.game-fullscreen-dialog .game-fullscreen-content:not([hidden]){width:100%!important;max-width:1120px!important;margin:0 auto!important;padding:20px!important;border:1px solid #344d37!important;border-radius:12px!important;background:#142018!important;box-shadow:none!important}
.game-fullscreen-dialog .game-fullscreen-content>.rad-tox-tools-toggle,.game-fullscreen-dialog [data-building-close],.game-fullscreen-dialog [data-quest-close],.game-fullscreen-dialog .range-ops-close{display:none!important}
.rad-weapons-popup>.rad-weapons-grid,.rad-weapons-popup>p{width:min(1120px,100%);margin:0 auto 16px;box-sizing:border-box}
.rad-weapons-popup>.game-menu-original-title{display:none}
.rad-weapons-popup .rad-weapons-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;align-items:stretch}
.rad-weapons-popup .rad-tool-choice,.game-fullscreen-dialog .rad-tool-choice{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0!important;min-height:120px!important;height:auto!important;padding:16px!important;white-space:normal!important;overflow-wrap:anywhere;text-align:center!important;border-radius:10px}
.rad-weapons-popup .rad-tool-choice span,.game-fullscreen-dialog .rad-tool-choice span{font-size:14px;line-height:1.35}
.rad-weapons-popup .rad-tool-choice small,.game-fullscreen-dialog .rad-tool-choice small{display:block!important;max-width:30ch;font-size:12px;line-height:1.45;white-space:normal!important;opacity:.8}
.rad-weapons-popup .rad-tool-icon,.game-fullscreen-dialog .rad-tool-icon{width:40px!important;height:40px!important;flex-shrink:0}
.game-fullscreen-dialog .rad-tox-tools__content{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px!important;align-items:stretch!important}
.game-fullscreen-dialog .rad-paint-mode,.game-fullscreen-dialog .rad-tox-colors{grid-column:1/-1;max-width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;gap:8px}
.game-fullscreen-dialog h3{margin:0 0 12px;font-size:22px;line-height:1.3}.game-fullscreen-dialog h4{margin:20px 0 10px;font-size:15px;line-height:1.4}.game-fullscreen-dialog p,.game-fullscreen-dialog small{line-height:1.5}
.game-fullscreen-dialog label{font-size:13px;line-height:1.5}.game-fullscreen-dialog input[type=search]{display:block;box-sizing:border-box;width:100%;min-height:44px;margin:8px 0 16px;padding:10px 12px;color:#fff;background:#0c160f;border:1px solid #668269;border-radius:8px}
.game-fullscreen-dialog .building-design-layout{grid-template-columns:minmax(240px,.9fr) minmax(300px,1.25fr);gap:20px;align-items:start}.game-fullscreen-dialog .building-design-layout>div,.game-fullscreen-dialog .building-design-controls{min-width:0}
.game-fullscreen-dialog .building-design-controls{padding:16px}.game-fullscreen-dialog .building-design-controls canvas{height:240px;max-width:100%}.game-fullscreen-dialog .building-design-controls label{display:grid;grid-template-columns:1fr auto;gap:4px 10px}.game-fullscreen-dialog .building-design-controls label input{grid-column:1/-1;min-width:0;margin:4px 0 10px}.game-fullscreen-dialog .building-design-controls output{font-variant-numeric:tabular-nums;color:#c5f0ad}
.game-fullscreen-dialog .building-design-controls button{margin:4px 0;padding:10px 12px;width:100%;box-sizing:border-box;border-radius:8px}.game-fullscreen-dialog .rad-brick-material-grid{margin-top:0;max-height:58vh}.game-fullscreen-dialog .rad-brick-material-grid button{width:100%;box-sizing:border-box;justify-content:flex-start;text-align:left!important}
.game-fullscreen-dialog button:focus-visible,.rad-weapons-popup button:focus-visible,.game-fullscreen-dialog input:focus-visible{outline:3px solid #d5ff9c;outline-offset:3px}.game-fullscreen-dialog button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.game-menu-header{margin-bottom:12px;padding:10px 0}.game-fullscreen-dialog .game-fullscreen-content:not([hidden]){padding:12px!important}.game-fullscreen-dialog .building-design-layout{grid-template-columns:1fr;gap:12px}.game-fullscreen-dialog .building-design-controls canvas{height:200px}.game-fullscreen-dialog .rad-brick-material-grid{max-height:40vh}.rad-weapons-popup .rad-weapons-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rad-weapons-popup .rad-tool-choice,.game-fullscreen-dialog .rad-tool-choice{padding:12px!important;min-height:110px!important}.game-menu-header h2{font-size:21px}}
@media(max-width:360px){.rad-weapons-popup .rad-weapons-grid,.game-fullscreen-dialog .rad-tox-tools__content{grid-template-columns:1fr}}
.game-fullscreen-content [data-rad-pack-close],.game-fullscreen-content [data-close-backpack],.game-fullscreen-content [data-close-worlds],.game-fullscreen-content[data-brick-material-menu]>h3{display:none!important}
.game-fullscreen-content button:not(.rad-tool-choice):not(.rad-tox-color):not([data-brick-color]){border:1px solid #587b5b;background:#233e29;color:#f1ffe8;border-radius:8px;padding:10px 12px;min-height:44px;font:600 13px/1.3 system-ui;white-space:normal}
.game-fullscreen-content button[aria-pressed=true],.rad-weapons-popup button[aria-pressed=true]{border-color:#baff39;box-shadow:inset 0 0 0 1px #baff39}
@media(hover:hover){.game-fullscreen-content button:hover:not(:disabled),.rad-weapons-popup button:hover{filter:brightness(1.12)}}
/* Even, centered category buttons; item lists remain compact rows. */
.game-fullscreen-dialog .rad-tox-tools__content{grid-template-columns:repeat(auto-fit,minmax(132px,180px))!important;justify-content:center!important}
.game-fullscreen-dialog .rad-tox-tools__content>.rad-tool-choice{aspect-ratio:1/1;min-height:0!important;width:100%!important;box-sizing:border-box;align-items:center!important;justify-content:center!important;margin:0!important}
.building-adjust-button{position:absolute;right:12px;top:140px;z-index:15;min-height:44px;padding:10px 14px;border:1px solid #9fcc73;border-radius:8px;background:#173221;color:#efffde}
.building-adjust-button[hidden]{display:none}
.building-adjust-dialog{width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;box-sizing:border-box;border:1px solid #89b66b;border-radius:14px;padding:20px;background:#12231a;color:#fff;scrollbar-gutter:stable}
.building-adjust-dialog::backdrop{background:#0009}.building-adjust-dialog h2{margin:0 0 16px}.building-adjust-dialog label{display:grid;grid-template-columns:1fr auto;gap:8px;margin:16px 0}.building-adjust-dialog input{grid-column:1/-1;width:100%;min-height:32px}.building-adjust-dialog output{font-variant-numeric:tabular-nums}.building-adjust-modes{display:flex;flex-wrap:wrap;gap:8px}.building-adjust-dialog button{min-height:44px;flex:1;padding:10px;border:1px solid #617d60;border-radius:8px;background:#264331;color:#fff}.building-adjust-dialog button[aria-pressed=true]{border-color:#baff39;background:#355c37}
/* Compact wrapping toolbar; consistent square categories at every width. */
.game-fullscreen-dialog #rad-tox-tools.game-fullscreen-content{max-width:880px!important;padding:14px!important}
.game-fullscreen-dialog .rad-tox-tools__content{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:center!important;align-content:flex-start}
.game-fullscreen-dialog .rad-tox-tools__content>.rad-tool-choice{flex:0 0 140px!important;width:140px!important;height:140px!important;aspect-ratio:1;min-height:0!important;padding:10px!important;border-radius:4px!important;overflow:hidden}
.game-fullscreen-dialog .rad-tox-tools__content>.rad-paint-mode,.game-fullscreen-dialog .rad-tox-tools__content>.rad-tox-colors{flex:0 0 100%;width:100%;justify-content:center;padding:8px!important}
.game-fullscreen-dialog .rad-tox-tools__content .rad-tool-icon{width:32px!important;height:32px!important}.game-fullscreen-dialog .rad-tox-tools__content .rad-tool-choice span{font-size:13px}.game-fullscreen-dialog .rad-tox-tools__content .rad-tool-choice small{font-size:11px;line-height:1.3}
.building-adjust-dialog{position:fixed;inset:72px 12px auto auto;margin:0;width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 96px);border-radius:8px;padding:14px}.building-adjust-dialog::backdrop{background:#0004}.building-adjust-dialog label{margin:10px 0}.building-adjust-dialog h2{font-size:20px}.building-adjust-dialog input[type=range]{accent-color:#baff39;cursor:ew-resize}
@media(max-width:480px){.game-fullscreen-dialog .rad-tox-tools__content>.rad-tool-choice{flex-basis:calc(50% - 4px)!important;width:calc(50% - 4px)!important;height:auto!important;aspect-ratio:1}.building-adjust-dialog{inset:64px 8px auto auto;width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 80px)}}
/* Keep unrelated paint controls out of the category picker. */
.game-fullscreen-dialog #rad-tox-tools:not([data-active-tool=spray]) .rad-paint-mode,.game-fullscreen-dialog #rad-tox-tools:not([data-active-tool=spray]) [data-color-label="Paint gun colors"],.game-fullscreen-dialog #rad-tox-tools [data-color-label="Brick colors"]{display:none!important}
/* One catalog flow: view, paint, select; placement controls stay in the world. */
.game-fullscreen-dialog .building-design-controls>h4:first-child{margin-top:0}.game-fullscreen-dialog .building-paint-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0}
.game-fullscreen-dialog .building-paint-options [data-brick-color]{display:flex;align-items:center;gap:8px;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:8px!important;background:#213729!important;border:1px solid #56765a!important;border-radius:6px!important;color:#fff;text-align:left;text-shadow:none}
.building-paint-choice>span{display:block;flex:0 0 20px;height:20px;background:var(--paint-color);border:1px solid #ffffff66;border-radius:3px}.game-fullscreen-dialog .building-paint-options [aria-pressed=true]{border-color:#baff39!important;box-shadow:inset 0 0 0 1px #baff39}
.building-select-actions{padding-top:12px;margin-top:12px;border-top:1px solid #456044}.game-fullscreen-dialog [data-building-equip]{background:#baff39!important;color:#142018!important;font-weight:800!important;width:100%;font-size:16px!important}.building-select-actions small{display:block;padding-top:8px;color:#c9d9c7}.building-catalog-functions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;border-top:1px solid #344d37;padding-top:14px;margin-top:18px}.building-catalog-functions button{min-width:160px}
/* Field pouch: fitted pockets, stitched seams and restrained lime hardware. */
dialog.game-fullscreen-dialog.tools-pouch-screen{background:radial-gradient(ellipse at 50% 0,#29462d 0,transparent 55%),#0b130f!important}
.tools-pouch-screen .game-menu-header{max-width:720px;border-color:#5b7451;background:#101d14}.tools-pouch-screen .game-menu-header h2{font-size:18px;letter-spacing:.08em;text-transform:uppercase}.tools-pouch-screen .game-menu-close,.tools-pouch-screen .game-fullscreen-close{background:#293d28;border-color:#81966b}
.tools-pouch-screen #rad-tox-tools.game-fullscreen-content{position:relative;max-width:720px!important;padding:24px!important;border:1px solid #738160!important;border-radius:20px!important;background:linear-gradient(125deg,#2a3829,#19271c 50%,#283927)!important;box-shadow:0 20px 70px #0008,inset 0 0 0 5px #111d14,inset 0 0 0 7px #42553a!important}
.tools-pouch-intro{display:flex;align-items:center;gap:16px;padding:4px 0 18px;border-bottom:1px dashed #78906580}.tools-pouch-emblem{display:grid;place-items:center;flex:0 0 66px;height:66px;border:1px solid #8c9d71;border-radius:14px;background:linear-gradient(#40543a,#21311f);box-shadow:inset 0 1px 0 #b8cc8b44}.tools-pouch-emblem .rad-tool-icon{width:46px!important;height:46px!important}.tools-pouch-kicker{display:block;font:700 10px/1.5 system-ui;letter-spacing:.16em;color:#c4df9f}.tools-pouch-intro h3{font-size:27px!important;margin:3px 0 5px!important;letter-spacing:-.03em}.tools-pouch-intro p{margin:0;color:#cfdbc9;font-size:13px}
.tools-pouch-equipped{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:14px 0;border:1px solid #5c7351;border-radius:7px;background:#102016;font-size:12px}.tools-pouch-equipped>span:first-child{color:#aaba9f}.tools-pouch-equipped strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;color:#f2ffde}.tools-pouch-ready{font:800 9px/1 system-ui;letter-spacing:.08em;color:#baff39}.tools-pouch-ready::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px}
.tools-pouch-screen .rad-tox-tools__content{gap:10px!important;padding:8px 0 4px;align-items:stretch!important}.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice{position:relative;flex-basis:calc(25% - 8px)!important;width:calc(25% - 8px)!important;height:auto!important;aspect-ratio:1;border:1px solid #718561!important;border-radius:9px!important;background:linear-gradient(155deg,#3e5138,#243820 60%,#1b2b1a)!important;color:#f5ffe8!important;box-shadow:0 4px 0 #0e1b10,inset 0 1px 0 #d8edb32b!important;padding:12px 8px!important;gap:6px!important;transition:transform .12s,background .12s}
.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice::before{content:'';position:absolute;inset:4px;border:1px dashed #a5b68a45;border-radius:5px;pointer-events:none}.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice[aria-pressed=true]{border-color:#c6ff66!important;background:linear-gradient(145deg,#486538,#294421)!important}.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice span{font-size:12px!important;font-weight:750}.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice small{font-size:10px!important;color:#cfdbbd;opacity:1;line-height:1.3}.tools-pouch-screen .rad-tox-tools__content .rad-tool-icon{width:34px!important;height:34px!important;filter:drop-shadow(0 2px 2px #0005)}
@media(hover:hover){.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice:hover{transform:translateY(-2px);border-color:#d6f4a5!important}.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice:active{transform:translateY(1px)}}
@media(max-width:600px){.tools-pouch-screen #rad-tox-tools.game-fullscreen-content{padding:18px!important;border-radius:15px!important}.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice{flex-basis:calc(50% - 5px)!important;width:calc(50% - 5px)!important;max-width:170px;min-height:128px!important}.tools-pouch-intro{gap:12px}.tools-pouch-emblem{flex-basis:52px;height:52px}.tools-pouch-intro h3{font-size:24px!important}.tools-pouch-intro p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.tools-pouch-screen .rad-tool-choice{transition:none!important;transform:none!important}}
.game-market-shell{max-width:1120px;margin:0 auto}.game-market-tabs,.game-market-toolbar,.game-market-actions,.game-market-shell footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.game-market-tabs{padding:10px 0;border-bottom:1px solid #40573f}.game-market-popup button{min-height:44px;padding:10px 14px;border:1px solid #6a865c;border-radius:7px;background:#24422b;color:#f1ffe9;cursor:pointer}.game-market-popup button[aria-pressed=true]{border-color:#baff39;background:#375e35}.game-market-popup button:disabled{opacity:.5;cursor:not-allowed}.game-market-toolbar{justify-content:space-between;padding:16px 0}.game-market-toolbar label{flex:1;min-width:180px}.game-market-popup input,.game-market-popup select,.game-market-popup textarea{box-sizing:border-box;width:100%;padding:10px;min-height:44px;border:1px solid #607e58;border-radius:6px;background:#0b190f;color:#fff}.game-market-popup [data-market-status]{min-height:24px;color:#d6f1c0}.game-market-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #354b37}.game-market-row[hidden]{display:none}.game-market-row h3{margin:0 0 6px;font-size:17px}.game-market-row p{margin:0;color:#c8d8c2;font-size:13px;overflow-wrap:anywhere}.game-market-actions{justify-content:flex-end;flex-shrink:0}.game-market-actions form{display:flex;align-items:end;gap:8px}.game-market-actions input{max-width:140px}.game-market-shell footer{padding:24px 0}.game-market-shell a{color:#baff90}.game-market-popup [data-market-message]{max-width:640px;display:grid;gap:12px}.game-market-popup [data-market-conversation]{padding:14px 0;max-height:40vh;overflow:auto}.game-market-popup [aria-busy=true]{opacity:.6;pointer-events:none}@media(max-width:650px){.game-market-row{align-items:stretch;flex-direction:column;gap:10px}.game-market-actions{justify-content:flex-start;flex-shrink:1}.game-market-actions form{flex-wrap:wrap}.game-market-tabs button{flex:1}.game-market-toolbar{align-items:flex-end}}
@keyframes game-menu-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
dialog[open]>.game-fullscreen-content,dialog[open]>.game-market-shell,dialog[open]>.rad-weapons-grid{animation:game-menu-reveal .14s ease-out}dialog{scrollbar-color:#789e60 #142018}dialog button:focus-visible,dialog a:focus-visible{outline:3px solid #c7ff80;outline-offset:3px}
@media(prefers-reduced-motion:reduce){dialog[open]>.game-fullscreen-content,dialog[open]>.game-market-shell,dialog[open]>.rad-weapons-grid{animation:none}}

.game-care-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.game-market-actions meter{width:min(220px,40vw);height:1.2rem;accent-color:#baff39}.game-care-empty{padding:1rem;border:1px solid #79a63d;border-radius:8px;line-height:1.5}

/* Viewport-fit menus share one vertical scrollbar and a reachable close action. */
dialog.game-fullscreen-dialog,dialog.rad-weapons-popup{position:fixed!important;inset:0!important;width:100%!important;max-width:100vw!important;height:100vh!important;height:100dvh!important;max-height:100dvh!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:12px clamp(10px,2vw,24px) max(12px,env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;overflow-x:hidden!important;overflow-y:scroll!important;overscroll-behavior:contain;background:#0d1710;color:#eef8e8;}
dialog.game-fullscreen-dialog *,dialog.rad-weapons-popup *{box-sizing:border-box;}
.game-fullscreen-dialog .game-menu-header,.rad-weapons-popup .game-menu-header{width:100%;max-width:1120px;margin-bottom:12px;padding:8px 0;gap:10px;}
.game-fullscreen-dialog .game-menu-header h2,.rad-weapons-popup .game-menu-header h2{min-width:0;overflow-wrap:anywhere;font-size:clamp(17px,3vw,23px);}
.game-fullscreen-dialog .game-fullscreen-content:not([hidden]){max-width:1120px!important;padding:12px!important;min-width:0!important;}
.game-fullscreen-dialog .game-fullscreen-content img,.game-fullscreen-dialog .game-fullscreen-content canvas{max-width:100%;}
.game-fullscreen-dialog input,.game-fullscreen-dialog select,.game-fullscreen-dialog textarea,.game-market-popup input,.game-market-popup select,.game-market-popup textarea{max-width:100%;min-width:0;}
/* Compact tools retain their descriptions and use the available width. */
dialog.tools-pouch-screen #rad-tox-tools.game-fullscreen-content{max-width:1000px!important;padding:16px!important;border-radius:12px!important;}
dialog.tools-pouch-screen .game-menu-header{max-width:1000px;}
dialog.tools-pouch-screen .tools-pouch-intro{gap:10px;padding:0 0 10px;}
dialog.tools-pouch-screen .tools-pouch-emblem{flex-basis:40px;height:40px;border-radius:8px;}
dialog.tools-pouch-screen .tools-pouch-emblem .rad-tool-icon{width:28px!important;height:28px!important;}
dialog.tools-pouch-screen .tools-pouch-intro h3{font-size:20px!important;}
dialog.tools-pouch-screen .tools-pouch-equipped{margin:10px 0;padding:8px 10px;}
dialog.tools-pouch-screen .rad-tox-tools__content{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))!important;gap:8px!important;padding:0!important;}
dialog.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice{display:flex!important;width:100%!important;max-width:none!important;min-height:88px!important;height:auto!important;aspect-ratio:auto!important;padding:10px 8px!important;gap:4px!important;}
dialog.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice .rad-tool-icon{width:26px!important;height:26px!important;}
.rad-weapons-popup .rad-weapons-grid{grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr));gap:8px;}
.rad-weapons-popup .rad-tool-choice{min-height:90px!important;padding:10px!important;gap:5px;}
/* Backpack: category list beside a responsive item grid, with no orbit offsets. */
.game-fullscreen-dialog .backpack-picker{display:grid!important;grid-template-columns:minmax(150px,210px) minmax(0,1fr)!important;align-items:start;gap:14px;width:100%;min-width:0;}
.game-fullscreen-dialog .backpack-categories{position:static!important;display:grid!important;grid-template-columns:1fr!important;gap:6px;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;transform:none!important;}
.game-fullscreen-dialog .backpack-pie-center{display:none!important;}
.game-fullscreen-dialog .backpack-category{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;min-height:44px!important;padding:8px!important;clip-path:none!important;border:1px solid #49613c!important;border-radius:7px!important;transform:none!important;background:#1b2c1e!important;}
.game-fullscreen-dialog .backpack-category.is-active{border-color:#caff49!important;background:#30452a!important;}
.game-fullscreen-dialog .backpack-category-label{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:6px;width:100%!important;max-width:none!important;transform:none!important;text-align:left;}
.game-fullscreen-dialog .backpack-category-label em{font-size:12px;font-style:normal;white-space:normal;}
.game-fullscreen-dialog .backpack-category-graphic{display:block;width:24px;height:24px;}
.game-fullscreen-dialog .backpack-category-graphic svg{width:24px!important;height:24px!important;}
.game-fullscreen-dialog .backpack-selection{display:block!important;position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;padding:0!important;overflow:visible!important;}
.game-fullscreen-dialog .backpack-selection-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;}
.game-fullscreen-dialog .backpack-circle{position:static!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(170px,100%),1fr))!important;align-items:stretch;gap:10px;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:8px 0!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;background:none!important;transform:none!important;overflow:visible!important;}
.game-fullscreen-dialog .backpack-orbit-card{position:static!important;inset:auto!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:10px!important;margin:0!important;transform:none!important;overflow-wrap:anywhere;}
.game-fullscreen-dialog .backpack-asset-preview{width:100%!important;max-width:140px!important;height:84px!important;min-height:0!important;}
.game-fullscreen-dialog .backpack-asset-preview img,.game-fullscreen-dialog .backpack-asset-preview svg{max-width:100%;max-height:84px;object-fit:contain;}
.game-fullscreen-dialog .backpack-card-actions{margin-top:auto;width:100%;}
.game-fullscreen-dialog .backpack-card-actions button{width:100%;}
.game-fullscreen-dialog .rad-tox-pack-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:8px;}
.game-fullscreen-dialog .rad-tox-pack-item{min-width:0;overflow-wrap:anywhere;padding:10px;}
.game-fullscreen-dialog .rad-build-grid,.game-fullscreen-dialog .multiplayer-world-grid{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:8px;}
.game-fullscreen-dialog .building-design-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
.game-fullscreen-dialog .rad-brick-material-grid{max-height:none!important;overflow:visible!important;}
.game-market-popup .game-market-shell{width:100%;min-width:0;}
.game-market-popup .game-market-tabs{gap:6px;flex-wrap:wrap;}
@media(max-width:700px){
 dialog.tools-pouch-screen .rad-tox-tools__content{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .game-fullscreen-dialog .backpack-picker,.game-fullscreen-dialog .building-design-layout{grid-template-columns:minmax(0,1fr)!important;}
 .game-fullscreen-dialog .backpack-categories{display:flex!important;flex-wrap:wrap;gap:5px;}
 .game-fullscreen-dialog .backpack-category{flex:1 1 125px;min-width:0;width:auto!important;}
 .game-fullscreen-dialog .backpack-circle{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .game-fullscreen-dialog .backpack-header{min-width:0;}
 .game-fullscreen-dialog .backpack-orbit-card strong{font-size:12px;}
 .game-fullscreen-dialog .backpack-orbit-card small{font-size:11px;}
 .game-market-popup .game-market-row{flex-wrap:wrap;gap:8px;}
}
/* Hidden controls remain hidden even when compact layouts use display overrides. */
dialog.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice[hidden],dialog.game-fullscreen-dialog .game-fullscreen-content [hidden]{display:none!important;}
.game-fullscreen-dialog .backpack-circle::before,.game-fullscreen-dialog .backpack-circle::after,.game-fullscreen-dialog .backpack-categories::before,.game-fullscreen-dialog .backpack-categories::after{display:none!important;}
.game-fullscreen-dialog .game-fullscreen-content{max-height:none!important;overflow:visible!important;}

/* Backpack pie navigation: fixed geometry inside the responsive modal layout. */
.game-fullscreen-dialog .backpack-picker .backpack-categories{position:relative!important;display:block!important;width:280px!important;max-width:100%!important;height:280px!important;min-height:280px!important;margin:0 auto!important;padding:0!important;border:2px solid #789653!important;border-radius:50%!important;overflow:hidden!important;background:#102014!important;aspect-ratio:1!important;--wheel-radius:92px;}
.game-fullscreen-dialog .backpack-picker{grid-template-columns:280px minmax(0,1fr)!important;}
.game-fullscreen-dialog .backpack-categories .backpack-category{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;clip-path:var(--backpack-slice)!important;background:#20341e!important;}
.game-fullscreen-dialog .backpack-categories .backpack-category:nth-of-type(even){background:#172b19!important;}
.game-fullscreen-dialog .backpack-categories .backpack-category.is-active,.game-fullscreen-dialog .backpack-categories .backpack-category:focus-visible{background:#466033!important;box-shadow:inset 0 0 0 2px #d9ff89;outline:none;}
.game-fullscreen-dialog .backpack-categories .backpack-category:hover{background:#354b2a!important;}
.game-fullscreen-dialog .backpack-categories .backpack-category-label{position:absolute!important;inset:50% auto auto 50%!important;display:grid!important;grid-template-columns:1fr;justify-items:center;gap:3px;width:76px!important;height:auto!important;transform:translate(-50%,-50%) rotate(var(--label-angle)) translateY(calc(-1 * var(--wheel-radius))) rotate(calc(-1 * var(--label-angle)))!important;transform-origin:center;text-align:center;}
.game-fullscreen-dialog .backpack-categories .backpack-category-label em{font-size:10px;line-height:1.2;white-space:nowrap;overflow:visible;}
.game-fullscreen-dialog .backpack-categories .backpack-category-label small{font-size:10px;}
.game-fullscreen-dialog .backpack-categories .backpack-pie-center{position:absolute;left:50%;top:50%;z-index:2;display:grid!important;place-items:center;gap:3px;transform:translate(-50%,-50%);width:78px;height:78px;padding:8px;border:1px solid #90ad6f;border-radius:50%;background:#102014;color:#d9ff89;pointer-events:none;}
.game-fullscreen-dialog .backpack-categories .backpack-pie-center strong{font-size:10px;max-width:100%;overflow-wrap:anywhere;}
.game-fullscreen-dialog .backpack-categories .backpack-pie-center .backpack-svg-icon{width:24px;height:24px;}
.game-fullscreen-dialog .backpack-selection .backpack-orbit-card{border-radius:10px!important;}
.game-fullscreen-dialog .backpack-selection .backpack-card-actions button{min-height:44px!important;font-size:12px!important;padding:9px!important;}
.game-fullscreen-dialog .backpack-selection .backpack-empty{min-width:0;grid-column:1/-1;width:100%;}
@media(min-width:901px){.game-fullscreen-dialog .backpack-picker .backpack-categories{position:sticky!important;top:76px;}dialog.tools-pouch-screen .rad-tox-tools__content{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
@media(max-width:900px){.game-fullscreen-dialog .backpack-picker{grid-template-columns:minmax(0,1fr)!important;}}
@media(max-width:700px){
 .game-fullscreen-dialog .backpack-picker .backpack-categories{width:252px!important;height:252px!important;min-height:252px!important;--wheel-radius:82px;}
 .game-fullscreen-dialog .backpack-selection .backpack-circle{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px;}
 .game-fullscreen-dialog .backpack-selection .backpack-orbit-card{display:grid!important;grid-template-columns:60px minmax(0,1fr);align-items:center;text-align:left;gap:4px 10px;padding:10px!important;}
 .game-fullscreen-dialog .backpack-selection .backpack-asset-preview{grid-row:1/4;width:60px!important;height:60px!important;}
 .game-fullscreen-dialog .backpack-selection .backpack-orbit-card>strong,.game-fullscreen-dialog .backpack-selection .backpack-orbit-card>small{max-width:none;width:100%;line-height:1.4;}
 .game-fullscreen-dialog .backpack-selection .backpack-card-actions{grid-column:2;margin:3px 0 0;}
 dialog.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice{min-height:76px!important;padding:10px!important;}
 .game-fullscreen-dialog .rad-tox-pack-grid{grid-template-columns:minmax(0,1fr);}
 .game-fullscreen-dialog .building-design-controls{padding:10px;}
}

.player-settings{display:grid;gap:18px;margin-top:18px;min-width:0;}
.player-settings>section{min-width:0;padding:14px;border:1px solid #496442;border-radius:10px;background:#101d14;}
.player-settings h3{font-size:18px!important;margin:0 0 10px!important;}
.player-settings p{font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.player-settings-grid,.player-settings-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;}
.player-settings-grid label,.player-settings-metrics label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding:10px;border:1px solid #354d32;border-radius:8px;color:#e5f3dd;}
.player-settings-grid input[type=range],.player-settings-metrics meter{grid-column:1/-1;width:100%;min-width:0;min-height:30px;accent-color:#caff49;}
.player-settings-grid [data-setting-toggle]{min-height:48px;padding:10px;text-align:left;white-space:normal;border:1px solid #496442;border-radius:8px;background:#19301e;color:#e5f3dd;}
.player-settings-grid [data-setting-toggle][aria-pressed=true]{border-color:#c4a264;background:#3b3020;}
.player-settings-grid [data-player-setting=spatialAudio][aria-pressed=true]{border-color:#a8ce65;background:#243b1c;}
.player-settings-grid [data-setting-toggle]:focus-visible{outline:2px solid #caff49;outline-offset:2px;}
.player-settings-grid select{grid-column:1/-1;width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #496442;border-radius:6px;background:#19301e;color:#e5f3dd;}
.player-settings-grid input[type=color]{width:48px;height:44px;padding:3px;}
.player-settings-grid .player-setting-check{display:flex;gap:10px;min-height:44px;}
.player-settings-grid input[type=checkbox]{width:20px;height:20px;accent-color:#caff49;}
.player-settings output,.player-settings-metrics strong{color:#d4ff9f;font-variant-numeric:tabular-nums;}
.player-settings-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
.player-settings-actions button{flex:1 1 150px;min-height:44px;}
.player-settings-metrics p{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;margin:0;border-bottom:1px solid #354d32;}
.player-settings-metrics p strong{text-align:right;overflow-wrap:anywhere;}
.player-settings details{margin-top:12px;}.player-settings summary{min-height:44px;padding:10px 0;cursor:pointer;}
.player-settings [data-settings-history] p{padding:8px;border-top:1px solid #354d32;}
.house-stage .house-reticle{color:var(--player-reticle-color,#caff49);font-size:var(--player-reticle-size,20px);}
.house-stage .rad-tox-hud{font-size:var(--player-hud-size,12px);}
.house-stage.player-reduced-motion .rad-tox-spend,.house-stage.player-reduced-motion .multiplayer-live-count{animation:none!important;transition:none!important;}
@media(max-width:600px){.player-settings-grid,.player-settings-metrics{grid-template-columns:minmax(0,1fr);}.player-settings>section{padding:10px;}.player-settings input[type=range]{min-height:44px;}}

/* One Settings surface owns both workspace navigation and player controls. */
body.model-explorer-page .game-view-options .explorer-options.is-unified{position:static;inset:auto;width:100%;max-width:none;margin:0 0 16px;z-index:auto;}
.game-view-options .explorer-options.is-unified .explorer-options__toggle,.game-view-options .explorer-options.is-unified [data-close-explorer-options]{display:none!important;}
body.model-explorer-page .game-view-options .explorer-options.is-unified .explorer-options__panel{position:static;inset:auto;display:block;width:100%;max-height:none;margin:0;border:1px solid #496442;border-radius:10px;overflow:visible;box-shadow:none;background:#101d14;backdrop-filter:none;}
.game-view-options .explorer-options.is-unified .explorer-options__panel ul{max-height:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:6px;padding:10px;}
.game-view-options .explorer-options.is-unified .explorer-options__panel li{min-width:0;}
.game-view-options .explorer-options.is-unified .explorer-options__panel li[hidden]{display:none!important;}
.game-view-options .explorer-options.is-unified .explorer-options__panel a{height:100%;min-height:60px;}
.site-header .game-settings-shortcut{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex-shrink:0;}

/* Consistent exits: fixed touch target, safe-area spacing, and no duplicate toggles. */
.game-menu-header .game-fullscreen-close,.game-menu-header .game-menu-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:88px;height:44px;min-height:44px;padding:8px 12px;flex:0 0 auto;touch-action:manipulation;}
.game-menu-header .game-fullscreen-close svg,.game-menu-header .game-menu-close svg{display:block;flex:0 0 20px;width:20px;height:20px;pointer-events:none;}
.game-fullscreen-content [data-avatar-action=close]{display:none!important;}
@media(max-width:700px){
 dialog.game-fullscreen-dialog,dialog.rad-weapons-popup{padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;scrollbar-gutter:auto;}
 dialog.game-fullscreen-dialog>.game-menu-header,dialog.rad-weapons-popup>.game-menu-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:8px;min-height:56px;margin:0 auto 8px;padding:6px 0;background:#101a13;}
 dialog.game-fullscreen-dialog>.game-menu-header h2,dialog.rad-weapons-popup>.game-menu-header h2{flex:1;min-width:0;margin:0;font-size:17px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:0;}
 dialog.game-fullscreen-dialog>.game-menu-header .game-fullscreen-close,dialog.rad-weapons-popup>.game-menu-header .game-menu-close{flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:8px;}
 .game-menu-header .game-menu-close-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
 dialog.game-fullscreen-dialog .game-fullscreen-content:not([hidden]){padding:10px!important;}
 dialog.tools-pouch-screen #rad-tox-tools.game-fullscreen-content{padding:12px!important;border-radius:10px!important;}
 dialog.tools-pouch-screen .tools-pouch-intro p{font-size:11px;line-height:1.4;}
 dialog.tools-pouch-screen .tools-pouch-intro h3{font-size:18px!important;}
 dialog.tools-pouch-screen .rad-tox-tools__content{gap:6px!important;}
 dialog.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice{min-height:76px!important;padding:8px!important;}
 dialog.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice span{font-size:12px!important;line-height:1.3;}
 dialog.tools-pouch-screen .rad-tox-tools__content>.rad-tool-choice small{font-size:10px!important;line-height:1.25;}
 .game-market-popup .game-market-tabs button{flex:1 1 125px;min-height:44px;padding:8px;}
 .game-market-popup .game-market-toolbar{display:flex;flex-wrap:wrap;gap:8px;}
 .game-market-popup .game-market-toolbar label{flex:1 1 180px;min-width:0;}
 .game-market-popup .game-market-actions{width:100%;min-width:0;}
 .game-market-popup .game-market-actions button{min-height:44px;min-width:0;flex:1 1 125px;}
 .game-fullscreen-dialog .backpack-selection-heading{align-items:flex-start;}
 .game-fullscreen-dialog .backpack-selection-title{margin:0;gap:5px;}
 .game-fullscreen-dialog .backpack-market-action{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px;}
 .building-adjust-dialog{box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px;overflow-y:auto;}
 .building-adjust-dialog button{min-height:44px;touch-action:manipulation;}
}

.game-view-options .settings-explorer-navigation{position:static!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0 0 18px!important;padding:12px;border:1px solid #496442;border-radius:10px;background:#101d14;box-sizing:border-box;}
.settings-explorer-navigation h3{font-size:19px!important;margin:0 0 8px!important;}.settings-explorer-navigation h4{margin:14px 0 8px!important;}
.settings-explorer-navigation>label{display:grid;gap:6px;}
.settings-explorer-navigation input[type=search]{width:100%;min-height:44px;box-sizing:border-box;}
.settings-explorer-navigation .settings-nav-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:8px;list-style:none;margin:0;padding:0;}
.settings-explorer-navigation .settings-nav-list li{min-width:0;}
.settings-explorer-navigation .settings-nav-list li[hidden]{display:none!important;}
.settings-explorer-navigation .settings-nav-list a,.settings-explorer-navigation .settings-nav-list button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;width:100%;min-height:48px;height:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #496442;border-radius:8px;background:#213423;color:#eefadd;font:600 13px/1.4 system-ui;text-decoration:none;text-align:left;white-space:normal;}
.settings-explorer-navigation .settings-nav-list small{color:#b7c9ac;font-size:11px;font-weight:400;}
@media(max-width:600px){.settings-explorer-navigation .settings-nav-list{grid-template-columns:minmax(0,1fr);}.game-view-options .settings-explorer-navigation{padding:10px;}}

/* Mobile gameplay uses the Settings control in the game dock. */
@media(max-width:720px){
  .site-header .game-settings-shortcut{display:none!important;}
}

/* Separate preview and placement actions without nesting interactive buttons. */
.building-item-row{display:flex;min-width:0;gap:8px;align-items:stretch;}
.building-item-row[hidden]{display:none!important;}
.building-item-row>[data-brick-material]{flex:1;min-width:0;}
.game-fullscreen-dialog .building-item-row>.building-row-use{display:none;}
@media(max-width:720px){
  .game-fullscreen-dialog .building-item-row>.building-row-use{display:inline-flex;flex:0 0 64px;width:64px;min-height:48px;align-items:center;justify-content:center;padding:8px!important;background:#baff39!important;color:#142018!important;font-weight:800;text-align:center!important;}
  .building-item-row .building-item-copy{min-width:0;overflow-wrap:anywhere;}
  .building-select-actions{display:none;}
}

/* Portal wheel: native buttons use rounded SVG wedges as their hit targets. */
.world-map-picker{width:100%;max-width:1040px;box-sizing:border-box;margin:auto;color:#edf8f3;--portal-mint:#baff9c;--portal-edge:#34594d}
.world-map-picker>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.world-map-picker h3{margin:6px 0 10px;font-size:clamp(20px,3vw,28px);letter-spacing:-.025em}.world-map-picker small{color:#a6beb4;letter-spacing:.04em}.world-map-picker button{min-height:44px;touch-action:manipulation}.world-map-picker .portal-menu-icon{display:block;flex:none;width:24px;height:24px;max-width:none}
.world-map-picker [data-world-close],.world-map-pages button{display:grid;place-items:center;width:44px;padding:8px!important;border:1px solid var(--portal-edge);border-radius:14px!important;background:#14271f!important;color:#dcf6e7!important}
.world-map-search{display:grid;gap:8px;margin:16px 0 8px;font-size:12px;color:#b8cdc3}.world-map-search>span{display:flex;gap:7px;align-items:center}.world-map-search>span .portal-menu-icon{width:16px;height:16px}.world-map-search input{width:100%;min-height:48px;box-sizing:border-box;padding:12px 14px;border:1px solid var(--portal-edge);border-radius:16px;background:#0c1914;color:#fff;font:inherit}
.world-map-layout{display:grid;grid-template-columns:minmax(280px,1.25fr) minmax(220px,1fr);gap:28px;align-items:center}.world-map-layout>div{min-width:0}.world-map-wheel{position:relative;isolation:isolate;width:100%;max-width:510px;aspect-ratio:1;margin:auto;border:0;border-radius:50%;background:radial-gradient(circle,#172d24 0 20%,#0c1b15 21% 67%,transparent 68%);filter:drop-shadow(0 12px 20px #0003)}
.world-map-wheel-base,.world-map-sector-face{position:absolute;inset:0;width:100%;height:100%;margin:0;overflow:visible}.world-map-wheel-base{pointer-events:none;fill:#10231a;stroke:#284238;stroke-width:.35}.world-map-center{position:absolute;inset:36%;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #47755a;border-radius:50%;background:linear-gradient(145deg,#213e2e,#112219);color:#c8f9b4;text-align:center;font-size:clamp(8px,1vw,11px);box-shadow:0 4px 20px #0004;pointer-events:none}.world-map-center .portal-menu-icon{width:clamp(20px,3vw,30px);height:clamp(20px,3vw,30px)}.world-map-center span{color:#9cb5a7;font-size:10px}
.world-map-picker .world-map-sector{position:absolute;inset:0;width:100%;height:100%;max-width:none;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;transform:none;pointer-events:none;color:#e6f4eb;white-space:normal;font:inherit}
.world-map-sector-face{pointer-events:none}.world-map-sector-face path{pointer-events:auto;cursor:pointer;fill:#183428;stroke:#3d6550;stroke-width:.45;transition:fill .16s,stroke .16s}.world-map-sector:hover .world-map-sector-face path{fill:#244b37;stroke:#9bd3ae}.world-map-sector[aria-pressed=true] .world-map-sector-face path{fill:var(--portal-mint);stroke:#e4ffd6;stroke-width:.65}.world-map-picker .world-map-sector:focus-visible{outline:none}.world-map-sector:focus-visible .world-map-sector-face path{stroke:#fff;stroke-width:1.2}
.world-map-sector-content{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:23%;pointer-events:none;text-align:center}.world-map-sector-content strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;font-size:clamp(10px,1.2vw,13px);line-height:1.2;overflow-wrap:anywhere}.world-map-sector-content small{font-size:10px;line-height:1.1;letter-spacing:0}.world-map-sector[aria-pressed=true] .world-map-sector-content{color:#14291b}.world-map-sector[aria-pressed=true] small{color:#34553b}
.world-map-pages{display:flex;justify-content:center;align-items:center;gap:18px;margin:6px 0 0;font-size:12px;color:#abc6b6}.world-map-detail{min-width:0;padding:24px;border:1px solid #335345;border-radius:24px;background:linear-gradient(140deg,#1b3025,#102017);box-shadow:0 10px 32px #0002}.world-map-detail-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:16px;border:1px solid #52785c;border-radius:17px;background:#284431;color:#d1ffb7}.world-map-detail-icon .portal-menu-icon{width:30px;height:30px}.world-map-detail>small{font-size:10px;letter-spacing:.12em}.world-map-detail h3{margin-top:10px}.world-map-detail p{font-size:13px;line-height:1.55;overflow-wrap:anywhere;color:#b2c9bc}.world-map-detail [data-world-live]{color:#cff3ba}.world-map-detail button{width:100%;margin-top:10px;padding:14px!important;border:0;border-radius:16px!important;background:var(--portal-mint)!important;color:#16291c!important;font-weight:800}.world-map-picker button:focus-visible,.world-map-search input:focus-visible{outline:3px solid #d9ffcb;outline-offset:3px}.world-map-picker button:disabled{opacity:.45}.world-map-picker>details{margin-top:22px;border-top:1px solid #2d483c;padding-top:16px}.world-map-picker>details>summary{cursor:pointer;font-size:12px;line-height:1.5;color:#b9d6c5}
@media(max-width:700px){.world-map-layout{grid-template-columns:minmax(0,1fr);gap:18px}.world-map-wheel{max-width:420px}.world-map-detail{padding:18px;border-radius:20px}.world-map-detail-icon{float:left;width:42px;height:42px;margin:0 12px 8px 0;border-radius:14px}.world-map-detail p{clear:both}.world-map-sector-content{gap:3px}.world-map-sector-content strong{font-size:clamp(9px,2.9vw,12px)}.world-map-sector-content small{font-size:9px}.world-map-sector-content .portal-menu-icon{width:22px;height:22px}.world-map-center{font-size:9px}.world-map-center span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.world-map-sector-face path{transition:none}}

.economy-locked>span,.building-item-row.economy-locked .building-item-copy strong{color:#a9b4a1;text-decoration:line-through;}
.economy-locked{border-style:dashed!important;background:#1b241a!important;}
[data-economy-price]{display:block!important;font-size:10px!important;line-height:1.3!important;color:#d4eda4!important;white-space:normal!important;margin-top:4px;}
.game-market-tabs{flex-wrap:wrap;}.game-market-row button{min-height:44px;}

.world-map-sector.has-players small{color:#93efc6}.world-map-sector.has-players[aria-pressed=true] small{color:#1e5835}.world-map-sector.has-players small::before{content:"● ";animation:room-live-pulse 1.4s ease-in-out infinite}@keyframes room-live-pulse{50%{opacity:.25}}@media(prefers-reduced-motion:reduce){.world-map-sector.has-players small::before{animation:none}}
/* Marketplace also opens from the public library without loading the 3D game. */
dialog.game-market-popup { position:fixed!important; inset:0!important; margin:0!important; width:100vw!important; height:100dvh!important; max-width:none!important; max-height:none!important; box-sizing:border-box; overflow-y:scroll!important; overscroll-behavior:contain; scrollbar-gutter:stable; border:0; border-radius:0; padding:clamp(12px,3vw,28px); background:#101a13; color:#f4ffe9; }
dialog.game-market-popup::backdrop { background:#000b; }
html.game-menu-open { overflow:hidden; }
.game-market-popup .game-market-actions { min-width:0; flex-shrink:1; }
@media(max-width:650px){ .game-market-popup .game-market-actions,.game-market-popup .game-market-actions form { width:100%; flex-wrap:wrap; } .game-market-popup .game-market-actions form label { flex:1 1 8rem; } .game-market-popup .game-menu-header { gap:.5rem; } }

.rad-match-results{box-sizing:border-box;width:min(1200px,96vw);max-height:92svh;padding:24px;border:1px solid #9cff00;border-radius:18px;background:#0c1712;color:#efffd7;overflow:auto;font:15px/1.5 system-ui;}
.rad-match-results::backdrop{background:rgba(0,0,0,.82);}
.rad-match-results header,.rad-match-results footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.rad-match-results h2{margin:0;color:#caff49;}.rad-match-results header p{margin:0;font-size:12px;letter-spacing:.08em;}
.rad-match-results button{min-height:44px;padding:10px 18px;border:1px solid #729d4b;border-radius:10px;background:#263c24;color:#fff;cursor:pointer;}
.rad-match-results button:focus-visible,.rad-results-scroll:focus-visible{outline:2px solid #caff49;outline-offset:3px;}
.rad-match-results button:disabled{opacity:.5;cursor:wait;}.rad-results-scroll{overflow:auto;margin:18px 0;}
.rad-match-results table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap;}.rad-match-results caption{text-align:left;margin-bottom:10px;}
.rad-match-results th,.rad-match-results td{padding:10px 12px;border-bottom:1px solid #304934;text-align:right;}.rad-match-results th:first-child{text-align:left;}
.rad-match-results .is-self{background:#213b22;}.rad-results-rules{color:#b7cbb3;font-size:13px;}[data-results-error]{color:#ffb3a8;}

/* Recognizable local SVG icons for Settings and all workspace shortcuts. */
.menu-shortcut-icon{display:inline-block;flex:0 0 24px;width:24px;height:24px;vertical-align:middle;color:#baff39;}
.game-menu-header h2:has(.menu-shortcut-icon),.settings-explorer-shortcuts h4{display:flex;align-items:center;gap:10px;}
.settings-explorer-navigation .settings-nav-list a,.settings-explorer-navigation .settings-nav-list button{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;}
.settings-explorer-navigation .settings-menu-icon{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border:1px solid #496442;border-radius:9px;background:#122318;}
.settings-explorer-navigation .settings-menu-copy{display:flex;min-width:0;flex-direction:column;gap:4px;}

.owned-placement-controls{position:absolute;z-index:30;left:50%;bottom:calc(120px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(580px,calc(100% - 20px));box-sizing:border-box;padding:12px;border:1px solid #9cff00;border-radius:12px;background:#0d1d12f5;color:#efffdc;pointer-events:auto;box-shadow:0 6px 24px #0008;}
.owned-placement-controls[hidden],.owned-placement-edit[hidden]{display:none!important;}
.owned-placement-controls strong,.owned-placement-controls output{display:block;}.owned-placement-controls p{font:12px/1.4 system-ui;margin:6px 0 10px;}
.owned-placement-controls>div{display:flex;flex-wrap:wrap;gap:8px;}.owned-placement-controls button,.owned-placement-edit{min-height:48px;min-width:48px;padding:10px 12px;border:1px solid #789d5d;border-radius:8px;background:#213c26;color:#f2ffe6;font:700 13px system-ui;touch-action:manipulation;cursor:pointer;}
.owned-placement-controls [data-place-action=lock]{flex:1;background:#baff39;color:#10200b;min-width:135px;}.owned-placement-controls button:disabled{opacity:.55;cursor:wait;}.owned-placement-controls output{margin-top:8px;font:12px system-ui;}
.owned-placement-edit{position:absolute;z-index:20;left:10px;top:82px;max-width:calc(100% - 20px);}
@media(max-width:600px){.owned-placement-controls{bottom:calc(132px + env(safe-area-inset-bottom,0px));padding:10px;}.owned-placement-controls button{flex:1 1 65px;}.owned-placement-controls p{margin:5px 0 8px;}}
.play-access-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:1px solid #9cff00;border-radius:14px;background:#0d1d12;color:#efffdc;font:15px/1.5 system-ui;z-index:2000}.play-access-dialog::backdrop{background:#000b}.play-access-dialog h2{margin-top:0}.play-access-dialog button,.play-access-dialog input{box-sizing:border-box;width:100%;min-height:46px;margin:6px 0;padding:10px;border:1px solid #789d5d;border-radius:8px}.play-access-dialog button{background:#baff39;color:#10200b;font-weight:700;cursor:pointer}.play-access-dialog fieldset{margin:14px 0;border:1px solid #789d5d}.play-access-dialog label{display:block}.play-access-dialog a{color:#9cff00}.play-access-dialog [data-status]{overflow-wrap:anywhere}
/* Compact transform launcher and a complete, viewport-sized adjustment panel. */
.building-adjust-button{box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:4px;right:10px;border-radius:10px;font:800 11px/1 system-ui;touch-action:manipulation;}
.building-adjust-dialog{inset:0;margin:auto;width:min(420px,calc(100dvw - 16px));max-width:calc(100dvw - 16px);max-height:calc(100dvh - 16px);padding:12px;overflow:hidden;scrollbar-gutter:auto;font:13px/1.35 system-ui;}
.building-adjust-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}.building-adjust-dialog .building-adjust-heading h2{margin:0;font-size:18px;}.building-adjust-dialog .building-adjust-heading button{flex:0 0 36px;min-height:36px;height:36px;padding:0;font-size:24px;}
.building-adjust-dialog .building-adjust-modes{display:flex;flex-wrap:nowrap;gap:6px;}.building-adjust-dialog button{box-sizing:border-box;min-width:0;min-height:44px;padding:7px;font:700 12px/1.2 system-ui;touch-action:manipulation;}
.building-adjust-dialog [data-adjust-hint]{margin:8px 0;color:#c3d7c4;font-size:11px;line-height:1.3;}
.building-adjust-axes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 14px;margin:8px 0;}
.building-adjust-dialog .building-adjust-axes label{min-width:0;display:grid;grid-template-columns:1fr auto;gap:0;margin:0;font-weight:700;}
.building-adjust-dialog .building-adjust-axes input{box-sizing:border-box;grid-column:1/-1;width:100%;min-width:0;min-height:38px;height:38px;margin:0;touch-action:pan-y;}
.building-adjust-footer [data-adjust-apply]{background:#baff39;color:#10200b;border-color:#baff39;}
@media(max-height:450px) and (min-width:460px){.building-adjust-dialog{width:min(650px,calc(100dvw - 16px));padding:8px;}.building-adjust-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 16px;}.building-adjust-heading,.building-adjust-footer{grid-column:1/-1;}.building-adjust-heading{margin:0;}.building-adjust-axes{margin:0;align-content:center;}.building-adjust-dialog [data-adjust-hint]{margin:6px 0;}}
/* Legacy explorer controls never flash before the live game initializes. */
.model-explorer-page [data-legacy-game-controls]{display:none!important;}
.model-explorer-page:not([data-game-controls=ready]) :is(.house-bottom-controls,.house-control-dock,.mobile-move-pad,.rad-tox-hud,.building-adjust-button,.builder-nearby-action,.range-ops-button,.house-reticle){display:none!important;}
.model-explorer-page .house-explorer-shell{grid-template-columns:minmax(0,1fr);}
.owned-placement-controls [data-place-action=quick]{flex:1 1 100%;background:#baff39;color:#10200b;white-space:normal;line-height:1.4}
.owned-placement-controls [data-place-action=single]{flex:1 1 100%;white-space:normal;line-height:1.4}
.owned-placement-controls button[hidden]{display:none!important}

/* A selector and Back replace vertically stacked game screens. */
.game-panel-navigation{display:flex;gap:12px;align-items:center;position:sticky;top:0;z-index:25;padding:12px;background:#142018;border-bottom:1px solid #587b5b;margin-bottom:16px}
.game-panel-navigation select{flex:1;min-width:0;min-height:44px;padding:10px;background:#233e29;color:#f1ffe8;border:1px solid #587b5b;border-radius:8px;font:600 14px system-ui}
.game-panel-navigation button{min-height:44px;padding:10px 14px;background:#233e29;color:#f1ffe8;border:1px solid #587b5b;border-radius:8px;cursor:pointer}
.game-panel-navigation button:disabled{opacity:.4;cursor:default}
.game-fullscreen-content [aria-hidden=true][hidden]{display:none!important}
/* Keyboard actions remain reachable through native touch buttons. */
.game-touch-actions{position:absolute;right:max(10px,env(safe-area-inset-right));top:92px;z-index:14;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:120px}.game-touch-actions[hidden],.game-touch-actions button[hidden]{display:none!important}.game-touch-actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:48px;padding:7px 4px;border:1px solid #5c816d;border-radius:13px;background:#10281eeb;color:#efffea;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent;font:800 11px/1.2 system-ui}.game-touch-actions button small{font:10px/1 system-ui;color:#a8c5b2}.game-touch-actions button[aria-pressed=true]{border-color:#dcff9e;background:#335c2d;color:#fff}.game-touch-actions button:focus-visible{outline:3px solid #d4ff9e;outline-offset:2px}.model-explorer-page:not([data-game-controls=ready]) .game-touch-actions{display:none!important}@media(max-height:480px){.game-touch-actions{top:50%;transform:translateY(-50%);width:108px;gap:4px}.game-touch-actions button{min-height:44px;padding:5px 3px}}
.market-advanced-filters{margin:8px 0 14px;padding:12px;border:1px solid #496d50;border-radius:14px;background:#101d17}.market-advanced-filters[hidden]{display:none}.market-advanced-filters summary{min-height:44px;align-content:center;cursor:pointer;font:700 15px system-ui;color:#d5ffc1}.market-category-toggles{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.market-category-toggles button{flex:1 1 155px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;white-space:normal;font-size:13px}.market-category-toggles button span{padding:3px 7px;border-radius:20px;background:#0d2014;color:#d5ffc1}.market-advanced-filters>label{display:grid;gap:6px;max-width:480px;font-size:14px}.market-advanced-filters fieldset{border:0;padding:12px 0;margin:0;min-width:0}.market-advanced-filters legend{font-weight:700}.market-advanced-filters fieldset p{font-size:12px;color:#c8d8c2}.market-use-toggles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.market-use-toggles label{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 10px;border:1px solid #3b6048;border-radius:10px;background:#142d20;font-size:13px;cursor:pointer}.game-market-popup .market-use-toggles input{width:22px;min-height:22px;flex:0 0 22px;accent-color:#b9ff79}.game-market-row .market-facet-badges{margin-top:7px;font-size:12px;line-height:1.5;color:#b9e2a8;overflow-wrap:anywhere}@media(max-width:650px){.market-category-toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.market-category-toggles button{min-width:0;word-break:normal;padding:10px}.market-use-toggles{grid-template-columns:repeat(2,minmax(0,1fr))}.market-use-toggles label{min-width:0;font-size:12px;padding:6px}.game-market-popup [data-market-subcategory]{font-size:16px}.market-advanced-filters{padding:10px}}

.world-map-wheel{background:radial-gradient(circle,#173823,#08170e 68%,#234130);border:1px solid #8ebd5c;box-shadow:0 0 50px #80d94318,inset 0 0 35px #030b07}.world-wheel-svg{display:block;width:100%;height:100%;overflow:visible}.world-map-wheel [data-world-sectors]{position:absolute;inset:0}.world-map-picker g.world-map-sector-svg{position:static;transform:none;display:block;padding:0!important;width:auto;min-height:0!important;background:none;border:0;color:#dbf8b3;cursor:pointer;outline:none}.world-sector-wedge{stroke:#82bd6a66;stroke-width:1.3;transition:stroke .18s,filter .18s}.world-map-sector-svg:hover .world-sector-wedge,.world-map-sector-svg:focus-visible .world-sector-wedge{stroke:#fff;stroke-width:2.5;filter:brightness(1.35)}.world-map-sector-svg[aria-pressed=true] .world-sector-wedge{stroke:#c3ff55;stroke-width:3;filter:brightness(1.3)}.world-sector-title{fill:#f3ffdf;font:700 11px system-ui;letter-spacing:.1px;pointer-events:none}.world-sector-activity{fill:#abd290;font:700 7px system-ui;letter-spacing:1.5px;pointer-events:none}.world-map-sector-svg.has-players .world-sector-activity{fill:#caff6b}.world-sector-icon{pointer-events:none}.world-wheel-orbit{stroke:#b4ec6c70;stroke-width:1;stroke-dasharray:2 8}.world-map-center{inset:34%;z-index:1;pointer-events:none;background:radial-gradient(circle,#23452a,#0b1e12);box-shadow:0 0 30px #a8ff3520;border-color:#a3dc63}.world-map-center strong{letter-spacing:1px;font-weight:900}.world-map-detail{background:linear-gradient(135deg,#193423,#0c1b13);border-color:#80ae5780;box-shadow:0 12px 30px #0003}.world-map-search input:focus{outline:2px solid #baff39;outline-offset:2px}@media(prefers-reduced-motion:reduce){.world-sector-wedge{transition:none}}

.world-map-picker{font-family:system-ui,sans-serif}

/* Game and server lobby: readable destination cards with a persistent join preview. */
.world-map-picker.world-lobby{max-width:1080px;color:#edf6e8;font-family:system-ui,sans-serif;text-align:left}
.world-lobby>header{align-items:flex-start;padding:4px 0 12px}.world-lobby>header small{color:#b7e482;font-size:10px;font-weight:800;letter-spacing:.15em}.world-lobby>header h3{font-size:clamp(25px,4vw,36px);line-height:1.1;letter-spacing:-.03em;margin:9px 0}.world-lobby>header p{font-size:13px;margin:0;color:#b8cbb1}.world-lobby .world-lobby-close{flex:0 0 44px;width:44px!important;min-width:44px!important;font-size:26px;padding:0!important;background:#18251c;border:1px solid #516344;color:#eefade;border-radius:12px}
.world-lobby-stats{display:flex;flex-wrap:wrap;gap:8px 18px;margin:6px 0 20px;color:#a7bca3;font-size:12px}.world-lobby-stats span{display:flex;align-items:center;gap:5px}.world-lobby-stats strong{color:#e5f6d2}.world-lobby-stats i{width:7px;height:7px;background:#baff39;border-radius:50%;box-shadow:0 0 9px #baff3955}
.world-lobby .world-map-search{margin:0 0 14px;font-size:11px;font-weight:700;color:#c9ddbd}.world-lobby .world-map-search input{min-height:49px;padding:13px 15px;background:#0a160f;border:1px solid #43573d;border-radius:12px;font:14px system-ui;color:#f4ffeb}.world-lobby .world-map-search input::placeholder{color:#8ea384}
.world-lobby-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:22px}.world-lobby .world-lobby-filters button{width:auto!important;min-height:40px;padding:8px 13px;border:1px solid #40563c;border-radius:999px;background:#16251a;color:#bdd0b6;font:600 12px system-ui;cursor:pointer}.world-lobby .world-lobby-filters [aria-pressed=true]{background:#c4f36d;color:#16220c;border-color:#c4f36d}.world-lobby .world-lobby-filters button:hover{border-color:#bded75}
.world-lobby-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(270px,.85fr);gap:22px;align-items:start}.world-lobby-browse{min-width:0}.world-lobby-results{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.world-lobby-results h4{margin:0;font-size:13px;font-weight:750}.world-lobby-results>span{font-size:11px;color:#9caf94}.world-lobby-cards{display:grid;gap:8px}.world-lobby .world-lobby-card{box-sizing:border-box;display:flex;align-items:center;text-align:left;gap:13px;width:100%!important;min-height:85px;padding:13px!important;white-space:normal;border:1px solid #3b5138;border-radius:13px;background:linear-gradient(115deg,#17271b,#111f17);color:#edf7e2;cursor:pointer;transition:border-color .15s,background .15s}.world-lobby .world-lobby-card:hover{border-color:#97c765;background:#1c3020}.world-lobby .world-lobby-card[aria-pressed=true]{border-color:#c1ee78;box-shadow:inset 3px 0 #c1ee78;background:linear-gradient(115deg,#293e21,#17271b)}.world-lobby-card-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:11px;border:1px solid #729d5466;background:#31492a;color:#d8efa9;font-size:25px}.world-lobby-card[data-kind=basketball] .world-lobby-card-icon{background:#5c381d;color:#ffca85;border-color:#d4975755}.world-lobby-card[data-kind=hockey] .world-lobby-card-icon{background:#1e455a;color:#a2e4ff;border-color:#70c2e355}.world-lobby-card[data-kind=arcade] .world-lobby-card-icon{background:#45305d;color:#dbc2ff;border-color:#bf96fb55}.world-lobby-card-copy{display:grid;gap:4px;min-width:0;flex:1}.world-lobby-card-copy small{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#a9c58e}.world-lobby-card-copy strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}.world-lobby-card-copy>span{font-size:11px;color:#a9bda0;line-height:1.3}.world-lobby-card-live{display:grid;flex-shrink:0;gap:6px;justify-items:end;font-size:10px;color:#a0b396}.world-lobby-card-live.is-live{color:#cef98f}.world-lobby-card-live small{font-size:7px;letter-spacing:.04em;color:#b2c49e}.world-lobby-empty{padding:32px 20px;text-align:center;background:#101e15;border:1px dashed #4a6343;border-radius:13px;color:#d6e8c8}.world-lobby-empty p{font-size:12px;line-height:1.6;color:#a8be9d}.world-lobby .world-lobby-empty button{width:auto!important;padding:9px 16px;border:1px solid #91b568;border-radius:8px;background:#263b20;color:#d8f7bf}
.world-lobby .world-map-pages{justify-content:space-between;gap:10px;margin:12px 0 0;font-size:11px;color:#a6bd98}.world-lobby .world-map-pages button{width:auto!important;padding:9px 12px;border:1px solid #43583b;border-radius:9px;background:#15231a;color:#d7ebc8;font:12px system-ui}.world-lobby .world-map-detail{padding:18px;position:sticky;top:0;border:1px solid #5b7547;border-radius:17px;background:linear-gradient(145deg,#20331f,#101f16);box-shadow:0 15px 30px #0002}.world-lobby-detail>small{font-size:9px;font-weight:800;letter-spacing:.12em}.world-lobby .world-lobby-detail h3{font-size:25px;line-height:1.15;margin:9px 0 13px;overflow-wrap:anywhere}.world-lobby-detail>p{font-size:12px;line-height:1.6;margin:10px 0;color:#b6c9ac}.world-lobby-preview{min-height:98px;display:flex;align-items:center;justify-content:space-between;gap:10px;overflow:hidden;margin:-5px -5px 19px;padding:18px;border:1px solid #92b76844;border-radius:11px;background:radial-gradient(circle at 80% 30%,#5a8d3955,transparent 70%),linear-gradient(135deg,#2b4a2b,#12231a)}.world-lobby-preview>span{font-size:47px;line-height:1;color:#d4efa6}.world-lobby-preview>small{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.11em;text-align:right}.world-lobby-preview[data-kind=basketball]{background:radial-gradient(circle at 80% 30%,#f3b13d33,transparent 70%),linear-gradient(135deg,#5b3a23,#291c17);border-color:#d7a26d55}.world-lobby-preview[data-kind=basketball]>span{color:#ffd39b}.world-lobby-preview[data-kind=hockey]{background:radial-gradient(circle at 80% 30%,#6cc1f34a,transparent 70%),linear-gradient(135deg,#23465a,#142633);border-color:#70b4d555}.world-lobby-preview[data-kind=hockey]>span{color:#b3ebff}.world-lobby-preview[data-kind=arcade]{background:linear-gradient(135deg,#533576,#231a36);border-color:#b896de55}.world-lobby-detail .world-lobby-presence{color:#d3eeaf;font-weight:650}.world-lobby-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 22px}.world-lobby-meta div{min-width:0}.world-lobby-meta dt{font-size:9px;color:#91a786;margin-bottom:5px;text-transform:uppercase;letter-spacing:.06em}.world-lobby-meta dd{margin:0;font-size:11px;color:#d3e4c9;overflow-wrap:anywhere}.world-lobby .world-lobby-join{min-height:49px;padding:12px 15px;border:1px solid #d0ff93;border-radius:11px;background:#c2f26e;color:#19250d;font:800 13px system-ui;cursor:pointer}.world-lobby .world-lobby-join:hover{background:#d4ff92}.world-lobby-detail .world-lobby-next{font-size:10px;color:#97b188;margin:11px 0 0}.world-lobby-detail .world-lobby-error{font-size:12px;color:#ffd098;margin:9px 0 0}.world-lobby-error:empty{display:none}.world-lobby-wheel{margin-top:15px;padding:13px;border:1px solid #354d32;border-radius:11px}.world-lobby-wheel summary,.world-lobby-atlas>summary{cursor:pointer;min-height:28px;font-size:12px;color:#c2d6b3;line-height:1.5}.world-lobby-wheel .world-map-wheel{margin-top:18px;max-width:400px}.world-lobby-atlas{margin-top:22px;padding:16px;border:1px solid #3d5638;border-radius:12px;background:#0d1b12}.world-lobby-atlas>section{margin-top:18px}.world-lobby button:focus-visible,.world-lobby summary:focus-visible{outline:3px solid #edffd4;outline-offset:3px}
@media(max-width:720px){.world-lobby-layout{grid-template-columns:minmax(0,1fr);gap:18px}.world-lobby .world-map-detail{position:static}.world-lobby-preview{min-height:66px;margin-bottom:16px}.world-lobby-preview>span{font-size:36px}.world-lobby .world-lobby-detail h3{font-size:22px}.world-lobby-stats{margin-bottom:17px;gap:7px 12px;font-size:10px}.world-lobby-filters{gap:6px;margin-bottom:18px}.world-lobby .world-lobby-filters button{font-size:11px;min-height:40px;padding:8px 11px}.world-lobby .world-lobby-card{min-height:78px;padding:11px!important;gap:10px}.world-lobby-card-copy strong{font-size:13px}.world-lobby-card-icon{flex-basis:40px;height:42px}.world-lobby .world-lobby-close{flex-basis:40px;width:40px!important;min-width:40px!important}.world-lobby .world-map-search input{font-size:12px}.world-lobby>header p{font-size:12px}.world-lobby-detail .world-lobby-join{position:relative}.world-lobby .world-map-pages button{font-size:11px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.world-lobby .world-lobby-card{transition:none}}

/* Shared market and placement finish: crisp edges, restrained depth. */
.game-market-popup,.owned-placement-controls,.model-market-page{--market-lime:#c5fa55;--market-edge:#536b46;--market-surface:linear-gradient(145deg,#1a2c20 0%,#101c15 55%,#0b1510 100%);--market-action:linear-gradient(135deg,#d5ff7b 0%,#b7ed46 55%,#92cd2d 100%)}
.owned-placement-edit{display:grid;place-items:center;width:48px;height:48px;padding:10px;background:linear-gradient(145deg,#273d28,#132318);border-color:#91ad70;box-shadow:inset 0 1px #e4ffad26,0 3px 10px #0005}
.owned-placement-edit svg{width:26px;height:26px}
.owned-placement-controls{background:var(--market-surface);border-color:var(--market-edge);box-shadow:inset 0 1px #d8ffad1a,0 10px 28px #0006;max-height:calc(100% - 90px);overflow-y:auto;bottom:12px}
.owned-placement-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(145deg,#2a422b,#1b2f20);border-color:#627e50}
.owned-placement-controls button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.owned-placement-controls [data-place-action=lock],.owned-placement-controls [data-place-action=quick]{background:var(--market-action);border-color:#d4ff81;color:#14210c;box-shadow:inset 0 1px #ffffff50}
.owned-placement-controls button:focus-visible,.owned-placement-edit:focus-visible{outline:3px solid #e5ffb4;outline-offset:3px}
.game-market-popup{background:var(--market-surface);color:#f0f8e9}
.game-market-brand{display:flex;align-items:center;gap:18px;min-width:0;flex-wrap:wrap}
.game-market-brand img{object-fit:contain;max-width:152px}
.game-market-brand>div{border-left:1px solid #6c884e;padding-left:18px}
.game-market-brand span{font:750 9px/1.5 system-ui;letter-spacing:.16em;color:#c5e995}
.game-market-brand h2{margin:2px 0 0;font-size:clamp(20px,4vw,30px);letter-spacing:-.03em}
.game-market-intro{max-width:620px;color:#c5d2bd;line-height:1.6}
.game-market-popup button{background:linear-gradient(145deg,#29402c,#1c3022);border-color:var(--market-edge);box-shadow:inset 0 1px #e0ffb312;border-radius:10px}
.game-market-popup button[aria-pressed=true]{background:var(--market-action);border-color:#d4ff81;color:#14210c;box-shadow:inset 0 1px #fff5}
.game-market-popup button:not(:disabled):hover{border-color:#b9e57c;filter:brightness(1.08)}
.game-market-row{background:linear-gradient(125deg,#1e30214d,#10201833);border:1px solid #43573c;border-radius:12px;padding:16px;margin-bottom:10px;min-width:0}
.game-market-row>div{min-width:0}
.game-market-popup [data-market-balance]{border:1px solid #69834c;border-radius:8px;padding:9px 12px;color:#daf4b4;background:#14231a}
.model-market-page .hero{background:linear-gradient(120deg,#17291b 0%,#0a160f 60%,#1c2e1b 100%);border:1px solid #506a3b}
.model-market-page .hero-copy .btn:not(.ghost){background:var(--market-action);color:#14210c;border:1px solid #d4ff81;box-shadow:inset 0 1px #fff6,0 5px 18px #0004}
.model-market-page .hero-copy .world-kicker{color:var(--market-lime);letter-spacing:.12em}
@media(max-width:600px){.owned-placement-controls{bottom:8px}.game-market-brand{gap:10px}.game-market-brand img{width:104px;height:auto}.game-market-brand>div{padding-left:10px}.game-market-row{padding:12px}.game-market-popup .game-menu-header{gap:10px;flex-wrap:wrap}}

.building-material-menu{display:none!important}
@media(max-width:700px){
 .game-fullscreen-dialog .building-material-workspace .building-design-layout{display:grid!important;grid-template-columns:minmax(112px,36%) minmax(0,1fr)!important;gap:8px!important;align-items:start}
 .game-fullscreen-dialog .building-material-workspace.building-items-collapsed .building-design-layout{grid-template-columns:44px minmax(0,1fr)!important}
 .building-material-workspace .building-material-menu{display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%;padding:8px!important;min-height:44px;position:sticky;top:0;z-index:2;background:#213822}
 .building-material-menu svg{flex-shrink:0}
 .building-items-collapsed .building-material-menu span,.building-items-collapsed .building-material-list{display:none!important}
 .building-material-sidebar,.building-material-list{min-width:0}
 .game-fullscreen-dialog .building-material-workspace .building-material-list{max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain;padding-right:3px}
 .game-fullscreen-dialog .building-material-workspace .rad-brick-material-grid{display:flex!important;flex-direction:column;gap:5px;max-height:none;overflow:visible}
 .game-fullscreen-dialog .building-material-workspace [data-brick-material]{display:flex!important;align-items:center;gap:5px!important;min-height:52px!important;padding:7px!important;text-align:left!important}
 .game-fullscreen-dialog .building-material-workspace .building-item-row{gap:0}
 .game-fullscreen-dialog .building-material-workspace .building-row-use{display:none!important}
 .building-material-workspace .building-item-copy strong{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
 .building-material-workspace .building-item-copy small{display:none}
 .building-material-workspace [data-brick-material] svg,.building-material-workspace .building-item-art{width:28px!important;height:28px!important;flex-shrink:0}
 .game-fullscreen-dialog .building-material-workspace .building-design-controls{padding:8px;position:sticky;top:0}
 .game-fullscreen-dialog .building-material-workspace .building-design-controls canvas{height:145px}
 .game-fullscreen-dialog .building-material-workspace .building-design-controls h4{font-size:12px;margin:10px 0 6px}
 .game-fullscreen-dialog .building-material-workspace .building-design-controls p,.building-material-workspace [data-building-result-count]{font-size:11px;line-height:1.4}
 .game-fullscreen-dialog .building-material-workspace .building-paint-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .game-fullscreen-dialog .building-material-workspace [data-brick-color]{min-width:0!important;padding:5px!important;font-size:10px!important;margin:0}
 .game-fullscreen-dialog .building-material-workspace [data-building-types-toggle]{width:100%;padding:8px!important;font-size:11px}
 .game-fullscreen-dialog .building-material-workspace [data-building-types]:not([hidden]){display:grid;grid-template-columns:1fr;padding:4px;gap:4px}
 .game-fullscreen-dialog .building-material-workspace [data-building-types] button{padding:6px!important;font-size:11px;min-width:0}
 .game-fullscreen-dialog .building-material-workspace input[data-building-search]{min-width:0;margin:5px 0;padding:7px;font-size:12px}
 .building-material-workspace>p:first-of-type{display:none}
}

.item-unlock-prompt{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px;border:1px solid #91ad70;border-radius:16px;background:linear-gradient(145deg,#1a2c20,#0b1510);color:#f0f8e9;box-shadow:0 16px 64px #0008;overflow:auto}
.item-unlock-prompt::backdrop{background:#020804cc}
.item-unlock-prompt h2{margin:0 0 12px;font:800 22px/1.2 system-ui;overflow-wrap:anywhere}
.item-unlock-prompt p{font:14px/1.5 system-ui;color:#cadbbd}
.item-unlock-prompt [data-unlock-price]{color:#d4ff81;font-weight:750}
.item-unlock-prompt>div{display:flex;flex-direction:column;gap:8px}
.item-unlock-prompt button{min-height:46px;width:100%;padding:10px;border:1px solid #69834c;border-radius:9px;background:#213822;color:#f0f8e9;font:700 13px system-ui;cursor:pointer}
.item-unlock-prompt [data-unlock-buy]{background:linear-gradient(135deg,#d5ff7b,#92cd2d);color:#14210c}
.item-unlock-prompt button:disabled{opacity:.55;cursor:wait}
.item-unlock-prompt button:focus-visible{outline:3px solid #e5ffb4;outline-offset:2px}

.world-lobby-card[data-kind=harbor]{border-color:#51cbd0;background:linear-gradient(135deg,#154754,#10252c)}.world-lobby-card[data-kind=airport]{border-color:#78b7ff;background:linear-gradient(135deg,#23466e,#152436)}

.yacht-game-panel label{display:block;margin:18px 0;color:#e6f4df}.yacht-game-panel input{display:block;width:100%;margin-top:10px}.yacht-game-panel button{min-height:44px;margin:6px;padding:10px 16px;border:1px solid #75c9bd;border-radius:10px;background:#214936;color:#effffb}.yacht-game-panel p{line-height:1.6}.yacht-game-panel output{float:right}

/* Open destination wheel and preview, with secondary controls tucked away. */
.world-lobby .world-lobby-filter-menu{margin:8px 0 12px;border:1px solid #405b3c;border-radius:10px;padding:6px 10px}.world-lobby-filter-menu>summary{cursor:pointer;min-height:34px;font:650 12px/34px system-ui}.world-lobby .world-lobby-filters{margin:8px 0 2px;gap:5px}.world-browse-toggle{display:flex;gap:6px;margin-bottom:8px}.world-browse-toggle button{flex:1;min-height:40px;padding:7px;border:1px solid #5e7d50;border-radius:8px;background:#152b1b;color:#dbefce;font:650 12px system-ui}.world-browse-toggle button[aria-pressed=true]{background:#35572a;border-color:#bbef79}.world-lobby-count{display:block;font:11px system-ui;color:#a9c797;margin:4px 0}.world-lobby .world-lobby-wheel{display:block;margin:0;padding:0;border:0}.world-lobby .world-map-wheel{margin:0 auto;max-width:380px}.world-lobby-cards[hidden],.world-lobby-wheel[hidden]{display:none!important}.game-fullscreen-dialog .world-lobby-close{display:none!important}.world-lobby>header{margin-bottom:10px}.world-lobby>header h3{font-size:23px;margin:4px 0}.world-lobby .world-map-search{margin-bottom:8px}.world-lobby .world-map-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.world-lobby .world-map-search input{min-height:44px;padding:10px 12px}.world-lobby .world-lobby-stats{margin:8px 0;gap:8px;font-size:10px}.world-lobby .world-lobby-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.world-lobby .world-lobby-detail{padding:12px}.world-lobby .world-lobby-detail h3{font-size:20px;margin:8px 0}.world-lobby .world-lobby-description{font-size:12px}.world-lobby .world-map-pages{gap:5px;font-size:10px}.world-lobby .world-map-pages button{min-height:40px;padding:6px 12px}.world-lobby .world-map-detail .world-preview-viewport{height:190px}@media(max-width:720px){.world-lobby>header h3{font-size:18px}.world-lobby>header small{font-size:8px}.world-lobby .world-lobby-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:8px}.world-lobby .world-lobby-detail{padding:8px;border-radius:10px}.world-lobby .world-lobby-detail h3{font-size:15px}.world-lobby .world-lobby-detail>small{font-size:8px}.world-lobby .world-lobby-detail>p{font-size:10px;line-height:1.4;margin:6px 0}.world-lobby .world-lobby-meta,.world-lobby .world-lobby-next{display:none}.world-lobby .world-map-detail .world-preview-viewport{height:140px}.world-lobby .world-preview-footer{padding:5px;min-height:34px;gap:4px}.world-lobby .world-preview-footer>span{display:none}.world-lobby .world-preview-footer>button{min-height:34px!important;padding:5px 8px!important;font-size:10px!important}.world-lobby .world-lobby-join{min-height:44px;font-size:11px;padding:8px}.world-browse-toggle button{font-size:10px;padding:5px;min-height:36px}.world-lobby .world-map-center strong{font-size:10px}.world-lobby .world-map-center span{font-size:6px}.world-lobby .world-map-pages button{padding:6px 9px}.world-lobby .world-map-pages{flex-wrap:wrap;justify-content:center}.world-lobby .world-lobby-card{padding:6px!important;display:block}.world-lobby-card-icon,.world-lobby-card-copy>span{display:none}.world-lobby-card-copy strong{font-size:11px}.world-lobby-card-copy small{font-size:9px}}
.world-map-picker g.world-map-sector-svg{pointer-events:auto}.world-map-picker .world-sector-wedge{pointer-events:all}.world-map-picker .world-sector-icon,.world-map-picker .world-sector-title,.world-map-picker .world-sector-activity{pointer-events:none}

/* The fitness destination keeps its own gold accent across the map and list. */
.world-map-picker g.world-map-sector-svg[data-kind=fitness]{color:#f4d47d}
.world-map-sector-svg[data-kind=fitness] .world-sector-wedge{stroke:#d8ad4588}
.world-map-sector-svg[data-kind=fitness][aria-pressed=true] .world-sector-wedge{stroke:#ffe09a}
.world-map-sector-svg[data-kind=fitness] .world-sector-title{fill:#fff0c0}
.world-map-sector-svg[data-kind=fitness] .world-sector-activity{fill:#e4c675}
.world-lobby .world-lobby-card[data-kind=fitness]{border-color:#a98435;background:linear-gradient(115deg,#3c311a,#211e15);color:#fff3cf}
.world-lobby .world-lobby-card[data-kind=fitness]:hover,.world-lobby .world-lobby-card[data-kind=fitness][aria-pressed=true]{border-color:#f0cb6c;box-shadow:inset 3px 0 #d8ad45;background:linear-gradient(115deg,#51401d,#2a2417)}
.world-lobby-card[data-kind=fitness] .world-lobby-card-icon{color:#f4d47d;border-color:#a98435;background:#4b3a1c}
.world-lobby-card[data-kind=fitness] .world-lobby-card-copy small{color:#e2bd62}
.world-lobby .world-lobby-detail[data-kind=fitness]{border-color:#b9923c;background:linear-gradient(145deg,#3e331c,#211e15)}
.world-lobby-detail[data-kind=fitness] .world-lobby-join{background:#d8ad45;border-color:#f2d17d;color:#211b0d}
.world-lobby .world-lobby-filters button[data-world-filter=fitness]{border-color:#b9923c;color:#f2d17d}

/* World selection stays beside the running game and above the touch sticks. */
dialog.game-fullscreen-dialog.game-companion-dialog{inset:max(64px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) auto auto!important;width:min(620px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:auto!important;max-height:min(58dvh,calc(100dvh - 240px))!important;min-height:120px!important;margin:0!important;padding:8px!important;border:1px solid #77966b!important;border-radius:12px!important;z-index:46!important;box-shadow:0 12px 36px #0007;}
.game-companion-dialog .game-menu-header{padding:4px 0;margin-bottom:6px;gap:8px;}
.game-companion-dialog .game-menu-header h2{font-size:17px;}
.game-companion-dialog .game-fullscreen-content:not([hidden]){padding:8px!important;border:0!important;}
.game-companion-dialog .world-lobby>header{display:none;}
.game-companion-dialog .world-lobby .world-lobby-layout{gap:8px;}
.game-companion-dialog .world-lobby .world-map-wheel{max-width:240px;}
.game-companion-dialog .world-lobby .world-map-detail .world-preview-viewport{height:140px;}
@media(max-height:520px){dialog.game-fullscreen-dialog.game-companion-dialog{inset:56px 8px auto auto!important;width:min(440px,calc(100vw - 130px))!important;max-width:calc(100vw - 130px)!important;max-height:calc(100dvh - 240px)!important;}}

/* Ironwood uses the same warm security accent in the directory and wheel. */
.world-map-picker g.world-map-sector-svg[data-kind=prison]{color:#f3d3a2}
.world-map-sector-svg[data-kind=prison] .world-sector-wedge{stroke:#e9a34b88}
.world-map-sector-svg[data-kind=prison][aria-pressed=true] .world-sector-wedge{stroke:#ffdc9c}
.world-lobby .world-lobby-card[data-kind=prison]{border-color:#a77e48;background:linear-gradient(115deg,#3a3229,#1b2425)}
.world-lobby-card[data-kind=prison] .world-lobby-card-icon{background:#4a3b29;color:#f3d3a2;border-color:#b28b56}
.world-lobby .world-lobby-detail[data-kind=prison]{border-color:#a77e48;background:linear-gradient(145deg,#39352c,#162425)}
.world-lobby-detail[data-kind=prison] .world-lobby-join{background:#e9a34b;border-color:#ffdc9c;color:#201c13}
.world-lobby .world-lobby-filters button[data-world-filter=prison]{border-color:#a77e48;color:#f3d3a2}

.weather-mirroring{padding:14px;margin:12px 0;border:1px solid #709464;border-radius:10px;background:#17251d;color:#ecf5e8;min-width:0;overflow-wrap:anywhere;}
.weather-mirroring h3{margin:0 0 8px;}
.weather-mirroring p{line-height:1.5;}
.weather-mirroring button{min-height:44px;max-width:100%;padding:10px 14px;margin:4px 6px 4px 0;white-space:normal;}
.weather-mirroring button[hidden]{display:none;}
