/* 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:28px!important;padding:3px 6px!important;font:11px system-ui!important}
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}}
/* 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}

/* VIP: restore approved Build 39 winner/action typography (2026-11-18).
   Deliberately scoped to the card dialog: do not resize people, cards, or controls. */
body[data-isn-room] #gameDialog .showdown-result.compact-showdown {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"winner winner" "cards detail"!important;
  gap:5px 12px!important;
  align-items:center;
  min-width:0;
  padding:9px 13px!important;
  border:2px solid #efc96a!important;
  border-radius:8px;
  background:linear-gradient(105deg,#173622,#171b16)!important;
}
body[data-isn-room] #gameDialog .compact-showdown>.result-announcement {
  grid-area:winner!important;
  margin:0!important;
  padding:0!important;
  min-width:0;
  font:900 clamp(21px,2.15vw,29px)/1.16 Arial,system-ui,sans-serif!important;
  letter-spacing:.01em;
  color:#fff0ba!important;
  white-space:normal!important;
  text-overflow:clip!important;
  overflow:visible!important;
  overflow-wrap:anywhere;
}
body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-cards {
  grid-area:cards!important;
  justify-content:flex-start!important;
  gap:4px!important;
  margin:0!important;
}
body[data-isn-room] #gameDialog .compact-showdown .result-details-button {
  grid-area:detail!important;
  justify-self:end;
  min-height:47px!important;
  padding:8px 13px!important;
  border:2px solid #e4c46d!important;
  border-radius:7px;
  background:linear-gradient(#eacb81,#ba934e)!important;
  color:#18170e!important;
  font:800 clamp(18px,1.55vw,21px)/1.12 Arial,system-ui,sans-serif!important;
  white-space:nowrap;
}
body[data-isn-room] #gameDialog .compact-showdown .showdown-payout{display:none!important}
/* Keep the action explanation clearly legible between hands. */
body[data-isn-room] #gameDialog.desk-poker .desk-next-step {
  font-size:clamp(18px,1.65vw,23px)!important;
  line-height:1.28!important;
}
body[data-isn-room] #gameDialog.desk-poker .desk-situation #roomStatus {
  font-size:clamp(17px,1.4vw,20px)!important;
  line-height:1.28!important;
}
body[data-isn-room] #gameDialog.poker-fit .turn-prompt-copy>span {
  font-size:clamp(17px,1.5vw,22px)!important;
  line-height:1.3!important;
}
/* Details retain original full explanation and payout, with readable type. */
#cardResultDetails .showdown-result>strong{font-size:clamp(23px,2vw,28px)!important;line-height:1.2!important}
#cardResultDetails .showdown-winning-label{font-size:clamp(17px,1.35vw,20px)!important;line-height:1.3!important}
#cardResultDetails .showdown-payout{font-size:clamp(17px,1.25vw,20px)!important;line-height:1.4!important}
#cardResultDetails>button{min-height:46px;font-size:19px;font-weight:800}
@media(max-height:500px) and (min-width:651px){
 /* Landscape: winner, every winning card, and the large details button all fit. */
 body[data-isn-room] #gameDialog .showdown-result.compact-showdown{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"winner" "cards" "detail"!important;
 }
 body[data-isn-room] #gameDialog .compact-showdown .result-details-button{justify-self:start}
}
@media(max-width:650px){
 body[data-isn-room] #gameDialog .showdown-result.compact-showdown{gap:5px 7px!important;padding:7px 9px!important}
 body[data-isn-room] #gameDialog .compact-showdown>.result-announcement{font-size:clamp(19px,5vw,24px)!important;line-height:1.12!important}
 body[data-isn-room] #gameDialog .compact-showdown .result-details-button{font-size:17px!important;min-height:42px!important;padding:7px 9px!important}
 body[data-isn-room] #gameDialog.desk-poker .desk-next-step{font-size:17px!important}
 body[data-isn-room] #gameDialog.desk-poker .desk-situation #roomStatus{font-size:16px!important}
}
@media(max-height:500px){
 body[data-isn-room] #gameDialog .showdown-result.compact-showdown{gap:3px 7px!important;padding:5px 8px!important}
 body[data-isn-room] #gameDialog .compact-showdown>.result-announcement{font-size:clamp(17px,2.4vw,21px)!important;line-height:1.12!important}
 body[data-isn-room] #gameDialog .compact-showdown .result-details-button{min-height:34px!important;font-size:16px!important;padding:4px 7px!important}
 body[data-isn-room] #gameDialog .compact-showdown .showdown-winning-cards .playing-card{width:24px!important;height:33px!important;padding:2px!important}
 body[data-isn-room] #gameDialog.desk-poker .desk-next-step{font-size:16px!important}
 body[data-isn-room] #gameDialog.desk-poker .desk-situation #roomStatus{font-size:16px!important}
}
