/* The expanded room pan belongs to Safari's document scroll. Keep the stage visible. */
html.iphone-browser.live-root-pan[data-page="live"]:not(.safari-compact),
html.iphone-browser.live-root-pan[data-page="live"]:not(.safari-compact) body {
  overflow: clip visible;
  overscroll-behavior-y: auto;
}

html.iphone-browser.live-root-pan[data-page="live"]:not(.safari-compact) body {
  min-height: calc(100lvh + var(--live-entry-scroll, 0px) + 144px);
}

html.live-root-pan[data-page="live"]:not(.safari-compact) .app.live-mode {
  position: sticky;
  inset: auto;
  top: 0;
}

html.live-root-pan[data-page="live"]:not(.safari-compact) .live-stage .live-frame {
  overflow: clip;
}

html.live-root-pan[data-page="live"]:not(.safari-compact) .live-stage :is(.live-picture,.live-rail-toggle,.live-chat-login,.live-chat-form button:not(#live-chat-talk),#live-chat-emoji) {
  touch-action: pan-y pinch-zoom;
}

html.live-root-pan[data-page="live"]:not(.safari-compact) :is(.live-chat-form,.live-chat-login,.live-chat-board) {
  position: absolute;
}

.live-chat-pan-label { display: none; }
html.site-flow.live-root-pan .live-chat-field:not(:focus-within) .live-chat-pan-label {
  display: block;
  position: absolute;
  inset: 0 40px 0 0;
  z-index: 2;
  opacity: 0;
  touch-action: pan-y pinch-zoom;
}

html.site-flow[data-page="events"] .tournament-card { overflow: clip; }
