/* The larger shared tray temporarily covers the action area and turn caption.
   It stays below the private dice and never changes the table's height. */
body.depth-theme.at-table .table #room-panel.action-panel { position:relative; }
body.depth-theme.at-table .table #room-panel>.combined-bid-picker {
  position:absolute;inset:auto 0 0;z-index:40;box-sizing:border-box;
  display:grid;grid-template-rows:18px 56px 56px;gap:6px;height:158px;
  padding:6px 4px;border:2px solid #dcb5ed;border-radius:16px;
  background:linear-gradient(145deg,#fff9ff,#eedbfd);box-shadow:0 4px 12px #7445932e,inset 0 1px 0 #fff;
  color:#69328b;min-width:0;overflow:hidden;isolation:isolate;
}
body.depth-theme.at-table .table #room-panel>.combined-bid-picker[hidden] { display:none; }
body.depth-theme.at-table .table .combined-bid-summary {
  font:700 12px/18px system-ui,sans-serif;text-align:left;padding-inline:3px;
  min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#87549e;
}
body.depth-theme.at-table .table .combined-bid-count-line { display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:6px;min-width:0;min-height:0; }
body.depth-theme.at-table .table .combined-bid-counts {
  display:grid;grid-auto-flow:column;grid-auto-columns:56px;grid-template-rows:56px;gap:6px;
  position:relative;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;touch-action:pan-x;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
body.depth-theme.at-table .table .combined-bid-counts::-webkit-scrollbar { display:none; }
body.depth-theme.at-table .table .combined-bid-faces { position:relative;display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:0;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-x; }
body.depth-theme.at-table .table .combined-bid-faces::-webkit-scrollbar { display:none; }
body.depth-theme.at-table .table :is(.combined-bid-option,.combined-bid-done) {
  display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;
  min-width:44px;width:100%;height:56px;min-height:56px;padding:2px;margin:0;
  border:2px solid #dcc5e8;border-radius:9px;background:linear-gradient(#fff,#f2eaf8);color:#633080;
  font:800 26px/1 system-ui,sans-serif;touch-action:manipulation;transform:none;text-shadow:none;
  box-shadow:inset 0 1px 0 #fff;cursor:pointer;
}
body.depth-theme.at-table .table .combined-bid-option strong { font:inherit;color:inherit; }
body.depth-theme.at-table .table .combined-bid-option[aria-selected=true] { border-color:#bf67cf;background:linear-gradient(#fff9fd,#f6d9f2);color:#903687;box-shadow:inset 0 0 0 1px #ffffffa8; }
body.depth-theme.at-table .table .combined-bid-option:disabled { opacity:.28;cursor:not-allowed; }
body.depth-theme.at-table .table .combined-bid-done { font-size:17px;color:#87591d;background:linear-gradient(#ffe89d,#ffcc69);border-color:#efc073; }
body.depth-theme.at-table .table .combined-bid-badge { display:block;font:700 10px/12px system-ui;color:#9476a5;margin-top:2px; }
body.depth-theme.at-table .table .combined-bid-badge-pure { color:#a54f96; }
body.depth-theme.at-table .table .combined-bid-badge-normal { color:#3d8b77; }
body.depth-theme.at-table .table .combined-bid-picker .die {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));
  width:clamp(34px,10vw,40px);min-width:0;height:clamp(34px,10vw,40px);padding:5px;gap:2px;margin:0;border:1px solid #ded8e6;border-radius:7px;
  background:linear-gradient(145deg,#fff,#f2f0f5);box-shadow:0 1px 0 #b7a5c2;transform:none;
}
body.depth-theme.at-table .table .combined-bid-picker .die .pip { background:#292332;box-shadow:inset 0 1px 1px #0003; }
body.depth-theme.at-table .table .combined-bid-picker .die:is(.one,.face-4) .pip { background:#dd3449; }
body.depth-theme.at-table .table .combined-bid-picker button:focus-visible { outline:2px solid #78419e;outline-offset:-4px; }
body.depth-theme.at-table .table #room-panel.has-combined-picker>:not(.combined-bid-picker) { visibility:hidden; }
body.depth-theme.at-table .table:has(#room-panel.has-combined-picker) .turn-message { visibility:hidden; }
/* Side remotes do not cover the table's turn caption. */
@media(min-width:900px) and (min-height:520px) {
  body.depth-theme.at-table .table:has(#room-panel.has-combined-picker) .turn-message { visibility:visible; }
}
/* In the narrow landscape remote, two rows keep all six enlarged faces visible. */
@media(orientation:landscape) and (max-height:519px) {
  body.depth-theme.at-table .table #room-panel>.combined-bid-picker { height:216px;grid-template-rows:18px 56px 114px; }
  body.depth-theme.at-table .table .combined-bid-faces { grid-template-columns:repeat(3,minmax(44px,1fr));grid-template-rows:56px 56px;gap:2px; }
  body.depth-theme.at-table .table:has(#room-panel.has-combined-picker) .turn-message { visibility:visible; }
}
@media(orientation:landscape) and (max-height:300px) {
  body.depth-theme.at-table .table #room-panel>.combined-bid-picker { height:192px;grid-template-rows:18px 48px 98px; }
  body.depth-theme.at-table .table .combined-bid-counts { grid-template-rows:48px; }
  body.depth-theme.at-table .table .combined-bid-faces { grid-template-rows:48px 48px; }
  body.depth-theme.at-table .table :is(.combined-bid-option,.combined-bid-done) { height:48px;min-height:48px;font-size:24px; }
  body.depth-theme.at-table .table .combined-bid-done { font-size:16px; }
  body.depth-theme.at-table .table .combined-bid-picker .die { width:36px;height:36px; }
}
@media(prefers-reduced-motion:reduce) { .combined-bid-picker * { transition:none!important;animation:none!important; } }
