:root {
  --bg: #0b0f14;
  --panel: #161c24;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #16a34a;
  --danger: #ef4444;
  --border: #273142;
  --font: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at top, #1b2430, #0b0f14 60%);
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

body[data-phase="game"] .container {
  max-width: 100%;
  padding: 18px;
}

body[data-phase="game"] h1 {
  display: none;
}

body[data-phase="game"] #table-card {
  background: transparent;
  border: none;
  padding: 0;
}

body[data-phase="game"] #table-card h2 {
  display: none;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

h1, h2, h3 {
  margin: 0 0 12px 0;
}

.hand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hand-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.turn-indicator {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  animation: turn-flash 1s ease-in-out infinite;
}

.turn-indicator .turn-arrow-left {
  font-size: 18px;
  line-height: 1;
}

.turn-indicator .turn-text {
  font-size: 10px;
  font-weight: 800;
}

@keyframes turn-flash {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

input, button {
  font: inherit;
}

input, select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1720;
  color: var(--text);
}

.room-code-input {
  width: 140px;
  max-width: 100%;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.half-input {
  width: 50%;
  max-width: 100%;
}

.name-input {
  width: 75%;
  max-width: 100%;
}

.tiny-select {
  width: 70px;
}

.field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #04130a;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: #334155;
  color: var(--text);
}

button.success {
  background: #22c55e;
  color: #052e16;
}

button.danger {
  background: var(--danger);
  color: #1f0a0a;
}

.action-button {
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rejoin-confirm-actions {
  justify-content: stretch;
  gap: 8px;
}

.rejoin-confirm-actions button {
  flex: 1 1 180px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.2;
  text-wrap: balance;
  white-space: normal;
}

.qr-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 12;
}

