/* The chip labels, board and hero's hand stay in their assigned lanes across streets. */
.room-table {
  --felt:#285e49;
  --rail:#373431;
  --brass:#d8b578;
  --ivory:#fff7df;
  width:100%;
  min-width:0;
  margin:0;
  container-type:inline-size;
}
.room-surface {
  position:relative;
  isolation:isolate;
  color:var(--ivory);
  height:clamp(328px,65cqw,495px);
  margin:0 auto;
  font-family:inherit;
  font-variant-numeric:tabular-nums;
}
.room-surface::before,.room-surface::after {
  content:"";position:absolute;pointer-events:none;z-index:-1;
  border-radius:42% / 47%;
}
.room-surface::before {
  inset:4.5% 1.5% 5%;
  border:clamp(8px,1.65cqw,14px) solid var(--rail);
  background-color:var(--felt);
  background-image:radial-gradient(ellipse at 48% 36%,transparent 23%,rgb(5 37 27 / 48%) 100%),url('/cards/table-cloth.webp');
  background-size:cover,180px;
  background-blend-mode:normal,soft-light;
  box-shadow:inset 0 0 0 2px #977954,inset 0 4px 14px 4px #16352a,0 1px 0 2px #5e574d,0 7px 0 2px #23201f,0 13px 16px #080c0b73;
}
.room-surface::after {inset:10% 5.7% 10.5%;border:1px solid #acc99d66;}
.room-seats {display:contents;}
.room-seat,.room-wager {
  position:absolute;left:var(--x);top:var(--y);
  transform:translate(-50%,-50%);white-space:nowrap;
}
.room-seat {
  z-index:2;background:#1b2629;border:1px solid #65766e;box-shadow:0 3px 4px #07151160;
  border-radius:9px;min-width:clamp(56px,11cqw,92px);
  padding:4px 7px;text-align:center;color:#fffbed;
  font-size:clamp(12px,2cqw,15px);line-height:1.18;
  box-sizing:border-box;
}
.room-name,.room-stack {display:flex;justify-content:center;align-items:center;gap:4px;}
.room-name strong {font-weight:760;letter-spacing:.015em;}
.room-name>span:not(.room-button):not(.room-turn) {font-size:.78em;}
.room-stack {font-size:.78em;color:#e4ece3;margin-top:3px;line-height:1.2;}
.room-stack:empty {margin-top:0;}
.room-seat.is-hero {background:#f0e5c8;border-color:#9f895b;color:#202c22;}
.room-seat.is-hero .room-stack {color:#3a4940;}
.room-seat.is-acting {outline:2px solid #ffc76e;outline-offset:2px;}
.room-seat.is-folded {background:#253330;border-color:#485951;color:#c3cec7;box-shadow:none;}
.room-seat.is-folded .room-stack {color:#d1ddd3;}
.room-button {
  display:grid;place-items:center;position:absolute;right:-8px;top:-9px;
  inline-size:18px;block-size:18px;border-radius:50%;
  background:#efd196;border:1px solid #72592f;color:#3d2e16;
  font-size:10px;font-weight:850;line-height:1;box-sizing:border-box;
}
.room-turn {inline-size:0;block-size:0;border-block:4px solid transparent;border-left:6px solid #ffd282;}
.room-seat.is-hero .room-turn {border-left-color:#735311;}
.room-wager {z-index:3;}
.room-bet {display:inline-flex;align-items:center;gap:3px;color:#fff9e9;font-size:clamp(10px,1.85cqw,14px);font-weight:650;line-height:1;}
.room-bet small,.room-pot small {font-size:.77em;}
.room-chips {
  display:inline-block;inline-size:clamp(12px,2.2cqw,18px);block-size:clamp(7px,1.25cqw,10px);
  border:2px dashed #ffdbad;border-radius:50%;box-sizing:content-box;
  background:#ac453c;box-shadow:0 2px #813c32,0 3px #f0c59a,0 5px #8b4034,0 6px #edc49d,0 8px #70372e;
  transform:rotate(-9deg);
}
.room-pot,.room-board,.room-hole {
  position:absolute;left:50%;transform:translate(-50%,-50%);
  display:flex;justify-content:center;align-items:center;
}
.room-pot {top:32%;border-radius:20px;padding:5px 10px;background:#142f27d9;gap:8px;line-height:1;color:#d1e0d2;white-space:nowrap;font-size:clamp(11px,1.9cqw,14px);}
.room-pot strong {color:#fff5d7;font-size:1.2em;}
.room-board {top:47%;gap:clamp(3px,.65cqw,6px);}
.room-slot {
  display:block;inline-size:clamp(28px,7.35cqw,58px);aspect-ratio:11/16;
  box-sizing:border-box;position:relative;
}
.room-slot:empty {border:1px solid #a4c6ad6b;border-radius:4px;background:#173f3026;}
.room-card {
  display:inline-block;vertical-align:middle;width:clamp(46px,8cqw,72px);max-width:100%;
  height:auto;aspect-ratio:11/16;object-fit:contain;
  border-radius:4%;box-shadow:0 1px 0 #d0cab9,0 2px 0 #948d7e,0 4px 6px rgb(5 18 12 / 48%);
  user-select:none;
}
.room-slot .room-card {width:100%;height:100%;display:block;}
.room-hole {top:76.5%;gap:0;z-index:1;}
.room-hole .room-card {width:clamp(54px,10.7cqw,89px);max-width:none;transform-origin:50% 95%;}
.room-hole .room-card:first-child {transform:rotate(-8deg);}
.room-hole .room-card+ .room-card {margin-left:-7px;transform:rotate(7deg);}
.room-hole.is-folded {filter:saturate(.35);}
.room-showdown {display:flex;flex-wrap:wrap;gap:8px 20px;padding-block:10px;align-items:center;color:inherit;font-size:13px;}
.room-showdown>div,.room-opened {display:flex;align-items:center;gap:5px;}
.room-opened .room-card {width:28px;max-width:none;}
.room-bet.is-moving {animation:room-wager .2s cubic-bezier(.16,1,.3,1);}
@keyframes room-wager {from {translate:0 4px;opacity:.65;}to {translate:0 0;opacity:1;}}
@container (max-width:440px) {
  .room-surface {height:335px;}
  .room-seat {min-width:49px;padding:4px 5px;}

}
@media (max-width:500px) {
  .room-table:is([data-count="8"],[data-count="9"]) .room-seat {min-width:44px;}
}
@media (prefers-reduced-motion:reduce) {
  .room-table *, .room-table *::before,.room-table *::after {animation:none!important;transition:none!important;}
}

/* Use the printed deck back even at the small opponent-seat size. */
.room-hidden-hand {
  position:absolute;inset:auto auto 100% 50%;display:flex;
  transform:translateX(-50%);pointer-events:none;
}
.room-hidden-hand .room-card {
  width:clamp(11px,1.7cqw,16px);max-width:none;height:auto;
  margin-bottom:-2px;transform:rotate(-8deg);box-shadow:none;
}
.room-hidden-hand .room-card + .room-card {margin-left:-3px;transform:rotate(8deg);}
