.bird-world{padding-bottom:30px}
.bird-shell{padding-bottom:25px}
.bird-viewport{width:100%;overflow:hidden;border:1px solid var(--ui-line);background:var(--p0)}
.bird-stage{
  position:relative;width:100%;aspect-ratio:12/7;min-height:560px;overflow:hidden;background:var(--p0)
}
.bird-scene{display:block;width:100%;height:100%;shape-rendering:crispEdges}
.bs-sky{fill:var(--p0)}
.bs-ground{fill:color-mix(in srgb,var(--p1) 76%,var(--p0) 24%)}
.bs-shrubs rect{fill:var(--p1);opacity:.54}
.bath-rim,.bath-stand,.bath-foot{fill:var(--p2)}
.bath-bowl{fill:color-mix(in srgb,var(--p2) 68%,var(--p1) 32%)}
.bath-water{fill:var(--i2);opacity:.74}
.bath-foot-light{fill:var(--p1);opacity:.7}
.bird-square-stones rect{fill:var(--p1);opacity:.82}
.bird-square-grass rect{fill:var(--p2);opacity:.64}

.bird-back{position:absolute;z-index:8;left:2.5%;top:7%;width:58px;height:44px;text-decoration:none}
.bird-back i{position:absolute;left:8px;top:18px;width:34px;height:5px;background:var(--i1)}
.bird-back i::before{content:"";position:absolute;left:-8px;top:-7px;width:14px;height:14px;border-left:5px solid var(--i1);border-bottom:5px solid var(--i1);transform:rotate(45deg)}
.bird-back b{position:absolute;right:0;top:17px;width:7px;height:7px;background:var(--i2)}
.bird-back:hover i{transform:translateX(-3px);filter:drop-shadow(0 0 4px var(--i1))}

.bird-visitors{position:absolute;z-index:6;inset:0;pointer-events:none}
.visitor-bird{
  position:absolute;width:118px;height:104px;image-rendering:pixelated;
  transform-origin:50% 100%;
}
.visitor-bird i{position:absolute;display:block;background:var(--bird,#3a2634)}
.visitor-bird .vb-eye{background:var(--p2);width:7px;height:7px}

/* side-looking bird: blocky silhouette inspired by the uploaded reference */
.pose-side .vb-body{left:34px;top:38px;width:54px;height:38px;box-shadow:-12px 10px 0 var(--bird),12px 8px 0 var(--bird)}
.pose-side .vb-head{left:28px;top:20px;width:34px;height:34px;box-shadow:8px -8px 0 var(--bird)}
.pose-side .vb-beak{left:12px;top:31px;width:20px;height:10px}
.pose-side .vb-tail{left:82px;top:48px;width:28px;height:12px}
.pose-side .vb-leg-a{left:48px;top:76px;width:8px;height:22px}
.pose-side .vb-leg-b{left:70px;top:76px;width:8px;height:22px}
.pose-side .vb-eye{left:39px;top:27px}

/* upright bird */
.pose-upright .vb-body{left:38px;top:38px;width:48px;height:42px;box-shadow:-8px 10px 0 var(--bird),8px 10px 0 var(--bird)}
.pose-upright .vb-head{left:43px;top:17px;width:34px;height:34px;box-shadow:8px 6px 0 var(--bird)}
.pose-upright .vb-beak{left:74px;top:28px;width:20px;height:9px}
.pose-upright .vb-tail{left:28px;top:62px;width:20px;height:14px}
.pose-upright .vb-leg-a{left:48px;top:78px;width:8px;height:22px}
.pose-upright .vb-leg-b{left:70px;top:78px;width:8px;height:22px}
.pose-upright .vb-eye{left:59px;top:25px}

/* head-down bird */
.pose-peck .vb-body{left:38px;top:34px;width:52px;height:42px;box-shadow:-10px 10px 0 var(--bird)}
.pose-peck .vb-head{left:66px;top:52px;width:30px;height:30px}
.pose-peck .vb-beak{left:90px;top:72px;width:20px;height:8px}
.pose-peck .vb-tail{left:20px;top:40px;width:28px;height:12px}
.pose-peck .vb-leg-a{left:50px;top:76px;width:8px;height:22px}
.pose-peck .vb-leg-b{left:72px;top:76px;width:8px;height:22px}
.pose-peck .vb-eye{left:79px;top:59px}

.bird-slot-rim-left{left:27%;top:48%;transform:translate(-50%,-100%)}
.bird-slot-rim-right{left:69%;top:48%;transform:translate(-50%,-100%) scaleX(-1)}
.bird-slot-ground{left:50%;top:79%;transform:translate(-50%,-100%)}

.visitor-bird:nth-child(1){animation:bird-idle-a 8.8s steps(2) infinite}
.visitor-bird:nth-child(2){animation:bird-idle-b 11.6s steps(2) infinite}
.visitor-bird:nth-child(3){animation:bird-idle-a 13.2s steps(2) infinite reverse}
@keyframes bird-idle-a{0%,76%,100%{margin-top:0}80%,84%{margin-top:-4px}}
@keyframes bird-idle-b{0%,72%,100%{margin-left:0}76%,82%{margin-left:4px}}

.bird-note{
  position:absolute;z-index:9;left:18px;bottom:18px;width:min(410px,calc(100% - 36px));
  padding:16px 18px;border:1px solid var(--p1);background:color-mix(in srgb,var(--p0) 94%,transparent);
  color:var(--p2);box-shadow:6px 6px 0 rgba(0,0,0,.2)
}
.bird-note p{margin:0 0 5px;color:var(--p1);font-size:9px;letter-spacing:.13em}
.bird-note strong{display:block;margin-bottom:6px;font:700 1rem/1.5 "PingFang SC","Noto Sans CJK SC",sans-serif}
.bird-note span{display:block;color:var(--p2);font-size:.78rem;line-height:1.6;opacity:.82}

body.night .visitor-bird{--bird:#2b1d32}
body.night .bath-water{fill:#79b9df}
body.night .bird-note{border-color:#6479bc}
body.dusk .visitor-bird{--bird:#493044}
body.morning .visitor-bird{--bird:#3b3038}
body.day .visitor-bird{--bird:#342630}

@media(max-width:760px){
  .bird-world{width:calc(100% - 14px);padding-top:12px}
  .bird-viewport{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
  .bird-stage{width:980px;height:572px;min-height:572px;aspect-ratio:auto}
  .bird-scene{width:980px;height:572px}
}
@media(prefers-reduced-motion:reduce){.visitor-bird{animation:none!important}}
