/* Desktop layout (body:not(.phone)): where things go on a computer screen. Shared looks are in style.css. */

body:not(.phone) #mic-btn { display: none !important; }
/* desktop: one row (Show both | left card | right card), so it never reaches your own cards */
body:not(.phone) .below-board .show-panel { grid-template-columns: 1.6fr 1fr 1fr; width: 17em; }
body:not(.phone) .below-board .show-panel .show-both { grid-column: auto; }
body:not(.phone) .below-board .show-panel button { padding: 0.3em 0.4em; }
body:not(.phone) .below-board .show-panel .show-one { font-size: 1.1em; padding: 0.15em 0; }
body:not(.phone) .bottom-row .chat { grid-row: 1; }
/* Desktop bottom row: the chat column can shrink a little, the buttons sit at the right of their
   column and the column is never narrower than the buttons, so they never cover the chat. */
body:not(.phone) .bottom-row { grid-template-columns: minmax(200px, 320px) minmax(max-content, 1fr) auto; }
body:not(.phone) .bottom-row .action-bar:not(:has(.show-panel)) { width: max-content; justify-self: end; }
/* Desktop raise options: a panel like on phones (presets on top, slider + amount below).
   table.js puts it left of the buttons when there's room (.raise-left), otherwise above them (.raise-above). */
body:not(.phone) #actions { position: relative; }
body:not(.phone) #actions.raise-open .raise {
  position: absolute;
  z-index: 30;
  width: var(--panel-w, 440px);
  display: grid;
  grid-template-columns: 1fr 33%;
  gap: 0.45rem;
  padding: 0.55rem;
  background: rgba(15, 20, 25, 0.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
body:not(.phone) #actions.raise-open.raise-left .raise { right: calc(100% + 0.6rem); bottom: 0; }
body:not(.phone) #actions.raise-open:not(.raise-left) .raise { right: 0; bottom: calc(var(--bh) + var(--gap)); }
body:not(.phone) #actions.raise-open .presets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
body:not(.phone) #actions.raise-open .presets button { min-height: 38px; padding: 0; font-size: 14px; }
body:not(.phone) #actions.raise-open #raise-slide { width: 100%; min-height: 38px; }
body:not(.phone) #actions.raise-open #raise-input { width: 100%; min-height: 38px; }
/* Desktop raise options without a box around them, and a clear gap above the buttons */
body:not(.phone) #actions.raise-open .raise { background: none; border: 0; box-shadow: none; padding: 0; }
body:not(.phone) #actions.raise-open:not(.raise-left) .raise { bottom: calc(0.6rem + var(--bh) + 12px); }
/* bar padding + button row + gap */
body:not(.phone) #actions.raise-open.raise-left .raise { bottom: 0.6rem; }
body:not(.phone) #table {
  /* the felt (box minus 10.8em across and 8.8em down) stays a pool-table rectangle, 1.5:1 to 2.5:1:
     a narrow window makes the table smaller, never squarer */
  width: min(100cqw, (100cqh - 8.8em) * 2.5 + 10.8em);
  height: min(100cqh, (100cqw - 10.8em) / 1.5 + 8.8em);
  aspect-ratio: auto;
  margin: 0;
  font-size: clamp(9px, min(100cqw / 69, 100cqh / 41), 24px);
}
body:not(.phone) .felt { inset: 5.6em 5.4em 3.2em; }
/* ======= Desktop: Pause / Leave Table / Away live in the header bar (Poker Now style), so the
   table can use the whole area below it ======= */
body:not(.phone) header .header-info { margin-right: 0; }
body:not(.phone) header .top-bar:empty + * { margin-left: auto; }
/* the table uses the whole area: no room reserved for the buttons */
body:not(.phone) .table-area { padding: 0.4rem; }
body:not(.phone) .bottom-row .action-bar:has(.show-panel) { grid-column: 2; width: max-content; justify-self: end; }
body:not(.phone) .action-bar .show-panel { width: calc(2 * 108px + 0.5rem); }
body:not(.phone) .action-bar .show-panel button { min-height: 44px; }
body:not(.phone) .menu-join { display: none; }
body:not(.phone) #actions.raise-open:not(.raise-left) .raise { right: var(--rp-right); }
/* Desktop: bigger betting buttons when the screen has room (phones keep their size) */
body:not(.phone) #actions { --bw: clamp(108px, 8.5vw, 150px); --bh: clamp(48px, 7vh, 64px); }
body:not(.phone) #actions > button, body:not(.phone) #actions .fold-col > button, body:not(.phone) #actions #raise-btn { font-size: clamp(15px, 1.15vw, 19px); }
/* Desktop with room to spare: the table a little smaller than the space (small windows keep it full size) */
@container (min-width: 1000px) and (min-height: 480px) {
  body:not(.phone) #table {
    width: min(92cqw, (92cqh - 8.8em) * 2.5 + 10.8em);
    height: min(92cqh, (92cqw - 10.8em) / 1.5 + 8.8em);
  }
}
