.lobby-page .game-dialog { width: min(900px, calc(100% - 32px)); padding: 24px; scrollbar-gutter: stable; }
.lobby-page .game-dialog .dialog-heading { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.lobby-page .game-dialog .detail-match { grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); gap: 20px; }
.lobby-page .game-dialog .detail-match .player { width: 100%; max-width: none; gap: 9px; }
.lobby-page .game-dialog .detail-match .avatar { width: 88px; height: 88px; margin-top: 0; border-radius: 8px; }
.lobby-page .game-dialog .detail-match .avatar img { object-fit: cover; }
.lobby-page .game-dialog .detail-match .player-name { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 15px; text-align: center; }
.lobby-page .game-dialog .detail-match .player-note { font-size: 11px; }
.lobby-page .game-dialog .detail-summary { border: 0; padding: 18px 0 22px; }
.lobby-page .game-dialog .detail-summary strong { font-size: 20px; }
.lobby-page .game-dialog .detail-summary p { font-size: 12px; }
.lobby-page .game-dialog .detail-summary > strong { min-height: 56px; line-height: 1.4; display: grid; align-items: end; }
.lobby-page .game-dialog .detail-summary > p { min-height: 42px; line-height: 1.75; }
.round-stakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.round-stake-column { min-width: 0; }
.round-stake-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.round-stake-heading h3 { min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.round-stake-heading > strong { display: flex; align-items: center; gap: 6px; flex: none; font-size: 16px; font-variant-numeric: tabular-nums; }
.round-stake-status { display: flex; align-items: center; gap: 6px; min-height: 32px; margin-bottom: 8px; color: var(--muted); font-size: 11px !important; }
.lobby-page .round-stake-status .lucide { width: 15px; height: 15px; }
.round-stake-column[data-confirmed="true"] .round-stake-status { color: var(--accent); }
.round-stake-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.round-stake-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 66px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.round-stake-item:nth-child(odd) { background: var(--surface-2); }
.round-stake-item img { width: 48px; height: 48px; object-fit: contain; }
.round-stake-item > span { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.round-stake-item > strong { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.round-stake-empty { min-height: 160px; border-top: 1px solid var(--line); padding: 24px 12px; text-align: center; color: var(--muted); }
.lobby-page .game-dialog .detail-footer { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 600px) {
  .lobby-page .game-dialog { width: calc(100% - 16px); max-height: 94dvh; padding: 16px 12px; }
  .lobby-page .game-dialog .detail-match { grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); gap: 8px; }
  .lobby-page .game-dialog .detail-match .avatar { width: 62px; height: 62px; }
  .lobby-page .game-dialog .detail-match .player-name { font-size: 12px; }
  .lobby-page .game-dialog .round-state { width: 88px; }
  .lobby-page .game-dialog .round-state-dial { width: 64px; height: 64px; }
  .lobby-page .game-dialog .detail-summary > p { min-height: 63px; }
  .round-stakes { gap: 12px; }
  .round-stake-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .round-stake-heading h3 { font-size: 12px; }
  .round-stake-status { align-items: flex-start; min-height: 44px; font-size: 10px !important; line-height: 1.5; }
  .round-stake-item { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 6px; min-height: 86px; padding: 8px 6px; }
  .round-stake-item img { width: 34px; height: 42px; grid-row: span 2; }
  .round-stake-item > span { font-size: 11px; }
  .round-stake-item > strong { grid-column: 2; font-size: 12px; }
  .round-stake-empty { padding: 20px 6px; min-height: 160px; font-size: 11px !important; }
}
/* The actions (Join coinflip, Check this round) stay in view at the bottom of long rounds. */
.lobby-page .game-dialog .detail-footer { position: sticky; bottom: -24px; z-index: 3; margin: 20px -24px -24px; padding: 14px 24px 24px; background: var(--surface); box-shadow: 0 -10px 18px -12px rgba(0, 0, 0, .45); }
@media (max-width: 600px) {
  .lobby-page .game-dialog .detail-footer { bottom: -16px; margin: 16px -12px -16px; padding: 12px 12px 16px; }
}
