
.table-area { display: flex; flex-direction: column; gap: 1px; height: 100%; min-height: 0; min-width: 0; }

.felt {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  border-radius: 999px / 46%;
  background: radial-gradient(ellipse at 50% 42%, var(--felt) 0%, var(--felt2) 62%, #062a15 100%);
  border: 6px solid #3b2a1a;
  box-shadow: inset 0 0 40px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.4);
  overflow: visible;
}

.felt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: inherit;
  box-shadow: inset 0 0 40px rgba(0,0,0,.55);
  pointer-events: none;
}
.felt::after {
  content: "";
  position: absolute;
  inset: 13% 9%;
  z-index: 0;
  border-radius: 999px / 46%;
  border: 1.5px solid rgba(227,179,65,.22);
  pointer-events: none;
}
.felt > * { position: relative; z-index: 1; }

.center {
  position: absolute; left: 50%; top: 49%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px); max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 3;
}
.board { width: 100%; min-width: 0; }
.board .boardrow { gap: 6px; }
.pot { font-size: 13px; color: #ffe9a8; background: rgba(0,0,0,.35); border: 1px solid rgba(227,179,65,.4); border-radius: 999px; padding: 4px 12px; max-width: 100%; white-space: nowrap; }
.stageline {
  position: absolute; right: 16px; top: 4px;
  font-size: 12px; color: rgba(255,255,255,.75); letter-spacing: 1px;
  background: rgba(0,0,0,.3); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px; z-index: 3; white-space: nowrap;
}
.level {
  position: absolute; left: 4px; bottom: 4px;
  font-size: 11px; color: var(--dim); background: rgba(0,0,0,.3);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; z-index: 3;
  white-space: nowrap;
}

.turnbadge { position: absolute; right: 16px; bottom: 0px; z-index: 3; max-width: calc(100% - 32px); }
.turnbadge .badge { font-size: 12px; padding: 4px 10px; white-space: normal; overflow-wrap: anywhere; }

.button-dealer {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: #f7f7f2; color: #16202b; font-weight: 700; font-size: 13px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.5); z-index: 4;
  transform: translate(-50%, -50%);
}
.button-dealer.on { display: flex; }

.seats { position: absolute; inset: 0; z-index: 2; }

.seat {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
  min-width: 164px; max-width: 224px; padding: 6px 12px; border-radius: 14px;
  background: linear-gradient(180deg, #1c2531, #131a24);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  z-index: 2; text-align: left;
}
.seat .idcol { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.seat .pos { font-size: 10px; color: #0d1117; background: var(--dim); border-radius: 4px; display: inline-block; padding: 1px 5px; letter-spacing: 1px; align-self: flex-start; }
.seat .who { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .who small { color: var(--dim); margin-left: 4px; font-size: 10px; }
.seat .stack { font-family: var(--mono); font-size: 13px; color: #ffe9a8; }
.seat .cards { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 0 0 auto; min-height: 20px; }
.seat .cards .handname { font-size: 10px; color: var(--gold); margin-left: 0; white-space: nowrap; }
.seat .tag { font-size: 10px; min-height: 12px; color: var(--dim); white-space: nowrap; }
.seat .tag.fold { color: var(--fold); }
.seat .tag.check { color: var(--check); }
.seat .tag.call { color: var(--call); }
.seat .tag.raise { color: var(--raise); }
.seat .bet { font-family: var(--mono); font-size: 13px; color: #ffd76a; min-height: 15px; text-align: right; position: relative; top: -3px; }

.seat .bet { font-family: var(--mono), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

.seat.hero { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 4px 14px rgba(0,0,0,.5); }
.seat.acting { border-color: #7fd1a0; animation: pulse 1.1s ease-in-out infinite; }
.seat.folded { opacity: .45; filter: grayscale(.6); }
.seat.out { opacity: .3; }
.seat.allin .stack { color: var(--raise); }

.seat.winner { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 4px 14px rgba(0,0,0,.5); }

.seat .potwon { font-family: var(--mono); font-size: 10px; color: var(--call); min-height: 0; white-space: nowrap; }
.seat .crown {
  position: absolute; left: -6px; top: -10px;
  font-size: 17px; line-height: 1; z-index: 3; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.seat .crown[hidden] { display: none; }

.seat .crown:not([hidden]) { animation: crownpop .32s ease-out; }
@keyframes crownpop {
  0% { transform: scale(.4) translateY(-6px); opacity: 0; }
  60% { transform: scale(1.15) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(127,209,160,.9), 0 4px 14px rgba(0,0,0,.5); }
  50% { box-shadow: 0 0 0 4px rgba(127,209,160,.35), 0 4px 14px rgba(0,0,0,.5); }
}

.actionbar { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; justify-content: flex-start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); padding: 3px 8px; flex: 0 0 auto; min-width: 0; }


.actions { flex: 1 1 auto; display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; min-height: 44px; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; direction: rtl; }
.actions > * { flex: 0 0 auto; }
.actions:hover, .actions:focus-within { scrollbar-color: var(--sb-thumb-hover) transparent; }
.actions::-webkit-scrollbar { height: 6px; }
.actions::-webkit-scrollbar-track { background: transparent; }
.actions::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-color: transparent; min-height: 0; }
.actions::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
.actions .wait { color: var(--dim); font-size: 12px; direction: ltr; }
.actions button { min-width: 72px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: #fff; direction: ltr; }
.actions button b { margin-left: 5px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.actions .raisesize .quick button { min-width: 0; padding: 3px 7px; font-size: 11px; }
.actions button.fold { background: #3a4453; }
.actions button.check { background: #2f5f96; }
.actions button.call { background: #2f7a4d; }
.actions button.raise { background: #a83c31; }
.actions button.raise.allin { background: #8f2f26; border: 1px solid var(--gold); box-shadow: 0 0 0 1px rgba(212,175,55,.25); }
.actions button.ghost.next { background: transparent; color: var(--gold); border-color: var(--gold); }
.actions button.ghost.cashout { background: transparent; color: var(--dim); border-color: var(--line); }
.actions button.ghost.cashout:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }

.raisesize { display: flex; flex-direction: column; gap: 0; padding: 0; border: none; background: transparent; direction: ltr; }

.raisegroup { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; direction: ltr; }
.raisesize .quick { display: flex; gap: 4px; flex-wrap: nowrap; }
.raisesize .quick button { white-space: nowrap; }
.raisesize .sliderrow { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.raisesize input[type="range"] { width: 150px; min-width: 90px; height: 18px; flex: 0 1 auto; margin: 0; cursor: pointer; }

.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--log-bg); color: var(--dim); }
.badge.info { color: #cfe3ff; border-color: #33507a; }
.badge.call { color: #0d1117; background: var(--call); border-color: var(--call); font-weight: 700; }
.badge.best { color: #0d1117; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.badge.thin { color: var(--warn); border-color: var(--warn); }
.badge.wrong { color: #ffd7d3; border-color: var(--raise); background: rgba(224,87,74,.12); }
