.design-shell{max-width:1050px;margin:auto;padding:0 24px 80px;color:white}.design-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 0 30px}.design-header strong{font-size:27px;letter-spacing:-1px}.design-header span{font-size:12px}.design-profile-tabs{grid-column:1/-1;display:flex;background:#0868d6;border-radius:18px;padding:5px;margin:12px 0 22px;gap:5px}.design-profile-tabs button{flex:1;min-height:48px;border:0;border-radius:14px;background:transparent;color:white;font:inherit;font-weight:800}.design-profile-tabs button[aria-pressed=true]{background:#fff164;color:#153362}#player-closet[data-design-tab=progress]>.profile-content,#player-closet[data-design-tab=progress]>.profile-look-status{display:none!important}#player-closet[data-design-tab=customize]>.house-level-card,#player-closet[data-design-tab=customize]>.shared-profile-badges{display:none!important}#player-closet .shared-profile-badges{border:0;margin-top:0;padding-top:4px}#player-closet .design-game-progress{padding:18px 0 22px;border-bottom:1px solid #ffffff40;margin-bottom:18px}.design-progress-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.design-progress-heading strong{font-size:24px}.design-progress-heading>span{font-size:12px}.design-game-progress p{margin:10px 0;font-size:16px}.design-game-progress small{color:#e1edff;font-size:13px}.design-win-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0}.design-win-row>span{display:flex;gap:8px}.design-win-row i{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-style:normal;background:#ffffff25}.design-win-row i.won{background:#fff164;color:#153362}.design-badge-title{font-size:20px;margin:0 0 14px}.design-bottom{position:fixed;bottom:0;left:0;right:0;background:white;color:#697c95;display:flex;justify-content:space-around;padding:17px 8px;z-index:100;font-size:14px;font-weight:800}.design-bottom .selected{color:#076cde}#player-closet.profile-flat{display:block!important}#player-closet .profile-stats{display:flex;justify-content:space-around;margin:18px 0}#player-closet .profile-stats>div{flex:1;text-align:center}.design-profile-tabs button:focus-visible{outline:3px solid white;outline-offset:2px}@media(max-width:899px){.design-shell{padding:0 16px 85px}.design-header{padding:18px 0}.design-header strong{font-size:23px}.design-header span{max-width:125px;text-align:right}.design-progress-heading strong{font-size:21px}#player-closet .profile-content{display:contents}#player-closet .profile-content .profile{margin-top:15px}.design-bottom{font-size:12px}}
#player-closet .design-game-progress{background:#153362;border:0;border-radius:22px;padding:22px;margin:6px 0 24px;box-shadow:0 5px 0 #15336212}.design-progress-heading>span{color:#c5d8f2}.design-win-row>span{position:relative;gap:20px}.design-win-row i{position:relative;z-index:1;background:#405984}.design-win-row>span:before{content:'';position:absolute;height:3px;top:15px;left:10px;right:10px;background:#73839e}.design-performance{margin:0 0 26px}.design-stat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.design-stat-heading h3{margin:0;font-size:20px}.design-stat-heading>span{font-size:12px;color:#e1edff}.design-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.design-stat-grid>div{display:flex;flex-direction:column;padding:4px 16px;border-right:1px solid #ffffff38;gap:5px}.design-stat-grid>div:first-child{padding-left:0}.design-stat-grid>div:last-child{border-right:0;padding-right:0}.design-stat-grid strong{font-size:30px;line-height:1.2;letter-spacing:-.6px}.design-stat-grid span{font-size:13px;color:#f0f6ff;line-height:1.35}.design-stat-scope{font-size:12px!important;color:#d9e9ff;margin:13px 0 0!important}.design-friend-stats{margin-top:24px;background:#ffffff0d;border:1px solid #ffffff38;border-radius:20px;padding:18px}.design-friend-stats .design-stat-grid strong{font-size:26px}.design-course{display:flex;align-items:center;gap:12px;margin:0 0 18px;font-size:14px}.design-course select{background:#153362;border:1px solid #ffffff60;border-radius:10px;padding:8px 12px;color:#fff;font:inherit;min-height:44px}.design-friend-ranking{list-style:none;margin:0;padding:0}.design-friend-ranking li{display:flex;align-items:center;gap:14px;padding:12px 8px;border-bottom:1px solid #ffffff26}.design-friend-ranking li:last-child{border:0}.design-friend-ranking li b{margin-left:auto}.design-friend-ranking li.you{color:#fff164}.design-badge-title{padding-top:16px;border-top:1px solid #ffffff40}@media(max-width:420px){.design-stat-grid strong{font-size:25px}.design-stat-grid>div{padding:4px 10px}.design-stat-grid span{font-size:12px}.design-progress-heading{align-items:flex-start}.design-progress-heading>span{max-width:95px;text-align:right}.design-friend-stats{padding:15px}}
/* Keep progression on the existing bright Houseparty canvas. */
#player-closet .house-level-card{background:transparent;box-shadow:none;border:1px solid #ffffff55;border-radius:20px;padding:20px}
#player-closet .house-level-card h2 span,#player-closet .house-level-help,#player-closet .house-level-caption>span{color:#e7f1ff}
#player-closet .design-game-progress{background:transparent;box-shadow:none;border-radius:0;padding:12px 0 20px;border-bottom:1px solid #ffffff45;margin-bottom:20px}
.design-progress-heading>span{color:#ecf5ff}.design-win-row i{background:#ffffff30}.design-win-row i.won{background:#fff164;color:#153362}.design-win-row>span:before{background:#ffffff55}
.design-friend-stats{background:transparent;border:0;border-top:1px solid #ffffff40;border-radius:0;padding:20px 0 0}.design-stat-heading h3{color:#fff164}.design-course select{background:#087cff}
.design-matchup{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:12px;padding:18px 0;border-bottom:1px solid #ffffff35}.design-matchup:last-of-type{border-bottom:0}.design-matchup-person{display:flex;align-items:center;gap:11px;min-width:0}.design-friend-avatar{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;background:#ffffff24;border-radius:50%;color:#fff164;font-size:18px;font-weight:800}.design-matchup-person strong{display:block;font-size:16px}.design-matchup-person small{display:block;margin-top:3px;font-size:12px;color:#ddebff}.design-matchup-score{text-align:right}.design-matchup-score strong{display:block;font-size:27px;letter-spacing:1px;color:#fff164;line-height:1.1}.design-matchup-score span{font-size:12px}.design-matchup-detail{grid-column:1/-1;margin:0!important;font-size:12px!important;color:#dfedff}.design-best-pair{display:flex;gap:15px;text-align:right}.design-best-pair span{display:flex;flex-direction:column;font-size:11px}.design-best-pair b{font-size:21px;color:#fff164}@media(max-width:380px){.design-matchup-person{gap:8px}.design-matchup-person strong{font-size:14px}.design-best-pair{gap:10px}.design-best-pair b{font-size:18px}.design-friend-avatar{width:32px;height:32px}.design-matchup{column-gap:8px}}
/* Avatar-first revision: preserve the original stage and closet components. */
#player-closet.profile-flat{display:flex!important;flex-direction:column!important}
#player-closet>.profile-top{order:0}#player-closet>.profile-stats{order:1}#player-closet>.profile-account-status{order:0}
#player-closet>.profile-content,#player-closet[data-design-tab=progress]>.profile-content{display:contents!important}
#player-closet .profile-content>.profile{order:2;width:100%}
#player-closet>.design-profile-tabs{order:3;width:100%}
#player-closet>.house-level-card{order:4}#player-closet>.shared-profile-badges{order:5}
#player-closet .profile-content>.closet{order:4;width:100%}
#player-closet[data-design-tab=progress] .profile-content>.closet{display:none!important}
#player-closet[data-design-tab=customize] .profile-content>.closet{display:block!important}
#player-closet>.profile-look-status{order:6}
#player-closet .design-profile-tabs{background:#0767cf;border-radius:25px;padding:6px;margin:20px 0;gap:6px}
#player-closet .design-profile-tabs button{border-radius:20px;min-height:48px;font-weight:500}
#player-closet .house-level-card{padding:16px 20px;margin:0 0 22px;border-radius:20px;box-shadow:none}
#player-closet .house-level-heading>div{display:flex;align-items:center;gap:12px}
#player-closet .house-level-eyebrow{font:inherit;letter-spacing:0;font-size:18px;color:white;text-transform:none}
#player-closet .house-level-card h2{font:inherit;font-size:32px;font-weight:800;color:#fff164;margin:0}
#player-closet .house-level-card h2 span{font-size:13px}
#player-closet .house-level-emblem{display:none}
#player-closet .house-level-description{font-size:13px;margin:5px 0 12px}
#player-closet .house-level-help{margin-top:9px;padding-top:0;border:0;font-size:12px}
#player-closet .house-level-help summary{cursor:pointer;min-height:28px}
#player-closet .house-level-help p{margin:4px 0}
#player-closet .house-level-caption{font-size:12px}
#player-closet .design-game-progress{background:transparent;padding:5px 0 15px;box-shadow:none;border-radius:0;border-bottom:1px solid #ffffff40}
#player-closet .design-progress-heading>span{display:none}
#player-closet .design-game-progress>small{display:none}
#player-closet .design-friend-stats{background:transparent;border:0;border-top:1px solid #ffffff40;border-radius:0;padding:14px 0 0}
#player-closet .design-friend-stats summary{cursor:pointer;font-weight:700;min-height:34px}
#player-closet .design-friend-stats[open] summary{margin-bottom:12px}
#player-closet .design-accuracy-detail{font-size:12px;color:#dceaff;margin-top:8px}
#player-closet .design-stat-grid>div:first-child strong{color:#fff164}
/* Solid House Level surface and mobile avatar-first layout. */
#root #player-closet .house-level-card{background:#153362!important;border-color:#ffffff25!important;color:#fff!important}
#root #player-closet .house-level-description,#root #player-closet .house-level-help{color:#dfebff}
#root #player-closet .house-level-heading>div{flex-wrap:wrap;gap:8px 12px}
#root #player-closet .house-level-eyebrow{white-space:normal;text-transform:none}
#root #player-closet .profile-content>.profile{display:block!important;flex:none;min-width:0;max-width:100%;order:2}
#root #player-closet .profile-content>.profile .stage{max-width:100%;box-sizing:border-box}
@media(max-width:480px){#root .design-shell{padding-left:16px;padding-right:16px}#root #player-closet .house-level-card{padding:16px}#root #player-closet .house-level-caption{flex-wrap:wrap}#root #player-closet .profile-content>.profile .stage{width:100%;margin-left:0;margin-right:0}#root #player-closet .profile-equipment{min-width:0}#root #player-closet .profile-equipment small{overflow-wrap:anywhere}#root #player-closet .design-profile-tabs{width:100%}}
/* Shared equipment catalog treatment, preview only. */
#root #player-closet .fb-kit-preview{display:none!important}
#root #player-closet :is(.fb-closet>p:first-child,.beanie-purpose,.gear-note){font-size:13px;line-height:1.5;margin:0 0 16px;color:#dfebff}
#root #player-closet :is(.gear-grid,.hp50-table-options,.hp50-shirt-options,.beanie-options,.fb-kit-options){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
#root #player-closet :is(.gear-grid,.hp50-table-options,.hp50-shirt-options,.beanie-options,.fb-kit-options)>button{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:116px;padding:12px 8px!important;border:1px solid #ffffff55!important;border-radius:14px!important;background:#ffffff0d!important;color:white!important;box-shadow:none;font:inherit;text-align:center}
#root #player-closet :is(.gear-grid,.hp50-table-options,.hp50-shirt-options,.beanie-options,.fb-kit-options)>button[aria-pressed=true]{border-color:#fff164!important;box-shadow:inset 0 0 0 1px #fff164!important;background:#fff16415!important}
#root #player-closet :is(.gear-grid,.hp50-table-options,.hp50-shirt-options,.beanie-options,.fb-kit-options)>button[aria-pressed=true]:after{content:'✓';position:absolute;top:5px;right:7px;color:#fff164;font-size:12px;font-weight:900}
#root #player-closet :is(.gear-grid,.hp50-table-options,.hp50-shirt-options,.beanie-options,.fb-kit-options)>button strong{font-size:12px;line-height:1.25;text-align:center}
#root #player-closet :is(.gear-grid,.hp50-table-options,.hp50-shirt-options,.beanie-options,.fb-kit-options)>button :is(small,span:not([class])){font-size:11px;line-height:1.3;color:#dfebff}
#root #player-closet :is(.beanie-options,.fb-kit-options)>button>svg{width:58px!important;height:48px!important;margin:0!important;flex-shrink:0}
#root #player-closet .fb-kit-art circle{fill:transparent}
#root #player-closet .beanie-preview{display:block!important;background:none!important;padding:0!important;margin:0 0 12px!important;border:0!important}
#root #player-closet .beanie-preview>svg,#root #player-closet .beanie-preview>div>span{display:none!important}
#root #player-closet .beanie-preview strong{font-size:16px!important}
#root #player-closet .beanie-swatches{margin:12px 0!important;gap:10px}
#root #player-closet .beanie-swatches button{width:36px!important;height:36px!important;min-height:36px!important}
#root #player-closet .beanie-styles{margin:0 0 18px!important;padding:0!important;border:0!important;gap:8px}
#root #player-closet .beanie-styles button{font:inherit;font-size:13px;min-height:42px;border-radius:24px}
#root #player-closet .shared-badge-panel{display:flex;flex-direction:column}
#root #player-closet .shared-badge-panel> *{order:0}
@media(min-width:650px){#root #player-closet :is(.gear-grid,.hp50-table-options,.hp50-shirt-options,.beanie-options,.fb-kit-options){grid-template-columns:repeat(4,minmax(0,1fr))!important}}
/* Profile is a scrolling document, including touch devices. */
html:has(#player-closet),body:has(#player-closet),#root:has(#player-closet),#player-closet{touch-action:pan-y!important;overflow-y:visible!important;height:auto!important;max-height:none!important}
html:has(#player-closet){overflow-y:auto!important}
#root #player-closet .profile-content>.profile{visibility:visible!important;opacity:1!important;display:block!important}
#root #player-closet .design-stat-heading{flex-wrap:wrap;gap:12px}
#root #player-closet .design-level-pill{display:inline-flex;background:#fff164;color:#153362;font-size:13px;font-weight:800;border-radius:999px;padding:9px 13px;white-space:nowrap}
#root #player-closet .design-game-progress .design-progress-heading,#root #player-closet .design-game-progress>p:first-of-type{display:none!important}
#root #player-closet .design-game-progress{padding:0 0 16px;margin:12px 0 20px}
#root #player-closet .design-game-badges{margin:24px 0;padding:20px 0;border-top:1px solid #ffffff40}
/* A single separator between sections, without stacked rules. */
#root #player-closet .design-game-progress,#root #player-closet .design-badge-title,#root #player-closet .design-game-badges>section{border:0!important;box-shadow:none!important}
#root #player-closet .design-badge-title{padding-top:0}
#root #player-closet .fb-kit-options>button>svg{width:82px!important;height:72px!important}
#root #player-closet .fb-kit-options>button{min-height:144px}
#root #player-closet .design-matchup{grid-template-columns:1fr;gap:8px}
#root #player-closet .design-matchup-score{display:flex;align-items:flex-start;flex-direction:column;text-align:left;gap:5px;padding-left:54px}
#root #player-closet .design-matchup-score strong{font-size:17px}
#root #player-closet .design-matchup-detail{display:none}
.design-live-tryon{display:none}
@media(max-width:600px){
 .design-live-tryon:not([hidden]){position:fixed;display:flex;align-items:center;justify-content:center;gap:18px;top:0;left:0;right:0;height:142px;background:#0767cf;box-shadow:0 4px 12px #15336225;z-index:90;pointer-events:none;color:white}
 .design-live-art{position:relative;width:90px;height:134px}
 .design-live-art .figure{position:absolute!important;left:0!important;top:0!important;margin:0!important;width:160px!important;height:252px!important;transform:scale(.51)!important;transform-origin:top left!important}
 .design-live-caption{font-size:16px;font-weight:700}
 #player-closet .closet button{scroll-margin-top:155px}
}
/* Category tabs already name these controls. */
#root #player-closet .closet div:has(> .swatches[aria-label="Cap colors"])>section>.label,
#root #player-closet section[aria-label="Shirt styles"]>.label,
#root #player-closet .beanie-preview>div>strong{display:none!important}
#root #player-closet .design-insights{background:#153362;border-radius:22px;padding:20px;margin:24px 0;color:white}
.design-insight-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.design-insight-heading h3{margin:0;font-size:21px}.design-paid-pill{border:1px solid #fff164;color:#fff164;border-radius:99px;padding:4px 10px;font-size:12px;font-weight:700}.design-insights p{font-size:14px;line-height:1.5;margin:10px 0 16px}.design-insight-example{background:#ffffff0b;padding:14px;border-radius:14px}.design-insight-example strong{font-size:14px}.design-insight-example small,.design-chart-labels{font-size:11px;color:#d7e4f8}.design-insight-example svg{display:block;width:100%;height:80px;margin:14px 0 8px}.design-chart-labels{display:flex;justify-content:space-between}.design-insight-button{width:100%;background:#fff164;color:#153362;border:0;border-radius:99px;min-height:44px;font:inherit;font-weight:700;margin:16px 0 10px;cursor:pointer}.design-insight-note{display:block;text-align:center;font-size:11px;color:#d7e4f8}.design-insight-detail{margin-top:16px}.design-rival-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.design-rival-card{background:#ffffff12;border:1px solid #ffffff40;border-radius:20px;padding:18px}.design-rival-person{display:flex;gap:12px;align-items:center}.design-rival-avatar{width:64px;height:64px;flex-shrink:0}.design-rival-person strong{font-size:17px}.design-rival-numbers{display:flex;gap:24px;margin-top:20px}.design-rival-numbers>div{display:flex;flex-direction:column;gap:4px}.design-rival-numbers strong{font-size:29px;color:#fff164}.design-rival-numbers span{font-size:12px;color:#e0edff}@media(max-width:600px){.design-rival-grid{grid-template-columns:1fr}}
#root #player-closet .hp50-jacket-art{display:block;width:68px;height:64px;flex-shrink:0;overflow:visible}
.design-insights>summary{cursor:pointer;list-style:none;font-size:21px;font-weight:700;min-height:32px}.design-insights>summary::-webkit-details-marker{display:none}.design-insights>summary>.design-paid-pill{margin-left:auto}.design-insight-chevron{font-size:24px;transition:transform .15s}.design-insights[open] .design-insight-chevron{transform:rotate(180deg)}.design-insights>summary:focus-visible{outline:2px solid #fff164;outline-offset:6px;border-radius:8px}

#root #player-closet>.profile-account-footer{order:7} #root #player-closet .design-insights{padding:12px 16px;margin:18px 0;border-radius:16px} .design-insights>summary{font-size:16px;min-height:24px} .design-insight-chevron{width:16px;height:16px;transition:transform .15s} .design-insights[open] .design-insight-chevron{transform:rotate(180deg)}

/* Switching panels starts at the profile header, without scroll anchoring. */
#root #player-closet{overflow-anchor:none!important}
#root #player-closet>.profile-top{position:static!important}
/* Override legacy mobile badge-first ordering in the live app. */
#root #player-closet.profile-flat>.profile-top{order:0!important}
#root #player-closet.profile-flat>.profile-stats{order:1!important}
#root #player-closet.profile-flat .profile-content>.profile{order:2!important}
#root #player-closet.profile-flat>.design-profile-tabs{order:3!important}
#root #player-closet.profile-flat>.house-level-card{order:4!important}
#root #player-closet.profile-flat>.shared-profile-badges{order:5!important}

#root #player-closet{scroll-margin-top:16px}
