body.studio-mode{overflow:hidden;background:#0c0e12}body.studio-mode>.topbar,body.studio-mode>footer{display:none}body.studio-mode #app{height:100vh}.studio{--accent:#ff774d;--lime:#d5fa5b;height:100vh;display:grid;grid-template-rows:66px 1fr;font-size:12px;color:#e5e7ef}.studio button,.studio input,.studio select{font-size:12px}.studio .btn{padding:9px 13px;border-radius:7px}.studio .btn.primary{background:#ff774d;border-color:#ff774d;color:#1e1210}.studio-head{background:#15171d;border-bottom:1px solid #30323c;display:flex;align-items:center;justify-content:space-between;padding:0 23px;gap:20px}.studio-brand{font-size:19px;font-weight:750;letter-spacing:-.6px;display:flex;gap:10px;align-items:center}.studio-brand b{color:#ff774d;font-size:25px}.studio-head .game-select{width:200px;margin:0;background:#23262f}.studio-head-left,.studio-head-right{display:flex;align-items:center;gap:18px}.studio-head .small-pill{background:#242730;border:1px solid #343844;border-radius:5px;color:#b9c1cc;padding:6px 10px}.studio-grid{display:grid;grid-template-columns:300px minmax(300px,1fr) 300px;min-height:0}.studio-left,.studio-right{background:#13151b;overflow:auto;scrollbar-width:thin;scrollbar-color:#373b48 transparent}.studio-left{border-right:1px solid #2a2d36}.studio-right{border-left:1px solid #2a2d36}.studio-pane-title{display:flex;justify-content:space-between;align-items:center;padding:20px 18px 12px;font-size:11px;font-weight:700;letter-spacing:1.3px;color:#b0b6c5;text-transform:uppercase}.studio-pane-title span{color:#ff966d;font-size:10px;letter-spacing:0}.studio-hint{padding:0 18px;font-size:11px;color:#8c95a6;line-height:1.6}.rule-card{margin:0 12px 12px;padding:14px;background:#1c1f27;border:1px solid #2c303b;border-radius:10px}.rule-heading{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;margin-bottom:15px}.rule-heading .rule-icon{width:27px;height:27px;display:grid;place-items:center;background:#31303a;border-radius:7px}.rule-heading input{margin:0 0 0 auto;width:30px;height:17px;accent-color:#ff774d}.rule-controls label{font-size:10px;color:#969eaf;display:block;margin-top:10px}.rule-controls input,.rule-controls select{padding:8px 10px;margin-top:5px;background:#111319;border-color:#313643;height:36px}.rule-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rule-test{margin-top:12px;width:100%;border:1px solid #3b414f;border-radius:6px;background:#252a34;color:#ddd;padding:7px;font-size:11px!important}.rule-test:hover{background:#343b47}.rule-footer{display:flex;justify-content:space-between;margin-top:12px}.rule-footer button{border:0;background:none;color:#e49172;padding:3px 0;font-size:10px}.rule-footer .delete-rule{color:#8e98aa}.studio-save{padding:15px;position:sticky;bottom:0;background:#13151bf0;border-top:1px solid #30333d;backdrop-filter:blur(10px)}.studio-save .btn{width:100%}.stage-area{position:relative;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 30px 16px;background-color:#0b0d12;background-image:linear-gradient(45deg,#11141a 25%,transparent 25%),linear-gradient(-45deg,#11141a 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#11141a 75%),linear-gradient(-45deg,transparent 75%,#11141a 75%);background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0}.portrait-stage{height:calc(100vh - 156px);max-width:100%;aspect-ratio:9/16;background:#34241e;border:1px solid #5a4336;border-radius:13px;position:relative;overflow:hidden;box-shadow:0 28px 60px #0008}.portrait-stage canvas{width:100%;height:100%;display:block}.stage-hud{position:absolute;top:16%;left:4%;right:4%;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.score-tile{background:#fff8e9;color:#322217;border-radius:10px;border-bottom:4px solid #edb347;padding:10px 14px;text-align:center;min-width:70px;height:max-content;box-shadow:0 4px 14px #0002}.score-tile small{display:block;font-size:9px;letter-spacing:1px;font-weight:700;color:#9a704b}.score-tile strong{display:block;font-size:31px;line-height:1.1;letter-spacing:-1px}.score-tile span{font-size:10px;font-weight:800;color:#df525e}.stage-legend{background:#261c1c77;border:1px solid #ffffff20;border-radius:8px;padding:8px;backdrop-filter:blur(5px);max-width:145px;height:max-content}.stage-legend div{font-size:9px;margin:4px 0;font-weight:700;text-shadow:0 1px 3px #000;color:white}.stage-legend b{margin-right:5px;font-size:13px}.scene-status{position:absolute;left:4%;right:4%;top:12px;display:flex;justify-content:space-between;align-items:center}.scene-status .tag{font-size:8px;letter-spacing:1px;background:#0f141db8}.scene-status .status-light{font-size:9px;letter-spacing:.5px;color:#ddd;background:#151419b0;border-radius:5px;padding:5px 8px}.scene-status .status-light.real{background:#1d513c;color:#d5ffde}.stage-event{position:absolute;left:5%;right:5%;bottom:5%;padding:13px 12px;background:#231815bb;border:1px solid #ffe4bc25;border-radius:9px;text-align:center;font-size:12px;backdrop-filter:blur(10px)}.stage-event small{display:block;color:#d9c1a7;font-size:9px;margin-bottom:4px}.stage-error{position:absolute;inset:35% 8%;height:max-content;background:#151923ee;border:1px solid #565e6f;border-radius:12px;padding:20px;z-index:5}.stage-error h3{font-size:20px;margin:0 0 10px}.stage-error p{font-size:12px;margin:0}.stage-controls{display:flex;gap:8px;margin-top:12px;align-items:center}.stage-controls .btn{padding:7px 12px;background:#1c202a;font-size:11px}.stage-controls .hint{font-size:10px;color:#7f8999;margin-left:5px}.connect-card{padding:16px;border-bottom:1px solid #2a2d36}.connect-card h3{font-size:16px;letter-spacing:-.4px;margin:0 0 12px}.connect-card .input-wrap{display:flex;align-items:center;background:#0e1117;border:1px solid #3d4351;border-radius:8px;padding:0 11px}.connect-card .input-wrap span{color:#7f8ba0}.connect-card .input-wrap input{border:0;background:none;padding:10px 6px;margin:0}.connect-card .btn{margin-top:10px;width:100%}.live-status{font-size:10px;line-height:1.7;color:#aeb9c8;margin:10px 0 0;min-height:33px}.live-status.connected{color:#9be0ab}.provider-notice{font-size:10px;line-height:1.5;color:#798597;margin:8px 0 0}.verified-row{color:#92d9a7;font-size:11px;margin-bottom:9px}.studio-right details{border-bottom:1px solid #30333d;padding:12px 16px}.studio-right summary{font-size:11px;color:#b2bccd;cursor:pointer;font-weight:650}.music-list{display:flex;flex-direction:column;gap:5px;margin-top:9px;max-height:150px;overflow:auto}.music-item{display:flex;gap:7px;align-items:center;color:#c4cbd6;padding:8px;border:1px solid #303744;background:#20252f;border-radius:6px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.music-item.active{border-color:#ff774d;color:#ffb293}.studio audio{width:100%;height:32px;margin:10px 0}.studio-right input[type=file]{font-size:10px;padding:8px}.right-tabs{display:flex;border-bottom:1px solid #30343e;padding:0 10px}.right-tabs button{flex:1;color:#8d99ae;border:0;border-bottom:2px solid transparent;background:none;padding:14px 3px;font-size:10px}.right-tabs button.active{color:#ffad88;border-bottom-color:#ff774d}.live-feed{padding:12px;min-height:150px;max-height:34vh;overflow:auto}.feed-empty{display:grid;place-items:center;text-align:center;min-height:140px;color:#687489;font-size:11px;padding:18px}.feed-item{display:flex;gap:9px;border-bottom:1px solid #252c37;padding:10px 0;font-size:11px}.avatar-dot{flex-shrink:0;display:grid;place-items:center;width:28px;height:28px;background:#353647;border-radius:50%;color:#dcc9b9;font-weight:700}.feed-item strong{font-size:11px;color:#d4dbe5}.feed-item p{font-size:10px;color:#97a6bb;margin:1px 0}.feed-item.demo{opacity:.7}.studio-stats{display:flex;gap:7px;padding:10px 16px;border-bottom:1px solid #30343e;font-size:10px;color:#9daabf;justify-content:space-between}.studio-stats strong{color:#eef1f5}.gift-catalog{max-height:120px;overflow:auto;font-size:10px;color:#a2b1c3;padding:8px 0}.gift-catalog button{display:block;width:100%;text-align:left;border:0;background:#222834;padding:8px;margin-top:4px;color:#e7c7b2}.connection-error{color:#ffaf96!important}.studio-settings-wrap{max-width:1000px;margin:0 auto;padding:40px 25px}.studio-settings-wrap h1{font-size:38px}.studio-settings-wrap .panel{margin-bottom:20px}.studio-settings-wrap p{font-size:13px}.studio-mobile-bar{display:none}
@media(min-width:1600px){.studio-grid{grid-template-columns:330px 1fr 330px}.portrait-stage{height:calc(100vh - 148px)}}
@media(max-width:1050px){.studio-grid{grid-template-columns:245px 1fr 255px}.stage-area{padding:12px}.portrait-stage{height:auto;width:100%;max-height:calc(100vh - 155px)}.studio-head{padding:0 15px;gap:10px}.studio-head-left,.studio-head-right{gap:10px}.studio-head .game-select{width:165px}.studio-brand{font-size:16px}.stage-controls .hint{display:none}.stage-hud{top:13%}.stage-legend{max-width:110px}.stage-legend div{font-size:8px}.score-tile{padding:8px;min-width:53px}.score-tile strong{font-size:25px}}
@media(max-width:760px){body.studio-mode{overflow:auto}.studio{height:auto;min-height:100vh;grid-template-rows:60px 1fr}.studio-head{position:sticky;top:0;z-index:8;padding:0 10px;flex-wrap:wrap}.studio-brand{font-size:13px}.studio-brand b{font-size:19px}.studio-head .game-select{width:145px;font-size:11px}.studio-head-right .small-pill{display:none}.studio-head-right .btn{font-size:10px;padding:7px}.studio-grid{display:flex;flex-direction:column}.stage-area{order:0;padding:16px}.portrait-stage{width:min(100%,380px);height:auto;max-height:none;min-height:540px}.studio-right{order:1;border:0;overflow:visible}.studio-left{order:2;border:0;overflow:visible}.studio-save{position:static}.studio-left .rule-card{margin:0 16px 14px}.studio-head-left{gap:8px}.stage-controls{flex-wrap:wrap}.studio-stats{justify-content:center;gap:30px}.live-feed{max-height:250px}.stage-hud{top:16%}.stage-legend{max-width:150px}.stage-legend div{font-size:10px}.score-tile{padding:12px}.score-tile strong{font-size:32px}}
.music-source{display:grid;gap:6px;margin:8px 0}.music-source label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;padding:8px;border:1px solid rgba(0,0,0,.1);border-radius:10px;background:#fff;cursor:pointer}
.music-source label small{flex-basis:100%;opacity:.6;margin-left:22px}.music-source label.locked{opacity:.6;cursor:not-allowed}
.yt-wrap{aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000;margin:6px 0}.yt-wrap .yt-music,.yt-wrap iframe{width:100%;height:100%;border:0}

#legend:empty,.stage-legend:empty{display:none!important}
