.desk-review-open, .hand-show-open, #deskDuel[hidden], #deskReview:not([open]) { display:none; }
#game.rn-at.stage .pc-yours:has(.pc-facing:not([hidden])) .pc-move-help { display:none; }
@media (min-width:761px) and (max-height:680px) {
  #game.rn-at.stage:not(.phone-table) #controls.turn #actions {
    align-self:start; align-content:start; height:auto; grid-auto-rows:clamp(44px,8.5vh,60px);
  }
  #game.rn-at.stage:not(.phone-table) #controls.turn #actions > .btn {
    height:100%; min-height:44px; max-height:none;
  }
}
/* The rail and chairs cover the lower portion of the set. Put the horizon and working tables in the sightline between heads. */
#game.rn-at[data-main-floor]:not(.phone-table) .stage-set #venue { height:71%; object-position:50% 62%; }
#game.rn-at[data-main-floor] .stage-set #venue { animation:none; scale:1; }
#game.rn-at[data-main-floor]:not(.sp-held) .stage-set #venue { filter:brightness(max(.65,var(--mt-room))) saturate(.94); }
#game.rn-at[data-main-floor].sp-allin:not(.sp-held) .stage-set #venue { filter:brightness(.49) saturate(.85); }
#game.rn-at:not(.phone-table) #actions .desk-review-open, #deskReview button {
  appearance:none; background:#201f20; color:#f5f1e8; border:1px solid #88857e; border-radius:0;
  font:750 clamp(14px,1.1vw,19px)/1.05 var(--me-cond,var(--display)); text-transform:uppercase;
  padding:.65em 1em; cursor:pointer;
}
#game.rn-at:not(.phone-table) #actions .desk-review-open { display:inline-block; align-self:stretch; white-space:nowrap; }
#game.rn-at.stage:not(.phone-table) #controls.over #actions:has(> .btn:first-child ~ .desk-review-open:last-child):not(:has(> .btn:nth-child(2))) {
  display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  grid-template-rows:clamp(48px,7.5vh,78px); align-content:center; gap:6px;
}
#game.rn-at.stage:not(.phone-table) #controls.over #actions:has(> .btn:first-child ~ .desk-review-open:last-child):not(:has(> .btn:nth-child(2))) > :is(.btn,.desk-review-open) {
  grid-row:1; grid-column:auto; width:100%; min-width:0; height:100%; min-height:0; max-height:none; margin:0; box-sizing:border-box;
}
#deskReview button:hover, #game #actions .desk-review-open:hover { background:#393634; }
#deskReview button:focus-visible, #game #actions .desk-review-open:focus-visible { outline:2px solid #f4c76c; outline-offset:-4px; }

