/* Sima Play Studio: tactile playfields, purpose-built controls, quiet chrome. */
.studio-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;padding:24px 26px 18px}
.studio-heading h2{margin:3px 0 8px;font-size:30px;letter-spacing:-.035em}.studio-heading p:not(.studio-eyebrow){font-size:16px;line-height:1.5;color:#d4c1e3;margin:0;max-width:630px}
.studio-eyebrow{color:#d7a4ed;font-size:12px;font-weight:750;letter-spacing:.14em;margin:0 0 8px}.studio-tag{font-size:12px;color:#f1c7e2;white-space:nowrap;border:1px solid #775385;padding:8px 10px;border-radius:8px}
.studio-layout{display:grid;grid-template-columns:minmax(0,1fr)250px;gap:26px;padding:0 26px 22px;align-items:start}.studio-play{min-width:0}.studio-side{display:flex;flex-direction:column;gap:14px;padding-top:4px;min-width:0}
.studio-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.studio-hud>div{border-bottom:1px solid #8d609766;padding:8px 3px}.studio-hud small{display:block;font-size:12px;letter-spacing:.12em;color:#c5aaca;margin-bottom:3px}.studio-hud strong{font-size:22px;font-variant-numeric:tabular-nums;color:#fff0ff}
.studio-label{display:flex;flex-direction:column;gap:9px;font-size:14px;color:#e8d4ef}.studio-input{width:100%;height:46px;border:1px solid #866293;border-radius:10px;padding:8px 10px;background:#382643;color:#f6e7ff;font:inherit;font-size:15px}
.studio-button{min-height:46px;padding:11px 14px;font:inherit;font-size:15px;font-weight:650;color:#f5dfff;background:#4b305c;border:1px solid #9770a9;border-radius:12px;cursor:pointer;transition:background .15s,transform .12s}
.studio-button:hover{background:#604074}.studio-button:active{transform:scale(.97)}.studio-button.primary{background:#e7b5fc;color:#32203e;border-color:#f4d2ff;box-shadow:0 4px 0 #a16abc}.studio-button.primary:hover{background:#f1cdff}.studio-button:disabled{opacity:.4;cursor:default;box-shadow:none}
.studio-button:focus-visible,.studio-angle:focus-visible,.studio-input:focus-visible{outline:3px solid #ffe0af;outline-offset:3px}
.studio-select{display:flex;gap:6px}.studio-select button{flex:1;padding:10px 6px;font-size:14px}.studio-select [aria-pressed=true]{background:#e9baf6;color:#32213e}
.studio-instructions{font-size:14px;line-height:1.55;color:#bda8cf;border-top:1px solid #85609555;padding-top:16px}.studio-instructions strong{font-size:15px;color:#e2c5ef}.studio-instructions p{margin:6px 0 12px}
.studio-angle{width:100%;min-height:32px;accent-color:#e9b6fb;touch-action:pan-x}.studio-status{padding:0 26px 22px;margin:0;text-align:center;color:#eed2f4;font-size:16px;line-height:1.5;min-height:46px}
.bubble-stage,.rhythm-stage{position:relative;max-width:440px;margin:auto;isolation:isolate;overflow:hidden;border:1px solid #ac79c1;border-radius:24px;box-shadow:0 14px 40px #0d061844}
.bubble-canvas,.rhythm-canvas{display:block;width:100%;height:auto;touch-action:none;outline-offset:-5px}
@media(min-width:701px){.bubble-stage{width:min(100%,calc((100svh - 270px)*.64));min-width:245px}.rhythm-stage{width:min(100%,calc((100svh - 300px)*.714));min-width:245px}}
.studio-overlay{position:absolute;inset:0;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:26px;background:#22152fea;backdrop-filter:blur(9px)}
.studio-overlay[hidden]{display:none}.overlay-mark{font-size:52px;color:#e4b3fc}.studio-overlay h3{font-size:27px;line-height:1.12;margin:0;color:#fff0ff;letter-spacing:-.025em}.studio-overlay p{font-size:16px;line-height:1.5;color:#d8c0e6;margin:0 0 10px}.studio-overlay .studio-button{min-width:70%}.studio-result-stars{font-size:34px;color:#ffd794;letter-spacing:6px;text-align:center}
.bubble-ammo{display:flex;gap:15px;justify-content:center;align-items:center;padding:12px 0}.bubble-ammo>div{display:flex;flex-direction:column;align-items:center;gap:9px}.bubble-ammo small{font-size:12px;letter-spacing:.03em;color:#dfc8ea}.ammo-orb{width:57px;height:57px;border-radius:50%;display:grid;place-items:center;font-size:27px;color:#fff;border:2px solid var(--color);background:radial-gradient(circle at 30% 24%,#fff9,var(--color) 28%,#352042 100%);box-shadow:inset 0 2px 6px #fff6,0 6px 12px #0003}.ammo-orb.next{width:43px;height:43px;font-size:22px}
.bakery-stage{position:relative;min-height:400px;overflow:hidden;border-radius:24px;background:radial-gradient(ellipse at 50% 40%,#f4c9e4 0,#d6aad7 55%,#b482bf 100%);box-shadow:inset 0 0 40px #a75db844;border:1px solid #c39acb;isolation:isolate}
.bakery-ribbon{padding:18px;text-align:center;font-size:12px;letter-spacing:.2em;color:#70467b;background:#ffe9f455;border-bottom:1px solid #fff4}
.bakery-work{position:relative;min-height:340px;padding:10px 15px 35px}.bakery-work>.pastry-cake{height:285px;max-width:330px;margin:auto}
.pastry-cake{width:100%;aspect-ratio:1;position:relative;isolation:isolate}
.pastry-piece,.pastry-option{background-image:url('assets/pastry-parts.png');background-size:300% 300%;background-position:var(--px) var(--py);background-repeat:no-repeat;display:block}
.pastry-piece{position:absolute;width:65%;height:65%;left:17.5%;filter:drop-shadow(0 5px 4px #63305425);pointer-events:none}
.pastry-layer-0{top:36%;z-index:1}.pastry-layer-1{top:0%;z-index:2}.pastry-layer-2{width:29%;height:29%;left:35.5%;top:0;z-index:3}
.bakery-steps{display:flex;justify-content:center;gap:7px;margin:6px 0}.bakery-steps span{padding:6px 9px;border:1px solid #93649e66;border-radius:7px;font-size:12px;color:#805488;background:#fff3}.bakery-steps .done{background:#744183;color:#ffe9fa;border-color:#744183}
.bakery-recipe{background:#f9edf7;border-radius:14px;padding:14px;color:#563663;position:relative;min-height:120px}.bakery-recipe .studio-eyebrow{color:#95559f;font-size:11px}.bakery-recipe strong{font-size:17px}.bakery-recipe p{font-size:15px;line-height:1.5}
.recipe-cake{position:absolute;width:105px;height:105px;right:2px;top:10px}.recipe-ingredients{display:flex;flex-direction:column;gap:4px;margin-top:10px;font-size:13px;max-width:145px;color:#805487}.bakery-recipe:has(.recipe-cake){padding-right:90px}
.bakery-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.bakery-choices:empty{display:none}.bakery-choices h3{grid-column:1/-1;font-size:16px;margin:0 0 4px;color:#f1ddf6}.bakery-choices .studio-button{padding:5px 3px 9px;font-size:14px;line-height:1.3;font-weight:550}.pastry-option{width:75px;height:75px;margin:0 auto 4px}
.bakery-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.bakery-actions .studio-button{flex:1;min-width:135px}.bakery-actions p{font-size:14px;text-align:center;color:#e5b6f2;margin:0}.bake-meter{height:24px;background:#81598f;border:3px solid #fff7;border-radius:20px;position:absolute;bottom:12px;left:12%;right:12%;overflow:visible}.bake-sweet{position:absolute;left:40%;width:25%;top:0;height:100%;background:#ffc5ed}.bake-needle{position:absolute;left:0;width:4px;height:34px;top:-8px;background:#482b54;border:1px solid #fff;border-radius:5px;transform:translateX(-50%)}
.cream-meter{position:absolute;bottom:14px;left:15%;width:70%;height:12px;accent-color:#9956ab;border:0;border-radius:10px;overflow:hidden}.pipe-button{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.pipe-button:active{background:#f5ddff;box-shadow:none}
.bakery-served{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:13px;letter-spacing:.13em;color:#6c337a}
.bakery-gallery{margin:0 26px 20px}.bakery-gallery:empty{display:none}.bakery-gallery-row{display:flex;gap:7px;overflow:auto}.bakery-mini{flex:0 0 66px;height:76px;background:#e6bfd533;border:1px solid #af7cb655;border-radius:12px;padding:3px}.bakery-mini .pastry-cake{height:64px}.bakery-gallery .studio-eyebrow{font-size:11px}
.rhythm-stage{border-color:#7973c3}.studio-rhythm-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.studio-rhythm-keys button{height:60px;font-size:20px;background:#684282;color:#ffe8ff;touch-action:none;user-select:none;-webkit-user-select:none}.studio-rhythm-keys button:active{background:#efbdff;color:#4a255e}
.music-details{padding:10px 0}.music-details h3{font-size:25px;color:#f3d7ff;margin:9px 0}.music-details p{font-size:15px;color:#c9afda}.music-details progress{width:100%;height:6px;accent-color:#e1b4fc}
.studio-card{position:relative;overflow:hidden;min-height:270px!important;display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-end;gap:10px!important;padding:17px!important;background:linear-gradient(165deg,#614977,#32243f)!important}
.studio-card[hidden]{display:none!important}.studio-card .tab-icon{display:none}.studio-card .tab-number{position:absolute;top:13px;left:14px;color:#efd7fc;font-size:11px;z-index:1}.studio-card>span:last-child{z-index:1}.studio-card strong{font-size:19px!important}.studio-card small{font-size:13px!important}
.studio-card-art{position:absolute;left:0;right:0;top:25px;height:170px;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none}
.studio-card-bubbles{background:linear-gradient(150deg,#314685,#302042)!important}.studio-card-bubbles .studio-card-art{display:grid;grid-template-columns:repeat(3,42px);grid-auto-rows:42px;gap:4px;transform:rotate(-8deg);padding:13px}
.mini-bubble{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 28% 23%,#fffe,var(--color) 35%,#433168);box-shadow:inset 0 0 0 1px #ffffff70,0 5px 9px #0002;color:white;font-style:normal;font-size:20px}
.studio-card-cupcake{background:linear-gradient(155deg,#cf9bb9,#855a93 65%,#694879)!important}.studio-card-cupcake .studio-card-art{top:8px;height:185px}.studio-card-art>.pastry-cake{width:185px;height:185px}
.studio-card-rhythm{background:linear-gradient(155deg,#3d2e75,#312140)!important}.studio-card-rhythm .studio-card-art{gap:8px;transform:perspective(240px) rotateX(25deg);top:18px}
.mini-lane{width:26px;height:170px;background:#d4a3ff15;border-inline:1px solid #d6a4ff20;position:relative}.mini-lane span{position:absolute;left:2px;right:2px;top:calc(20px + var(--lane)*25px);height:25px;background:#e4b1ff;border-radius:5px;box-shadow:0 0 16px #d28ffc88;font-size:15px;color:#593278;font-style:normal;display:grid;place-items:center}
@media(max-width:700px){
 .studio-heading{padding:18px 16px 12px;display:block}.studio-heading h2{font-size:24px}.studio-heading p:not(.studio-eyebrow){font-size:14px}.studio-tag{display:none}.studio-eyebrow{font-size:11px;margin-bottom:5px}
 .studio-layout{display:flex;flex-direction:column;gap:16px;padding:0 12px 16px}.studio-play,.studio-side{width:100%}.studio-side{gap:10px}.studio-hud{margin-bottom:8px;gap:6px}.studio-hud strong{font-size:20px}.studio-hud small{font-size:11px}
 .bubble-stage{width:min(100%,max(220px,calc((100svh - 390px)*.64)))}.rhythm-stage{width:min(100%,max(220px,calc((100svh - 440px)*.714)))}.studio-overlay{padding:18px}.studio-overlay h3{font-size:24px}.studio-overlay p{font-size:14px}.overlay-mark{font-size:36px}
 [data-panel=bubbles] .studio-side{display:grid;grid-template-columns:1fr 1fr}.bubble-ammo{grid-column:1/-1;padding:5px 0}.bubble-ammo>div{flex-direction:row}.ammo-orb{width:38px;height:38px;font-size:21px}.ammo-orb.next{width:31px;height:31px;font-size:18px}
 [data-panel=bubbles] .studio-side>.studio-label,[data-panel=bubbles] .studio-instructions{grid-column:1/-1}.studio-status{font-size:14px;padding:0 15px 15px}.studio-instructions{font-size:13px}.studio-instructions p{margin:6px 0}
 .bakery-stage{min-height:240px}.bakery-ribbon{padding:10px}.bakery-work{min-height:195px;padding-bottom:32px}.bakery-work>.pastry-cake{height:180px;max-width:215px}.bakery-gallery{margin-top:12px}
 [data-panel=cupcake] .studio-layout{display:grid;grid-template-columns:1fr 1fr;gap:12px}[data-panel=cupcake] .studio-side{display:contents}[data-panel=cupcake] .studio-play{grid-column:1/-1;grid-row:3}.bakery-recipe{grid-column:1/-1;grid-row:2}.bakery-choices .studio-button{font-size:14px;padding:7px}.pastry-option{height:65px;width:65px;margin:auto auto 4px}
 [data-panel=cupcake] .studio-select{grid-column:1/-1;grid-row:1}[data-panel=cupcake] .studio-label{grid-column:1/-1}.recipe-cake{width:104px;height:104px;right:15px;top:0}.recipe-ingredients{font-size:13px;max-width:200px}.bakery-recipe{min-height:105px;padding:10px 110px 10px 12px}.bakery-recipe .studio-eyebrow{margin-bottom:4px}.bakery-recipe strong{font-size:16px}.recipe-ingredients{margin-top:5px;gap:2px}
 .studio-rhythm-keys{max-width:400px;margin:10px auto 0;gap:6px}.studio-rhythm-keys button{height:54px;font-size:19px}.music-details h3{font-size:23px}
 .studio-card{min-height:245px!important}.studio-card-art{height:145px;top:22px}.studio-card strong{font-size:17px!important}.studio-card-bubbles .studio-card-art{grid-template-columns:repeat(3,35px);grid-auto-rows:35px;gap:3px;padding:12px}.mini-bubble{width:35px;height:35px}.studio-card-art>.pastry-cake{width:165px;height:165px}.studio-card-cupcake .studio-card-art{height:165px;top:5px}
}
@media(prefers-reduced-motion:reduce){.studio-button{transition:none}.pastry-piece{filter:none}}
