/* Keep the original 4K caller, glass rails, chrome ball and full-width calling board.
   The canvas is extended to the embedded desk; its targets retain their rendered size. */
.linked-desk #stage { --touch:104px; --primary-touch:112px; --readable:28px; }
.linked-desk .phases { min-height:calc(var(--primary-touch) + 30px); gap:18px; }
.linked-desk.showhub-embedded .phases { padding-left:var(--embed-inset,160px); }
.linked-desk #bingo-game { color:var(--chrome); font-size:max(27px,var(--readable)); letter-spacing:.025em; }
.linked-desk .phase { font-size:max(20px,calc(var(--readable) * .83)); }
.linked-desk .rail-status { gap:18px; }
.linked-desk .rail-status .btn,
.linked-desk .prize-heading .btn {
  min-width:var(--touch); min-height:var(--touch); height:auto; width:fit-content;
  flex:0 0 auto; font-size:max(28px,var(--readable)); padding:12px 36px;
  transition-property:background-color,border-color,color,box-shadow,opacity;
}
.linked-desk body[data-draw-phase="waiting"] .pdot {background:var(--dim);box-shadow:none;}
.linked-desk .rail { overflow:hidden; }
.linked-desk .caller {
  display:grid; grid-template-columns:minmax(0,4fr) minmax(0,5fr);
  gap:44px; align-items:stretch;
}
.linked-desk .caller-top {flex-direction:column;justify-content:center;align-items:center;gap:32px;text-align:center}
.linked-desk .caller-meta {flex:none;width:100%}
.linked-desk body.board-max .now-ball {width:min(100%,1120px);height:auto;aspect-ratio:1}
.linked-desk .opboard-slot {
  container-type:size; display:grid; place-items:center; min-height:0; min-width:0;
}
.linked-desk .opboard {
  --tile-gap:clamp(8px,1.05cqh,18px);
  grid-template-columns:repeat(10,minmax(0,1fr)); gap:var(--tile-gap);
  width:min(100cqw,calc((100cqh - 8 * var(--tile-gap)) * 10 / 9 + 9 * var(--tile-gap)));
  margin:0; flex:none;
}
.linked-desk .oc {aspect-ratio:1;height:auto;border-radius:clamp(10px,2cqh,30px)}
.linked-desk .caller-meta .cnt, .linked-desk .panel .k, .linked-desk .prow .nm small {
  font-size:max(21px,calc(var(--readable) * .9));
}
.linked-desk .caller-meta .nick, .linked-desk body.board-max .caller-meta .nick {
  font-size:max(54px,var(--readable)); min-height:0;
}
.linked-desk .prize-heading { flex-wrap:wrap; }
.linked-desk #awardPages:not([hidden]) { display:flex; gap:12px; }
.linked-desk #awardPages .btn { padding-inline:20px; }
.linked-desk .prow .nm { font-size:max(48px,var(--readable)); }
.linked-desk .prow .nm {min-width:0;overflow-wrap:anywhere}
.linked-desk .prow .amt {font-size:max(51px,var(--readable));font-family:'Plus Jakarta Sans',sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.linked-desk .rail .awards-panel {
  flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:20px;
}
.linked-desk .awards-panel .prz {
  flex:1;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));min-height:0;
}
.linked-desk .prow {
  display:grid; grid-template-rows:auto minmax(0,1fr); gap:6px;
  align-items:start; padding:12px 24px; container-type:size; min-height:0;
}
.linked-desk .prow .amt {
  line-height:1;align-self:center;font-size:min(calc(158cqw / var(--amount-chars,6)),53cqh);
}
.linked-desk .prow .nm small {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.linked-desk .prow:has(.amt:empty) .nm {align-self:center}

.linked-desk body[data-draw-phase="calling"] #jpPanel {display:none}
.linked-desk .prow .amt:empty {display:none}
.linked-desk .phases .pill .mono { font-size:max(23px,calc(var(--readable)*.9)); }

.linked-desk .modal {position:fixed; padding:12px; z-index:50;}
.linked-desk .modal:not(.show) {visibility:hidden}
.linked-desk .modal-card {
  width:min(560px,100%); min-width:0; border-radius:var(--r-panel); border-width:1px;
  padding:clamp(12px,2.4vmin,26px); backdrop-filter:blur(26px);
}
.linked-desk .modal-card h2 {font-size:clamp(22px,3.3vmin,38px);margin:0}
.linked-desk .modal-card :is(.tk,.mk,.target) {font:400 15px/1.24 var(--font-display),sans-serif; margin:6px 0; letter-spacing:0;text-transform:none}
.linked-desk .modal-card .mk {display:none}
.linked-desk .modal-acts {gap:10px;margin-top:14px;justify-content:center}
.linked-desk .modal-acts .btn {font-size:16px;min-height:52px;height:auto;flex:0 1 auto;padding:8px 22px;border-radius:var(--r-btn);}
.linked-desk .modal-acts .btn:first-child {min-height:56px}
.linked-desk .linked-fields {display:grid;gap:5px;margin-top:8px}
.linked-desk .linked-fields :is(label,p) {font:400 15px/1.2 var(--font-display),sans-serif;color:var(--mut);margin:0}
.linked-desk .linked-fields :is(input,textarea,select) {
  font:500 17px/1.24 var(--font-display),sans-serif;color:var(--ink);min-height:52px;padding:6px 10px;
  width:100%;border-radius:var(--r-btn);border:1px solid var(--brd2);background:var(--bg);resize:none;
}
.linked-desk .linked-fields textarea {height:52px}
@media(max-width:1550px) {
  .linked-desk .phases {gap:12px;padding-right:32px}
  .linked-desk .phase {padding-inline:18px;letter-spacing:.08em}
  .linked-desk .rail-status .room-chip {padding-inline:20px}
}
@media(max-width:1100px) {
  .linked-desk .phases .phase:not(.now), .linked-desk .phases .phase-sep {display:none}
  .linked-desk .room-chip .rc-l {display:none}
  .linked-desk .rail-status .link-badge {display:none}
  .linked-desk main {grid-template-columns:minmax(0,1fr) 27%;gap:26px;padding-inline:40px}
  .linked-desk .caller {grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:20px}
  .linked-desk .caller-top {flex-direction:row;justify-content:flex-start;align-items:center;text-align:left}
  .linked-desk .caller-meta {flex:1;width:auto}
  .linked-desk .now-ball,.linked-desk body.board-max .now-ball {width:clamp(240px,28cqw,480px);height:auto;aspect-ratio:1}
}
@media(max-width:740px) {
  .linked-desk main {grid-template-columns:1fr}
  .linked-desk .rail {display:none}
  .linked-desk body[data-draw-phase="calling"] main {grid-template-columns:minmax(0,1fr) 36%}
  .linked-desk body[data-draw-phase="calling"] .rail {display:flex}
  .linked-desk .phases .phase {display:none}
  .linked-desk .room-chip {display:none!important}
  .linked-desk .caller {padding:30px}
}

/* The live desk carries one backdrop through the Back button, draw and timeline. */
.linked-desk body.caller-audience-open :is(.caller,#stage > .bg) {display:none}
.linked-desk body.caller-audience-open main {padding-bottom:calc(44px + var(--bingo-timeline-inset,0px))}
.linked-desk body.caller-audience-open .awards-panel,
.linked-desk body.caller-audience-open .prow {
  background:none;box-shadow:none;border:0;backdrop-filter:none;overflow:visible;
}
.linked-desk body.caller-audience-open .awards-panel {padding-inline:0}
.linked-desk body.caller-audience-open .awards-panel::before,
.linked-desk body.caller-audience-open .awards-panel > :is(.lg-rim,.lg-frost) {display:none}
.linked-desk body.caller-audience-open .prow {border-radius:0;padding-inline:0}
.linked-desk body.caller-audience-open .prow.next .nm {color:var(--accent-hi)}
#caller-audience:not([hidden]) {
  display:block;position:absolute;inset:0;width:100%;height:100%;border:0;
  pointer-events:none;
}
@media(max-width:740px){
  .linked-desk body.caller-audience-open main {grid-template-columns:minmax(0,1fr) 36%}
  .linked-desk body.caller-audience-open .rail {display:flex}
}
