.character-studio{--studio-ink:#143f3d;--studio-line:#d4dfd3;--studio-accent:#17635e;width:min(1400px,97vw);height:min(870px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #e3dfce;border-radius:28px;background:#f7f6ed;color:var(--studio-ink);font-family:'Trebuchet MS',Arial,sans-serif;overflow:hidden;box-shadow:0 22px 90px #12362d4d}.character-studio[open]{display:flex;flex-direction:column}.character-studio [hidden]{display:none!important}.character-studio>.studio-heading{position:static;flex:none;display:grid;grid-template-columns:170px 1fr 44px;align-items:center;gap:14px;padding:14px 22px;background:linear-gradient(110deg,#f7f4e7,#f1f5e9);border-bottom:1px solid #e5e4d6}.studio-heading>div:nth-child(2){text-align:center}.studio-wordmark{font-size:29px;font-weight:900;letter-spacing:-1.2px}.studio-wordmark b{color:#c69b37}.character-studio .studio-heading .eyebrow{margin:0 0 5px;color:#4a756b;font-size:10px;letter-spacing:3px}.character-studio .studio-heading h2{font-family:inherit;font-size:clamp(23px,2.45vw,36px);font-weight:800;margin:0;color:var(--studio-ink)}.character-studio .studio-heading>.icon-button{justify-self:end;width:40px;height:40px;border:1px solid #ccd8cc;background:#fffdf6;border-radius:50%}.character-studio #studentForm{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;overflow:hidden}.character-studio #characterCustomize:not([hidden]){flex:1;display:flex;flex-direction:column;min-height:0;padding:12px 18px 14px;gap:12px}.studio-identity{display:flex;align-items:center;gap:14px;flex:none;padding:0 6px}.studio-identity>label{font-size:12px;display:flex;align-items:center;gap:8px;flex:0 1 240px;color:#35564c}.studio-identity>label:nth-child(2){flex-basis:165px}.character-studio .studio-identity input{min-width:0;width:100%;height:38px;padding:7px 12px;border:1px solid #d7dbcd;border-radius:20px;background:#fffdf6;color:#28453b;font-size:15px;font-family:inherit}.studio-type-choices{display:flex;margin-left:auto;gap:8px;min-width:0}.studio-type-choices button{display:flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;font-weight:bold;font-size:12px;padding:4px 12px;background:#f0f2e8;border:1px solid #d6ddcf;border-radius:18px;color:#35564e;cursor:pointer;min-height:42px;white-space:nowrap}.studio-type-choices button>span:first-child{height:32px;width:37px;display:block}.studio-type-choices svg{width:100%;height:100%}.studio-type-choices button[aria-pressed=true]{background:#fdfdf6;border:2px solid var(--studio-accent);color:var(--studio-accent);padding:3px 11px;box-shadow:0 2px 9px #436b4d13}.studio-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.95fr) minmax(0,1fr);gap:14px;flex:1;min-height:0}.studio-option-panel{min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid var(--studio-line);border-radius:24px;background:linear-gradient(140deg,#f0f4e8,#fffdf6);box-shadow:0 3px 8px #294d3610;overflow:hidden;padding:12px 13px}.studio-option-panel>h3{font-family:inherit;font-size:19px;color:var(--studio-ink);margin:0 0 10px;font-weight:800;flex:none}.studio-options{min-width:0;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:0 5px 6px 0;scrollbar-width:thin;scrollbar-color:#c6d1c0 transparent;overscroll-behavior:contain}.wardrobe-group{margin:0 0 10px;min-width:0}.wardrobe-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px}.wardrobe-heading h4,.accessory-picker>h4{font-family:inherit;margin:0;font-size:13px;line-height:22px;color:#23483f;font-weight:800}.wardrobe-arrows{display:flex;gap:4px}.wardrobe-arrows button{font:22px Arial;border:1px solid #d5dccf;background:#fafaf2;border-radius:7px;color:#5b786d;padding:0;width:25px;height:24px;cursor:pointer}.wardrobe-cards{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 14px)/3);gap:7px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:2px 1px 5px;scrollbar-width:thin;scrollbar-color:#d2dccd transparent;scroll-behavior:smooth}.wardrobe-card{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 3px 4px;border-radius:13px;border:1px solid #e0e3d6;background:linear-gradient(145deg,#fffef9,#f3f3e9);color:#375347;font-family:inherit;cursor:pointer;scroll-snap-align:start;transition:background .13s,border-color .13s;box-sizing:border-box}.wardrobe-card:hover{border-color:#80a699;background:#f1f7ed}.wardrobe-card[aria-pressed=true]{border:2px solid var(--studio-accent);padding:4px 2px 3px;background:#f0f7eb;box-shadow:0 2px 6px #33554414}.wardrobe-thumb{display:flex;width:100%;height:64px;align-items:center;justify-content:center}.wardrobe-thumb svg{width:100%;height:100%;display:block}.wardrobe-label{display:block;font-size:10px;line-height:13px;min-height:25px;text-align:center;width:100%;overflow-wrap:anywhere}.wardrobe-check{position:absolute;right:3px;top:3px;width:17px;height:17px;display:grid;place-items:center;background:var(--studio-accent);color:white;border-radius:50%;font:11px Arial;font-style:normal;opacity:0}.wardrobe-card[aria-pressed=true] .wardrobe-check{opacity:1}.wardrobe-group.compact .wardrobe-thumb{height:43px}.wardrobe-group.compact .wardrobe-label{min-height:14px;font-size:9px;line-height:12px}.wardrobe-group.compact{margin-bottom:8px}.studio-palette{margin:7px 0 4px;padding:0;border:0;min-width:0}.studio-palette legend{font-family:inherit;font-size:13px;font-weight:bold;color:#23483f;padding:0 0 10px}.studio-swatches{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:3px 4px 5px}.studio-swatch{position:relative;width:35px;height:35px;flex:none;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #d4d7c6;cursor:pointer}.studio-swatch[aria-pressed=true]{outline:3px solid var(--studio-accent);outline-offset:2px}.character-studio .character-podium{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:0;overflow:hidden;border-radius:130px 130px 24px 24px;background:radial-gradient(ellipse at 50% 25%,#fffdf5,#edf2e5 65%);padding:0 5px 8px}.podium-arch{position:absolute;inset:7px 10px 25%;border:10px solid #e7d7ad60;border-radius:180px 180px 10px 10px;box-shadow:inset 0 0 0 13px #fffcf3;pointer-events:none}.podium-arch:after{content:'';position:absolute;inset:18px;border:1px solid #d8c69255;border-radius:160px 160px 0 0}.character-podium:after{content:'';position:absolute;bottom:77px;width:94%;height:19px;border-radius:50%;background:#fdf9e9;border-bottom:5px solid #dcd6bf;box-shadow:0 10px 16px #4c63431a;pointer-events:none}.character-studio .studio-preview{position:relative;z-index:1;flex:1;min-width:0;min-height:100px;width:100%;height:auto;display:flex;align-items:center;justify-content:center;cursor:grab}.character-studio .studio-preview:active{cursor:grabbing}.studio-preview canvas{display:block;width:100%;height:100%;object-fit:contain}.studio-preview svg{height:100%;width:auto;max-width:100%}.studio-rotation{position:relative;z-index:1;flex:none;display:flex;gap:10px;align-items:center;justify-content:center;width:100%;min-height:32px;color:#4a6e61;font-size:11px;text-align:center}.studio-rotation button{border:0;background:transparent;color:var(--studio-accent);font-size:31px;line-height:32px;width:40px;height:34px;cursor:pointer}.character-studio #studioViewBack{position:relative;z-index:1;font-size:11px;min-height:25px;padding:3px 12px;color:#385b50;background:transparent}.rotate-hint{font-size:9px;color:#7a8e7d;flex:none}.accessory-tabs{display:flex;gap:4px;margin:5px 0 5px;flex-wrap:wrap}.accessory-tabs button{border:1px solid #d9dfd1;border-radius:20px;background:#e9eddf;color:#456054;font:10px 'Trebuchet MS',Arial;padding:6px 7px;cursor:pointer;flex:1;white-space:nowrap}.accessory-tabs button[aria-pressed=true]{background:var(--studio-accent);border-color:var(--studio-accent);color:#fff}.accessory-picker .wardrobe-heading{display:none}.accessory-picker .wardrobe-group{margin-top:5px}.studio-actions{display:flex;align-items:center;gap:8px;flex:none;min-width:0;padding:0 3px}.character-studio .studio-actions .button{border-radius:24px;font-family:inherit;font-size:12px;min-height:40px;padding:10px 17px;white-space:nowrap}.character-studio .studio-actions #studentSubmit{margin-left:auto;min-width:130px;background:var(--studio-accent);border-color:var(--studio-accent);font-size:16px;box-shadow:0 4px 0 #1049441a}.studio-palette-note{font-size:10px;color:#8b947c;margin:auto}.studio-panel-tabs{display:none}.character-studio #characterChoice{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:0;padding:10px 16px 20px}.character-carousel{display:grid;grid-template-columns:54px minmax(0,370px) 54px;justify-content:center;align-items:center;gap:18px;width:100%;flex:1;min-height:0}.character-carousel>.character-podium{height:100%;max-height:570px}.character-carousel>button{border-radius:50%;background:#fffaf0;color:#397064;width:52px;height:52px;border:1px solid #c7d7c8;font-size:25px;cursor:pointer;box-shadow:0 4px 0 #dce6d7}.character-carousel h3{font:800 20px 'Trebuchet MS',Arial;margin:4px 0 8px;color:#264f46}.character-carousel .studio-preview{width:100%;flex:1;min-height:100px}.character-dot{width:12px;height:12px;margin:5px;background:#bccdc1;border:0;border-radius:50%;cursor:pointer}.character-dot[aria-pressed=true]{background:#2b7161;outline:2px solid #bfd3bf;outline-offset:2px}.character-studio .studio-note{font-size:12px;margin:12px;color:#5b7868}.character-studio #chooseCharacter{border-radius:24px;min-width:180px;flex:none}.character-carousel .character-podium:after{bottom:58px}.character-studio button:focus-visible{outline:3px solid #d5a62f;outline-offset:2px}
@media(max-width:1050px){.studio-identity{gap:8px}.studio-identity>label{flex-basis:190px}.studio-identity>label:nth-child(2){flex-basis:130px}.studio-type-choices{gap:4px}.studio-type-choices button{font-size:11px;padding:3px 7px}.studio-type-choices button[aria-pressed=true]{padding:2px 6px}.studio-type-choices button>span:first-child{width:24px;height:25px}.studio-columns{grid-template-columns:minmax(0,1fr) minmax(200px,.95fr) minmax(0,1fr);gap:9px}.studio-option-panel{padding:9px}.studio-palette-note{display:none}.studio-swatch{width:30px;height:30px}.studio-swatches{gap:8px}.wardrobe-thumb{height:57px}.studio-wordmark{font-size:23px}.character-studio>.studio-heading{grid-template-columns:130px 1fr 40px;padding:11px 17px}}
@media(max-height:560px) and (orientation:landscape){.character-studio{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:18px}.character-studio>.studio-heading{padding:6px 13px;grid-template-columns:110px 1fr 35px;gap:8px}.character-studio .studio-heading h2{font-size:22px}.character-studio .studio-heading .eyebrow{font-size:8px;letter-spacing:2px;margin:0 0 2px}.character-studio .studio-heading>.icon-button{width:32px;height:32px;min-width:32px;min-height:32px}.character-studio .studio-wordmark{font-size:21px}.character-studio #characterCustomize:not([hidden]){padding:7px 11px 8px;gap:7px}.studio-identity{gap:7px;padding:0}.studio-identity>label{font-size:11px;flex-basis:180px;gap:5px}.studio-identity>label:nth-child(2){flex-basis:105px}.character-studio .studio-identity input{height:31px;padding:4px 8px;font-size:14px}.studio-type-choices button{font-size:10px;min-height:31px;padding:2px 6px;gap:3px}.studio-type-choices button[aria-pressed=true]{padding:1px 5px}.studio-type-choices button>span:first-child{width:21px;height:23px}.studio-option-panel{padding:7px;border-radius:16px}.studio-option-panel>h3{font-size:14px;margin-bottom:4px}.studio-columns{grid-template-columns:minmax(0,1fr) minmax(180px,.9fr) minmax(0,1fr);gap:9px}.wardrobe-heading{margin-bottom:2px}.wardrobe-heading h4{font-size:11px;line-height:18px}.wardrobe-arrows button{width:22px;height:20px;font-size:18px}.wardrobe-group{margin-bottom:6px}.wardrobe-thumb{height:38px}.wardrobe-label{font-size:9px;line-height:11px;min-height:21px}.wardrobe-card{padding:3px 2px 2px;border-radius:10px}.wardrobe-card[aria-pressed=true]{padding:2px 1px 1px}.wardrobe-group.compact .wardrobe-thumb{height:28px}.wardrobe-group.compact .wardrobe-label{font-size:8px;line-height:10px;min-height:12px}.wardrobe-check{width:13px;height:13px;font-size:9px}.studio-palette legend{font-size:11px;padding-bottom:5px}.studio-swatches{gap:7px}.studio-swatch{width:25px;height:25px}.studio-rotation{min-height:24px;font-size:9px;gap:4px}.studio-rotation button{height:25px;width:32px;font-size:24px;line-height:25px}.character-studio #studioViewBack{font-size:9px;min-height:20px;padding:1px 5px}.rotate-hint{display:none}.character-studio .character-podium{padding-bottom:4px;border-radius:70px 70px 15px 15px}.character-podium:after{bottom:47px;height:10px;border-bottom-width:3px}.character-studio .studio-actions .button{font-size:11px;min-height:32px;padding:6px 12px}.character-studio .studio-actions #studentSubmit{font-size:13px;min-width:105px}.accessory-tabs{gap:3px;flex-wrap:wrap}.accessory-tabs button{font-size:8px;padding:4px 5px}.character-studio .studio-note{margin:6px;font-size:10px}.character-studio #characterChoice{padding:5px 15px 10px}.character-carousel{grid-template-columns:44px minmax(0,290px) 44px;gap:12px}.character-carousel>button{width:42px;height:42px}.character-carousel h3{font-size:14px;margin:0}.character-carousel .character-podium:after{bottom:35px}.character-dot{width:9px;height:9px;margin:4px}.character-studio #chooseCharacter{min-height:34px;font-size:13px;padding:6px 20px}}
@media(max-width:600px) and (orientation:portrait){.character-studio{width:calc(100vw - 10px)!important;height:calc(100dvh - 16px)!important;border-radius:20px}.character-studio>.studio-heading{grid-template-columns:1fr 34px;padding:10px 12px}.studio-wordmark{display:none}.character-studio .studio-heading>div:nth-child(2){text-align:left}.character-studio .studio-heading h2{font-size:22px}.character-studio .studio-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.character-studio #characterCustomize:not([hidden]){padding:8px;gap:6px}.studio-identity{flex-wrap:wrap;gap:6px}.studio-identity>label{flex:1 1 55%;font-size:10px;gap:5px}.studio-identity>label:nth-child(2){flex:1 1 35%}.character-studio .studio-identity input{height:32px;font-size:16px;padding:5px 9px}.studio-type-choices{width:100%;margin:0;justify-content:stretch}.studio-type-choices button{flex:1;font-size:10px;min-height:34px}.studio-type-choices button>span:first-child{width:23px;height:24px}.studio-panel-tabs{display:flex;gap:5px;flex:none}.studio-panel-tabs button{flex:1;background:#e9eddf;border:1px solid #d2ddcd;border-radius:20px;padding:7px;font:12px 'Trebuchet MS',Arial;color:#34594b}.studio-panel-tabs button[aria-pressed=true]{background:#1d6259;color:#fff;border-color:#1d6259}.studio-columns{display:flex;flex-direction:column;gap:6px;overflow:hidden}.studio-columns>.character-podium{order:-1;height:min(31dvh,260px);flex:none;width:100%;border-radius:60px 60px 18px 18px}.studio-columns .studio-rotation{min-height:23px;font-size:10px}.studio-rotation button{height:25px;font-size:24px}.character-studio #studioViewBack{display:none}.rotate-hint{display:none}.studio-columns .character-podium:after{bottom:23px;width:65%;height:9px;border-bottom-width:3px}.studio-columns .podium-arch{inset:3px 25% 10%;border-width:5px}.studio-option-panel{flex:1;min-height:0;padding:8px}.studio-option-panel>h3{display:none}.character-studio[data-studio-panel=outfit] .studio-appearance{display:none}.character-studio[data-studio-panel=appearance] .studio-outfit{display:none}.wardrobe-thumb{height:52px}.wardrobe-group.compact .wardrobe-thumb{height:38px}.studio-actions{gap:3px;padding:0}.character-studio .studio-actions .button{min-height:38px;padding:6px 9px;font-size:10px;white-space:normal}.character-studio .studio-actions #studentSubmit{min-width:82px;font-size:13px}.character-studio #newStudent{max-width:80px}.character-carousel{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px}.character-carousel>button{width:38px;height:38px;font-size:21px}.character-carousel>.character-podium{max-height:560px}.character-studio .studio-note{font-size:10px;text-align:center}.character-carousel h3{font-size:15px}}
.rejoin-request{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:#fff5d6;border:1px solid #ebd79f;border-radius:12px;margin:8px 0}.rejoin-request strong{flex:1}.member-row[data-offline=true]{opacity:.68}#rejoinStatus{position:fixed;z-index:30;left:50%;top:80px;transform:translateX(-50%);width:min(90vw,460px);padding:14px 18px;background:#fff7dd;border:1px solid #d9bd75;border-radius:12px;text-align:center;color:#4f573a;box-shadow:0 4px 20px #142e3520}.light-indoor-decoration{position:absolute;inset:5% 8% 70%;z-index:1;pointer-events:none;display:flex;align-items:center;justify-content:space-around;color:#6a8e76;font-size:26px}.light-indoor-decoration span{padding:5px 12px;background:#fcf4d9d9;border:1px solid #b4c9ab;border-radius:12px;font-size:14px;color:#446854}.session-tools .has-requests{position:relative;border-color:#d8ad47;background:#fff2c8}.session-tools .has-requests:after{content:'';position:absolute;right:3px;top:3px;width:9px;height:9px;background:#ce5d49;border:2px solid #fff;border-radius:50%}

body[data-device=phone] .character-studio{width:min(1400px,calc(100vw - 16px));height:min(870px,calc(var(--app-height,100dvh) - 24px));max-height:calc(var(--app-height,100dvh) - 20px)}

.wardrobe-thumb img{display:block;width:100%;height:100%;object-fit:contain}

/* v47: a furnished dressing room frames both live 3D previews. */
.character-studio{background:linear-gradient(#f9f7efed,#eef2e7ed),url('./assets/studio-adventure-room-v51.webp') center/cover}
.character-studio .character-podium{border:1px solid #d8cba6;border-radius:26px;background:linear-gradient(#ffffff05,#ffffff0a),url('./assets/studio-adventure-room-v51.webp') center/cover;box-shadow:inset 0 0 40px #fff9e538;padding-top:10px}
.character-studio .podium-arch,.character-studio .character-podium:after{display:none}
.studio-rotation,.character-carousel h3,.character-studio #studioViewBack{background:#f9f7eadc;border-radius:20px;padding:2px 10px;box-shadow:0 1px 8px #fff9e599}
.character-studio .studio-preview{filter:drop-shadow(0 8px 7px #34503a24)}
.led-settings>p{max-width:70ch;color:#527269}.led-enable{display:flex;gap:8px;align-items:center;margin:12px 0}.led-enable input{width:20px;height:20px}.led-playlist-row{display:flex;gap:8px;align-items:center;padding:12px;margin:10px 0;border:1px solid #d0ddd4;border-radius:14px;background:#f7f9f1}.led-playlist-row strong{flex:1;min-width:0;overflow-wrap:anywhere}.led-playlist-row button{flex:none;padding:7px 10px;border:1px solid #cbd8d0;border-radius:10px;background:#fffdf4;color:#254e45;cursor:pointer}.led-playlist-row button:disabled{opacity:.4;cursor:default}#ledTeacherPreview{width:min(100%,680px);max-height:360px;background:#09141c;margin:12px 0}#ledWorldControls{position:fixed;bottom:94px;left:50%;transform:translateX(-50%);z-index:15;max-width:min(85vw,650px);padding:7px 11px;display:flex;align-items:center;gap:8px;border-radius:14px;background:#102f2ad9;color:#fff6df;font-size:11px;backdrop-filter:blur(8px)}#ledWorldControls[hidden]{display:none}#ledWorldControls button{white-space:nowrap;border:1px solid #b6cbb7;background:#f8f5e7;color:#204e42;border-radius:12px;padding:7px 10px;cursor:pointer}#ledNowPlaying{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.light-led-frame{position:absolute;top:15%;left:4%;width:34%;aspect-ratio:16/9;background:#07111a;border:8px solid #243a39;box-shadow:0 2px 0 2px #c6ad69;z-index:2;pointer-events:none}.light-led-frame img{width:100%;height:100%;object-fit:contain}.light-led-frame:after{content:'';position:absolute;left:12%;right:12%;top:100%;height:9vh;border-left:6px solid #263c38;border-right:6px solid #263c38;z-index:-1}.light-hall-banner{position:absolute;width:52%;height:auto;max-height:29%;object-fit:contain;left:24%;top:12%;z-index:1;pointer-events:none}
@media(max-width:600px){.led-playlist-row{gap:4px;flex-wrap:wrap}.led-playlist-row strong{flex-basis:100%}#ledWorldControls{bottom:118px;max-width:92vw;font-size:10px;padding:5px 7px}#ledNowPlaying{max-width:100px}#ledWorldControls button{font-size:10px;padding:6px}.character-studio .character-podium{border-radius:20px;padding-top:0}}
.light-audience-seating{position:absolute;inset:55% 0 0;overflow:hidden;background:linear-gradient(#cbbb9d,#decfb0);z-index:1;pointer-events:none}.light-audience-seating:before{content:'';position:absolute;inset:0 39%;background:linear-gradient(#a5564a,#894139);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%)}.light-audience-seating[data-view=stage]{top:35%;bottom:18%;background:linear-gradient(#b78961,#dbad7b)}.light-audience-seating[data-view=stage]:before{background:linear-gradient(#c69c70,#e6b983)}.light-spectator{position:absolute;transform:translateX(-50%);filter:drop-shadow(0 2px 1px #27403528)}.light-spectator svg{display:block;width:100%;height:auto}.light-spectator:before{content:'';position:absolute;left:23%;right:23%;bottom:20%;height:36%;background:#567b69;border-radius:12px 12px 4px 4px;border:2px solid #bfb58e;z-index:-1}.light-audience-seating[data-view=hall] .light-spectator:after{content:'';position:absolute;left:23%;right:23%;bottom:19%;height:30%;border-radius:10px 10px 3px 3px;background:linear-gradient(#72917b,#476e5b);border:2px solid #c3b991}.light-audience-seating.empty .light-spectator svg{visibility:hidden}.light-peers{z-index:2}
