/* B3.19: all weapons share a bounded content area and a non-scrolling footer. */
body.loadoutChoosing #prep{left:var(--vvcenterx,50vw);top:var(--vvcentery,50vh);bottom:auto;transform:translate(-50%,-50%);width:min(760px,calc(var(--vvw,100vw) - 32px));max-height:calc(var(--vvh,100dvh) - 24px);overflow:hidden;padding:15px 18px}
body.loadoutChoosing #prepBody{display:flex;min-height:0}
body.loadoutChoosing #stageLoadout{display:flex;flex-direction:column;gap:10px;min-height:0;max-width:100%;width:100%;margin:0}
body.loadoutChoosing .loadoutContent{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
body.loadoutChoosing .bladeSelected .loadoutContent{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.loadoutChoosing .loadoutSingle{margin:0 auto;width:100%;max-width:330px;min-height:0;min-width:0}
body.loadoutChoosing #bladeLoadout{margin:0;min-height:0;min-width:0}
body.loadoutChoosing #bladeChoices{display:flex;flex-direction:column;gap:6px}
body.loadoutChoosing #bladeChoices button{min-height:49px;padding:6px 10px;text-align:left;touch-action:pan-y}
body.loadoutChoosing #bladeChoices b{font-size:13px}
body.loadoutChoosing #bladeChoices small{font-size:10px;line-height:1.3;margin-top:2px}
body.loadoutChoosing .loadoutActions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;flex:none;width:100%;max-width:680px;margin:0 auto}
body.loadoutChoosing .loadoutActions button{width:100%;max-width:none;min-width:0;min-height:44px;margin:0!important;white-space:normal}
body.loadoutChoosing #loadoutSummary{display:none}
body.loadoutChoosing .loadoutArt,body.loadoutChoosing .weaponIllustration{height:92px;min-height:92px}
body.compactUi.loadoutChoosing #prep:not(.hidden){width:min(620px,calc(var(--menu-width) - 16px))!important;height:min(300px,calc(var(--menu-height) - 16px))!important;max-height:calc(var(--menu-height) - 16px)!important;top:var(--vvcentery,50vh)!important;left:var(--vvcenterx,50vw)!important;transform:translate(-50%,-50%)!important;padding:8px!important;display:flex;flex-direction:column;overflow:hidden!important;gap:8px;touch-action:pan-y}
body.compactUi.loadoutChoosing #prep.folded{height:auto!important}
body.compactUi.loadoutChoosing #prep .prepTitle{position:static;flex:0 0 44px;min-height:44px;margin:0;padding:0;gap:8px;align-items:center}
body.compactUi.loadoutChoosing #prepEyebrow,body.compactUi.loadoutChoosing .loadoutMeta span{display:none}
body.compactUi.loadoutChoosing #prepBody{flex:1;min-height:0;overflow:hidden}
body.compactUi.loadoutChoosing #stageLoadout{flex:1;min-height:0;max-width:none!important;overflow:hidden;gap:10px}
body.compactUi.loadoutChoosing .loadoutContent{flex:1;min-height:0;gap:12px;align-items:stretch;overflow:hidden}
body.compactUi.loadoutChoosing #weaponChoices{max-width:320px;min-height:0;overflow:auto;touch-action:pan-y;overscroll-behavior:contain}
body.compactUi.loadoutChoosing .loadoutCard{width:100%;border-radius:8px;min-height:0}
body.compactUi.loadoutChoosing .loadoutArt,body.compactUi.loadoutChoosing .weaponIllustration{height:52px!important;min-height:52px!important}
body.compactUi.loadoutChoosing .loadoutBody{padding:4px 8px}
body.compactUi.loadoutChoosing .loadoutBody h3{font-size:16px;margin:2px 0}
body.compactUi.loadoutChoosing .loadoutBody p{font-size:11px!important;line-height:1.35!important;margin:2px 0}
body.compactUi.loadoutChoosing .loadoutMeta b{font-size:10px}
body.compactUi.loadoutChoosing #bladeLoadout:not(.hidden){display:flex;flex-direction:column;overflow:hidden}
body.compactUi.loadoutChoosing #bladeLoadout h3{flex:none;font-size:13px;margin:0 0 6px}
body.compactUi.loadoutChoosing #bladeChoices{flex:1;min-height:0;overflow:auto;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:2px}
body.compactUi.loadoutChoosing #bladeChoices button{flex:none;min-height:44px!important;margin:0}
body.compactUi.loadoutChoosing .loadoutActions{flex:0 0 44px;gap:10px;max-width:none;min-height:44px}
@media(orientation:portrait){
 body.compactUi.loadoutChoosing #prep:not(.hidden){height:min(540px,calc(var(--menu-height) - 16px))!important}
 body.compactUi.loadoutChoosing .bladeSelected .loadoutContent{grid-template-columns:minmax(0,1fr);align-content:start;overflow:auto;touch-action:pan-y}
 body.compactUi.loadoutChoosing #weaponChoices,body.compactUi.loadoutChoosing #bladeLoadout:not(.hidden){overflow:visible;min-height:auto}
 body.compactUi.loadoutChoosing #bladeChoices{overflow:visible;flex:none}
}
/* Keep the existing blade scroller; shrink only the action controls. */
body.loadoutChoosing .loadoutActions{display:flex!important;justify-content:flex-end;align-items:center;width:100%;gap:10px!important}
body.loadoutChoosing .loadoutActions button{flex:0 0 auto;width:auto!important;min-width:96px;max-width:128px!important;height:44px;min-height:44px;padding:0 12px!important;font-size:13px;white-space:nowrap}

.swordShieldArt{position:relative;width:100%;height:146px;overflow:hidden;background:radial-gradient(ellipse at center,#d6c17412,transparent 65%)}
.swordShieldArt img{position:absolute;object-fit:contain;filter:drop-shadow(2px 3px 2px #0009);pointer-events:none}
.swordShieldArt .loadoutSword{height:96%;width:43%;left:20%;top:2%;transform:rotate(-24deg)}
.swordShieldArt .loadoutShield{height:91%;width:39%;left:43%;top:5%}
/* B3.42: five selectable weapons; scroll content, keep confirm reachable. */
body.loadoutChoosing #weaponChoices.weaponSelection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px;width:100%;max-width:none;margin:0;min-height:0;overflow:auto;touch-action:pan-y}
body.loadoutChoosing .bladeSelected #weaponChoices.weaponSelection{grid-template-columns:repeat(2,minmax(0,1fr))}
body.loadoutChoosing .weaponChoice{width:100%;min-width:0;margin:0;padding:0;border-color:#536553;text-align:center;touch-action:pan-y;cursor:pointer}
body.loadoutChoosing .weaponChoice.chosen{border-color:#dfc882;box-shadow:0 0 0 1px #dfc88280;background:#293a28}
body.loadoutChoosing .weaponChoice:disabled{opacity:.72;cursor:default}
body.loadoutChoosing .weaponChoice.chosen:disabled{opacity:1}
body.loadoutChoosing .weaponChoice .loadoutBody{padding:6px 8px}
body.loadoutChoosing .weaponChoice h3{font-size:16px;margin:3px 0}
body.loadoutChoosing .weaponChoice p{font-size:10px;line-height:1.4;margin:3px 0}
body.loadoutChoosing #confirmLoadout{min-width:140px;max-width:190px!important}
body.compactUi.loadoutChoosing #weaponChoices.weaponSelection{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:auto}
body.compactUi.loadoutChoosing .weaponChoice .loadoutArt,body.compactUi.loadoutChoosing .weaponChoice .weaponIllustration,body.compactUi.loadoutChoosing .weaponChoice .swordShieldArt{height:44px!important;min-height:44px!important}
body.compactUi.loadoutChoosing .weaponChoice h3{font-size:13px}
body.compactUi.loadoutChoosing .weaponChoice p{font-size:10px!important}
body.compactUi.loadoutChoosing .loadoutContent{overflow:auto}
@media(orientation:portrait){body.compactUi.loadoutChoosing .bladeSelected #weaponChoices.weaponSelection{grid-template-columns:repeat(2,minmax(0,1fr))}body.compactUi.loadoutChoosing #weaponChoices.weaponSelection{overflow:visible}}

#interactionHint{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:35;max-width:52vw;padding:6px 10px;background:#17251fe8;border:1px solid #617365;border-radius:5px;color:#c6d1c5;font-size:12px;line-height:1.4;pointer-events:none;text-align:center}#interactionHint.ready{border-color:#d3bd7d;color:#f1dfac}body.compactUi #interactionHint{bottom:calc(76px + env(safe-area-inset-bottom,0px));max-width:42vw;font-size:10px;padding:4px 8px}

.flameLoadoutArt{position:relative;overflow:hidden}.flameLoadoutGun,.flameLoadoutCan{position:absolute;background-image:url('/assets/weapons/flamethrower/parts.png?v=0140B365');background-repeat:no-repeat;image-rendering:pixelated}.flameLoadoutGun{width:90%;height:32%;left:5%;top:23%;background-size:107.49% 309.49%;background-position:50% 24.9%}.flameLoadoutCan{width:32%;height:23%;left:34%;top:63%;background-size:257.28% 275.49%;background-position:43.24% 92.3%}

/* B3.46: one bounded mobile picker, one scroll owner, pinned confirmation. */
body.compactUi.loadoutChoosing #prep:not(.hidden){height:calc(var(--menu-height) - 16px)!important;max-height:calc(var(--menu-height) - 16px)!important;max-width:calc(var(--menu-width) - 16px)!important;padding:8px!important;gap:6px}
body.compactUi.loadoutChoosing #prep .prepTitle{flex-basis:36px;min-height:36px}
body.compactUi.loadoutChoosing #stageLoadout{gap:6px}
body.compactUi.loadoutChoosing .loadoutContent{display:block;overflow:auto;min-height:0;touch-action:pan-y}
body.compactUi.loadoutChoosing #weaponChoices.weaponSelection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;max-width:none}
body.compactUi.loadoutChoosing .weaponChoice{min-height:76px}
body.compactUi.loadoutChoosing .weaponChoice p{display:none}
body.compactUi.loadoutChoosing .weaponChoice h3{font-size:12px;margin:2px 0}
body.compactUi.loadoutChoosing .weaponChoice .loadoutMeta{display:none}
body.compactUi.loadoutChoosing #bladeLoadout:not(.hidden){display:none}
body.compactUi.loadoutChoosing .pathPage #weaponChoices.weaponSelection{display:none}
body.compactUi.loadoutChoosing .pathPage #bladeLoadout:not(.hidden){display:flex}
body.compactUi.loadoutChoosing #bladeChoices{overflow:visible}
body.compactUi.loadoutChoosing #loadoutSummary{display:block;flex:none;font-size:11px;line-height:1.35;margin:0;max-height:40px;overflow:auto}
body.compactUi.loadoutChoosing .loadoutActions{flex:none;min-height:44px;justify-content:space-between}
body.compactUi.loadoutChoosing .loadoutActions button{min-height:44px}
@media(orientation:portrait){body.compactUi.loadoutChoosing #weaponChoices.weaponSelection{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* B3.64: weapon catalogue and single scroll owner; mobile gameplay quality remains unchanged. */
body.loadoutChoosing #stageLoadout{gap:8px}
body.loadoutChoosing #loadoutCategories{display:flex;flex:none;gap:8px;align-items:center;min-height:32px}
body.loadoutChoosing .loadoutCategory{background:#17271b;border:1px solid #4e6654;border-radius:7px;color:#c9d7c0;padding:6px 18px;min-height:31px;font-size:12px;cursor:pointer}
body.loadoutChoosing .loadoutCategory[aria-pressed="true"]{background:#3d5538;color:#ffe9ac;border-color:#dfc882}
body.loadoutChoosing #stageLoadout .loadoutContent{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(190px,.7fr);gap:12px;flex:1;overflow:hidden;align-items:stretch}
body.loadoutChoosing #weaponChoices.weaponSelection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:none;width:100%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:2px;align-content:start}
body.loadoutChoosing .weaponChoice{display:flex;align-items:center;min-height:64px;max-height:88px;text-align:left;padding:4px 5px;gap:6px;border-radius:7px}
body.loadoutChoosing .weaponChoice .loadoutArt,body.loadoutChoosing .weaponChoice .weaponIllustration{flex:0 0 64px;width:64px;height:56px;min-height:56px}
body.loadoutChoosing .weaponChoice .loadoutBody{min-width:0;padding:2px 3px;display:flex;flex-direction:column;gap:2px}
body.loadoutChoosing .weaponChoice .loadoutBody b{font-size:13px;line-height:1.25;overflow-wrap:anywhere}
body.loadoutChoosing .weaponChoice .loadoutRole{font-size:10px;color:#a5b9a5}
body.loadoutChoosing .loadoutWeaponPreview{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px;background:#17251de0;border:1px solid #4d6151;border-radius:8px;text-align:center;overflow:hidden}
body.loadoutChoosing .loadoutWeaponPreview small{font-size:11px;color:#aebeaf}
body.loadoutChoosing .loadoutWeaponPreview h3{font-size:19px;margin:0;color:#f0dfb5}
body.loadoutChoosing .loadoutWeaponPreview p{font-size:11px;line-height:1.45;overflow-y:auto;max-height:100px;margin:0;color:#ced5c7}
body.loadoutChoosing .loadoutPreviewArt{width:min(100%,155px);height:108px;display:flex;align-items:center;justify-content:center;overflow:hidden}
body.loadoutChoosing .loadoutPreviewArt .weaponIllustration,body.loadoutChoosing .loadoutPreviewArt .swordShieldArt{max-height:96px;max-width:155px}
body.loadoutChoosing #stageLoadout.pathPage #loadoutCategories,body.loadoutChoosing #stageLoadout.pathPage #weaponChoices,body.loadoutChoosing #stageLoadout.pathPage #loadoutWeaponPreview{display:none!important}
body.loadoutChoosing #stageLoadout.pathPage #bladeLoadout:not(.hidden){display:flex!important;grid-column:1/-1;flex-direction:column;min-height:0;overflow:hidden}
body.loadoutChoosing #stageLoadout.pathPage #bladeChoices{overflow-y:auto;min-height:0}
body.loadoutChoosing #stageLoadout .loadoutActions{flex:none;min-height:44px}
body.compactUi.loadoutChoosing #stageLoadout{gap:5px!important}
body.compactUi.loadoutChoosing #loadoutCategories{min-height:27px;gap:5px}
body.compactUi.loadoutChoosing .loadoutCategory{padding:3px 13px;min-height:27px}
body.compactUi.loadoutChoosing #stageLoadout .loadoutContent{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto;gap:5px!important;overflow:hidden!important;flex:1;min-height:0}
body.compactUi.loadoutChoosing #weaponChoices.weaponSelection{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px;overflow-y:auto!important;min-height:0;max-width:none;padding:2px}
body.compactUi.loadoutChoosing .weaponChoice{min-height:48px;max-height:64px;gap:4px}
body.compactUi.loadoutChoosing .weaponChoice .loadoutArt,body.compactUi.loadoutChoosing .weaponChoice .weaponIllustration{flex:0 0 43px;width:43px;height:42px!important;min-height:42px!important}
body.compactUi.loadoutChoosing .weaponChoice .loadoutBody{padding:1px 2px}
body.compactUi.loadoutChoosing .weaponChoice .loadoutBody b{font-size:12px}
body.compactUi.loadoutChoosing .weaponChoice .loadoutRole{font-size:9px}
body.compactUi.loadoutChoosing .loadoutWeaponPreview{min-height:41px;max-height:54px;padding:4px 8px;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;justify-items:start;column-gap:8px}
body.compactUi.loadoutChoosing .loadoutWeaponPreview>:first-child,body.compactUi.loadoutChoosing .loadoutWeaponPreview>small:last-of-type{display:none}
body.compactUi.loadoutChoosing .loadoutPreviewArt{grid-row:1/3;width:42px;height:38px}
body.compactUi.loadoutChoosing .loadoutWeaponPreview h3{font-size:13px;line-height:1.2}
body.compactUi.loadoutChoosing .loadoutWeaponPreview p{font-size:10px;max-height:26px;overflow:hidden;line-height:1.2}
body.compactUi.loadoutChoosing #stageLoadout.pathPage .loadoutContent{display:block!important;overflow-y:auto!important}
body.compactUi.loadoutChoosing #stageLoadout.pathPage #bladeLoadout:not(.hidden){display:flex!important;overflow:visible;max-width:100%}
body.compactUi.loadoutChoosing #stageLoadout.pathPage #bladeChoices{overflow-y:auto;max-height:150px}
body.compactUi.loadoutChoosing #stageLoadout .loadoutActions{min-height:43px;flex-shrink:0}
@media(orientation:portrait){body.compactUi.loadoutChoosing #stageLoadout .loadoutContent{grid-template-rows:minmax(0,1fr) auto!important}body.compactUi.loadoutChoosing #weaponChoices.weaponSelection{overflow-y:auto!important}}
body.loadoutChoosing #stageLoadout:not(.pathPage) #bladeLoadout{display:none!important}
/* Fix desktop viewport anchoring and constrain all inner scroll regions. */
body:not(.compactUi).loadoutChoosing #prep:not(.hidden){position:fixed!important;top:var(--vvcentery,50vh)!important;left:var(--vvcenterx,50vw)!important;transform:translate(-50%,-50%)!important;height:min(496px,calc(var(--vvh,100dvh) - 24px))!important;max-height:calc(var(--vvh,100dvh) - 24px)!important;display:flex;flex-direction:column}
body:not(.compactUi).loadoutChoosing #prepBody{flex:1;min-height:0;overflow:hidden}
body:not(.compactUi).loadoutChoosing #stageLoadout{flex:1;min-height:0;overflow:hidden}

/* B3.65.8 unified real fold: outer shell MUST collapse even under desktop/compact viewport !important rules. */
#prep .prepFoldSummary{display:none}
body[data-phase="prep"] #prep.folded:not(.hidden){
 box-sizing:border-box!important;position:fixed!important;
 width:min(408px,calc(var(--vvw,100vw) - 24px))!important;
 min-width:0!important;max-width:calc(var(--vvw,100vw) - 24px)!important;
 height:56px!important;min-height:56px!important;max-height:56px!important;
 top:calc(var(--ui-top,0px) + 90px)!important;left:var(--vvcenterx,50vw)!important;
 right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;
 padding:5px 10px!important;gap:0!important;overflow:hidden!important;
 display:flex!important;flex-direction:column!important;
}
body[data-phase="prep"] #prep.folded #prepBody,
body[data-phase="prep"] #prep.folded #prepWaiting,
body[data-phase="prep"] #prep.folded .shopHeader,
body[data-phase="prep"] #prep.folded #nudgeTeam{display:none!important}
body[data-phase="prep"] #prep.folded .prepTitle{position:static!important;display:flex!important;flex:0 0 44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;width:100%!important;gap:7px!important;align-items:center!important;padding:0!important;margin:0!important;border:0!important;}
body[data-phase="prep"] #prep.folded .prepTitle>div:first-child{flex:0 1 auto!important;min-width:0!important;max-width:48%!important;}
body[data-phase="prep"] #prep.folded .eyebrow{display:none!important}
body[data-phase="prep"] #prep.folded #prepStageTitle{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;}
body[data-phase="prep"] #prep.folded #prepTime{font-size:13px!important}
body[data-phase="prep"] #prep.folded .prepFoldSummary{display:block!important;flex:1!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b8d9b6;font-size:12px;}
body[data-phase="prep"] #prep.folded #foldPrep{position:static!important;flex:0 0 auto!important;min-width:52px!important;width:52px!important;height:44px!important;min-height:44px!important;padding:0 5px!important;font-size:12px!important;}
@media(max-width:580px){body[data-phase="prep"] #prep.folded:not(.hidden){top:calc(var(--ui-top,0px) + 48px)!important;width:min(340px,calc(var(--vvw,100vw) - 20px))!important;}body[data-phase="prep"] #prep.folded .prepTitle>div:first-child{max-width:45%!important}}

/* Compact wind-katana illustration for Yasuo path, shared with the existing loadout art. */

/* 0.16.7-B.1.2: one consistent illustration, only for the selected weapon.
   Weapon list is text-first at every breakpoint; preview never duplicates art. */
body.loadoutChoosing .weaponChoice .loadoutBody{width:100%;padding:4px 8px}
body.loadoutChoosing .weaponChoice .loadoutRole{display:block}
body.loadoutChoosing .weaponChoice{min-height:56px}
body.compactUi.loadoutChoosing .weaponChoice{min-height:64px}
body.loadoutChoosing .loadoutPreviewArt .weaponIllustration{width:100%;height:100%;object-fit:contain}

/* 0.19.7.7: only one weapon per starting roll; reuse the original weapon illustrations. */
body.loadoutChoosing #loadoutCategories,body.loadoutChoosing #loadoutBack,body.loadoutChoosing #bladeLoadout{display:none!important}
body.loadoutChoosing .loadoutContent{display:block;overflow:auto}
body.loadoutChoosing #weaponChoices{max-width:380px!important;margin:auto}
body.loadoutChoosing .randomLoadoutCard{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;max-width:380px;text-align:center;min-height:155px}
body.loadoutChoosing .randomLoadoutCard .loadoutArt{width:100%;text-align:center}
body.loadoutChoosing .randomLoadoutCard .weaponIllustration{width:100%;max-width:280px;max-height:100px}
body.loadoutChoosing .randomLoadoutCard .loadoutBody{text-align:center;padding:5px}
body.loadoutChoosing .randomLoadoutCard .loadoutBody small{display:block;margin-top:5px}
body.loadoutChoosing #rerollLoadout{max-width:none!important;min-width:142px!important}
@media(max-width:520px){body.loadoutChoosing .randomLoadoutCard{min-height:108px}body.loadoutChoosing .randomLoadoutCard .weaponIllustration{max-height:58px}}
/* 0.19.7.8: single-offer loadout ONLY. Overrides historical multi-card fixed
   heights, including compact mode; never changes shop/upgrade/vote panels. */
body[data-phase="prep"][data-stage="loadout"].loadoutChoosing #prep:not(.hidden):not(.folded){
 position:fixed!important;box-sizing:border-box!important;left:var(--vvcenterx,50vw)!important;
 top:var(--vvcentery,50vh)!important;bottom:auto!important;
 transform:translate(-50%,-50%)!important;
 width:min(490px,calc(var(--vvw,100vw) - 24px))!important;
 max-width:calc(var(--vvw,100vw) - 20px)!important;
 height:auto!important;min-height:0!important;
 max-height:calc(var(--vvh,100dvh) - 20px)!important;
 padding:13px 16px!important;gap:9px!important;overflow-y:auto!important;
 display:flex!important;flex-direction:column!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .prepTitle{
 position:static!important;display:flex!important;align-items:center!important;
 flex:0 0 auto!important;min-height:44px!important;height:auto!important;
 margin:0!important;padding:0 0 9px!important;gap:9px!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .prepTitle>div:first-child{flex:1!important;min-width:0!important}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) #prepBody{
 display:block!important;flex:0 0 auto!important;width:100%!important;
 height:auto!important;min-height:0!important;overflow:visible!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) #stageLoadout{
 display:flex!important;flex-direction:column!important;flex:0 0 auto!important;
 width:100%!important;min-height:0!important;height:auto!important;gap:10px!important;overflow:visible!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .loadoutContent{
 display:block!important;flex:0 0 auto!important;width:100%!important;
 min-height:0!important;height:auto!important;overflow:visible!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) #weaponChoices.weaponSelection{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 width:100%!important;max-width:380px!important;margin:0 auto!important;
 min-height:0!important;height:auto!important;overflow:visible!important;
 padding:0!important;gap:0!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard{
 width:100%!important;max-width:380px!important;min-height:0!important;height:auto!important;
 box-sizing:border-box!important;gap:5px!important;padding:8px 10px!important;margin:0!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .loadoutArt{
 width:100%!important;height:94px!important;min-height:0!important;display:grid;place-items:center;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .weaponIllustration{
 max-width:240px!important;height:94px!important;max-height:94px!important;min-height:0!important;object-fit:contain;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .loadoutBody{
 padding:2px 6px!important;max-width:340px;line-height:1.35!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .loadoutRole{display:none!important}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .loadoutBody small{
 display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow:hidden;font-size:12px;line-height:1.4;margin-top:4px;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .loadoutActions{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 justify-content:center!important;align-items:stretch!important;width:100%!important;
 max-width:380px!important;margin:0 auto!important;gap:9px!important;
 min-height:44px!important;height:auto!important;flex:0 0 auto!important;
}
body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .loadoutActions button{
 width:100%!important;min-width:0!important;max-width:none!important;
 height:auto!important;min-height:44px!important;padding:9px 6px!important;
 font-size:13px!important;white-space:normal!important;
}
@media(max-width:520px){
 body[data-phase="prep"][data-stage="loadout"].loadoutChoosing #prep:not(.hidden):not(.folded){
  width:min(420px,calc(var(--vvw,100vw) - 20px))!important;padding:9px 10px!important;gap:6px!important;
 }
 body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .loadoutArt{
  height:64px!important;
 }
 body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .weaponIllustration{
  height:64px!important;max-height:64px!important;
 }
}
@media(max-height:435px) and (orientation:landscape){
 body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard{
  flex-direction:row!important;text-align:left!important;align-items:center!important;
 }
 body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .loadoutArt{
  width:100px!important;height:55px!important;flex:none!important;
 }
 body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .weaponIllustration{
  max-width:100px!important;height:55px!important;max-height:55px!important;
 }
 body[data-phase="prep"][data-stage="loadout"] #prep:not(.folded) .randomLoadoutCard .loadoutBody{text-align:left!important}
}