.qr-card {
  background: rgba(16, 24, 38, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 6px;
  justify-items: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.qr-card img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background: #0f1720;
}

.qr-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.radio-row,
.checkbox-group {
  display: grid;
  gap: 6px;
}

.radio-row label,
.checkbox-group label {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  font-size: 14px;
}

.option-disabled.option-checked::after {
  content: '✓';
  color: #94a3b8;
  font-weight: 700;
  margin-left: 6px;
}

.option-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.option-disabled input {
  cursor: not-allowed;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.qr-note {
  font-size: 28px;
  font-weight: 700;
  color: #fde68a;
  margin-top: 18px;
  display: block;
}

.spectator-count {
  text-align: center;
  margin-top: 12px;
}

.status.error {
  color: #f87171;
  font-weight: 700;
  animation: flash 2.4s ease-in-out 1;
}

.disband-details {
  color: #f87171;
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}

@keyframes flash {
  0% { opacity: 0.2; }
  17% { opacity: 1; }
  33% { opacity: 0.2; }
  50% { opacity: 1; }
  67% { opacity: 0.2; }
  100% { opacity: 1; }
}

.seat {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.room-code {
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: 6px;
  text-align: center;
  margin: 8px 0 0 0;
}

.room-code.room-code-float {
  margin: 10px 0 0 auto;
  text-align: right;
}

.room-code-label {
  display: block;
  font-size: 0.25em;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.room-code-value {
  display: block;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #101826;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
}

#settings-modal .modal-content {
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow: auto;
}

.settings-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.settings-tab {
  background: #253247;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.settings-tab.active {
  background: #0f3e2a;
  color: #dcfce7;
  border-color: #16a34a;
}

.settings-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: rgba(15, 23, 32, 0.5);
}

.table-oval {
  position: relative;
  width: 100%;
  max-width: min(1200px, 92vw);
  height: min(70vh, 70vw);
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at top, #1f8a46, #0f5a2b 70%);
  border: 6px solid #7a4a21;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
}

body[data-phase="waiting"] .table-oval {
  max-width: 780px;
  height: clamp(220px, 40vw, 380px);
  border-color: #6b4f2c;
  background: radial-gradient(circle at top, #1c7a3f, #0b4c26 70%);
}

.table-seats {
  position: absolute;
  inset: 0;
}

.table-seat {
  position: absolute;
  width: 120px;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.table-seat.empty {
  background: #101826;
  color: var(--muted);
}

.table-seat.occupied {
  background: #0b3b47;
  color: #d8f7ff;
  border-color: #22d3ee;
}

.seat-label-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
}

.seat-label-name {
  max-width: 98px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 11px;
}

.seat-label-stack-value {
  max-width: 98px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 10px;
  color: #a5f3fc;
}

.table-seat.is-you {
  border-color: #fbbf24 !important;
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.7),
    0 0 0 4px rgba(15, 23, 42, 0.95),
    0 0 0 7px rgba(251, 191, 36, 0.45) !important;
}

.table-seat.is-you.occupied {
  background: #2a1b0a;
  color: #fde68a;
}

.table-seat.selectable {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.table-seat.selectable:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: #38bdf8;
}

.seat-crown {
  font-size: 14px;
}

.seat-crown.left {
  order: -1;
}

.seat-crown.right {
  order: 1;
}

.community-cards {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  transform: translate(-50%, -50%);
  gap: 8px;
}

body.tv-mode .community-cards {
  gap: 16px;
  transform: translate(-50%, -50%) scale(1.67);
}

body.tv-mode .card-slot {
  width: 70px;
  height: 100px;
}

body.tv-mode .card-face {
  font-size: 30px;
}

body.tv-mode .card-rank {
  font-size: 30px;
}

body.tv-mode .card-suit {
  font-size: 34px;
}

.card-slot {
  width: 44px;
  height: 62px;
  border-radius: 6px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
}

.card-slot.filled {
  background: #f8fafc;
  border: 2px solid #cbd5f5;
}

.card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #0f172a;
}

.card-rank {
  letter-spacing: 0.3px;
  font-size: 22px;
  font-weight: 900;
}

.card-suit {
  font-weight: 900;
  font-size: 24px;
}

.card-rank.suit-two.suit-s,
.card-suit.suit-two.suit-s,
.card-rank.suit-two.suit-c,
.card-suit.suit-two.suit-c {
  color: #0f172a;
}

.card-rank.suit-two.suit-h,
.card-suit.suit-two.suit-h,
.card-rank.suit-two.suit-d,
.card-suit.suit-two.suit-d {
  color: #ef4444;
}

.card-rank.suit-four.suit-s,
.card-suit.suit-four.suit-s {
  color: #0f172a;
}

.card-rank.suit-four.suit-h,
.card-suit.suit-four.suit-h {
  color: #ef4444;
}

.card-rank.suit-four.suit-d,
.card-suit.suit-four.suit-d {
  color: #2563eb;
}

.card-rank.suit-four.suit-c,
.card-suit.suit-four.suit-c {
  color: #16a34a;
}

.hole-back-pair {
  position: absolute;
  display: flex;
  gap: 3px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.seat-bet {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.9);
  color: #ecfccb;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(34, 197, 94, 0.7);
  pointer-events: none;
}

.pot-display {
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translate(-50%, -50%);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  pointer-events: auto;
  text-align: center;
  white-space: nowrap;
}

.pot-line {
  cursor: help;
}

.pot-line + .pot-line {
  margin-top: 3px;
}

.pot-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(2, 6, 23, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pot-modal-backdrop.hidden {
  display: none;
}

.pot-modal-card {
  width: min(92vw, 420px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.48);
}

.pot-modal-title {
  font-size: 16px;
  font-weight: 800;
}

.pot-modal-eligible {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #cbd5e1;
}

.seat-note {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.6);
  pointer-events: none;
}

.seat-note.folded {
  background: rgba(127, 29, 29, 0.88);
  border-color: rgba(248, 113, 113, 0.8);
  color: #fee2e2;
}

.seat-note.swapped {
  background: rgba(30, 64, 175, 0.88);
  border-color: rgba(147, 197, 253, 0.85);
  color: #e0f2fe;
}

.seat-note.out {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e2e8f0;
}

.stand-warning {
  margin-top: 8px;
  font-size: 12px;
  color: #fca5a5;
}

.stand-warning.blink {
  animation: standBlink 1s ease-in-out infinite;
}

@keyframes standBlink {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.debug {
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 6px;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.buyin-list {
  display: grid;
  gap: 8px;
}

.buyin-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
}

.buyin-row .meta {
  line-height: 1.3;
}

.buyin-row .actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.buyin-row.pending {
  border-color: #0ea5e9;
}

.buyin-row.approved {
  border-color: #22c55e;
}

.buyin-row.rejected {
  border-color: #ef4444;
}

.seat-token-stack {
  position: absolute;
  display: grid;
  gap: 4px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.turn-arrow {
  position: absolute;
  font-size: 60px;
  color: #facc15;
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.7);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--turn-rotation, 0deg));
  animation: turn-pulse 1s ease-in-out infinite;
}

