/* Tower only. Stable picture height; native content and film remain intact. */
@supports (height: 100lvh) {
  @media (prefers-reduced-motion: no-preference) {
    html .score-shell[data-page="the-tower"] .tower-sticky {
      height: calc(100lvh - var(--tower-header-clearance));
    }
    @media (max-width: 900px) {
      html .score-shell[data-page="the-tower"] .tower-floor-copy {
        bottom: calc(max(8svh, env(safe-area-inset-bottom, 0px) + 18px) + 100lvh - 100svh) !important;
      }
      html .score-shell[data-page="the-tower"] .tower-labels {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 100lvh - 100svh);
      }
    }
    @media (max-width: 700px) {
      html .score-shell[data-page="the-tower"] .tower-floor-copy {
        top: clamp(16px, calc(100svh - 440px), 42svh) !important;
        bottom: calc(max(7svh, env(safe-area-inset-bottom, 0px) + 18px) + 100lvh - 100svh) !important;
      }
    }
    @media (max-width: 900px) and (max-height: 500px) {
      html .score-shell[data-page="the-tower"] .tower-floor-copy {
        top: 16px !important;
        bottom: calc(max(18px, env(safe-area-inset-bottom, 0px) + 12px) + 100lvh - 100svh) !important;
      }
      html .score-shell[data-page="the-tower"] .tower-floor-copy h2 {
        font-size: clamp(28px, 8svh, 40px) !important;
        line-height: .95 !important;
        margin-top: 10px !important;
      }
      html .score-shell[data-page="the-tower"] .tower-floor-copy p {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-top: 10px !important;
        padding: 10px 14px !important;
      }
      html .score-shell[data-page="the-tower"] .tower-floor-copy a { margin-top: 10px !important; }
    }
  }
}

/* The outgoing card is hidden immediately. Show the incoming copy in the same frame. */
@media (prefers-reduced-motion: no-preference) {
  html .score-shell[data-page="the-tower"] .tower-motion-ready .tower-floor-copy article[aria-hidden="false"] {
    transition: transform .2s;
  }
}
