.pt-root{height:100dvh;color:var(--foreground);touch-action:manipulation;-webkit-user-select:none;user-select:none;background:radial-gradient(80% 60% at 50% 35%,oklch(42% .08 45),oklch(24% .05 35) 75%),oklch(24% .05 35);grid-template:"bar bar""stage tools"minmax(0,1fr)"seq seq""tray tray"/minmax(0,1fr) auto;display:grid;position:relative;overflow:hidden}.pt-root .pt-bar{z-index:30;flex-wrap:nowrap;grid-area:bar;align-items:center;gap:.5rem;padding:.5rem .75rem;display:flex}.pt-root .pt-bar-gap{flex:1}.pt-root .pt-btn{border-radius:999px;min-width:3.25rem;height:3.25rem;box-shadow:0 .25rem .6rem oklch(15% .04 30/.45)}.pt-root .pt-btn svg{width:1.6rem!important;height:1.6rem!important}.pt-root .pt-btn[data-confirm]{animation:.5s 2 pt-nudge}.pt-root .pt-tools-toggle{gap:.4rem;padding-inline:1rem;font-weight:700}.pt-root .pt-curtain-icon{justify-content:center;gap:2px;width:1.7rem;height:1.5rem;display:flex}.pt-root .pt-curtain-icon i{background:linear-gradient(90deg,oklch(50% .19 25),oklch(62% .2 25),oklch(50% .19 25));border-radius:.3rem .3rem .5rem .5rem;width:45%;height:100%;transition:transform .4s;display:block}.pt-root .pt-curtain-icon[data-open] i:first-child{transform:translate(-35%)scaleX(.55)}.pt-root .pt-curtain-icon[data-open] i:last-child{transform:translate(35%)scaleX(.55)}.pt-root .pt-main{display:contents}.pt-root .pt-stage-wrap{grid-area:stage;place-items:center;min-width:0;min-height:0;margin-inline:.75rem;display:grid;container-type:size}.pt-root .pt-frame{aspect-ratio:16/9;background:linear-gradient(oklch(62% .11 60),oklch(42% .09 45));border-radius:1.6%/2.8%;width:min(100cqw,177.78cqh);padding:.6%;box-shadow:0 1.2rem 2.4rem -.6rem oklch(10% .03 30/.7),inset 0 0 0 2px oklch(78% .12 75/.6)}.pt-root .pt-stage{touch-action:none;background:oklch(30% .05 40);border-radius:1.2%/2.1%;width:100%;height:100%;position:relative;overflow:hidden;container-type:inline-size}.pt-root .pt-scene{object-fit:cover;pointer-events:auto;-webkit-user-drag:none;width:100%;height:100%;animation:.6s pt-fade;position:absolute;inset:0}.pt-root .pt-floor-shade{pointer-events:none;background:linear-gradient(#0000 60%,oklch(25% .06 40/.28)),radial-gradient(80% 70% at 50% 45%,#0000 55%,oklch(15% .04 30/.45));position:absolute;inset:0}.pt-root .pt-item{cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent;background:0 0;border:0;outline:none;padding:0;display:block;position:absolute;transform:translate(-50%,-100%)}.pt-root .pt-item:active{cursor:grabbing}.pt-root .pt-item-move{transform-origin:50% 100%;height:100%;display:block}.pt-root .pt-item img{pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 .5cqw .6cqw oklch(20% .05 35/.45));width:auto;height:100%;transition:transform .35s cubic-bezier(.3,1.4,.5,1);display:block}.pt-root .pt-item-shadow{pointer-events:none;background:radial-gradient(oklch(15% .04 30/.45),#0000 70%);border-radius:50%;width:80%;height:9%;position:absolute;bottom:-1.5%;left:50%;transform:translate(-50%)}.pt-root .pt-item[data-selected] img,.pt-root .pt-item:focus-visible img{filter:drop-shadow(0 0 .35cqw var(--sun)) drop-shadow(0 0 .35cqw var(--sun)) drop-shadow(0 .5cqw .6cqw oklch(20% .05 35/.45))}.pt-root .pt-item-move[data-move=enter]{animation:.55s cubic-bezier(.3,1.5,.5,1) both pt-enter}.pt-root .pt-item-move[data-move=hop]{animation:.5s cubic-bezier(.3,1.2,.5,1) 2 pt-hop}.pt-root .pt-item-move[data-move=talk]{animation:.32s ease-in-out 6 pt-talk}.pt-root .pt-actions{background:var(--card);z-index:120;border-radius:999px;gap:.5cqw;padding:.5cqw;animation:.25s both pt-pop;display:flex;position:absolute;transform:translate(-50%,-100%);box-shadow:0 .6cqw 1.6cqw oklch(15% .04 30/.45)}.pt-root .pt-actions button{background:var(--secondary);width:clamp(44px,5.2cqw,84px);height:clamp(44px,5.2cqw,84px);color:var(--secondary-foreground);border:0;border-radius:50%;place-items:center;display:grid}.pt-root .pt-actions button:hover,.pt-root .pt-actions button:focus-visible{background:var(--sun);outline:none}.pt-root .pt-actions button svg{width:55%;height:55%}.pt-root .pt-actions .pt-action-off{background:color-mix(in oklch,var(--destructive) 18%,var(--card));color:var(--destructive)}.pt-root .pt-curtains{z-index:100;pointer-events:none;position:absolute;inset:0;overflow:hidden}.pt-root .pt-curtain{object-fit:fill;filter:drop-shadow(0 .4cqw .8cqw oklch(15% .04 30/.5));width:51.5%;height:100%;transition:transform 1.3s cubic-bezier(.6,0,.3,1);position:absolute;top:0}.pt-root .pt-curtain-left{left:0;transform:scaleX(-1)}.pt-root .pt-curtain-right{right:0}.pt-root .pt-curtains[data-open] .pt-curtain-left{transform:translate(-91%)scaleX(-1)}.pt-root .pt-curtains[data-open] .pt-curtain-right{transform:translate(91%)}.pt-root .pt-valance{object-fit:fill;z-index:101;pointer-events:none;width:102%;height:15%;position:absolute;top:-1%;left:-1%}.pt-root .pt-open{aspect-ratio:1;border:.5cqw solid var(--card);background:var(--sun);width:clamp(84px,14cqw,200px);color:var(--foreground);z-index:110;cursor:pointer;border-radius:50%;place-items:center;animation:2.4s ease-in-out infinite pt-invite;display:grid;position:absolute;top:55%;left:50%;transform:translate(-50%,-50%);box-shadow:0 1cqw 2.4cqw oklch(15% .05 30/.55)}.pt-root .pt-open svg{fill:currentColor;width:45%;height:45%;margin-left:8%}.pt-root .pt-open-glow{background:radial-gradient(circle,color-mix(in oklch,var(--sun) 55%,transparent),transparent 65%);z-index:-1;border-radius:50%;animation:2.4s ease-in-out infinite pt-glow;position:absolute;inset:-25%}.pt-root .pt-paused{z-index:115;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);color:var(--card);background:oklch(20% .04 35/.45);place-items:center;display:grid;position:absolute;inset:0}.pt-root .pt-paused svg{fill:currentColor;filter:drop-shadow(0 .5cqw 1cqw oklch(10% .03 30/.6));width:12cqw;height:12cqw}.pt-root .pt-prompt-chip{z-index:112;aspect-ratio:1;background:var(--card);width:clamp(40px,4cqw,64px);color:var(--muted-foreground);opacity:.85;border:0;border-radius:50%;place-items:center;display:grid;position:absolute;top:16%;right:1.5%;box-shadow:0 .3cqw .8cqw oklch(15% .04 30/.4)}.pt-root .pt-prompt-chip svg{width:58%;height:58%}.pt-root .pt-prompts{z-index:112;background:var(--card);width:min(46%,30rem);color:var(--card-foreground);border-radius:1rem;padding:.8rem 1rem;font-size:clamp(.8rem,1.3cqw,1.25rem);animation:.2s both pt-fade;position:absolute;top:calc(16% + clamp(44px,4.4cqw,70px));right:1.5%;box-shadow:0 .6cqw 1.6cqw oklch(15% .04 30/.45)}.pt-root .pt-prompts ul{gap:.25rem;margin:.4rem 0;padding-left:1.1rem;list-style:outside;display:grid}.pt-root .pt-prompts-title{font-weight:800;font-family:var(--font-display)}.pt-root .pt-prompts-foot{color:var(--muted-foreground);font-size:.9em}.pt-root .pt-teacher{background:var(--card);width:clamp(270px,22vw,380px);color:var(--card-foreground);border-radius:1.25rem;flex-direction:column;flex:none;grid-area:tools;gap:.9rem;margin-right:.75rem;padding:1rem;font-size:clamp(.95rem,1vw,1.2rem);display:flex;overflow-y:auto;box-shadow:0 .8rem 2rem -.5rem oklch(10% .03 30/.6)}.pt-root .pt-teacher h3{font-family:var(--font-display);align-items:center;gap:.4rem;margin-bottom:.4rem;font-weight:700;display:flex}.pt-root .pt-teacher h3 svg{width:1.1em;height:1.1em}.pt-root .pt-teacher button{min-height:3rem}.pt-root .pt-t-big{gap:.5rem;height:3.75rem;font-size:1.2em}.pt-root .pt-t-big svg{width:1.4em!important;height:1.4em!important}.pt-root .pt-t-row{flex-wrap:wrap;gap:.5rem;display:flex}.pt-root .pt-t-chips{grid-template-columns:repeat(5,1fr);gap:.35rem;margin-top:.5rem;display:grid}.pt-root .pt-t-chip{border:2px dashed var(--border);background:var(--muted);opacity:.6;border-radius:.8rem;flex-direction:column;align-items:center;gap:.15rem;padding:.3rem .1rem;font-size:.75em;font-weight:700;display:flex}.pt-root .pt-t-chip img{width:auto;height:2.6rem}.pt-root .pt-t-chip[data-on]{opacity:1;border-style:solid;border-color:var(--sun);background:color-mix(in oklch,var(--sun) 22%,var(--card))}.pt-root .pt-t-list{gap:.35rem;display:grid}.pt-root .pt-t-starter{text-align:left;background:var(--muted);border:2px solid #0000;border-radius:.8rem;padding:.55rem .75rem;font-weight:600;line-height:1.2}.pt-root .pt-t-starter[data-on]{border-color:var(--sun);background:color-mix(in oklch,var(--sun) 22%,var(--card))}.pt-root .pt-t-prompts{background:color-mix(in oklch,var(--teal) 14%,var(--card));border-radius:.8rem;gap:.3rem;margin-top:.5rem;padding:.6rem .8rem .6rem 1.6rem;list-style:outside;display:grid}.pt-root .pt-t-note{color:var(--muted-foreground);font-size:.85em}@media (width<=1023px){.pt-root .pt-teacher{z-index:40;grid-area:1/1/-1/-1;width:min(340px,100vw - 1.5rem);margin:0;position:absolute;top:4.25rem;bottom:.75rem;right:.75rem}}.pt-root .pt-sequence{grid-area:seq;justify-content:center;gap:clamp(.5rem,1.5vw,1.5rem);padding:.5rem .75rem 0;display:flex}.pt-root .pt-part{position:relative}.pt-root .pt-part-card{border:3px dashed color-mix(in oklch,var(--card) 70%,transparent);background:color-mix(in oklch,var(--card) 20%,transparent);width:clamp(104px,15vw,240px);color:var(--card);border-radius:.9rem;flex-direction:column;align-items:stretch;gap:.25rem;padding:.3rem;display:flex}.pt-root .pt-part[data-filled] .pt-part-card{border-style:solid;border-color:var(--sun);background:var(--card);color:var(--card-foreground)}.pt-root .pt-part-empty{aspect-ratio:16/9;border-radius:.6rem;place-items:center;display:grid}.pt-root .pt-part-empty svg{opacity:.9;width:32%;height:auto}.pt-root .pt-part-label{font-family:var(--font-display);justify-content:center;align-items:center;gap:.3rem;font-size:clamp(.8rem,1.1vw,1.2rem);font-weight:700;display:flex}.pt-root .pt-part-label svg{width:1.2em;height:1.2em}.pt-root .pt-part-redo{background:var(--secondary);width:2.75rem;height:2.75rem;color:var(--secondary-foreground);border:3px solid var(--card);border-radius:50%;place-items:center;display:grid;position:absolute;top:-.5rem;right:-.5rem;box-shadow:0 .2rem .5rem oklch(15% .04 30/.4)}.pt-root .pt-part-redo svg{width:1.2rem;height:1.2rem}.pt-root .pt-mini{aspect-ratio:16/9;pointer-events:none;border-radius:.6rem;display:block;position:relative;overflow:hidden}.pt-root .pt-mini-scene{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.pt-root .pt-mini-item{width:auto;position:absolute}.pt-root .pt-tray{padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom));--tray:clamp(64px,10dvh,124px);grid-area:tray;align-items:center;gap:.75rem;display:flex}.pt-root .pt-tabs{flex:none;grid-template-columns:repeat(2,1fr);gap:.35rem;display:grid}.pt-root .pt-tab{width:calc(var(--tray) * .58);height:calc(var(--tray) * .58);background:color-mix(in oklch,var(--card) 25%,transparent);min-width:44px;min-height:44px;color:var(--card);border:3px solid #0000;border-radius:.9rem;place-items:center;padding:.2rem;display:grid;overflow:hidden}.pt-root .pt-tab img{object-fit:contain;width:100%;height:100%;min-height:0}.pt-root .pt-tab[data-tab=scenes] img{object-fit:cover;border-radius:.4rem;width:100%;height:70%}.pt-root .pt-tab svg{width:60%;height:60%}.pt-root .pt-tab[aria-selected=true]{background:var(--card);border-color:var(--sun);color:var(--foreground)}.pt-root .pt-tray-items{scrollbar-width:thin;min-width:0;min-height:calc(var(--tray) * 1.2);flex:1;align-items:center;gap:.6rem;padding:.4rem .2rem;display:flex;overflow:auto hidden}.pt-root .pt-tray-item{height:calc(var(--tray) * 1.2);aspect-ratio:1;background:var(--card);border:3px solid color-mix(in oklch,var(--sun) 45%,var(--card));touch-action:pan-x;cursor:grab;border-radius:1.1rem;flex:none;padding:.4rem;transition:transform .15s;display:block;overflow:hidden;box-shadow:0 .3rem .7rem oklch(15% .04 30/.4)}.pt-root .pt-tray-item:hover,.pt-root .pt-tray-item:focus-visible{border-color:var(--sun);outline:none;transform:translateY(-3px)}.pt-root .pt-tray-item img{object-fit:contain;pointer-events:none;-webkit-user-drag:none;width:100%;height:100%;min-height:0}.pt-root .pt-tray-item:disabled{opacity:.5}.pt-root .pt-tray-scene{height:calc(var(--tray) * 1.2);aspect-ratio:16/9;border:4px solid color-mix(in oklch,var(--card) 60%,transparent);border-radius:1rem;flex:none;padding:0;overflow:hidden;box-shadow:0 .3rem .7rem oklch(15% .04 30/.4)}.pt-root .pt-tray-scene>img{object-fit:cover;width:100%;height:100%}.pt-root .pt-tray-scene[data-on]{border-color:var(--sun)}.pt-root .pt-tray-starter .pt-mini{border-radius:0;height:100%}.pt-root .pt-tray-empty{height:calc(var(--tray) * 1.2);color:var(--card);opacity:.7;place-items:center;padding-inline:1.5rem;display:grid}.pt-root .pt-tray-empty svg{width:2.5rem;height:2.5rem}.pt-root .pt-ghost{z-index:200;height:calc(var(--tray,100px) * 1.6);pointer-events:none;filter:drop-shadow(0 .6rem 1rem oklch(15% .04 30/.5));opacity:.92;width:auto;max-height:200px;position:fixed;transform:translate(-50%,-55%)scale(1.05)}.pt-root .pt-ghost[data-kind=prop]{height:110px}@media (height<=500px){.pt-root .pt-bar{padding:.3rem .6rem}.pt-root .pt-btn{min-width:2.75rem;height:2.75rem}.pt-root .pt-tray{--tray:56px;padding-block:.3rem}.pt-root{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"bar bar bar""stage seq tools""tray tray tray"}.pt-root .pt-sequence{flex-direction:column;justify-content:center;gap:.35rem;padding:0 .6rem 0 0}.pt-root .pt-part-card{gap:.1rem;width:92px;padding:.15rem}.pt-root .pt-part-empty svg{width:24%}.pt-root .pt-part-redo{width:2.25rem;height:2.25rem;top:-.4rem;right:-.4rem}.pt-root .pt-tabs{grid-template-columns:repeat(4,1fr)}}@media (width<=600px){.pt-root .pt-tray{--tray:84px;flex-direction:column;align-items:stretch}.pt-root .pt-tabs{grid-template-columns:repeat(4,1fr);justify-items:center}.pt-root .pt-bar{gap:.35rem;padding:.4rem .5rem}.pt-root .pt-btn{min-width:2.9rem;height:2.9rem}.pt-root .pt-tools-toggle span{display:none}}@keyframes pt-enter{0%{opacity:0;transform:translateY(35%)scale(.55)}to{opacity:1;transform:none}}@keyframes pt-hop{0%,to{transform:none}40%{transform:translateY(-16%)scaleY(1.03)}70%{transform:translateY(0)scaleY(.95)}}@keyframes pt-talk{0%,to{transform:rotate(0)}25%{transform:rotate(-4deg)scaleY(1.03)}75%{transform:rotate(4deg)scaleY(.98)}}@keyframes pt-pop{0%{opacity:0;transform:translate(-50%,-90%)scale(.85)}to{opacity:1;transform:translate(-50%,-100%)}}@keyframes pt-fade{0%{opacity:.2}to{opacity:1}}@keyframes pt-invite{0%,to{transform:translate(-50%,-50%)scale(1)}50%{transform:translate(-50%,-50%)scale(1.06)}}@keyframes pt-glow{0%,to{opacity:.5}50%{opacity:1}}@keyframes pt-nudge{0%,to{transform:none}30%{transform:rotate(-12deg)}60%{transform:rotate(10deg)}}@media (prefers-reduced-motion:reduce){.pt-root *,.pt-root :before,.pt-root :after{transition:none!important;animation:none!important}}.pt-root .pt-item[data-kind=puppet] .pt-item-move{translate:0 24%}.pt-root .pt-item[data-kind=puppet] .pt-item-shadow{width:55%;bottom:-2%}
