/* The settled winner remains readable beside the next-hand controls. Full text is in Result details. */
body[data-isn-room] #gameDialog .showdown-result.compact-showdown{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"winner cards" "label cards" "payout detail";gap:2px 8px!important;width:100%;max-width:none!important;min-width:0;margin:0!important;padding:5px 8px!important;border:1px solid #b89950;background:#14271d;color:#ffe3a1;align-items:center;text-align:left}
body[data-isn-room] #gameDialog .compact-showdown>strong{grid-area:winner;font:700 13px/1.2 system-ui!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0;margin:0!important;padding:0!important}
body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-label{grid-area:label;font:600 10px/1.2 system-ui!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0;margin:0!important;padding:0!important;letter-spacing:0}
body[data-isn-room] #gameDialog .compact-showdown .showdown-payout{grid-area:payout;font:11px/1.2 system-ui!important;min-width:0;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-cards{grid-area:cards;display:flex!important;gap:2px!important;margin:0!important;padding:0!important}
body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-cards .playing-card{width:24px!important;height:33px!important;padding:2px!important;min-height:0!important;min-width:0!important;margin:0!important;flex:none}
body[data-isn-room] #gameDialog .compact-showdown .playing-card strong{font:700 13px/1 Georgia!important}
body[data-isn-room] #gameDialog .compact-showdown .playing-card em{font:11px/1 Georgia!important}
body[data-isn-room] #gameDialog .compact-showdown .result-details-button{grid-area:detail;min-height:50px!important;padding:8px 12px!important;font:800 clamp(16px,1.6vw,21px)/1.15 system-ui!important;white-space:nowrap;letter-spacing:.01em}
body[data-isn-room] #gameDialog .turn-prompt-copy:has(.compact-showdown){display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:center}
body[data-isn-room] #gameDialog .turn-prompt-copy:has(.compact-showdown)>:is(strong,span,.turn-prompt-kicker){display:none!important}
body[data-isn-room] #gameDialog .turn-prompt-copy:has(.compact-showdown)>.poker-footer-controls{margin:0!important}
body[data-isn-room] #gameDialog .desk-situation:has(.compact-showdown)>:is(strong,.desk-next-step,#roomStatus,.betting-callout){display:none!important}
body[data-isn-room] #gameDialog .desk-situation:has(.compact-showdown){display:block!important}
body[data-isn-room] #gameDialog .desk-situation:has(.compact-showdown)>.betting-stats{margin-bottom:3px!important}
body[data-isn-room] #gameDialog .stud-player-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cardResultDetails .showdown-result{font-size:16px;max-width:100%;overflow-wrap:anywhere}
#cardResultDetails .showdown-result>strong{font:700 20px/1.3 system-ui}
#cardResultDetails .showdown-winning-label{font:600 13px/1.3 system-ui}
#cardResultDetails .showdown-winning-cards,#cardResultDetails .showdown-board-cards{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}
#cardResultDetails .playing-card{width:42px;height:58px}
#cardResultDetails .showdown-payout{display:block;font:14px/1.5 system-ui}
@media(max-height:500px){body[data-isn-room] #gameDialog .showdown-result.compact-showdown{grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:"winner cards detail" "label cards detail" "payout cards detail";padding:3px 5px!important}body[data-isn-room] #gameDialog .compact-showdown .showdown-payout{-webkit-line-clamp:1;font-size:10px!important}body[data-isn-room] #gameDialog .compact-showdown>strong{font-size:11px!important}}
/* Build 39: one prominent settled-hand announcement; card faces and details stay visible. */
body[data-isn-room] #gameDialog .showdown-result.compact-showdown {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "announcement cards" "announcement detail" !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 6px 16px !important;
  min-height: 108px;
  padding: 12px 16px !important;
  text-align: center !important;
}
body[data-isn-room] #gameDialog .compact-showdown > strong.showdown-primary-announcement {
  grid-area: announcement !important;
  display: block !important;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  padding: 0 8px !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
  font: 900 clamp(27px, 2.8vw, 43px)/1.16 system-ui, sans-serif !important;
  letter-spacing: .005em;
  text-align: center !important;
  color: #fff0bb !important;
}
body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-label,
body[data-isn-room] #gameDialog .compact-showdown .showdown-payout {display: none !important;}
body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-cards {
  grid-area: cards !important;
  justify-self: end !important;
  align-self: end !important;
  justify-content: flex-end !important;
}
body[data-isn-room] #gameDialog .compact-showdown .result-details-button {
  grid-area: detail !important;
  justify-self: end !important;
  min-height: 54px !important;
}
@media (max-width: 720px) {
  body[data-isn-room] #gameDialog .showdown-result.compact-showdown {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "announcement announcement" "cards detail" !important;
    gap: 8px 12px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }
  body[data-isn-room] #gameDialog .compact-showdown > strong.showdown-primary-announcement {
    font-size: clamp(23px, 5vw, 31px) !important;
    padding: 0 !important;
  }
  body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-cards {
    justify-self: start !important;
    align-self: center !important;
  }
}
@media (max-height: 500px) and (min-width: 721px) {
  body[data-isn-room] #gameDialog .showdown-result.compact-showdown {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas: "announcement cards detail" !important;
    gap: 6px 12px !important;
    min-height: 0;
    padding: 5px 9px !important;
  }
  body[data-isn-room] #gameDialog .compact-showdown > strong.showdown-primary-announcement {
    font-size: clamp(22px, 2.3vw, 31px) !important;
  }
  body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-cards {
    align-self: center !important;
  }
}
/* Result cards sit outside the felt's card row, so explicitly retain their exposed faces. */
body[data-isn-room] #gameDialog .compact-showdown .playing-card,#cardResultDetails .playing-card{background:linear-gradient(135deg,#fffefa,#fff9ea 70%,#efe0bd)!important;color:#161d1a!important;text-shadow:none}
body[data-isn-room] #gameDialog .compact-showdown .playing-card.red,#cardResultDetails .playing-card.red{color:#a51d32!important}
body[data-isn-room] #gameDialog .compact-showdown .playing-card :is(em,strong),#cardResultDetails .playing-card :is(em,strong){color:inherit!important;visibility:visible!important}
/* Seat reactions share the heading, leaving all seven stud cards unobstructed. */
body[data-isn-room] #gameDialog .stud-player-heading:has(.seat-speech){display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:0 4px;align-items:center;flex-wrap:nowrap}
body[data-isn-room] #gameDialog .stud-player-heading:has(.seat-speech)>:is(img,svg){grid-column:1;grid-row:1/3}
body[data-isn-room] #gameDialog .stud-player-heading:has(.seat-speech)>strong{grid-column:2;grid-row:1}
body[data-isn-room] #gameDialog .stud-player-heading:has(.seat-speech)>small{grid-column:3;grid-row:1}
body[data-isn-room] #gameDialog .stud-player-heading .seat-speech{position:static!important;inset:auto!important;transform:none!important;grid-column:2/4;grid-row:2;width:100%;min-width:0;margin:0!important;padding:1px 3px!important;border:0;box-shadow:none;border-radius:3px}
body[data-isn-room] #gameDialog .stud-player-heading .seat-speech::after,body[data-isn-room] #gameDialog .stud-player-heading .seat-speech .comment-profile-button{display:none}
body[data-isn-room] #gameDialog .stud-player-heading .seat-speech .opponent-comment-copy p{font:600 10px/1.1 Georgia!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}
@media(max-width:650px){body[data-isn-room] #gameDialog.desk-stud .stud-player-heading>svg.vip-portrait{width:20px!important;height:21px!important}}
@media(orientation:landscape) and (max-height:500px){body[data-isn-room] #gameDialog.desk-stud .stud-player-heading>svg.vip-portrait{width:14px!important;height:14px!important}body[data-isn-room] #gameDialog .stud-player-heading .seat-speech .opponent-comment-copy p{font-size:8px!important}}
body[data-isn-room] #gameDialog.desk-stud .stud-winning-hand{flex:none;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:700 9px/1.2 system-ui!important;margin:0 0 2px;padding:0 2px}
body[data-isn-room] #gameDialog.desk-stud .stud-player-cards{flex:none}