@keyframes turn-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) rotate(var(--turn-rotation, 0deg)) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--turn-rotation, 0deg)) scale(1.1);
  }
}

.seat-token {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.seat-token.dealer {
  background: #0b0f14;
  color: #f8fafc;
  border-color: #f8fafc;
}

.seat-token.sb {
  background: #4f46e5;
  color: #f8fafc;
  border-color: #312e81;
}

.seat-token.bb {
  background: #facc15;
  color: #0b0f14;
  border-color: #a16207;
}

.seat-token.all-in {
  background: #dc2626;
  color: #f8fafc;
  border-color: #7f1d1d;
}

/* hole-back-card legacy styles retained for any lingering markup */
.hole-back-card {
  width: 44px;
  height: 62px;
  border-radius: 6px;
  background: linear-gradient(160deg, #0b1220, #1e293b);
  border: 2px solid #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.hole-back-card.back-dark .card-back-inner {
  display: none;
}

.hole-back-card.back-blue {
  background: #ffffff;
  border: 2px solid #cbd5f5;
}

.hole-back-card.back-red {
  background: #ffffff;
  border: 2px solid #fca5a5;
}

.hole-back-card.offset {
  transform: translate(2px, -1px);
}

.slot-4 {
  margin-left: 14px;
}

.slot-5 {
  margin-left: 14px;
}

@media (max-width: 700px) {
  .container {
    padding: 16px;
  }

  .table-seat {
    width: 84px;
    font-size: 10px;
  }

  .card-slot {
    width: 34px;
    height: 48px;
  }

  .card-face {
    font-size: 16px;
    gap: 0;
  }

  .card-rank {
    font-size: 16px;
  }

  .card-suit {
    font-size: 18px;
  }
}

.hand-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.cards-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  touch-action: manipulation;
}

.card-mini {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  min-width: 44px;
  min-height: 62px;
}

.card-mini.offset {
  transform: translate(2px, -1px);
}

.card-mini.back {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 62px;
  position: relative;
}

.card-mini.placeholder {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  box-shadow: none;
}

.card-mini.from-hole {
  outline: 5px solid #22d3ee;
  outline-offset: -2px;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.6);
}

.card-mini.back.back-blue {
  background: #ffffff;
  border: 2px solid #cbd5f5;
}

.card-mini.back.back-red {
  background: #ffffff;
  border: 2px solid #fca5a5;
}

