#be-flight{position:fixed;z-index:90;left:0;top:0;width:clamp(120px,17vw,220px);pointer-events:none;visibility:hidden;filter:drop-shadow(0 8px 12px #28070d30);will-change:transform}
#be-flight img{display:block;width:100%;height:auto;object-fit:contain}
#be-flight-controls{position:fixed;right:14px;bottom:14px;z-index:100;display:flex;gap:5px;padding:5px;border:1px solid #d5b36f;border-radius:30px;background:#360b17ed;box-shadow:0 4px 18px #21040925}
#be-flight-controls[hidden]{display:none}
#be-flight-controls button{font:600 11px/1.3 Arial,sans-serif;color:#fff1d6;background:transparent;border:0;border-radius:22px;padding:10px 12px;min-height:40px;cursor:pointer}
#be-flight-controls button:hover{background:#ffffff18}
#be-flight-controls button:focus-visible{outline:2px solid #efcf82;outline-offset:2px}
@media(max-width:600px){#be-flight{width:130px}#be-flight-controls{right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px))}}

#be-flight .be-wingbeat{display:block;width:100%;aspect-ratio:1;background-image:url("../../berichel-eagle-flight/assets/eagle-flap.png");background-size:200% 200%;background-repeat:no-repeat;animation:be-wingbeat .9s steps(1,end) infinite}
@keyframes be-wingbeat{0%,100%{background-position:0 0}25%{background-position:100% 0}50%{background-position:0 100%}75%{background-position:100% 100%}}
@media(prefers-reduced-motion:reduce){#be-flight .be-wingbeat{animation:none}}
#be-flight.be-perched .be-wingbeat{background-image:url('../../berichel-eagle-flight/assets/eagle-perched.png');background-size:300% 200%;animation:be-gaze 7.8s steps(1,end) infinite}
@keyframes be-gaze{0%,100%{background-position:0 0}17%{background-position:50% 0}34%{background-position:100% 0}51%{background-position:0 100%}68%{background-position:50% 100%}85%{background-position:100% 100%}}
@media(prefers-reduced-motion:reduce){#be-flight.be-perched .be-wingbeat{animation:none}}

/* Compact eagle controls; bottom-right reserved for chat. */
body #be-flight-controls{left:12px!important;right:auto!important;bottom:12px!important;width:max-content!important;max-width:calc(100vw - 24px)!important;gap:3px!important;padding:4px!important;border:1px solid #c5a15b!important;border-radius:22px!important;background:linear-gradient(135deg,#6b1f3a,#320b1a)!important;box-shadow:0 4px 14px #28091630,inset 0 1px 0 #ffffff20!important}
body #be-flight-controls button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:600 11px/1.2 Arial,sans-serif!important;letter-spacing:.1px;color:#fff5df!important;text-shadow:none!important;background:transparent!important;border:1px solid transparent!important;padding:6px 9px!important;min-height:32px!important;border-radius:16px!important;transition:background .18s ease,border-color .18s ease}
body #be-flight-controls button+button{border-left-color:#c5a15b55!important}
body #be-flight-controls button:hover{background:#ffffff18!important;border-color:#d5b36f88!important}
body #be-flight-controls button:focus-visible{outline:2px solid #f1d99c!important;outline-offset:2px!important;background:#ffffff18!important}
body #be-flight-toggle::before{content:"Ⅱ";font-size:13px;color:#e8c983}
body #be-flight-toggle[aria-pressed="true"]::before{content:"▶";font-size:10px}
body #be-sound-toggle::before{content:"♪";font-size:15px;color:#e8c983}
body #be-sound-toggle[aria-pressed="true"]::before{opacity:.6}
@media(max-width:600px){body #be-flight-controls{left:8px!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}}
@media(prefers-reduced-motion:reduce){body #be-flight-controls button{transition:none}}