#deskReview {
  color-scheme:dark; width:min(580px,90vw); padding:0; color:#f4f0e7; background:#1b1a1b;
  max-height:85dvh; overflow:hidden; box-sizing:border-box; border:1px solid #706b62; border-top:4px solid #e9bd68;
  box-shadow:0 16px 65px #0009; font-family:var(--body,system-ui);
}
#deskReview[open] { display:flex; flex-direction:column; }
#deskReview::backdrop { background:#09090cc9; }
#deskReview header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 26px 18px; }
#deskReview small { display:block; color:#c9bb9c; font:750 13px/1.15 var(--display); letter-spacing:.09em; text-transform:uppercase; }
#deskReview h2 { margin:4px 0 0; font:800 clamp(30px,3vw,44px)/1 var(--display); text-transform:uppercase; }
#deskStreets { display:flex; border-block:1px solid #55524c; }
#deskStreets button { flex:1; border:0; border-right:1px solid #55524c; min-height:42px; }
#deskStreets button:last-child { border-right:0; }
#deskStreets button[aria-pressed=true] { color:#191819; background:#e8bd6b; }
#deskStreet { padding:0 26px 20px; overflow:auto; overscroll-behavior:contain; min-height:0; }
.desk-street-head { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:88px; border-bottom:1px solid #55524c; }
.desk-board { display:flex; gap:4px; align-items:center; }
.desk-board > span,.desk-no-bets { color:#c9c4b9; }
.desk-street-pot { margin:0; text-align:right; }
.desk-street-pot strong { font:800 clamp(22px,2.1vw,32px)/1.15 var(--display); font-variant-numeric:tabular-nums; }
#deskReview .card { --w:38px; width:var(--w); height:calc(var(--w)*1.4); flex:none; transform:none; animation:none; }
.desk-moves { list-style:none; margin:0; padding:0; }
.desk-moves li { padding:9px 0; border-bottom:1px solid #ffffff19; font-size:15px; }
.desk-settlement { margin-top:18px; border-left:3px solid #ddb566; padding-left:12px; }
.desk-settlement h3 { margin:0; font:750 16px/1.1 var(--display); text-transform:uppercase; color:#e8bd6b; }
.desk-settlement p { margin:.45em 0; }
.desk-shown { display:flex; align-items:center; gap:4px; margin-top:8px; }
.desk-shown span:first-child { margin-right:6px; }
.desk-review-mine { border-bottom:1px solid #55524c; margin:0; padding:8px 0; }
.desk-review-mine small { margin-right:6px; }
#deskReview .desk-shown .card { --w:38px; }
@media (max-width:760px), (max-height:540px) {
  #deskReview { width:min(580px,calc(100vw - 16px)); max-height:calc(100dvh - 16px); }
  #deskReview header { gap:8px; padding:10px 12px; }
  #deskReview h2 { font-size:clamp(22px,6.5vw,34px); }
  #deskReview button { min-height:44px; padding:.45em .55em; }
  #deskStreets button { min-width:0; min-height:44px; }
  #deskStreet { padding:0 12px 16px; }
  .desk-street-head { gap:8px; min-height:70px; }
  #deskReview .desk-board .card { --w:clamp(28px,8.8vw,38px); }
}

/* A rail-height crop. The live board and the live pot keep their places on the felt below. */
#deskDuel { position:absolute; inset:0 0 auto; height:64%; z-index:27; pointer-events:none; }
#game.rn-at #deskDuel > #mtFace:not([hidden]) {
  position:absolute; inset:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:100%; align-items:stretch; gap:2px;
  width:100%; max-width:none; height:100%; margin:0; padding:0; translate:none; transform:none;
  background:#19191a; border:0; border-bottom:3px solid #b39a6c; box-shadow:none; animation:none;
}
#game #deskDuel .mt-vs { display:none; }
#deskDuel .desk-showdown-title {
  position:absolute; top:0; left:50%; translate:-50% 0; z-index:1; padding:6px 16px;
  background:#19191a; color:#edcb83; font:750 clamp(13px,1vw,18px)/1.1 var(--me-cond);
  text-transform:uppercase; letter-spacing:.09em;
}
#game.rn-at #deskDuel .mt-side {
  position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:end;
  align-items:center; gap:clamp(8px,1vw,18px); padding:0 clamp(10px,1.25vw,24px) clamp(10px,1.4vh,18px);
  overflow:hidden; isolation:isolate; min-width:0; box-shadow:none;
  background:radial-gradient(ellipse at 50% 35%,#514b42 0,#2c2b2b 57%,#202023 100%);
}
#game.rn-at #deskDuel .mt-side::after {
  content:""; position:absolute; z-index:-1; inset:auto 0 0; height:48%;
  background:linear-gradient(transparent,#141316d9 78%);
}
#deskDuel .desk-face { position:absolute; inset:3% 6% 0; z-index:-2; overflow:hidden; }
#deskDuel .desk-face img { display:block; width:100%; height:130%; object-fit:contain; object-position:50% 0; }
#deskDuel .desk-face .desk-speaking-frame { position:absolute; inset:0; }
#deskDuel .desk-face .desk-speaking-frame[hidden] { display:none; }
#deskDuel .desk-face:has(.desk-speaking-frame:not([hidden])) > img:first-child { visibility:hidden; }
#game.rn-at #deskDuel .mt-side:last-child { grid-template-columns:auto minmax(0,1fr); }
#game.rn-at #deskDuel .mt-side:last-child .mt-cards { grid-column:1; grid-row:1; }
#game.rn-at #deskDuel .mt-who { justify-items:end; text-align:right; justify-self:end; margin:0; max-width:100%; }
#game.rn-at #deskDuel .mt-side:last-child .mt-who { grid-column:2; grid-row:1; justify-items:start; text-align:left; justify-self:start; }
#game.rn-at #deskDuel .mt-who b { padding:0; background:none; color:#fff8e9; font:800 clamp(23px,min(3.2vw,4.8vh),54px)/1 var(--me-cond); }
#game.rn-at #deskDuel .mt-who :is(small,em) { color:#f4efe5; font:700 clamp(13px,1.2vw,20px)/1.08 var(--me-cond); }
#game.rn-at #deskDuel .mt-who .mt-odds { color:#edcb83; }
#game.rn-at #deskDuel .mt-cards { display:flex; gap:4px; align-items:center; }
#game.rn-at #deskDuel .mt-cards .card { --w:clamp(46px,min(5.6vw,9.3vh),100px); }
#game.rn-at #deskDuel .mt-called .mt-lost { opacity:1; filter:none; }
#deskDuel .mt-called .mt-lost .desk-face { filter:saturate(.45); }
#game.rn-at #deskDuel .mt-called .mt-won { box-shadow:inset 0 -4px #efc66b; }
#game.rn-at #deskDuel .mt-won .mt-who .mt-odds { color:#1b1916; }
#game.rn-at.desk-duel :is(.sp-bars .sp-vs,.feed,#dealerDesk,#dealerFeed) { visibility:hidden; }
#game.rn-at.desk-duel #order, #game.rn-at.desk-duel:has(#deskDuel .mt-you) #table > .hole { visibility:hidden; }
#game.rn-at.desk-duel .ly-rail { visibility:hidden; }
#game.rn-at.desk-duel .sp-bars .sp-bottom { visibility:visible; }
#deskCaption, #game.desk-duel .feed > .speech { display:none; }
#game.desk-duel #deskCaption {
  display:block; position:absolute; z-index:28; top:calc(64% + 8px); left:10%; right:10%; pointer-events:none;
}
#deskCaption .speech { position:static; justify-content:center; }
#deskCaption .speech.show { display:flex; align-items:baseline; width:fit-content; max-width:100%; margin:auto; padding:5px 10px; gap:8px; background:#191819; }
#game.rn-at #deskCaption .speech-name { flex:none; padding:0; background:none; color:#ebc986; }
#game.rn-at #deskCaption .speech-text { max-width:none; min-height:0; padding:0; box-shadow:none; background:none; font-size:clamp(13px,1.3vw,20px); }
#deskCaption .speech-face, #deskCaption .speech-text::before, #deskCaption .speech-text::after { display:none; }

/* During a real hold the broadcast cuts to the floor official. The pause uses the tournament clock. */
#game.rn-at:not(.phone-table) > .sp-wait {
  grid-area:2 / 1 / 4 / 2; top:0; height:70%; overflow:hidden; animation:none; transform:none;
  background:#211f21 url("/static/props/marlowe-floor-hold.webp") center 29%/cover no-repeat;
  border-bottom:3px solid #c4a879;
}
#game.rn-at:not(.phone-table) > .sp-wait::before { inset:0; box-shadow:none; background:linear-gradient(90deg,transparent 38%,#121015c9 78%); }
#game.rn-at:not(.phone-table) .sp-wait-in { inset:auto 4% 8% auto; width:min(40%,520px); display:block; }
#game.rn-at:not(.phone-table) .sp-wait h2 { margin:0 0 .3em; max-width:none; font-size:clamp(25px,3.2vw,54px); scale:none; }
#game.rn-at:not(.phone-table) .sp-wait p span { font-size:clamp(14px,1.35vw,23px); }
#game.rn-at:not(.phone-table) .sp-wait-n { display:none; }
#game.rn-at:not(.phone-table):has(> .sp-wait.on) .ly-rail { visibility:hidden; }
/* Keep the empty chair in shot while the next payout is announced. */
#game.rn-at:not(.phone-table) > .sp-band {
  top:auto; bottom:23%; height:clamp(58px,8vh,92px); transform:none;
}
