/* Keep the conversation and bottom controls visible on short screens when both panels are open. */
@media (max-height: 720px) {
  .bet-page:not(.miao-page) .room-recent-history {
    max-height: clamp(45px, calc((100dvh - 420px) / 4), 130px);
  }
  .bet-page:not(.miao-page) .live-orders-list {
    max-height: clamp(44px, calc((100dvh - 420px) / 4), 110px);
  }
}
@media (max-height: 580px) {
  .bet-page:not(.miao-page) .room-more-panel {
    max-height: clamp(50px, calc(100dvh - 410px), 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-height: 440px) {
  .fast-bet-sheet { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
}
/* The first active roadmap tab must remain readable over its blue background. */
.room-embedded-stat.roadmap header button.active { color: #fff; }
/* Keep the complete seconds-game order summary visible on narrow phones. */
@media (max-width: 360px) {
  .miao-bottom { padding-left: 8px; padding-right: 8px; gap: 4px; }
  .miao-bottom .miao-play-switch { min-width: 70px; }
  .miao-bottom .miao-clear { min-width: 42px; }
  .miao-bottom .miao-draw { min-width: 68px; }
  .miao-bottom > span { font-size: 11px; }
}
.miao-bottom > span { white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
