/* Test 40: Build 39's single bold instruction/result across remaining card games. */
body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-redundant { display:none!important; }
body[data-isn-room] #gameDialog.isn-unified-other-game .dealer-bubble[hidden] { display:none!important; }
body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-message {
  display:flex!important; align-items:center; justify-content:center; gap:14px;
  min-width:0; width:100%; margin:0!important;
  background:#152a1e; border:1px solid #c4a35b; border-radius:8px;
  padding:12px 14px!important; box-sizing:border-box; color:#fff0bd!important;
}
body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-headline {
  display:block; min-width:0; flex:1 1 auto;
  font:900 clamp(24px,2.8vw,42px)/1.15 system-ui,Arial,sans-serif!important;
  letter-spacing:-.015em; text-align:center; color:#fff0bd!important;
  overflow-wrap:break-word; white-space:normal;
}
body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-details-button {
  flex:none; min-height:54px; padding:10px 18px; margin:0;
  font:800 clamp(17px,1.7vw,22px)/1.12 system-ui,Arial,sans-serif;
  border:1px solid #c0a15d; border-radius:7px; background:#767676;
  color:white; white-space:normal; cursor:pointer;
}
body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-details-button:focus-visible {outline:3px solid #ffe8a4;outline-offset:3px;}
/* Dealer tables: one readable message, no repeated speech bubble or payoff strip. */
body[data-isn-room] #gameDialog.dealer-fit.isn-unified-other-game .dealer-layout {grid-template-rows:auto minmax(0,1fr) auto auto;}
body[data-isn-room] #gameDialog.dealer-fit.isn-unified-other-game .dealer-dock {display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
body[data-isn-room] #gameDialog.dealer-fit.isn-unified-other-game .dealer-dock .dealer-status.isn-unified-message {flex:1 1 260px;}
body[data-isn-room] #gameDialog.dealer-fit.isn-unified-other-game .dealer-actions {flex:0 1 auto;}
body[data-isn-room] #gameDialog.dealer-fit.isn-unified-other-game .dealer-payout-strip {display:none;}
/* Video poker: override small-viewport legacy rules that hide its status altogether. */
body[data-isn-room] #gameDialog.desk-machine.isn-unified-other-game .machine-status.isn-unified-message {display:flex!important; min-height:54px; margin:0 0 8px!important;}
body[data-isn-room] #gameDialog.desk-machine.isn-unified-other-game .machine-console {display:block;}
body[data-isn-room] #gameDialog.desk-machine.isn-unified-other-game .machine-hand-readout.is-final {display:none!important;}
body[data-isn-room] #gameDialog.desk-machine.isn-unified-other-game .machine-settlement {display:none!important;}
/* Stud layout: settlement keeps the Build 39 compact result but removes old duplicate text. */
body[data-isn-room] #gameDialog.desk-fixed.isn-unified-other-game .desk-situation .isn-unified-message {min-height:60px;}
body[data-isn-room] #gameDialog.desk-fixed.isn-unified-other-game .desk-situation:has(.compact-showdown) > :is(#roomStatus,.betting-callout,.desk-next-step,strong) {display:none!important;}
body[data-isn-room] #gameDialog.desk-fixed.isn-unified-other-game .stud-result {display:none!important;}
/* Keep details accessible and all existing game values readable. */
#isnOtherGameResultDetails.isn-unified-details {box-sizing:border-box;width:min(780px,94vw);max-width:94vw;max-height:85dvh;padding:20px;overflow:auto;color:#f3e5bd;background:#18291f;border:2px solid #d4b269;border-radius:12px;}
#isnOtherGameResultDetails::backdrop {background:rgba(0,0,0,.8);}
#isnOtherGameResultDetails .isn-unified-details-top {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
#isnOtherGameResultDetails h2 {margin:0 0 14px;font:800 clamp(22px,3vw,34px)/1.2 system-ui,Arial,sans-serif;color:#fff0c4;}
#isnOtherGameResultDetails button {min-height:48px;padding:9px 15px;border:1px solid #d4b269;border-radius:7px;background:#e2be72;color:#22190d;font:800 17px system-ui,Arial,sans-serif;cursor:pointer;}
#isnOtherGameResultDetails dl {display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:8px 16px;margin:14px 0;}
#isnOtherGameResultDetails dt {font-weight:800;color:#e1c785;}
#isnOtherGameResultDetails dd {margin:0;overflow-wrap:anywhere;}
#isnOtherGameResultDetails p {font:500 15px/1.5 system-ui,Arial,sans-serif;}
@media(max-width:760px){
 body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-message {flex-wrap:wrap;gap:8px;padding:8px!important;}
 body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-headline {flex:1 1 100%;font-size:clamp(20px,5vw,30px)!important;}
 body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-details-button {min-height:43px;font-size:16px;padding:7px 12px;}
 body[data-isn-room] #gameDialog.dealer-fit.isn-unified-other-game .dealer-dock .dealer-status.isn-unified-message{flex-basis:100%;}
 body[data-isn-room] #gameDialog.dealer-fit.isn-unified-other-game .dealer-actions{width:100%;flex:1 1 100%;justify-content:center;}
 #isnOtherGameResultDetails .isn-unified-details-top {flex-wrap:wrap;}
}
@media(max-height:500px) and (min-width:761px){
 body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-message {min-height:44px;padding:5px 8px!important;}
 body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-headline {font-size:clamp(18px,3.4vh,28px)!important;}
 body[data-isn-room] #gameDialog.isn-unified-other-game .isn-unified-details-button {min-height:39px;font-size:16px;padding:5px 8px;}
 body[data-isn-room] #gameDialog.desk-machine.isn-unified-other-game .machine-status.isn-unified-message{min-height:42px;margin:0 0 3px!important;}
}
/* A paying-hand label appears only once. The winning stud seat remains highlighted. */
body[data-isn-room] #gameDialog.isn-unified-other-game .stud-winning-hand {display:none!important;}
/* Keep the video-poker hand name, not a second copy of the active instructions. */
body[data-isn-room] #gameDialog.desk-machine.isn-unified-other-game .machine-hand-readout > small {display:none!important;}
