html,body{height:100%;overflow:hidden;overscroll-behavior:none}
.hero{min-height:0;height:100svh}
.live-word,#initial-word{cursor:default;touch-action:manipulation}
/* Keep the accessible duplicate and baseline marker out of native selection.
   Otherwise Safari can anchor Select All at the hidden heading's corner. */
.hero>.sr-only,.hero .baseline-probe{-webkit-user-select:none;user-select:none}
.opening-note{position:absolute;left:24px;right:24px;bottom:max(36px,env(safe-area-inset-bottom));margin:0;text-align:center;font:400 14px/1.6 StudioSUIT,sans-serif;letter-spacing:.015em;color:#746e63;pointer-events:none}
@media(max-width:760px){.opening-note{font-size:13px;bottom:max(30px,env(safe-area-inset-bottom))}}
@media(max-height:420px){.opening-note{bottom:12px;font-size:12px}}

/* Avoid a fallback-font placeholder at a different baseline during startup. */
#initial-word{visibility:hidden}

/* Smaller on tablet-sized viewports; regain the established large-screen
   scale gradually from 1366 to 1800px. Keep the flight surface at least as
   wide as the viewport so the bird still enters from the screen edge. */
@media(min-width:761px){
 .bird-stage{width:max(100vw,min(clamp(102vw,calc(176.654378vw - 1019.778802px),120vw),192svh))}
}
/* Small iPads can use the narrow-screen framing, too. Reduce that preset
   by the same 15% without changing the phone-sized presentation. */
@media(min-width:600px) and (max-width:760px){
 .bird-stage{width:199.466667vw}
}

/* A fixed home scene: gestures must not scale the animation surface. */
html[data-home-zoom-lock][data-scene="home"],
html[data-home-zoom-lock][data-scene="home"] body,
html[data-home-zoom-lock][data-scene="home"] .hero{touch-action:none}
