body.turtle-level .turtle-world.turtle-treasure-world{background-image:url('assets/turtle-treasure-map.png');}
.turtle-treasure-world .turtle-actor{z-index:4;}
.turtle-treasure-props{position:absolute;inset:0;pointer-events:none;}
.turtle-treasure-pearl{position:absolute;left:35.6%;top:56.8%;width:4.1%;aspect-ratio:1;transform:translate(-50%,-50%);z-index:2;}
.treasure-pearl-taken{display:none;}
.turtle-treasure-wheel{position:absolute;left:59.7%;top:45.3%;width:16%;height:auto;transform:translate(-50%,-50%);z-index:2;}
.treasure-wheel-turning{animation:treasure-wheel-spin 1.2s ease-in-out forwards;}
@keyframes treasure-wheel-spin{to{transform:translate(-50%,-50%) rotate(360deg);}}
body.turtle-treasure-stage #level.game{--practice-height:170px;}
body.turtle-treasure-stage.turtle-long-reading #level.game{--practice-height:210px;}
body.turtle-treasure-stage #level .turtle-treasure-reading{padding-top:0;}
body.turtle-treasure-stage #level .sentence{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:27px;line-height:1.25;min-height:0;}
body.turtle-treasure-stage #level .reading-line{display:flex;gap:9px;justify-content:center;white-space:nowrap;}
body.turtle-treasure-stage.turtle-long-reading #level .sentence{font-size:24px;line-height:1.2;gap:4px;}
body.turtle-treasure-stage #level .parent-actions{margin:8px 0 0;}
body.turtle-treasure-stage #level .parent-actions button{min-height:38px;padding:7px 16px;}
.turtle-treasure-victory{position:absolute;inset:0;z-index:8;pointer-events:none;}
.turtle-treasure-victory>img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:88%;height:92%;object-fit:contain;animation:treasure-art-appear .6s cubic-bezier(.2,.7,.25,1) both;}
@keyframes treasure-art-appear{from{opacity:0;transform:translate(-50%,-45%) scale(.85);}to{opacity:1;transform:translate(-50%,-50%) scale(1);}}
body.turtle-treasure-celebrating .turtle-treasure-world .turtle-actor,body.turtle-treasure-celebrating .treasure-chest-anchor{visibility:hidden;}
.turtle-treasure-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;}
.turtle-treasure-confetti i{position:absolute;top:-5%;width:6px;height:13px;border-radius:2px;animation:treasure-confetti 3.5s linear infinite;animation-delay:var(--confetti-delay);}
@keyframes treasure-confetti{to{top:110%;transform:translateX(var(--confetti-drift)) rotate(720deg);}}
body.turtle-treasure-stage.turtle-treasure-celebrating #level.game{--practice-height:126px;}
body.turtle-treasure-celebrating #level .practice-top{display:none;}
body.turtle-treasure-celebrating #level #pendingStage h2{font-size:20px;margin:9px 0;}
body.turtle-treasure-celebrating #level #pendingStage p{font-size:13px;margin:6px 0;}
.reef-treasure-fauna .reef-manta,.reef-treasure-fauna .reef-jelly{display:none;}
@media(max-width:600px){body.turtle-treasure-stage #level.game,body.turtle-treasure-stage.turtle-long-reading #level.game{--practice-height:300px;}body.turtle-treasure-stage #level .sentence{font-size:22px;gap:8px;}body.turtle-treasure-stage #level .reading-line{gap:7px;}body.turtle-treasure-stage #level .parent-actions{margin-top:12px;}}
@media(max-width:600px){body.turtle-treasure-stage.turtle-long-reading #level .sentence{font-size:22px;line-height:1.25;gap:8px;}.treasure-chest-anchor{left:82.8%;}}
@media(max-width:600px){body.turtle-treasure-stage.turtle-treasure-celebrating #level.game{--practice-height:150px;}}
@media(max-height:600px) and (min-width:700px){body.turtle-treasure-stage #level .sentence{font-size:21px;gap:5px;}body.turtle-treasure-stage #level .reading-line{gap:6px;}body.turtle-treasure-stage #level .parent-actions button{padding:7px 10px;font-size:14px;}}
@media(prefers-reduced-motion:reduce){.treasure-wheel-turning,.turtle-treasure-confetti i,.turtle-treasure-victory>img{animation:none;}}
