:root{color:#e9f3f5;font-synthesis:none;background:#080b12;font-family:Inter,Avenir Next,Avenir,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:2px solid #64f7ef}button{color:#e9f3f5;background:#16202b;border:1px solid #34404b;border-radius:10px;min-height:44px;padding:10px 14px}button:hover:not(:disabled){background:#1b2c37;border-color:#70ddd9}input,select{color:#e8f3f5;background:#131d27;border:1px solid #34404b;border-radius:8px;min-height:40px;padding:7px 10px}input[type=range]{accent-color:#68ece6;width:100%;min-height:25px;padding:0}input[type=color]{width:100%;height:45px;padding:3px}input[type=checkbox]{accent-color:#65e9e3;width:20px;height:20px;min-height:20px}.app{background:radial-gradient(circle at 65% -10%,#142230 0,#0000 34%),#080b12;min-height:100vh}.topbar{border-bottom:1px solid #202b35;justify-content:space-between;align-items:center;height:78px;padding:0 clamp(18px,4vw,64px);display:flex}.brand{align-items:center;gap:12px;display:flex}.brand-mark{color:#68f5ed;border:1px solid #4ec9c4;border-radius:12px;place-items:center;width:41px;height:41px;font-size:25px;display:grid;box-shadow:0 0 22px #55e6df25}.brand b{letter-spacing:-.04em;font-size:19px}.brand em{color:#72eae3;font-style:normal}.brand small{color:#758e98;letter-spacing:.24em;margin-top:2px;font-size:9px;font-weight:700;display:block}.top-actions{align-items:center;gap:12px;display:flex}.online-dot{background:#68ead4;border-radius:50%;width:7px;height:7px;display:block;box-shadow:0 0 12px #68ead4}.runtime-label,.eyebrow{letter-spacing:.2em;color:#76aab5;font-size:10px;font-weight:800}.quiet{color:#afc5cc;background:0 0;border-color:#0000}.workspace{grid-template-columns:minmax(0,1fr) minmax(340px,420px);gap:32px;max-width:1480px;margin:auto;padding:34px clamp(18px,4vw,64px) 60px;display:grid}.workspace:not(:has(.studio-panel)){grid-template-columns:1fr}.play-area{min-width:0}.play-heading{justify-content:space-between;align-items:end;gap:18px;margin-bottom:24px;display:flex}.play-heading h1{letter-spacing:-.055em;margin:8px 0 7px;font-size:clamp(32px,4vw,54px);font-weight:760;line-height:1.05}.play-heading .eyebrow{margin:0}.eyebrow span{color:#586e78}.intro{color:#91a8b0;margin:0;font-size:13px}.mode-switch{white-space:nowrap;background:#111a24;border:1px solid #27333e;border-radius:12px;padding:4px;display:flex}.mode-switch button{color:#9dafb6;background:0 0;border:0;min-height:38px;font-size:13px}.mode-switch button.active{color:#09202b;background:#59e3de;font-weight:800;box-shadow:0 4px 18px #53e5dc3c}.game-layout{justify-content:center;align-items:stretch;gap:24px;display:flex}.arena-shell{aspect-ratio:380/520;background:#0b1020;border:1px solid #2d5058;border-radius:22px;width:min(100%,480px);position:relative;overflow:hidden;box-shadow:0 22px 80px #0008,0 0 0 6px #1b293355}.game-canvas{width:100%;height:100%}.game-canvas canvas{width:100%;height:100%;display:block}.arena-top,.arena-bottom{z-index:2;pointer-events:none;letter-spacing:.18em;color:#a6c2c9;text-shadow:0 1px 4px #000;justify-content:space-between;font-size:10px;font-weight:800;display:flex;position:absolute;left:19px;right:19px}.arena-top{top:15px}.arena-bottom{bottom:15px}.live-indicator{color:#75eaca}.play-sidebar{flex-direction:column;width:180px;min-width:160px;padding-top:12px;display:flex}.score-box{border-bottom:1px solid #2b3942;flex-direction:column;padding:10px 0 17px;display:flex}.score-box strong{letter-spacing:-.06em;margin:6px 0;font-size:clamp(36px,4vw,52px);line-height:1}.fine,.hint{color:#92aab3;font-size:11px;line-height:1.5}.meter{background:#1d2b35;border-radius:6px;height:4px;margin:14px 0 18px;overflow:hidden}.meter div{background:#64e6dc;height:100%}.status-line{color:#c5e4e7;min-height:42px;font-size:13px;line-height:1.35}.control-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.control-grid button{padding:8px;font-size:12px}.drop-controls{grid-template-columns:44px 1fr 44px;gap:5px;margin-top:10px;display:grid}.drop-controls button{padding:4px}.primary{color:#071a21;letter-spacing:.06em;background:#64e7df;border-color:#64e7df;font-weight:850}.primary:hover:not(:disabled){color:#071a21;background:#85fff6}.sound-cta{text-align:left;color:#a8f6eb;background:#102b31;border-color:#324a51;margin-top:18px;font-size:12px}.hint{margin:11px 0 auto}.studio-trigger{color:#eadcff;text-align:left;background:#272039;border-color:#695585;justify-content:space-between;margin-top:20px;font-weight:700;display:flex}.studio-trigger span{font-size:18px}.studio-panel{background:#101720;border:1px solid #283743;border-radius:18px;align-self:start;min-width:0;overflow:hidden;box-shadow:0 24px 75px #0005}.studio-head{justify-content:space-between;gap:12px;padding:24px 24px 19px;display:flex}.studio-head h2{letter-spacing:-.04em;margin:7px 0 4px;font-size:25px}.studio-head p{color:#8fa9b2;margin:0;font-size:12px}.tabs{border-top:1px solid #23313b;border-bottom:1px solid #23313b;padding:0 12px;display:flex;overflow-x:auto}.tabs button{white-space:nowrap;color:#8da5ae;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;min-height:47px;padding:8px 11px;font-size:12px}.tabs button.selected{color:#81f3e8;border-bottom-color:#68eee4}.studio-body{max-height:min(70vh,740px);padding:23px;overflow:auto}.studio-body h3{margin:0 0 14px;font-size:14px}.studio-body>label,.advanced-content>label{color:#b8cdd3;margin:16px 0;font-size:12px;font-weight:700;display:block}.studio-body label output{float:right;color:#78eadd}.studio-body label select,.studio-body label input:not([type=checkbox]):not([type=file]){width:100%;margin-top:7px;display:block}.studio-body label small{color:#748f98;margin:4px 0;font-size:10px;display:block}.studio-body label.inline{align-items:center;gap:8px;display:flex}.worlds{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.world{text-align:left;background:#17222c;align-items:center;gap:9px;padding:11px;font-size:11px;display:flex}.world.chosen{color:#b9fff5;background:#173136;border-color:#70ece1}.world-orb{background:linear-gradient(135deg,#70ece4,#d15fe3);border-radius:50%;flex:none;width:23px;height:23px;box-shadow:0 0 14px #70ece455}.world-orb.candy{background:linear-gradient(135deg,#ffd8a5,#ff93c3)}.world-orb.cosmic{background:linear-gradient(135deg,#9c9aff,#4259d5)}.world-orb.crystal{background:linear-gradient(135deg,#e2ffff,#68bcd7)}.upload{border:1px dashed #46606c;border-radius:10px;padding:12px;display:block}.upload input[type=file]{width:100%;margin-top:8px;font-size:11px;display:block}.sound-row{grid-template-columns:minmax(0,1fr) 80px;align-items:end;gap:8px;margin:10px 0;display:grid}.sound-row .upload{margin:0}.sound-row button{font-size:11px}.tier-list{flex-direction:column;gap:8px;margin-top:16px;display:flex}.tier-row{background:#151f29;border:1px solid #2b3b45;border-radius:10px;grid-template-columns:22px 30px minmax(50px,1fr) 78px;align-items:center;gap:6px;padding:9px;display:grid}.tier-no{color:#6eece0;font-size:10px;font-weight:800}.tier-icon{text-align:center;font-size:21px}.tier-row input:not([type=file]),.tier-row select{width:100%;min-width:0;padding:5px;font-size:11px}.tier-row label{color:#91a9b1;font-size:10px}.tier-row label input{margin-top:3px}.tier-name{grid-column:1/4}.tier-row .mini-upload{grid-column:1/-1}.tier-order{grid-column:1/-1;gap:6px;display:flex}.tier-order button{flex:1;min-height:34px;padding:5px 8px;font-size:10px}.mini-upload input{width:100%;min-height:28px;font-size:10px}.advanced-toggle{text-align:left;background:0 0;border-color:#354752;width:100%;margin-top:20px}.advanced-content{border-top:1px solid #273b45;margin-top:15px;padding-top:20px}.save-row{gap:6px;display:flex}.save-row input{flex:1;min-width:0}.saved-row{border-bottom:1px solid #26333d;align-items:center;gap:6px;padding:8px 0;font-size:12px;display:flex}.saved-row span{text-overflow:ellipsis;flex:1;overflow:hidden}.saved-row button{min-height:35px;padding:5px 8px;font-size:11px}.advanced-content>button{width:100%;margin-top:15px}.error{z-index:50;color:#fff;background:#53252d;border:1px solid #ee7787;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:min(94vw,620px);padding:10px 14px;font-size:13px;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 15px 35px #0009}.error button{background:0 0;border:0;min-height:30px;padding:3px 9px}footer{color:#607b84;letter-spacing:.13em;border-top:1px solid #1d2a34;justify-content:space-between;gap:10px;max-width:1480px;margin:auto;padding:15px clamp(18px,4vw,64px) 22px;font-size:9px;font-weight:750;display:flex}@media (width<=1100px){.workspace{grid-template-columns:1fr;max-width:850px}.studio-body{max-height:none}.play-sidebar{width:175px}}@media (width<=650px){.topbar{height:64px}.runtime-label,.online-dot{display:none}.workspace{gap:20px;padding:22px 13px 40px}.play-heading{margin-bottom:17px;display:block}.play-heading h1{font-size:32px}.intro{font-size:11px}.mode-switch{width:100%;margin-top:18px}.mode-switch button{flex:1}.game-layout{display:block}.arena-shell{border-radius:18px;width:min(100%,460px);margin:auto}.play-sidebar{grid-template-columns:1fr 1fr;gap:8px 12px;width:100%;padding:18px 0 0;display:grid}.score-box{border:0;grid-column:1;padding:0}.score-box strong{font-size:32px}.meter{grid-area:1/2;align-self:end;margin:0 0 4px}.status-line{grid-column:1/-1;min-height:20px}.control-grid{grid-column:1/-1}.drop-controls{grid-column:1/-1;margin:0}.sound-cta{grid-column:1/-1;margin-top:3px}.hint{grid-column:1/-1;margin:0}.studio-trigger{grid-column:1/-1;margin-top:5px}.studio-panel{z-index:30;border-radius:18px 18px 0 0;max-height:72vh;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -25px 75px #000b}.studio-body{max-height:calc(72vh - 160px)}.studio-head{padding:16px 20px 12px}footer{line-height:2;display:block}}@media (height<=650px) and (width>=651px){.workspace{padding-top:16px}.arena-shell{width:auto;max-height:75vh}.play-heading{margin-bottom:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
