/* A bounded loadout workspace, with paginated choices instead of tall catalogs. */
#ui[data-page=loadout] .panel{height: min(780px,96dvh);max-height:96dvh;display:flex;flex-direction:column;overflow:hidden;width:min(1100px,96vw)}
#ui[data-page=loadout] #walletPanel,#ui[data-page=loadout] #telemetryStatus,#ui[data-page=loadout] .account-bar,#ui[data-page=loadout] .halloween-banner{display:none!important}
#ui[data-page=loadout] .head{flex-shrink:0;margin-bottom:8px;padding-bottom:8px}
#ui[data-page=loadout] .head h1{font-size:22px;margin:0}
#ui[data-page=loadout] .head .sub{display:none}
#ui[data-page=loadout] #page-loadout{flex:1;min-height:0}
#ui[data-page=loadout] .btnrow{flex-shrink:0;margin-top:8px}
#ui[data-page=loadout] .btnrow .snd:not(#settingsBtn){display:none}
.gear-studio{display:grid;grid-template-columns:1fr 1.15fr;gap:16px;height:100%;min-height:0}
.gear-picks{display:flex;flex-direction:column;min-height:0}.gear-picks h2{font-size:16px;margin:4px 0}.gear-hint{font-size:11px;color:#b9b0cf;margin:4px 0 12px}
#gearSlots{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:10px;flex:1;min-height:0}
.gear-slot{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;border:1px solid #605075;border-left:4px solid var(--slot-color);background:linear-gradient(140deg,#30263e,#171c2b);padding:14px;min-width:0;min-height:0;font-family:inherit;color:#f8f3ff;cursor:pointer}
.gear-slot:hover,.gear-slot:focus-visible{background:#3c304e;border-color:var(--slot-color);outline:2px solid var(--slot-color);outline-offset:2px}.gear-slot small{font-size:11px;color:#bdb0cf}.gear-slot strong{font-size:clamp(12px,1.5vw,18px);color:var(--slot-color);margin:10px 0;overflow-wrap:anywhere}.gear-slot span{font-size:9px;color:#bdb0cf}
.gear-preview{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid #685375;background:radial-gradient(ellipse at 50% 25%,#3b2a4e,#151b29 72%);padding:16px}.gear-preview-title{font-size:11px;display:flex;justify-content:space-between;color:#bdb0cf;gap:8px}.gear-preview-title span{color:#ffcf83}
#gearAvatar{width:100%;height:0;flex:1;min-height:60px;object-fit:contain;image-rendering:pixelated}
#gearEquipment{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #584b6b;padding-top:12px}#gearEquipment span{min-width:0}#gearEquipment small{display:block;font-size:9px;color:#ad9fbf}#gearEquipment b{font-size:11px;color:#f3e9ff;overflow-wrap:anywhere}
.gear-guide h3{font-size:11px;color:#ffcb7e;margin:12px 0 5px}.gear-guide p{font-size:11px;line-height:1.5;color:#cec4dc;margin:0}
#gearChooser{width:min(760px,94vw);max-height:94dvh;box-sizing:border-box;background:#191d2c;color:#eee5ff;border:2px solid #ad8acc;padding:18px;font-family:inherit}#gearChooser::backdrop{background:#090a15d9}#gearChooser header,#gearChooser footer{display:flex;align-items:center;justify-content:space-between;gap:10px}#gearChooser h2{font-size:18px;margin:0}#gearChoices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}#gearChooser button{font:inherit;color:#eee5ff;background:#2b273c;border:1px solid #78628d;padding:12px;cursor:pointer}#gearChoices button{text-align:left;min-width:0}#gearChoices button:hover{border-color:#ffcf83;background:#393047}#gearChoices strong{font-size:15px}#gearChoices p{font-size:12px;line-height:1.5}#gearChoices small,#gearPage{font-size:11px}#gearChooser button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:650px),(max-height:570px){.gear-studio{gap:8px;grid-template-columns:1fr 1fr}.gear-preview{padding:8px}.gear-slot{padding:8px}.gear-slot strong{margin:5px 0;font-size:12px}.gear-slot small,.gear-slot span{font-size:8px}#gearSlots{gap:6px}.gear-hint{display:none}.gear-picks h2{font-size:12px;margin:2px 0 6px}#gearEquipment{gap:4px;padding-top:6px}#gearEquipment b,.gear-guide p{font-size:9px}.gear-guide h3{font-size:9px;margin:6px 0 3px}.gear-preview-title{font-size:9px}#ui[data-page=loadout] .head h1{font-size:16px}#ui[data-page=loadout] .head{margin-bottom:4px}#ui[data-page=loadout] .tab{padding:5px 8px;font-size:10px}#gearChooser{padding:10px}#gearChoices{gap:6px;margin:8px 0}#gearChoices p{font-size:10px;margin:6px 0}#gearChoices strong{font-size:12px}#gearChooser button{padding:8px}}
@media(max-width:450px){.gear-studio{grid-template-columns:1fr}.gear-picks{flex:none}#gearSlots{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr)}.gear-studio{grid-template-rows:170px 1fr}.gear-slot span{display:none}.gear-preview{min-height:0}}
#ui[data-page=loadout] #halloweenBanner{display:none!important}
#gearChoices button[aria-pressed=true]{border-color:#ffcc80;box-shadow:inset 3px 0 #ffcc80}
#gearChooser button:focus-visible{outline:2px solid #ffcc80;outline-offset:2px}
/* Show a useful overview of the catalog before asking players to turn a page. */
#gearChooser{width:min(1120px,96vw);max-height:96dvh;padding:18px}
#gearChoices{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#gearChoices button{padding:12px;min-height:110px}
#gearChoices p{font-size:11px;line-height:1.4;margin:8px 0}
#gearChoices strong{font-size:14px}
@media(max-width:999px){#gearChoices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:599px){#gearChoices{grid-template-columns:repeat(2,minmax(0,1fr))}#gearChooser{padding:10px}#gearChoices button{padding:9px;min-height:100px}#gearChoices strong{font-size:12px}}
@media(max-height:549px){#gearChooser{padding:8px}#gearChoices{margin:8px 0;gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}#gearChoices button{min-height:0;padding:8px}#gearChoices p{font-size:10px;margin:4px 0}#gearChoices strong{font-size:12px}#gearChooser header button,#gearChooser footer button{padding:6px}}
