/* Unmodified generated atlases are cropped by CSS, preserving alpha edges. */
.photo-cutout{display:block;width:100%;height:100%;background-image:url('assets/pigeon-plumages.png');background-repeat:no-repeat;background-size:400% 400%;background-position:var(--photo-x) var(--photo-y)}.photo-portrait{display:inline-block;position:relative;width:170px;aspect-ratio:1.039;vertical-align:middle;filter:drop-shadow(0 5px 3px #253d2c22)}.photo-portrait .photo-cutout{position:absolute;inset:0}.bird-art .photo-portrait{height:126px;width:131px}.sprite-stack.natural-stack{display:block;position:relative;width:100%;height:100%;isolation:isolate}.natural-stack .photo-ground{position:absolute;inset:0;transform-origin:62% 87%;animation:photo-breathe 3.7s ease-in-out infinite;z-index:2}.natural-stack .photo-flight{display:none;position:absolute;inset:-24%;background-image:url('assets/pigeon-flight.png');background-repeat:no-repeat;background-size:400% 800%;background-position:var(--photo-x) var(--photo-up);transform-origin:center;z-index:3}.natural-stack .pose-down{background-position:var(--photo-x) var(--photo-down)}.scene-bird .natural-stack{transform:scaleX(var(--dir,1))}.airborne .natural-stack{transform:scaleX(var(--dir,1)) rotate(var(--bank,0deg))}.airborne .natural-stack .photo-ground{display:none}.airborne .natural-stack .photo-flight{display:block}.airborne .pose-up{animation:photo-up .48s step-end infinite}.airborne .pose-down{animation:photo-down .48s step-end infinite}.natural-stack .photo-shadow{position:absolute;bottom:4%;left:17%;right:10%;height:7%;border-radius:50%;background:#353a282b;filter:blur(2px);z-index:1}.airborne .photo-shadow{display:none}.walk .natural-stack .photo-ground,.food .natural-stack .photo-ground,.water .natural-stack .photo-ground,.exit .natural-stack .photo-ground{animation:photo-walk .33s ease-in-out infinite alternate}.eat .natural-stack .photo-ground,.drink .natural-stack .photo-ground{animation:photo-peck .75s ease-in-out infinite}.roost .natural-stack .photo-ground{transform:translateY(4px) scaleY(.94)}.scene-bird.roost{width:116px;height:109px}.scene-bird.chick .natural-stack{filter:saturate(.68) sepia(.1)}.color-name{font-size:11px;line-height:1.4;color:#657a60;display:flex;align-items:center;gap:6px;margin:9px 0 0}.color-name i,.plumage-chip i{display:inline-block;width:9px;height:9px;min-width:9px;border:1px solid #9ba58c;border-radius:50%;box-shadow:inset 0 0 0 1px #ffffff55}.plumage-chip{font-size:9px;color:#7d876d;display:flex;align-items:center;gap:5px;margin:5px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-detail{text-align:center;padding:0 15px 12px;background:radial-gradient(ellipse at center,#e5ecdc,transparent 70%)}.photo-detail .photo-portrait{width:230px;max-width:100%}.photo-detail .color-name{justify-content:center;font-size:13px;color:#617658}.genetic-details{font-size:12px;border-top:1px solid #e3e6d7;margin-top:20px;padding-top:15px}.genetic-details summary,.inheritance-preview summary{cursor:pointer;color:#697f5d;line-height:1.5}.genetic-details p{font-size:12px}.genetic-details small{display:block;font-size:10px;color:#89917e;line-height:1.6}.inheritance-preview{border-top:1px solid #e3e6d7;padding-top:17px;margin-top:20px}.inheritance-preview p{font-size:12px}.color-outcomes{display:flex;flex-wrap:wrap;gap:10px}.color-outcomes>div{width:112px;background:#f1f3e8;border-radius:9px;padding:8px;text-align:center}.color-outcomes .photo-portrait{width:90px;filter:drop-shadow(0 2px 2px #253d2c22)}.color-outcomes b{display:block;font-size:14px;color:#547248}.color-outcomes small{display:block;font-size:10px;line-height:1.4;margin-top:5px;color:#7f8972}#detail{max-height:90svh;overflow:auto}@keyframes photo-breathe{50%{transform:translateY(-.7px) scaleY(1.006)}}@keyframes photo-walk{from{transform:translateY(-1px) rotate(-2deg)}to{transform:translateY(1px) rotate(2deg)}}@keyframes photo-peck{0%,100%{transform:rotate(0)}40%{transform:rotate(9deg) translateY(2px)}}@keyframes photo-up{0%,49.99%{opacity:1}50%,100%{opacity:0}}@keyframes photo-down{0%,49.99%{opacity:0}50%,100%{opacity:1}}@media(max-width:600px){.scene-bird.roost{width:76px;height:74px}.scene-bird .natural-stack .photo-ground{filter:drop-shadow(0 1px .3px #35453444)}.photo-detail .photo-portrait{width:200px}.color-outcomes>div{width:100px}.color-outcomes .photo-portrait{width:80px}.plumage-chip{font-size:8px;margin:4px 0 5px}.bird-art .photo-portrait{height:126px;width:131px}}@media(prefers-reduced-motion:reduce){.natural-stack .photo-ground{animation:none!important}.airborne .pose-up{animation:none!important;opacity:1}.airborne .pose-down{animation:none!important;opacity:0}}
/* Align the torso across the photographic upstroke/downstroke cells. */
.natural-stack .photo-flight.pose-up{transform:translateY(-24%)}
.natural-stack .photo-flight.pose-down{transform:translateY(27%)}
