#wardrobeLayer{position:fixed;inset:0;z-index:35;display:grid;place-items:center;grid-template-columns:minmax(0,1fr);padding:24px;background:#142035b3;backdrop-filter:blur(10px)}
#wardrobePanel{width:min(940px,calc(100vw - 48px));max-width:100%;min-width:0;max-height:94dvh;overflow:auto;overscroll-behavior:contain;border-radius:22px;background:#f7f5ee;color:#1d2843;box-shadow:0 35px 110px #06102266;border:1px solid #fff9;position:relative}
.wardrobe-heading{display:flex;justify-content:space-between;align-items:flex-start;padding:26px 30px 20px;border-bottom:1px solid #1d284315;gap:15px}.wardrobe-heading .eyebrow{font-size:9px;color:#6b7484}.wardrobe-heading h2{font:800 46px/.95 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.8px;margin:7px 0 0}.wardrobe-heading h2 em{color:#f16448;font-style:normal}
#closeWardrobe{width:34px;height:34px;border-radius:50%;background:#e7e7de;font-size:25px;flex-shrink:0}.wardrobe-body{display:grid;grid-template-columns:43% 57%}
.character-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:430px;background:radial-gradient(ellipse at 50% 43%,#fcfaf0 0%,#dfe8dd 62%,#c6d7cf 100%);overflow:hidden;border-right:1px solid #1d284310;padding:20px}
.preview-label{position:absolute;top:18px;left:20px;font-size:8px;font-weight:800;letter-spacing:1.8px;color:#5c776e}.preview-label::before{content:'●';color:#699f82;margin-right:6px}#characterPreview{display:block;width:100%;height:310px;touch-action:none;cursor:grab}#characterPreview:active{cursor:grabbing}
.character-title{font:800 40px/1 'Barlow Condensed',Impact,sans-serif;margin:0}.character-description{font-size:11px;color:#586e67;line-height:1.65;max-width:245px;text-align:center;min-height:36px;margin:8px 0}.rotate-character{border:1px solid #56756833;border-radius:25px;background:#f7f5ee9c;font-size:10px;padding:8px 14px;font-weight:700}
.wardrobe-controls{padding:22px 26px;display:grid;gap:17px}.wardrobe-group{border:0;padding:0;margin:0;min-width:0}.wardrobe-group legend{font-size:9px;letter-spacing:1.2px;font-weight:800;margin-bottom:9px}.wardrobe-group legend span{color:#899184;margin-right:8px}.choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.cosmetic-choice{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;min-width:0;padding:9px 3px;background:#eceee6;border:1px solid #27374c15;border-radius:10px;min-height:59px;color:#616e76;transition:background .15s,transform .15s}.cosmetic-choice:hover{transform:translateY(-2px)}.cosmetic-choice b{font-size:10px;font-weight:800}.cosmetic-choice small{font-size:8px;color:#6d7a7f}.choice-icon{font-size:22px;line-height:1;color:#75958a}.cosmetic-choice[aria-pressed=true]{border:2px solid #ec7558;background:#fff5e8;padding:8px 2px;color:#233149;box-shadow:0 3px 0 #ec75581a}.cosmetic-choice[aria-pressed=true] .choice-icon{color:#e06c4f}.accessory-grid .cosmetic-choice{min-height:49px;flex-direction:row;gap:7px}.accessory-grid .choice-icon{font-size:18px}.color-choices{display:flex;gap:10px;flex-wrap:wrap}.color-swatch{width:36px;height:36px;border-radius:50%;background:var(--swatch);border:3px solid #f7f5ee;box-shadow:0 0 0 1px #1d284321;display:grid;place-items:center}.color-swatch span{visibility:hidden;color:#26374c;font-weight:900;font-size:16px}.color-swatch[aria-pressed=true]{box-shadow:0 0 0 2px #27374c;transform:scale(1.08)}.color-swatch[aria-pressed=true] span{visibility:visible}#neckChoices{grid-template-columns:repeat(3,minmax(0,1fr))}
.wardrobe-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 28px 22px;border-top:1px solid #1d284315}.wardrobe-summary{min-width:0;flex:1}.wardrobe-summary strong{display:block;font-size:10px;line-height:1.6}.wardrobe-summary small{display:block;font-size:9px;color:#738077;margin-top:3px}.wardrobe-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.wardrobe-back{background:transparent;font-size:10px;color:#6b7780;text-decoration:underline;text-underline-offset:4px}.wardrobe-actions .primary{font-size:10px;padding:14px 17px}
.lobby-look{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 14px;margin:0 0 18px;border-radius:9px;background:#e8ece1}.lobby-look>div{font-size:10px;font-weight:800;line-height:1.7}.lobby-look small{display:block;font-size:8px;font-weight:500;color:#6b7d76}.lobby-look button{background:#f7f5ee;border:1px solid #27374c22;padding:8px 11px;border-radius:6px;font-size:9px;font-weight:800;white-space:nowrap}.roster-row{align-items:center;gap:10px}.roster-row b{flex:1}.roster-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--avatar);color:#26374c;border:2px solid #fff;font-size:17px}.roster-details{display:flex;flex-direction:column;gap:3px;flex:1}.roster-details span{font-size:9px;color:#68796e}
@media(max-width:700px){#wardrobeLayer{padding:10px}#wardrobePanel{width:calc(100vw - 20px);border-radius:16px;max-height:96dvh}.wardrobe-heading{padding:18px 18px 14px}.wardrobe-heading h2{font-size:34px}.wardrobe-body{grid-template-columns:1fr}.character-stage{min-height:245px;padding:12px;display:grid;grid-template-columns:54% 46%;grid-template-rows:auto auto auto;border-right:0}.preview-label{font-size:7px;top:12px;left:14px}#characterPreview{grid-row:1/4;width:100%;height:245px}.character-title{font-size:32px;align-self:end;text-align:left}.character-description{text-align:left;font-size:10px;align-self:start;min-height:0;margin-right:12px}.rotate-character{justify-self:start;align-self:start;font-size:9px}.wardrobe-controls{padding:18px;gap:16px}.wardrobe-bottom{padding:16px 18px 20px;flex-wrap:wrap;gap:12px}.wardrobe-actions{width:100%;justify-content:space-between}.wardrobe-actions .primary{min-width:65%;text-align:center}.wardrobe-summary strong{font-size:9px}.wardrobe-summary small{font-size:8px}.cosmetic-choice b{font-size:10px}.accessory-grid .cosmetic-choice{gap:3px}.accessory-grid b{font-size:9px}}
.preview-motions{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;width:100%;margin-top:12px;grid-column:1/-1}.preview-motions button{border:1px solid #56756840;background:#f7f5eeab;border-radius:6px;padding:8px 10px;font-size:8px;font-weight:800}.preview-motions button[aria-pressed=true]{background:#27374c;color:#fff;border-color:#27374c}.preview-motions small{font-size:8px;color:#53695f;line-height:1.6;text-align:center;width:100%;min-height:13px}.character-stage{padding-bottom:16px}
.custom-swatch{background:conic-gradient(#f27655,#e7be56,#83c6a4,#70a9b8,#c7b0e7,#f27655);color:#233149;font-size:23px;font-weight:700}.custom-swatch[aria-pressed=true]{background:var(--custom);box-shadow:0 0 0 2px #27374c}.custom-color-fields{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.custom-color-fields label{font-size:9px;font-weight:600;color:#68796e;letter-spacing:0}#customColorInput{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;padding:0;margin:0}#customColorHex{width:96px;padding:6px 8px;margin:0;font-size:10px;font-family:monospace;border-radius:6px}#customColorHex[aria-invalid=true]{border-color:#c3523f}
@media(max-height:800px) and (min-width:701px){#characterPreview{height:230px}.character-stage{min-height:0;padding:16px}.character-title{font-size:32px}.character-description{min-height:28px;font-size:10px;margin:5px 0}.rotate-character{padding:6px 12px}.preview-motions{margin-top:9px}.wardrobe-heading{padding:20px 26px 16px}.wardrobe-heading h2{font-size:40px}.wardrobe-controls{padding:18px 22px;gap:12px}.wardrobe-bottom{padding:15px 24px 18px}}
@media(prefers-reduced-motion:reduce){.cosmetic-choice,.color-swatch{transition:none}.cosmetic-choice:hover{transform:none}}

#characterChoices{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:380px){#characterChoices{grid-template-columns:repeat(3,minmax(0,1fr))}}
