.shape-playground{position:absolute;right:3%;top:48px;width:44%;height:490px;z-index:2;isolation:isolate}
.shape-stage{position:relative;width:100%;height:440px;perspective:950px;perspective-origin:50% 45%}
.toy{--x:0px;--y:0px;--rx:0deg;--ry:0deg;position:absolute;padding:0;border:0;background:none;cursor:grab;touch-action:none;transform:translate(var(--x),var(--y));-webkit-tap-highlight-color:transparent}
.toy:active,.toy.dragging{cursor:grabbing}.toy:focus-visible{outline:2px dashed var(--orange);outline-offset:18px;border-radius:18px}.toy.dragging{z-index:5}
.toy-model{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(calc(var(--base-x) + var(--rx))) rotateY(calc(var(--base-y) + var(--ry))) rotateZ(var(--base-z));transition:transform .8s cubic-bezier(.2,.7,.2,1);pointer-events:none}
.dragging .toy-model{transition:transform .12s ease-out}
.toy-star{--base-x:20deg;--base-y:-25deg;--base-z:-12deg;width:190px;height:190px;left:22%;top:102px;--w:42px;--h:190px;--d:30px;--front:#ff642e;--side:#c83c12;--top:#ff956d}
.star-bar{position:absolute;left:74px;top:0;width:42px;height:190px;transform-style:preserve-3d;transform:rotateZ(var(--bar-angle))}
.face{position:absolute;display:block;backface-visibility:hidden;background:var(--front)}
.front,.back{width:var(--w);height:var(--h);left:0;top:0}.front{transform:translateZ(calc(var(--d)/2))}.back{transform:rotateY(180deg) translateZ(calc(var(--d)/2));background:var(--side)}
.left,.right{width:var(--d);height:var(--h);top:0;left:calc((var(--w) - var(--d))/2);background:var(--side)}.left{transform:rotateY(-90deg) translateZ(calc(var(--w)/2))}.right{transform:rotateY(90deg) translateZ(calc(var(--w)/2))}
.top,.bottom{width:var(--w);height:var(--d);left:0;top:calc((var(--h) - var(--d))/2);background:var(--top)}.top{transform:rotateX(90deg) translateZ(calc(var(--h)/2))}.bottom{transform:rotateX(-90deg) translateZ(calc(var(--h)/2));background:var(--side)}
.toy-cube{--base-x:-22deg;--base-y:32deg;--base-z:10deg;--w:90px;--h:90px;--d:90px;--front:#deded0;--side:#959889;--top:#faf9f1;width:90px;height:90px;left:70%;top:40px}
.toy-ring{--base-x:28deg;--base-y:-30deg;--base-z:-20deg;width:125px;height:125px;left:65%;top:275px}
.ring-slice{display:block;position:absolute;inset:0;border:25px solid #24271f;border-radius:50%;transform:translateZ(calc(var(--slice)*2px - 12px));box-sizing:border-box}.ring-slice:last-child{border-color:#43493a;box-shadow:inset 2px 3px 3px #ffffff25,2px 3px 0 #1c2018}
.toy-ball{--base-x:0deg;--base-y:0deg;--base-z:0deg;width:64px;height:64px;left:15%;top:330px}.sphere-surface{display:block;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffc4a1 0%,#ff804b 30%,#e54c18 65%,#8c280c 100%);box-shadow:9px 22px 18px -13px #492d2540}
.play-hint{text-align:center;font-size:11px;letter-spacing:.5px;color:#73756a;margin-top:15px}.play-hint span{margin-right:8px;color:var(--orange)}
@media(min-width:901px) and (max-width:1150px){.shape-playground{right:0;width:40%}.toy-star{left:8%;width:160px;height:160px;scale:.85}.toy-cube{left:68%;scale:.8}.toy-ring{left:60%;scale:.85}}
@media(max-width:900px){.shape-playground{width:39%;right:1%;top:75px}.toy-star{left:0;scale:.75}.toy-cube{left:65%;top:15px;scale:.65}.toy-ring{left:55%;top:285px;scale:.75}.toy-ball{left:10%;scale:.8}}
@media(max-width:600px){.hero{min-height:910px}.hero p{max-width:310px}.shape-playground{width:100%;right:0;top:440px;height:410px}.shape-stage{height:360px}.toy-star{left:19%;top:75px;scale:.8}.toy-cube{left:70%;top:20px;scale:.65}.toy-ring{left:65%;top:230px;scale:.7}.toy-ball{left:17%;top:280px;scale:.75}.play-hint{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.toy-model{transition:none}}
/* The desktop hero is a bounded playground; copy stays above the shapes. */
@media(min-width:901px){.shape-playground{inset:0;width:100%;height:100%;pointer-events:none}.shape-stage{height:100%;pointer-events:none}.toy{pointer-events:auto}.toy-star{left:65%;top:125px}.toy-cube{left:85%;top:70px}.toy-ring{left:80%;top:365px}.toy-ball{left:57%;top:405px}.hero h1,.hero-bottom{position:relative;z-index:3;pointer-events:none}.play-hint{position:absolute;right:5%;bottom:22px;font-size:12px!important;pointer-events:none}}
.motion-toggle{position:absolute;right:20px;bottom:0;border:0;border-bottom:1px solid #aaa;background:var(--paper);font-size:11px;color:#606259;padding:5px;cursor:pointer;pointer-events:auto;z-index:6}.toy-model{transition:none}.toy{will-change:transform}
@media(min-width:901px){.motion-toggle{right:5%;bottom:57px}}
@media(max-width:900px){.motion-toggle{bottom:-30px}}