.card-mini.back.back-dark {
  background: linear-gradient(160deg, #0b1220, #1e293b);
  border: 2px solid #475569;
}

.card-back-inner {
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  background: #2563eb;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.back-blue .card-back-inner {
  background: #2563eb;
}

.back-red .card-back-inner {
  background: #dc2626;
}

.card-mini.back.back-dark .card-back-inner {
  display: none;
}

.helper {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.helper.hidden {
  display: none;
}

.helper.qr-note {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 12px;
  display: block;
}

.rejoin-list {
  display: grid;
  gap: 8px;
}

.rejoin-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101826;
}

.rejoin-room .meta {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.rejoin-room .code {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e2e8f0;
}

.rejoin-room .recent-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0f172a;
  background: #38bdf8;
}

.burn-slot {
  position: relative;
  margin-right: 12px;
  background: transparent;
  border: none;
}

.burn-stack {
  position: relative;
  width: 44px;
  height: 62px;
}

.burn-card {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: none;
  border-width: 2px;
  border-color: #94a3b8;
}

.card-back-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.card-back-option {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card-back-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-back-option.selected {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.card-back-preview {
  display: flex;
  gap: 6px;
}

.card-back-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.card-mini .card-face {
  justify-content: center;
  font-size: 18px;
  gap: 0;
}

.card-mini .card-rank {
  font-size: 18px;
}

.card-mini .card-suit {
  font-size: 20px;
}

.paused-note {
  display: block;
  color: #94a3b8;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: pausePulse 1s ease-in-out infinite;
  margin-top: 6px;
  font-size: 0.45em;
  text-align: center;
}

.player-settings-button {
  position: static;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.player-settings-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.player-bankroll {
  display: grid;
  justify-items: end;
  line-height: 1.05;
  margin-left: 2px;
}

.player-bankroll-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.player-bankroll-value {
  font-size: 14px;
  font-weight: 800;
  color: #e2e8f0;
}

@keyframes pausePulse {
  0% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.25;
  }
}

.hole-cards-list {
  display: grid;
  gap: 8px;
}

.player-hand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #101826;
}

.player-hand.winner {
  border-color: #facc15;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.6);
}

.player-hand .name {
  font-weight: 700;
}

.seat-role-badges {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
}

.seat-role-badges.inline {
  vertical-align: middle;
}

.you-tag {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.6px;
}

.seat-role-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #1f2937;
  color: #e2e8f0;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.seat-role-badge.dealer {
  background: #0b0f14;
  color: #f8fafc;
  border-color: #f8fafc;
}

.seat-role-badge.sb {
  background: #4f46e5;
  color: #f8fafc;
  border-color: #312e81;
}

.seat-role-badge.bb {
  background: #fde047;
  color: #0f172a;
}

.player-hand .cards-row {
  justify-content: flex-end;
}

.player-hand .result-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hand-rank {
  font-size: 12px;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: right;
}

.hand-separator {
  color: var(--muted);
  letter-spacing: 2px;
  font-weight: 700;
}

.best-hand-cards {
  justify-content: flex-end;
}

.winner-crown {
  font-size: 18px;
}

.showdown-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.action-panel {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.action-panel.hidden {
  display: none;
}

.reveal-panel {
  margin-top: 10px;
}

.reveal-panel .action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reveal-note {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.action-status {
  margin-top: 6px;
  text-align: center;
}

.action-row-main button {
  min-height: 42px;
}

.action-panel button:disabled {
  background: #1f2937;
  color: #94a3b8;
  border: 1px solid #334155;
  cursor: not-allowed;
  opacity: 1;
}

.action-panel input:disabled {
  background: #0f172a;
  color: #94a3b8;
  border-color: #334155;
  cursor: not-allowed;
  opacity: 1;
}

.action-panel input[type='range']:disabled {
  accent-color: #475569;
}

.action-call {
  background: #1d4ed8;
  color: #e2e8f0;
}

.premove-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f172a;
}

.premove-row.hidden {
  display: none;
}

.premove-label {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.premove-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #e2e8f0;
}

.raise-controls {
  display: grid;
  gap: 8px;
}

.raise-controls.hidden {
  display: none;
}

.raise-quick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.raise-quick-row button {
  font-size: 12px;
  min-height: 38px;
  padding: 8px 6px;
}

.raise-slider-row {
  display: grid;
  grid-template-columns: 1fr 110px 140px;
  gap: 8px;
  align-items: center;
}

#raise-slider {
  width: 100%;
  accent-color: #22c55e;
}

#raise-amount-input {
  width: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#action-raise-custom {
  min-height: 40px;
}

@media (max-width: 700px) {
  .raise-quick-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raise-slider-row {
    grid-template-columns: 1fr;
  }
}

.floating-kiph {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
}

.kiph-inner {
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 32, 0.9);
  border: 2px solid #64748b;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
