/* The same action controls move onto the felt only while a claim is possible. */
#tableCalls {
  position:fixed; z-index:16; pointer-events:none; container-type:size;
  display:flex; align-items:flex-end; justify-content:center; overflow:hidden;
}
#tableCalls[hidden] { display:none; }
body:has(.shell-screen.show) #tableCalls { visibility:hidden; }
#tableCalls #actions {
  position:absolute; z-index:1; bottom:5%; left:50%; transform:translateX(-50%);
  display:flex; align-items:center; gap:clamp(8px,1.55cqw,22px); width:max-content;
  max-width:96%; margin:0; padding:clamp(7px,1.1cqw,15px) clamp(8px,1.65cqw,23px);
  pointer-events:auto; border:1px solid #e7bb70; border-top:3px solid #edcc87; border-radius:5px;
  background:linear-gradient(115deg,#24322a 0%,#15241e 32%,#0e1b18 100%);
  box-shadow:0 6px 20px #020804b0,inset 0 0 0 2px #c09b5e22;
  animation:call-choice-in .17s ease-out both;
}
#tableCalls.is-3d #actions { bottom:21%; }
#tableCalls .call-target {
  flex:none; gap:clamp(5px,.8cqw,12px); border-right:1px solid #b7985c7a; padding-right:clamp(6px,1.15cqw,18px);
}
#tableCalls .call-label { display:flex; flex-direction:column; align-items:flex-start; gap:3px; white-space:nowrap; }
#tableCalls .call-label small { font:700 clamp(10px,1.3cqw,16px)/1.2 system-ui,sans-serif; color:#e7bf7d; }
#tableCalls .call-label b { font:800 clamp(16px,2.65cqw,34px)/1.15 var(--display-face); color:#fff0ce; }
#tableCalls .tile.call-t { width:clamp(31px,4.6cqw,66px); box-shadow:0 1px 2px #030805,0 0 0 1px #e3be7c; }
#tableCalls .call-choices { display:flex; align-items:stretch; justify-content:center; gap:clamp(4px,.8cqw,12px); }
#tableCalls #actions button {
  min-height:clamp(44px,6.3cqw,74px); min-width:clamp(68px,9.5cqw,138px);
  flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  color:#2b1d0d; border:1px solid #efd29c; border-bottom:3px solid #a77742; border-radius:4px;
  background:linear-gradient(155deg,#fff0c7,#e7c78d 68%,#c9985c);
  font:850 clamp(17px,2.7cqw,36px)/1.13 var(--display-face); padding:.15em .55em; white-space:nowrap; touch-action:manipulation;
}
#tableCalls #actions button.big { background:linear-gradient(140deg,#b94832,#76271f); color:#fff1d0; border-color:#eead76; }
#tableCalls #actions button.ghost { color:#f1e4c6; background:#172721; border-color:#8c8063; font:700 clamp(14px,1.8cqw,24px)/1.15 system-ui,sans-serif; }
#tableCalls #actions button:hover { filter:brightness(1.09); }
#tableCalls #actions button:active { transform:translateY(1px); }
#tableCalls.has-combos #actions button:not(.ghost) { font:700 clamp(10px,1.25cqw,17px)/1.15 system-ui,sans-serif; }
#tableCalls .btn-tiles .tile { width:clamp(19px,2.9cqw,38px); margin:0; }
@keyframes call-choice-in { from { opacity:.3; translate:0 5px; } }
@container (max-width:540px) {
  #tableCalls #actions { gap:6px; padding:6px; }
  #tableCalls .call-target { padding-right:6px; gap:5px; }
  #tableCalls .call-choices { gap:4px; }
  #tableCalls #actions button { min-width:clamp(48px,16cqw,72px); min-height:44px; padding:3px 6px; }
  #tableCalls.has-combos #actions { width:96%; }
  #tableCalls.has-combos .call-label small { max-width:4.7em; white-space:normal; }
  #tableCalls.has-combos .call-target { gap:4px; }
  #tableCalls.has-combos .call-choices { flex:1; display:grid; grid-template-columns:repeat(var(--option-count),minmax(0,1fr)); min-width:0; }
  #tableCalls.has-combos #actions button { min-width:0; padding:3px 0; }
  #tableCalls.has-combos .btn-tiles { gap:1px; }
  #tableCalls.has-combos .btn-tiles .tile { width:clamp(14px,4.6cqw,23px); }
}
@container (max-width:370px) {
  #tableCalls.is-3d.has-combos #actions { bottom:19%; }
  #tableCalls.has-combos .call-target { gap:3px; padding-right:4px; }
  #tableCalls.has-combos .call-target .call-t { width:22px; }
  #tableCalls.has-combos .call-label { gap:1px; }
  #tableCalls.has-combos .call-label small { max-width:4em; font-size:9px; }
  #tableCalls.has-combos .call-label b { font-size:13px; }
}
@media(prefers-reduced-motion:reduce){ #tableCalls #actions { animation:none; } }
