/* Walnut cabinet, padded rail and woven baize. All furniture belongs to this table. */
.holdem-table {
  --brass: #e5c58d;
  --card-width: clamp(32px, 9.6vw, 59px);
  --card-height: calc(var(--card-width) * 1.41);
  display: block;
  padding: 0 clamp(7px, 2%, 17px) clamp(10px, 2.4%, 21px);
  border: 1px solid #342823;
  border-radius: 19px;
  background: repeating-linear-gradient(2deg, transparent 0 3px, #130a060d 4px 5px),
    linear-gradient(110deg, #543d31, #302623 30%, #42312a 70%, #614737);
  box-shadow: inset 0 1px #ad8a64, inset 0 -3px #231c19, 0 6px 13px #281d1a28;
}
.holdem-meta { align-items: center; padding: 8px 10px; color: #f2dfbc; font-size: 11px; font-variant-numeric: tabular-nums; }
.holdem-meta > :first-child::before { content: '♦'; margin-right: 7px; color: #d4ac74; }
.holdem-felt {
  width: 100%;
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: clamp(9px, 1.6vw, 17px);
  border: clamp(8px, 1.6vw, 15px) solid #312523;
  border-radius: 25% / 45%;
  padding: clamp(14px, 2.4vw, 23px) 4px;
  background: repeating-linear-gradient(36deg, #def0d406 0 1px, transparent 1px 3px),
    repeating-linear-gradient(124deg, #01120e12 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 46% 39%, #367963 0%, #215948 49%, #11392f 100%);
  box-shadow: inset 0 0 0 1px #c9a775, inset 0 3px 13px 3px #041813ab, 0 1px 1px #c5a077, 0 4px 6px #150d0c;
}
.holdem-felt::before, .holdem-felt::after { content: ''; pointer-events: none; position: absolute; z-index: -1; }
.holdem-felt::before {
  inset: -7px; border: 1px dashed #9f7d6266; border-radius: inherit;
  box-shadow: 0 -3px 3px #95776555, 0 3px 3px #160d0c;
}
.holdem-felt::after { inset: 9%; border: 1px solid #e4c58b40; border-radius: 33% / 48%; box-shadow: 0 0 0 3px #183e3322; }
.holdem-table .holdem-seat {
  --card-width: clamp(35px, 7.8vw, 49px);
  --card-height: calc(var(--card-width) * 1.41);
  width: min(86%, 245px); position: relative; border: 0; border-radius: 0;
  padding: 0; gap: 14px; background: none; box-shadow: none;
}
.holdem-hole { flex: none; align-items: center; gap: 0; padding: 3px; }
.holdem-hole .playing-card:first-child { transform: translateY(1px) rotate(-8deg); }
.holdem-hole .playing-card + .playing-card { margin-left: calc(var(--card-width) * -.21); transform: rotate(7deg); }
.holdem-seat-info { flex: 1; color: #fff7e9; line-height: 1.45; text-shadow: 0 1px 2px #03261e; }
.holdem-seat-info strong { font-size: 14px; }
.holdem-seat.is-turn strong::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 5px 2px 0; background: #ffdc89; box-shadow: 0 0 0 2px #eec78128; }
.holdem-seat-info > span { white-space: nowrap; color: #e8ddbb; margin-left: 3px; }
.holdem-seat-info b { color: #ffde94; font-size: 16px; font-variant-numeric: tabular-nums; }
.holdem-bank { display: grid; width: 26px; height: 30px; place-items: center; }
.holdem-center { position: relative; width: auto; padding: 0; border: 0; gap: 8px; }
.holdem-phase { display: flex; align-items: center; gap: 9px; color: #f0e4c8; font-size: 12px; }
.holdem-phase .holdem-pot { display: inline-flex; gap: 7px; align-items: center; margin: 0; padding: 4px 11px; color: #ffe4aa; border: 1px solid #b89d65a3; border-radius: 20px; background: #15392f; font-size: 14px; font-variant-numeric: tabular-nums; }
.holdem-board { gap: clamp(4px, 1vw, 8px); }
.holdem-table .card-slot { border: 1px solid #c6be9447; background: #0d312822; box-shadow: inset 0 1px 3px #0b2a213d; }
.holdem-table .card-slot::after { content: '♧'; color: #d1d0ab55; font: normal calc(var(--card-width) * .45) Georgia, serif; }
:is(.holdem-table, .holdem-tile-cards) .playing-card {
  border: 1px solid #ece1c9; color: #242f32; background: linear-gradient(135deg,#fffef5,#fffaf0 60%,#ede2c9);
  box-shadow: 0 1px #beb09a, 0 2px #ab9c84, 1px 4px 5px #061c186b;
}
:is(.holdem-table, .holdem-tile-cards) .red-suit { color: #a43540; }
:is(.holdem-table, .holdem-tile-cards) .card-corner { font: bold calc(var(--card-width) * .28)/.92 Georgia, serif; }
.holdem-pips { position: absolute; inset: 23% 30%; }
.holdem-pips i { position: absolute; transform: translate(-50%,-50%); font: normal calc(var(--card-width) * .235)/1 Georgia, serif; }
.holdem-seal { display: grid; place-items: center; width: 47%; aspect-ratio: .83; border: 1px solid #ae91597a; outline: 1px solid #ae915943; outline-offset: 2px; border-radius: 50%; font: normal calc(var(--card-width) * .43)/1 Georgia, serif; }
.holdem-table .face-down {
  border: 2px solid #e7d7ba;
  background: repeating-linear-gradient(48deg,transparent 0 4px,#cfab7966 4px 5px,transparent 5px 9px),
    repeating-linear-gradient(-48deg,transparent 0 4px,#cfab7966 4px 5px,transparent 5px 9px),#63313c;
}
.holdem-table .face-down::before { content: ''; position: absolute; inset: 3px; border: 1px solid #e0c092; border-radius: 2px; }
.holdem-table .face-down::after { content: '♣'; display: grid; place-items: center; position: absolute; inset: auto; width: 53%; aspect-ratio: .83; border: 1px solid #e3c997; border-radius: 50%; background: #683641; color: #f4dfb4; font: normal calc(var(--card-width) * .38) Georgia,serif; }
.holdem-stack { --clay: #993e3d; --edge: #673034; position: relative; display: inline-block; width: 25px; height: 23px; flex: none; }
.holdem-stack > i {
  position: absolute; left: 0; bottom: 1px; width: 100%; height: 60%; border-radius: 50%;
  background: radial-gradient(ellipse closest-side,var(--clay) 55%,#e1cfa1 58% 66%,transparent 70%),
    repeating-conic-gradient(from 10deg,var(--clay) 0 45deg,#e9dabe 45deg 60deg);
  box-shadow: 0 2px var(--edge),0 3px 2px #09231cd1;
}
.holdem-stack > :nth-child(2) { bottom: 5px; }
.holdem-stack > :nth-child(3) { bottom: 9px; }
[data-seat="1"] .holdem-stack, .holdem-tray .holdem-stack:nth-child(2) { --clay: #496783; --edge: #2e414f; }
.holdem-pot .holdem-stack, .holdem-tray .holdem-stack:nth-child(3) { --clay: #bd904d; --edge: #765731; }
.holdem-pot .holdem-stack { width: 18px; height: 15px; }
.holdem-pot .holdem-stack > :nth-child(2) { bottom: 3px; }
.holdem-pot .holdem-stack > :nth-child(3) { bottom: 5px; }
.holdem-flight { pointer-events: none; position: absolute; z-index: 5; margin: -12px 0 0 -12px; }
.holdem-shoe, .holdem-tray { position: absolute; top: 49%; }
.holdem-shoe { --card-width: 35px; --card-height: 50px; left: 9%; transform: rotate(-14deg); }
.holdem-shoe .face-down { box-shadow: 0 2px #8b7668,0 4px #e0d2b9,0 5px #8b7668,0 7px #e0d2b9,0 9px 5px #102b24; }
.holdem-tray { right: 6%; display: flex; gap: 1px; padding: 4px 5px 2px; transform: rotate(11deg); border-radius: 8px; background: #15372e; box-shadow: inset 1px 2px 4px #071c16, 0 1px #b7b89963; }
.holdem-tray .holdem-stack { width: 20px; }
.holdem-controls { padding: 10px; align-items: center; border: 1px solid #c5b69d; border-radius: 13px; background: linear-gradient(#faf5ea,#eae1d1); color: #342d26; }
.holdem-controls .primary-button { color: #fff6db; background: #245440; border-color: #153d2e; box-shadow: inset 0 1px #71957b,0 2px #173e32; }
.holdem-controls .secondary-button { background: #fff9ee; color: #45372b; border: 1px solid #baaa8e; box-shadow: 0 2px #ccbea7; }
.holdem-controls .holdem-wager { align-items: center; }
.holdem-controls .holdem-wager label, .holdem-controls .holdem-wait { color: #584a3b; }
.holdem-controls .holdem-wager input { background: #fffcf4; color: #2b332d; border-color: #b2a389; }
.holdem-controls button:active:enabled { transform: translateY(1px); }
.holdem-presets .secondary-button { border-radius: 20px; }
@media (max-width: 680px) {
  .holdem-shoe, .holdem-tray { display: none; }
  .holdem-felt { border-radius: 18% / 28%; }
}
.holdem-controls:empty { border: 0; background: none; box-shadow: none; padding: 0; }
