.stage-screen{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;gap:7px;overflow:hidden;padding:max(6px,env(safe-area-inset-top)) 7px max(9px,env(safe-area-inset-bottom));background:radial-gradient(circle at 50% 25%,#fff5b8,#beece1 55%,#8dd59e);color:#315b55}.stage-copy{text-align:center;z-index:2}.stage-copy h1{margin:0;font-size:clamp(1.5rem,5vw,2.6rem);color:#9b3c76}.stage-copy p{margin:2px 0;font-size:clamp(.95rem,2.6vw,1.25rem);font-weight:800}.stage-world{position:relative;flex:1;width:min(100%,920px);min-height:210px;max-height:600px;overflow:hidden;border:5px solid #fff9e3;border-radius:30px;background:radial-gradient(circle at 28% 19%,#fff8b5 0 8%,transparent 9%),linear-gradient(#aeeaff 0 64%,#a0db81 65%);box-shadow:0 13px 25px #478b7370}.stage-floor{position:absolute;bottom:0;left:0;right:0;height:16%;background:linear-gradient(#93cd70,#5eae6a)}.stage-hero{position:absolute;z-index:5;left:6%;bottom:12%;width:32%;height:71%;display:flex;align-items:flex-end;justify-content:center;transform-origin:center bottom;animation:stage-hero-walk 6.5s ease-in-out both}.stage-hero .avatar{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center}.stage-hero .avatar img{max-width:100%;max-height:100%;object-fit:contain}.stage-key{position:absolute;z-index:6;left:42%;top:50%;width:23%;filter:drop-shadow(0 6px 5px #9d7a436a);animation:stage-key-take 6.5s ease-in-out both}.stage-key svg{width:100%;display:block}.stage-door{position:absolute;z-index:4;right:4%;bottom:12%;width:28%;height:70%;border:13px solid #e2a953;border-radius:100px 100px 8px 8px;background:#523454;box-shadow:0 8px 14px #425d6080;perspective:700px}.stage-door-inside{position:absolute;inset:0;display:grid;place-items:center;font-size:5rem;color:#ffdf86}.stage-door-panel{position:absolute;inset:0;display:grid;place-items:center;border-radius:85px 85px 1px 1px;background:linear-gradient(110deg,#ab654a,#db9a56 48%,#9b573a);border:4px solid #f3d28a;transform-origin:left center;animation:stage-door-open 6.5s ease-in-out both}.stage-door-panel span{font:bold clamp(3rem,13vw,7rem) Georgia,serif;color:#f9d487;text-shadow:2px 3px 0 #7e473a,-2px -2px 0 #fff4bb;transform:translateZ(1px)}.stage-sparkles span{position:absolute;left:var(--x);top:var(--y);z-index:7;color:#ec3d88;font-size:clamp(1.1rem,3vw,2.4rem);text-shadow:0 3px 5px #8d477675;opacity:0;animation:stage-heart 2s ease-out calc(var(--i)*.13s) both;pointer-events:none}.stage-reward{display:flex;align-items:center;gap:15px;font-size:clamp(1.1rem,3vw,1.5rem);font-weight:900;color:#ae3271}.stage-reward span{color:#6e5128}.stage-continue{min-height:42px;padding:6px 22px;border:3px solid #fff;border-radius:999px;background:#bc3e91;color:#fff;font:800 1rem inherit;box-shadow:0 5px 10px #78456459;cursor:pointer}@keyframes stage-hero-walk{0%,20%{transform:translateX(0) scale(1)}30%{transform:translateX(20%) scale(1.04)}50%{transform:translateX(20%) rotate(-5deg)}72%{transform:translateX(82%) rotate(3deg)}100%{transform:translateX(135%) scale(.65);opacity:.2}}@keyframes stage-key-take{0%,24%{transform:translateY(0) rotate(-12deg) scale(.75);opacity:0}31%{opacity:1;transform:translateY(0) rotate(-12deg) scale(1.1)}51%{transform:translate(-90%,-5%) rotate(12deg) scale(.62);opacity:1}75%{transform:translate(40%,-2%) rotate(35deg) scale(.62);opacity:1}100%{transform:translate(100%,-2%) scale(.3);opacity:0}}@keyframes stage-door-open{0%,67%{transform:rotateY(0)}78%,100%{transform:rotateY(-78deg)}}@keyframes stage-heart{0%{opacity:0;transform:translateY(22px) scale(.5)}25%{opacity:1;transform:translateY(-16px) scale(1.2)}100%{opacity:0;transform:translateY(-95px) scale(.8)}}@media(max-width:600px){.stage-world{border-width:3px;border-radius:19px}.stage-door{border-width:7px}.stage-hero{width:44%;left:0}.stage-key{width:27%;left:42%}.stage-door{width:32%;right:2%}.stage-reward{font-size:1rem;gap:8px}}@media(prefers-reduced-motion:reduce){.stage-hero,.stage-key,.stage-door-panel,.stage-sparkles span{animation:none}.stage-key{opacity:1}.stage-reward{font-size:1rem}}
.stage-screen .game-controls [data-action="at-skip"]{display:none}
.stage-screen.completed .stage-hero{left:35%;width:30%;animation:stage-celebrate 1.5s ease-in-out infinite}
.stage-screen.completed .stage-world{max-height:450px}
.stage-screen.completed .stage-sparkles span{animation-duration:2.8s}
.stage-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;z-index:3}
.stage-choices .stage-continue{width:auto;min-width:190px}
@keyframes stage-celebrate{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.parent-test-banner a{padding:5px 10px;border:1px solid #b68e3a;border-radius:8px;background:#fff;color:#614913;font-weight:800;text-decoration:none}
