/* A full-screen, pause-safe wardrobe with a permanent character stage. */
#wardrobe-screen{position:fixed;inset:0;z-index:30;background:#0a1717f5;display:grid;place-items:center;padding:20px;color:#eef2e6;text-transform:none}
.wardrobe-shell{width:min(1220px,100%);height:min(850px,calc(100dvh - 40px));display:flex;flex-direction:column;border:1px solid #58715d;border-radius:20px;background:#172b26;box-shadow:0 25px 100px #0006;overflow:hidden}
.wardrobe-header{display:flex;justify-content:space-between;align-items:center;padding:22px 28px 16px;gap:14px}
.wardrobe-header .eyebrow{font-size:12px;color:#bed58a;letter-spacing:.10em}.wardrobe-header h2{margin:5px 0 0;font-size:clamp(26px,3vw,38px);letter-spacing:-.045em;line-height:1.05}
#wardrobe-screen button{border:1px solid #547164;background:#233e34;color:#eef2e6;border-radius:9px;padding:10px 12px;font-size:14px;line-height:1.2;text-transform:none;min-height:40px;transition:background .12s,border-color .12s}
#wardrobe-screen button:hover{background:#355143;border-color:#b1c788}#wardrobe-screen button[aria-pressed=true]{background:#d5ec93;border-color:#d5ec93;color:#183126;font-weight:700}
#wardrobe-screen button:focus-visible,#wardrobe-screen .pad-focus{outline:3px solid #f0d695;outline-offset:2px;position:relative;z-index:1}
#wardrobe-cancel{width:42px;height:42px;font-size:22px!important}
.wardrobe-players{display:flex;gap:8px;padding:0 28px 18px}.wardrobe-players button{flex:1;text-align:left;display:flex;align-items:center;gap:12px;border-left:4px solid var(--seat)!important;font-weight:800}.wardrobe-players span{font-size:12px;letter-spacing:.06em;font-weight:500}
.wardrobe-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.15fr);border-top:1px solid #466455}
.wardrobe-stage{display:flex;flex-direction:column;position:relative;min-height:0;background:radial-gradient(ellipse at 50% 37%,#e3e5d1 0%,#a8b7a5 48%,#789280 100%);color:#203c30;padding:18px 22px;border-right:1px solid #466455}
.wardrobe-stage-title{display:flex;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:.07em;gap:8px;pointer-events:none}
#wardrobe-canvas{display:block;width:100%;flex:1;min-height:100px;touch-action:none;cursor:grab}#wardrobe-canvas:active{cursor:grabbing}
.wardrobe-camera{display:flex;justify-content:center;gap:8px;margin-top:-15px;z-index:1}.wardrobe-camera button{background:#244c37e3!important;border-color:#406347!important;color:#fff!important}
.wardrobe-stage>p{font-size:10px;letter-spacing:.08em;text-align:center;margin:9px 0 14px}
#wardrobe-random{display:flex;align-items:center;justify-content:space-between;background:#233c2f!important;font-weight:800;font-size:15px!important;padding:13px 17px!important}
#wardrobe-random span{color:#e4ec99;font-size:24px}.wardrobe-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:9px}.wardrobe-presets button{font-size:12px!important;min-height:36px!important;padding:7px!important;background:#eff1dea6!important;color:#263e30!important;border-color:#48634b66!important}
.wardrobe-controls{min-height:0;display:flex;flex-direction:column}.wardrobe-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:16px 22px;border-bottom:1px solid #456053}.wardrobe-tabs button{padding:10px 4px!important}
#wardrobe-options{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:22px;scrollbar-color:#99b67b #172b26;touch-action:pan-y}
#wardrobe-options fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}#wardrobe-options legend{font-weight:700;font-size:16px;margin:0 0 12px}.avatar-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.avatar-choices button{min-height:44px!important}.avatar-choices span{overflow-wrap:anywhere}.avatar-colors{grid-template-columns:repeat(4,minmax(0,1fr))}.avatar-colors button{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px!important;padding:9px 4px!important}.avatar-colors i{width:30px;height:30px;border-radius:50%;display:block;border:1px solid #ffffff55;box-shadow:inset 0 1px 3px #ffffff44,0 2px 4px #0004}
.wardrobe-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 28px;border-top:1px solid #466455;background:#14251f}.wardrobe-footer strong{font-size:14px;display:block}.wardrobe-footer small{display:block;margin-top:6px;font-size:10px;letter-spacing:.04em;color:#b5c5ac}#wardrobe-save{background:#d5ec93!important;color:#1d3827!important;font-weight:800;min-width:180px;padding:16px!important}
body.wardrobe-open>.topbar,body.wardrobe-open>#hud,body.wardrobe-open>#team-hud{visibility:hidden}
#wardrobe-status:empty, #avatar-seed-feedback:empty{display:none}
.wardrobe-tabs .wardrobe-seed-tab{grid-column:1/-1}
.avatar-seed-card{max-width:100%;font-size:14px;line-height:1.5}
.avatar-seed-card h3{font-size:22px;line-height:1.2;margin:0 0 10px;letter-spacing:-.025em}
.avatar-seed-card p{color:#c8d7bf;margin:8px 0 20px}
.avatar-seed-card label{display:block;font-size:13px;font-weight:700;letter-spacing:.04em;margin-bottom:8px}
.avatar-seed-row{display:flex;gap:8px;align-items:stretch;min-width:0}
#wardrobe-screen .avatar-seed-row input{min-width:0;flex:1;width:100%;border:1px solid #64856d;border-radius:8px;background:#0e201b;color:#edf5d4;font:15px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;padding:12px 10px;text-transform:none;letter-spacing:.02em}
#wardrobe-screen .avatar-seed-row input:focus-visible{outline:3px solid #f0d695;outline-offset:2px}
.avatar-seed-row button{flex-shrink:0}
#avatar-seed-note{font-size:13px;margin:7px 0 0}
.avatar-seed-restore{margin-top:24px;padding-top:22px;border-top:1px solid #466455}
#avatar-seed-load{width:100%;margin-top:10px;color:#d5ec93!important;font-weight:700}
#avatar-seed-feedback{min-height:3em;margin-bottom:0}
#avatar-seed-feedback.seed-error{color:#ffbdab}
#wardrobe-screen input[aria-invalid=true]{border-color:#ffbdab}
@media(max-width:420px){.avatar-seed-row{flex-wrap:wrap}.avatar-seed-row input{flex-basis:100%!important}.avatar-seed-row button{width:100%}.avatar-seed-card h3{font-size:19px}}
.outfit-save-confirmation{font-size:14px;line-height:1.4;color:#d5ec93;margin:0 0 12px;text-transform:none;letter-spacing:normal}
#wardrobe-screen button:disabled{opacity:.6;cursor:wait}
.avatar-entry{margin:8px 0;min-height:40px;padding:10px 18px;background:#31462f;border:1px solid #9cb277;color:#eef3dd;border-radius:8px;font-size:12px;letter-spacing:.04em}
@media(max-width:760px){#wardrobe-screen{padding:0}.wardrobe-shell{height:100dvh;max-height:none;border-radius:0;border:0}.wardrobe-header{padding:12px 14px 10px}.wardrobe-header h2{font-size:27px}.wardrobe-header .eyebrow{font-size:10px}.wardrobe-players{padding:0 14px 10px;gap:6px}.wardrobe-players span{display:none}.wardrobe-players button{justify-content:center;min-height:34px!important;padding:7px!important}.wardrobe-body{grid-template-columns:1fr;grid-template-rows:34% 66%}.wardrobe-stage{padding:9px 14px;border-right:0;border-bottom:1px solid #466455}.wardrobe-stage-title{font-size:9px}.wardrobe-stage>p,.wardrobe-presets{display:none}#wardrobe-canvas{min-height:40px}.wardrobe-camera{position:absolute;bottom:9px;left:12px;margin:0;gap:4px}.wardrobe-camera button{font-size:11px!important;min-height:32px!important;padding:7px!important}#wardrobe-random{position:absolute;right:12px;bottom:9px;min-height:32px!important;padding:5px 10px!important;font-size:11px!important;gap:9px}#wardrobe-random span{font-size:17px}.wardrobe-tabs{grid-template-columns:repeat(3,1fr);padding:9px 12px;gap:5px}.wardrobe-tabs button{min-height:33px!important;padding:7px 3px!important;font-size:12px!important}#wardrobe-options{padding:14px}.avatar-choices{gap:6px}#wardrobe-options fieldset{margin-bottom:20px}.wardrobe-footer{padding:10px 12px;gap:9px}.wardrobe-footer strong{font-size:11px}.wardrobe-footer small{display:none}#wardrobe-save{min-width:135px;padding:12px!important;font-size:12px!important}}
@media(max-height:620px) and (min-width:761px){#wardrobe-screen{padding:6px}.wardrobe-shell{height:calc(100dvh - 12px)}.wardrobe-header{padding:10px 20px}.wardrobe-header h2{font-size:25px}.wardrobe-players{padding-bottom:10px}.wardrobe-presets,.wardrobe-stage>p{display:none}.wardrobe-footer{padding:10px 20px}.wardrobe-tabs{padding:10px}.wardrobe-stage{padding:12px}}

.wardrobe-mobile-presets{display:none}
@media(max-width:760px){.wardrobe-mobile-presets{display:block;margin:0 12px;border-bottom:1px solid #466455}.wardrobe-mobile-presets summary{font-size:11px;padding:8px 0;cursor:pointer;color:#d5ec93}.wardrobe-mobile-presets .wardrobe-presets{display:grid;margin:0 0 8px}.wardrobe-mobile-presets[open]{flex-shrink:0}}

/* Skin tones lead the Body controls, with visible samples and a selection mark. */
#wardrobe-screen .avatar-skin-tones button{position:relative;padding:10px 6px!important}
.avatar-skin-tones i{width:min(100%,64px);height:34px;border-radius:7px}
.avatar-skin-tones button[aria-pressed=true] i::after{content:'✓';display:grid;place-items:center;width:20px;height:20px;margin:6px auto;background:#172b26;color:#fff;border:1px solid #fff;border-radius:50%;font:700 13px/1 Arial,sans-serif}
