/* r03: local corrections only; stage scale preserves CSS-pixel touch sizes. */
html body.app-view-table:not(.table-controls-left) #ponderActionBannerHud{left:-.7%;right:auto;}
html body.app-view-table.table-controls-left #ponderActionBannerHud{right:-.7%;left:auto;}
html body #ponderActionBannerHud .ponder-action-banner-row {
  grid-template-columns:2.4em 4.1em minmax(0,1fr);
  gap:.3em;padding-inline:.7em .45em;letter-spacing:0;
}
html body #ponderActionBannerHud .ponder-action-amount {
  min-width:0;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;
  overflow:visible;line-height:1.05;font-size:.94em;text-align:right;
}
/* Restore pre-frame position styling from the preserved base HTML. */
/* Move the rail and both step buttons together, in screen pixels at every stage scale. */
html body.action-ui-v1.app-view-table #actions.action-right-panel #raiseSliderWrap,
html body.action-ui-v1.app-view-table #actions.action-right-panel > button.raise-step-btn:not(#rabbitToggleBtn){left:calc(94.5% - 2px / var(--retina-stage-scale,1))!important;}
html body.action-ui-v1.app-view-table.table-controls-left #actions.action-right-panel #raiseSliderWrap,
html body.action-ui-v1.app-view-table.table-controls-left #actions.action-right-panel > button.raise-step-btn:not(#rabbitToggleBtn){left:calc(5.5% + 2px / var(--retina-stage-scale,1))!important;}
/* Only the manually opened graph rises above READ (361); other graph owners retain their layers. */
body #ponderStackFlowManual{z-index:362;}
.ponder-retire-dialog{position:fixed;inset:0;z-index:40000;display:grid;place-items:center;background:#0009;padding:12px;}
.ponder-retire-dialog>section{box-sizing:border-box;width:min(460px,94vw);max-height:90dvh;overflow:auto;padding:24px;border:1px solid #4eacbc;background:linear-gradient(135deg,#071c28,#0b101c 65%,#171128);box-shadow:0 0 20px #32b8ce20;color:#e1f9ff;font-family:inherit;}
.ponder-retire-dialog h2{font-size:21px;margin:0 0 18px;}
.ponder-retire-dialog p{font-size:14px;line-height:1.7;margin:0 0 16px;}
.ponder-retire-dialog footer{display:flex;gap:12px;}
.ponder-retire-dialog button{flex:1;min-height:44px;padding:9px;border:1px solid #5896a7;background:#0c2530;color:#e6fbff;font:700 15px/1.4 inherit;touch-action:manipulation;cursor:pointer;}
.ponder-retire-dialog [data-confirm]{background:#451722;border-color:#bd526a;color:#fff0f4;}
.ponder-retire-dialog button:focus-visible{outline:2px solid #8aeaf1;outline-offset:3px;}

/* Only server-public Seat 3 showdown cards have this transient class. */
/* The dedicated public-card layer crosses TABLE stacking without raising private cards or other seats. */
.ponder-opponent-bank-notice{position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);color:#e2a4ff;white-space:nowrap;font:700 .65em/1.2 Rajdhani,sans-serif;letter-spacing:.06em;text-shadow:0 0 5px #a54ee4,0 0 9px #ad59e67a;pointer-events:none;animation:ponder-opponent-bank 1900ms ease both;}
@keyframes ponder-opponent-bank{0%{opacity:0;translate:0 -4px}10%,89%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -4px}}
@media(prefers-reduced-motion:reduce){.ponder-opponent-bank-notice{animation:none;opacity:1;translate:0 0;}}

/* Keep the short notice below the existing rounded track. */
.opponent-action-timer.timebank-extended{overflow:visible;}
.opponent-action-timer.timebank-extended .opponent-action-timer-fill{border-radius:inherit;}
/* Keep the track measurable while it is idle so the READ sheet has stable clearance. */
body.app-view-table #seat6.spectator-seat6 .seat-stack-wrap .opponent-action-timer {
  display:block !important;
  visibility:hidden;
  top:calc(100% + .24em);
  bottom:auto !important;
  width:7.8em;
}
body.app-view-table #seat6.spectator-seat6-timer .seat-stack-wrap .opponent-action-timer.active {
  visibility:visible;
}
body.app-view-table #seat6.spectator-seat6 .opponent-action-timer-fill {
  display:block;
}


/* Seat 3 public showdown: fade the whole queue notice, without lifting cards. */
html body.app-view-table.seat-three-showdown-notice-dim #rankedQueueHud{opacity:.1!important;}
