.book-playground{position:relative;height:100svh;min-height:720px;background:#c9e2f5}
.book-playground .story-stage{position:relative;top:auto;height:100%;min-height:0;isolation:isolate}
.book-playground canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#story-canvas{z-index:1}#elephant-canvas{z-index:2;visibility:hidden}
.playground-copy{position:absolute;z-index:3;top:112px;left:6%;right:6%;text-align:center;pointer-events:none}
.playground-copy .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:17px}
.playground-copy h1{font-size:clamp(44px,4.2vw,64px);letter-spacing:-3px;line-height:1.02;font-weight:600}
.playground-copy h1 span{color:#d45f40}.playground-copy h1 br{display:none}.playground-copy h1 span:before{content:" "}
.playground-copy>p:last-child{display:none}
.elephant-touch{position:absolute;z-index:4;border-radius:48%;background:transparent;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;padding:0;outline-offset:1px}
.elephant-touch:hover{background:#ffffff04}.elephant-touch:focus-visible{outline:2px dashed #7653b7}
.trunk-handle{position:absolute;z-index:5;width:46px;height:46px;border-radius:50%;padding:0;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transform:translate(-50%,-50%)}
.trunk-handle:before{content:'';position:absolute;inset:5px;border:1.5px dashed #fff9;border-radius:50%;box-shadow:0 0 0 1px #7962a020;opacity:.65;transition:opacity .2s,scale .2s}
.trunk-handle:hover:before,.trunk-handle:focus-visible:before{opacity:1;scale:1.15}.trunk-handle.is-dragging{cursor:grabbing}.trunk-handle.is-dragging:before{opacity:0}
.elephant-touch[hidden],.trunk-handle[hidden]{display:none}
.playground-hint{position:absolute;z-index:3;left:12%;right:12%;bottom:62px;text-align:center;font-size:12px;line-height:1.65;color:#536a8d;pointer-events:none;transition:opacity .25s}
.playground-hint strong{font-weight:600;color:#6a4f99}.playground-hint span{display:block;font-size:10px;letter-spacing:1.8px;font-weight:650;color:#7352ad;margin-bottom:6px}
.playground-controls{position:absolute;z-index:7;bottom:25px;left:5%;right:5%;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#536888;font-size:12px}
.playground-controls>div{display:flex;gap:25px;align-items:center}.playground-controls button,.playground-controls a{padding:10px 0}.playground-controls button:hover,.playground-controls a:hover{color:#6843b2}.playground-controls button:disabled{opacity:.5;cursor:wait}
.playground-controls .explore-books{font-size:12px;font-weight:600;color:#65439d;border-bottom:1px solid #8870b54a}
.sound-toggle{display:flex;align-items:center;gap:8px}.sound-toggle svg{height:16px;width:16px}.sound-toggle[aria-pressed=true] .sound-waves{display:none}
.playground-loader{position:absolute;z-index:6;bottom:88px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;font-size:12px;color:#546a8a;background:#f4faffd9;border:1px solid #aecde059;padding:12px 18px;border-radius:30px;white-space:nowrap}.playground-loader[hidden]{display:none}
.elephant-speech{position:absolute;z-index:6;pointer-events:none;border-radius:18px 18px 18px 4px;background:#fff7d6;color:#755196;box-shadow:0 5px 22px #718ca01a;padding:12px 20px;font-size:15px;font-weight:600;opacity:0;transform:translateY(8px) rotate(-4deg);transition:opacity .15s,transform .25s;white-space:nowrap}.elephant-speech.is-visible{opacity:1;transform:translateY(0) rotate(-4deg)}
.elephant-sparkle{position:absolute;z-index:6;pointer-events:none;font-size:25px;line-height:1;color:var(--sparkle-color);animation:elephant-sparkle .85s ease-out forwards;will-change:transform,opacity}
@keyframes elephant-sparkle{0%{opacity:0;transform:translate(0,0) scale(.3)}15%{opacity:1}100%{opacity:0;transform:translate(var(--sparkle-x),var(--sparkle-y)) rotate(55deg) scale(.75)}}
@media(max-width:700px){.book-playground{min-height:700px;max-height:950px}.playground-copy{top:123px;left:6%;right:6%}.playground-copy .eyebrow{font-size:8px;letter-spacing:1.55px;margin-bottom:18px}.playground-copy h1 br{display:block}.playground-copy h1 span:before{content:none}.playground-copy h1{font-size:clamp(40px,10.7vw,66px);letter-spacing:-2.5px;line-height:1.06}.playground-copy>p:last-child{font-size:12px;margin-top:18px}.playground-controls{left:6%;right:6%;bottom:23px;gap:15px;font-size:10px}.playground-controls>div{gap:17px}.playground-controls .explore-books{font-size:10px}.sound-toggle{gap:6px}.sound-toggle svg{width:14px;height:14px}.playground-hint{left:8%;right:8%;bottom:145px;font-size:12px}.playground-hint span{font-size:9px;letter-spacing:1.4px;margin-bottom:8px}.playground-loader{font-size:10px;bottom:110px;padding:11px 14px}.trunk-handle{width:44px;height:44px}.trunk-handle:before{inset:9px}.elephant-speech{font-size:12px;padding:10px 14px}.elephant-sparkle{font-size:20px}}
@media(max-width:360px){.playground-controls>div{gap:11px}.playground-copy h1{font-size:37px}.playground-controls,.playground-controls .explore-books{font-size:9px}}
@media(prefers-reduced-motion:reduce){.elephant-sparkle{display:none}.elephant-speech,.playground-hint{transition:none}}

.sound-toggle[hidden]{display:none}

@media(max-width:700px){.playground-controls{flex-wrap:wrap;justify-content:center;gap:8px;bottom:20px}.playground-controls>div{width:100%;justify-content:center;gap:24px}.playground-controls .explore-books{padding:6px 0}.playground-hint{bottom:135px}}
