.studio-bar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.studio-bar button:last-child{margin-left:auto}
.studio-extra{display:grid;gap:8px;padding:9px;background:#f8f1ff;border-radius:14px}
.studio-extra label,.studio-tools label{display:inline-flex;gap:6px;align-items:center;margin-right:6px}
.studio-tools{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0;align-items:center}
.studio-tools select,.studio-extra select{padding:6px;border:1px solid #cab9da;border-radius:8px;font:inherit}
.studio-extra input[type=color],.studio-tools input[type=color]{height:32px;width:35px;padding:2px;border:1px solid #cbb7d8;border-radius:8px}
.studio-progress{width:100%;accent-color:#8c58c4}
.avatar-action[data-drag]{touch-action:none;cursor:crosshair}
.studio-cursor{position:absolute;z-index:4;pointer-events:none;translate:-50% -65%;font-size:28px;filter:drop-shadow(0 3px 4px #522b426a)}
.studio-cursor[data-air]::after{content:"〰";color:#fff7dd;text-shadow:0 0 8px #f4a46b;font-size:37px}
.studio-cursor[data-water]::after{content:"💦";font-size:25px}
.studio-hand{position:relative;max-width:370px;height:230px;margin:auto;background:#f3e8fe;border:1px solid #ead9f5;border-radius:22px;overflow:hidden}
.hand-palm{position:absolute;bottom:-45px;left:21%;width:61%;height:170px;border-radius:44% 46% 19% 22%;background:linear-gradient(125deg,#ffecd6,#ffcebb 75%,#ecad9a);box-shadow:inset -8px -7px 18px #b872552d}
.studio-finger{position:absolute;bottom:75px;width:15%;height:112px;border:1px solid #e7ac99;background:linear-gradient(100deg,#ffe9d8,#ffcbb8);border-radius:65px 65px 25px 25px;display:grid;justify-items:center;align-items:start;padding:8px 2px}
.studio-finger:nth-of-type(1){left:8%;bottom:46px;rotate:-31deg;height:86px}
.studio-finger:nth-of-type(2){left:26%;rotate:-8deg}
.studio-finger:nth-of-type(3){left:42%;height:135px}
.studio-finger:nth-of-type(4){left:58%;rotate:8deg;height:120px}
.studio-finger:nth-of-type(5){left:74%;bottom:69px;rotate:16deg;height:95px}
.studio-nail{display:grid;place-items:center;width:81%;height:44px;background:#ffe6dc;border:1px solid #dfaa9b;border-radius:55% 55% 40% 40%;box-shadow:inset 3px 2px 5px #fffb}
.studio-nail[data-shape=square]{border-radius:20% 20% 35% 35%}
.studio-nail[data-shape=point]{clip-path:polygon(50% 0,97% 57%,92% 100%,8% 100%,3% 57%);border-radius:0}
.studio-nail[data-glitter=true]{background-image:radial-gradient(#fff 1px,transparent 2px);background-size:7px 9px}
.studio-result{margin:8px 0;font-weight:700}
.avatar-action[data-celebrate] canvas{animation:studio-jump .65s cubic-bezier(.3,.6,.4,1) 2}
@keyframes studio-jump{50%{transform:translateY(-21px) rotate(-2deg)}}
.studio-petals{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}
.studio-petals i{position:absolute;left:var(--x);top:-25px;background:#f8aacc;width:12px;height:16px;border-radius:90% 20%;opacity:.8;animation:studio-fall 1.9s var(--time) ease-in both}
@keyframes studio-fall{to{transform:translate(80px,520px) rotate(390deg);opacity:0}}
#photo-preview{max-width:min(100%,240px);max-height:325px;display:block;margin:auto;border-radius:14px;background:linear-gradient(125deg,#f3dfff,#fff5e8)}
@media(prefers-reduced-motion:reduce){.studio-petals,.magic{display:none}.avatar-action canvas{animation:none!important}}
.scene[data-runway]{background-image:radial-gradient(ellipse at 50% 0%,#ffeccfbd 0%,#ae7bd04a 50%,#402369ca 100%),linear-gradient(#513871,#c987b7)}
.scene[data-runway]::after{content:"";position:absolute;z-index:-1;bottom:1%;width:65%;height:26%;background:#f6d4e2;opacity:.55;border-radius:50%;box-shadow:0 0 17px #e9b9f1}
.studio-finger{touch-action:none}
.studio-nail{position:relative;overflow:hidden}
.studio-nail i{position:absolute;pointer-events:none;width:4px;height:4px;background:#fffef4;border-radius:50%;translate:-50% -50%;box-shadow:0 0 3px #fff}
.studio-cursor svg{display:block;width:64px;height:64px;overflow:visible}
.studio-cursor:has(svg){translate:-48% -62%}
.studio-cursor:has(svg)::after{content:none}
.studio-nail[data-pattern=french]{background-image:linear-gradient(#fff9f0 0 28%,transparent 29%)}
.studio-nail[data-pattern=dots]{background-image:radial-gradient(#fff4ed 1.8px,transparent 2px);background-size:8px 8px}
.studio-nail[data-pattern=rainbow]{background-image:linear-gradient(137deg,#ffb2d7,#ffe3a7,#b9ebcb,#b1d9ff,#d7b9fa)}

.studio-cursor[data-scissors]{translate:-90% -50%}
.shear{transform-origin:32px 35px}
[data-snip] .shear-top{animation:snip-top .22s ease-out}
[data-snip] .shear-bottom{animation:snip-bottom .22s ease-out}
@keyframes snip-top{50%{transform:rotate(25deg)}}
@keyframes snip-bottom{50%{transform:rotate(-25deg)}}
.falling-lock{position:absolute;width:15px;height:29px;border-radius:70% 24% 80% 35%;background:linear-gradient(100deg,var(--lock-color),#ffffff77,var(--lock-color));z-index:5;pointer-events:none;animation:lock-fall .72s ease-in forwards}
@keyframes lock-fall{from{transform:rotate(-30deg)}to{transform:translate(22px,95px) rotate(105deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.falling-lock{animation:none}}

.studio-cursor:has(svg){translate:calc(-1 * var(--tip-x,50%)) calc(-1 * var(--tip-y,50%))}
.studio-cursor:has(svg) svg{transform-origin:var(--tip-x,50%) var(--tip-y,50%);transform:rotate(var(--tool-angle,0deg))}

.tool-model-icon{display:block;width:47px;height:47px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #57358045)}
.studio-cursor:has(.tool-model-fallback){width:76px;height:76px;translate:calc(-1 * var(--tip-x,50%)) calc(-1 * var(--tip-y,50%));transform-origin:var(--tip-x,50%) var(--tip-y,50%);transform:rotate(var(--tool-angle,0deg))}
.studio-cursor .tool-model-canvas,.studio-cursor .tool-model-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.studio-cursor:has(.tool-model-canvas) .tool-model-fallback{visibility:hidden}
.studio-cursor[data-snip] .tool-model-fallback{animation:salon-snip-glint .22s ease-out}
@keyframes salon-snip-glint{50%{filter:brightness(1.32);scale:.97}}
.studio-cursor:has(.tool-model-fallback)::after{position:absolute;top:32%;left:86%}
