.scene{--rise:0%;--wall-width:10px;--floor-width:13px;--well-floor:calc(7% + var(--floor-width));position:relative;isolation:isolate;overflow:hidden;height:calc(clamp(280px,38vw,410px) + var(--extra-depth,0px));transition:height .35s ease;background:linear-gradient(#c3e7e7,#e1efdd 30%,#a9cd82 30.5%,#a9cd82 36%,#aa7959 36.5%,#6f4c42)}
.scene::before{content:"";position:absolute;width:42px;height:42px;border-radius:50%;background:#ffefae;left:9%;top:8%;box-shadow:0 0 23px #fff2b7}
.cloud{position:absolute;right:6%;top:12%;width:17%;height:7%;border-radius:50px;background:#fffef1;box-shadow:-30px 10px 0 -2px #fffef1}
.hill{position:absolute;left:-8%;top:22%;width:64%;height:14%;background:#8fbd78;border-radius:60% 52% 0 0}
.hill.second{left:auto;right:-13%;top:19%;width:65%;height:17%;background:#9cc583}
.earth{position:absolute;inset:37% 0 0;background:radial-gradient(ellipse at center,#eeb18b75 0 12%,transparent 13%) 5px 8px/58px 32px,radial-gradient(ellipse at center,#5a423d66 0 10%,transparent 11%) 28px 20px/47px 38px;opacity:.66}
.shaft{position:absolute;z-index:1;inset:29% 21% 7%;overflow:hidden;border:var(--wall-width) solid #8d9489;border-top:0;border-bottom-width:var(--floor-width);border-radius:0 0 31px 31px;background:repeating-linear-gradient(0deg,#59645b 0 2px,transparent 2px 29px),repeating-linear-gradient(90deg,#65716a 0 2px,transparent 2px 62px),linear-gradient(110deg,#334542,#465750 56%,#233432);box-shadow:inset 10px 0 22px #10252388,4px 7px 0 #45393466}
.rim{position:absolute;z-index:3;left:17%;right:17%;top:26%;height:13px;border-radius:999px;border:2px solid #6b7b6d;background:#bdc9b0;box-shadow:0 4px 0 #626b5e}
.water{position:absolute;z-index:2;inset:auto calc(21% + var(--wall-width)) var(--well-floor);height:var(--rise);border-radius:0 0 25px 25px;background:repeating-linear-gradient(-10deg,transparent 0 34px,#c1f1fd36 35px 37px,transparent 39px 56px),linear-gradient(#75d5e6,#468ccd 66%,#2668a6);transition:height .55s ease;max-height:calc(64% - var(--floor-width))}
.water::before{content:"";display:block;height:5px;background:#a2ebee;border-radius:50%;box-shadow:0 0 13px #7fdee6}
.scene[data-level="0"] .water::before{display:none}
.target{position:absolute;z-index:4;right:3%;top:19%;color:#215c48;background:#f4f8e5;border:1px solid #b7cf9d;font-size:.82rem;font-weight:800;padding:.18rem .48rem;border-radius:8px}
.target::after{content:"";position:absolute;right:8px;top:100%;height:13px;border-left:2px solid #63896c}
.animal{position:absolute;z-index:4;left:49%;bottom:calc(var(--well-floor) + var(--rise));width:77px;height:82px;transform:translateX(-50%);transition:bottom .55s ease,left .55s ease}
.animal-body{position:absolute;bottom:0;left:15px;width:49px;height:41px;border-radius:50% 50% 38% 38%;background:#f6ad59;border:2px solid #754529}
.animal-body::after{content:"";position:absolute;inset:12px 10px 0;background:#ffdf9f;border-radius:50%}
.tail{position:absolute;width:35px;height:29px;bottom:5px;left:49px;border:8px solid #e79448;border-left:0;border-top:0;border-radius:0 4px 22px 0;transform:rotate(-23deg)}
.head{position:absolute;z-index:2;bottom:22px;left:3px;width:70px;height:52px;border-radius:45% 45% 46% 46%;background:linear-gradient(#f6ac55,#ffc773);border:2px solid #754529}
.ear{position:absolute;bottom:57px;left:9px;width:24px;height:25px;border-radius:6px 75% 45% 65%;background:#f3a452;border:2px solid #754529;transform:rotate(-21deg)}
.ear::after{content:"";position:absolute;inset:5px 4px;background:#f6a59a;border-radius:inherit}
.ear.right{left:49px;transform:scaleX(-1) rotate(-21deg)}
.stripes{position:absolute;left:50%;transform:translateX(-50%);top:0;width:4px;height:10px;border-radius:0 0 6px 6px;background:#bd6e39;box-shadow:8px -2px #bd6e39,-8px -2px #bd6e39}
.eyes{position:absolute;left:17px;top:20px;width:6px;height:8px;background:#372b23;border-radius:50%;box-shadow:27px 0 #372b23}
.nose{position:absolute;top:30px;left:28px;width:10px;height:7px;background:#964e49;border-radius:45% 45% 60% 60%;box-shadow:-14px 3px 0 0 #ee9c83,14px 3px 0 0 #ee9c83}
.mouth{position:absolute;left:27px;top:36px;width:12px;height:6px;border-bottom:2px solid #754529;border-radius:50%}
.whiskers{position:absolute;left:-5px;top:30px;width:13px;height:2px;background:#754529;border-radius:2px;box-shadow:0 5px #754529,64px 0 #754529,64px 5px #754529}
.scene.rescued .animal{left:82%;bottom:66%;transform:translateX(-50%) rotate(6deg);animation:leap .95s ease both}
.snout{display:none;position:absolute}
[data-animal="dog"] .animal-body{background:#c88c58;border-color:#613d2e}
[data-animal="dog"] .animal-body::after{background:#fff0d5}
[data-animal="dog"] .tail{border-color:#9b633c}
[data-animal="dog"] .head{background:#e9bb83;border-color:#613d2e}
[data-animal="dog"] .ear{z-index:3;bottom:35px;left:1px;width:19px;height:42px;border-radius:65% 45% 62% 56%;transform:rotate(12deg);background:#935b3f;border-color:#613d2e}
[data-animal="dog"] .ear.right{left:57px;transform:scaleX(-1) rotate(12deg)}
[data-animal="dog"] .snout{display:block;left:18px;top:26px;width:30px;height:20px;border-radius:50%;background:#f9e3ba}
[data-animal="dog"] .nose{background:#34251e;box-shadow:none;z-index:1}
[data-animal="dog"] .mouth{z-index:1}
[data-animal="pig"] .animal-body,[data-animal="pig"] .ear{background:#ed9eb1;border-color:#9a556e}
[data-animal="pig"] .animal-body::after{background:#fac9d0}
[data-animal="pig"] .head{background:#f6b8c8;border-color:#9a556e}
[data-animal="pig"] .ear::after{background:#dd869e}
[data-animal="pig"] .tail{width:21px;height:19px;left:59px;border:5px solid #cc7c99;border-radius:50%;border-left-color:transparent;transform:rotate(-22deg)}
[data-animal="pig"] .nose{left:20px;top:26px;width:26px;height:16px;border-radius:48%;background:#e28ba6;border:1px solid #a95775;box-shadow:none}
[data-animal="pig"] .nose::after{content:"";position:absolute;left:6px;top:4px;width:4px;height:6px;border-radius:50%;background:#a95775;box-shadow:8px 0 #a95775}
[data-animal="pig"] .mouth{top:41px;border-color:#9a556e}
[data-animal="elephant"] .head,[data-animal="elephant"] .animal-body,[data-animal="elephant"] .ear{background:#9eabc9;border-color:#566783}
[data-animal="elephant"] .animal-body::after{background:#c2cce0}
[data-animal="elephant"] .head{left:10px;width:56px}
[data-animal="elephant"] .ear{bottom:25px;left:-8px;width:38px;height:47px;border-radius:48% 50% 62% 65%;transform:rotate(12deg)}
[data-animal="elephant"] .ear.right{left:48px;transform:scaleX(-1) rotate(12deg)}
[data-animal="elephant"] .ear::after{background:#c5b2cd;border-radius:inherit}
[data-animal="elephant"] .eyes{left:12px;box-shadow:22px 0 #372b23}
[data-animal="elephant"] .tail{height:22px;width:24px;left:55px;border-width:4px;border-color:#667895}
[data-animal="elephant"] .snout{display:block;z-index:1;top:29px;left:23px;width:27px;height:30px;border-left:11px solid #8495b5;border-bottom:10px solid #8495b5;border-radius:4px 2px 52% 58%;transform:rotate(-12deg)}
[data-animal="elephant"] .nose,[data-animal="elephant"] .mouth,[data-animal]:not([data-animal="cat"]) .stripes,[data-animal]:not([data-animal="cat"]) .whiskers{display:none}
.scene.rescued .eyes{height:4px;border-radius:50% 50% 0 0}
@keyframes leap{0%{left:49%;bottom:calc(var(--well-floor) + var(--rise));transform:translateX(-50%) rotate(0)}55%{bottom:81%;transform:translateX(-50%) rotate(-18deg) scale(1.07)}100%{left:82%;bottom:66%;transform:translateX(-50%) rotate(6deg)}}
