:root {
  --bg-main: #0c0f17;
  --bg-card: rgba(22, 27, 39, 0.85);
  --bg-card-hover: rgba(29, 36, 52, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --felt-green: #143828;
  --felt-border: #23583f;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  font-size: 36px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.brand-text h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  color: var(--accent-primary);
}

.brand-text .tagline {
  color: var(--text-muted);
  font-size: 14px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Tabs */
.nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  overflow-x: auto;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-block {
  width: 100%;
}

/* Live Table Layout */
.table-view-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .table-view-grid {
    grid-template-columns: 1fr;
  }
}

.table-stage-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.table-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

.table-info-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.table-info-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-standalone-popout {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.seat-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.seat-pos-badges {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.pos-pill.pos-d {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #ef4444;
}

.pos-pill.pos-sb {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.pos-pill.pos-bb {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.seat-chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.seat-status-pill {
  display: none;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.seat-status-pill.folded {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

.seat-status-pill.all-in {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.seat-status-pill.eliminated {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.seat-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Poker Table Graphic */
.poker-table {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.felt-surface {
  position: relative;
  width: 90%;
  height: 85%;
  background: radial-gradient(circle at center, #1c4b36 0%, #102d20 85%, #0a1f16 100%);
  border: 12px solid #3d2314;
  outline: 4px solid #1a0f08;
  border-radius: 200px;
  box-shadow: 
    inset 0 0 50px rgba(0, 0, 0, 0.6),
    0 16px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Board */
.board-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.pot-badge {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
  font-size: 16px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.community-cards {
  display: flex;
  gap: 8px;
}

/* Cards */
.card {
  width: 48px;
  height: 68px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
  border: 1px solid #e2e8f0;
}

.card.red {
  color: #dc2626;
}

.card.black {
  color: #1e293b;
}

.card-back {
  background: repeating-linear-gradient(45deg, #1e3a8a, #1e3a8a 5px, #172554 5px, #172554 10px);
  border: 2px solid #ffffff;
}

.card-slot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

/* Seats Around Table */
.seats-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.seat {
  position: absolute;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.seat-avatar {
  position: relative;
  background: #1e293b;
  border: 2px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.seat.active-turn .seat-avatar {
  border-color: var(--accent-gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  animation: turnPulse 1.5s infinite;
}

@keyframes turnPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.seat.folded {
  opacity: 0.45;
}

.seat-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-chips {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 600;
}

.seat-cards {
  display: flex;
  gap: 4px;
}

.seat-cards .card {
  width: 32px;
  height: 46px;
  font-size: 11px;
}

.seat-bet {
  background: rgba(0, 0, 0, 0.7);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.dealer-button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  font-weight: 900;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ef4444;
}

/* Sidebar Action Feed */
.action-sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.live-tag {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.action-feed-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.feed-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-primary);
}

.feed-item.raise {
  border-left-color: var(--accent-gold);
}

.feed-item.fold {
  border-left-color: var(--accent-red);
  opacity: 0.7;
}

.feed-item.winner {
  border-left-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
}

/* Panels & Tables */
.card-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.content-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.content-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.positive {
  color: var(--accent-green);
  font-weight: 600;
}

.negative {
  color: var(--accent-red);
  font-weight: 600;
}

/* Testbench Layout */
.testbench-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .testbench-layout {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--accent-primary);
}

.form-group small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.result-card {
  display: flex;
  flex-direction: column;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.exchanges-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
}

.exchange-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.exchange-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.latency-badge {
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

pre.code-view {
  background: #090c12;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-x: auto;
  color: #cbd5e1;
  max-height: 180px;
}

.summary-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
}

.summary-box.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

/* Key box */
.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 20px;
  border-radius: var(--radius-md);
}

.key-box {
  margin-top: 12px;
}

.key-box label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.key-box code {
  display: block;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  word-break: break-all;
}

/* ========================================================
   Header Quick Links & Navigation Pills
   ======================================================== */
.header-quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-link-pill:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.pill-icon {
  font-size: 14px;
}

.pill-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
}

/* ========================================================
   Hand History View & Filters
   ======================================================== */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: rgba(22, 27, 39, 0.6);
  backdrop-filter: blur(8px);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.form-select {
  background: rgba(12, 15, 23, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent-primary);
}

.filter-stats {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}

.card-hand-chips {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.mini-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 36px;
  background: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.mini-card.red {
  color: #dc2626;
}

.mini-card.black {
  color: #1e293b;
}

.mini-card-slot {
  width: 26px;
  height: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.pot-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 12px;
}

.winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* ========================================================
   Interactive Hand Detail Modal
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  background: #111624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.2);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(22, 27, 39, 0.8);
}

.modal-header-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  transition: color 0.15s;
}

.btn-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Modal sections */
.modal-board-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 56, 40, 0.45);
  border: 1px solid var(--felt-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 14px;
}

.board-cards-display {
  display: flex;
  gap: 8px;
}

.board-card-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 60px;
  background: #ffffff;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.board-card-lg.red { color: #dc2626; }
.board-card-lg.black { color: #0f172a; }

.modal-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.modal-player-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.15s;
}

.modal-player-card.winner {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.06);
}

.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mp-name {
  font-weight: 700;
  font-size: 14px;
}

.mp-net {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.mp-net.positive { color: #34d399; }
.mp-net.negative { color: #f87171; }

.mp-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Timeline */
.action-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-street {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.street-header {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a5b4fc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.street-actions-list {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.action-row:last-child {
  border-bottom: none;
}

.act-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.act-badge.fold { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.act-badge.check { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.act-badge.call { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.act-badge.raise { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.act-badge.allin { background: rgba(220, 38, 38, 0.25); color: #fca5a5; border: 1px solid rgba(220, 38, 38, 0.5); }

/* ========================================================
   How It Works Documentation Styling
   ======================================================== */
.docs-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.docs-hero-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.formula-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #818cf8;
  margin-bottom: 12px;
}

.formula-math {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #f8fafc;
  margin-bottom: 14px;
}

.formula-math code {
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.formula-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 950px;
}

.docs-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}

.step-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.step-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

.code-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.check-badge {
  color: #34d399;
  font-weight: 600;
}

.trophy-badge {
  color: #fbbf24;
  font-weight: 600;
}

.doc-link {
  color: #818cf8;
  text-decoration: underline;
  cursor: pointer;
}

.doc-link:hover {
  color: #a5b4fc;
}

.docs-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.rule-box {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
}

.rule-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.rule-box strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.rule-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.callout-box {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.warning-callout {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.info-callout {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

.callout-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* Code Snippets */
.code-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.code-toggle-group {
  display: flex;
  gap: 8px;
}

.active-code-tab {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
}

.code-snippet-container {
  background: #090c14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 12px;
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.16);
}

.code-block {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 0;
}

/* Telemetry Endpoints */
.telemetry-endpoints {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.endpoint-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.http-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}

.http-badge.get {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.endpoint-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
}

.endpoint-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}

/* ========================================================
   AI Agent Platform Banner & Home Hero
   ======================================================== */
.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-type-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.home-hero-card {
  background: linear-gradient(135deg, rgba(22, 27, 39, 0.95) 0%, rgba(30, 27, 75, 0.45) 50%, rgba(6, 78, 59, 0.25) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.home-hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #818cf8;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.12);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-hero-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-hero-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.home-hero-card.collapsed {
  padding: 12px 24px;
}

.home-hero-card.collapsed .hero-body {
  display: none;
}

.home-hero-card.collapsed .hero-top-row {
  margin-bottom: 0;
}

.hero-main-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-main-header h2 span {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 980px;
  margin-bottom: 20px;
}

.hero-subtext strong {
  color: #f8fafc;
  font-weight: 700;
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.hero-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.hero-pillar:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.pillar-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.pillar-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.pillar-info span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-cta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.seat-robot-icon {
  font-size: 12px;
  margin-right: 4px;
  opacity: 0.9;
}

/* ==========================================================================
   API Contract & Developer Cheat Sheet
   ========================================================================== */

.contract-hero-row {
  margin-bottom: 20px;
}

.contract-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contract-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.cb-icon {
  font-size: 20px;
}

.contract-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schema-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.schema-pill:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.6);
  color: #ffffff;
}

.endpoint-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Codegen box */
.codegen-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 8px;
}

.codegen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #e2e8f0;
}

.codegen-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.codegen-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.codegen-row .lang-tag {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.codegen-row code {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #38bdf8;
  font-family: var(--font-mono);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Card Matrix Grid */
.card-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.suit-column {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.suit-col-header {
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.suit-col-header.black {
  color: #cbd5e1;
}

.suit-col-header.red {
  color: #f87171;
}

.card-badges-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.matrix-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  min-width: 30px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.3px;
}

.matrix-card.black {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.matrix-card.red {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Side-by-Side Contract Comparison */
.contract-side-by-side {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .contract-side-by-side {
    grid-template-columns: 1fr;
  }
}

.contract-col {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.col-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.http-tag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.http-tag.post {
  background: #0284c7;
  color: #ffffff;
}

.http-tag.res {
  background: #059669;
  color: #ffffff;
}

.contract-col pre.code-block {
  margin-bottom: 14px;
  max-height: 480px;
  overflow-y: auto;
}

/* Field Glossary */
.field-glossary {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.glossary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.glossary-item code {
  color: #818cf8;
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-mono);
}

.glossary-item span {
  color: var(--text-secondary);
  line-height: 1.4;
}

.glossary-item span code {
  color: #38bdf8;
  font-weight: 600;
  font-size: 11px;
}

/* ==========================================================================
   Standalone Table Mode (Desktop & Mobile)
   ========================================================================== */

.standalone-topbar {
  display: none;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.standalone-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.standalone-brand strong span {
  color: var(--accent-primary);
}

.standalone-logo {
  font-size: 20px;
}

.standalone-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.standalone-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.standalone-table-mode .standalone-topbar {
  display: flex;
}

body.standalone-table-mode .app-header,
body.standalone-table-mode .nav-tabs,
body.standalone-table-mode #home-hero-card,
body.standalone-table-mode #link-open-standalone {
  display: none !important;
}

body.standalone-table-mode .app-container {
  max-width: 1520px;
  padding: 14px 20px;
}

@media (min-width: 769px) {
  body.standalone-table-mode .poker-table {
    max-height: 580px;
    margin: 28px 0;
  }

  body.standalone-table-mode .action-sidebar {
    max-height: 680px;
  }
}

/* ==========================================================================
   Mobile & Tablet Responsive Poker Table Layout
   ========================================================================== */

@media (max-width: 768px) {
  .app-container {
    padding: 12px;
  }

  body.standalone-table-mode .app-container {
    padding: 8px 10px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo {
    font-size: 26px;
    padding: 6px 10px;
  }

  .brand-text h1 {
    font-size: 22px;
  }

  .header-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .header-quick-links {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
  }

  .quick-link-pill {
    flex-shrink: 0;
  }

  .nav-tabs {
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .nav-tab {
    font-size: 13px;
    padding: 8px 12px;
    flex-shrink: 0;
  }

  .table-stage-wrapper {
    padding: 14px;
  }

  .table-info-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 12px;
  }

  .table-info-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    font-size: 12px;
  }

  .info-stat-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .table-info-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .table-info-actions .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
  }

  /* Transform Oval Table into Mobile Felt Board + 2-Column Bot Seat Grid */
  .poker-table {
    aspect-ratio: auto;
    max-height: none;
    margin: 12px 0 0 0;
    display: block;
  }

  .felt-surface {
    width: 100%;
    height: auto;
    background: transparent;
    border: none;
    outline: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Top Felt Board for Pot & 5 Community Cards */
  .board-area {
    width: 100%;
    background: radial-gradient(circle at center, #1c4b36 0%, #102d20 90%, #0a1f16 100%);
    border: 3px solid #3d2314;
    border-radius: 14px;
    padding: 14px 10px;
    box-shadow:
      inset 0 0 24px rgba(0, 0, 0, 0.6),
      0 6px 16px rgba(0, 0, 0, 0.45);
    gap: 10px;
  }

  .pot-badge {
    font-size: 14px;
    padding: 4px 14px;
  }

  .community-cards {
    gap: 6px;
    justify-content: center;
    width: 100%;
  }

  .community-cards .card {
    width: 44px;
    height: 62px;
    font-size: 14px;
  }

  /* 6-Max Bot Seats as 2x3 Mobile Card Grid (Zero Overlap) */
  .seats-container {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    pointer-events: auto;
  }

  .seat {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  .seat.active-turn {
    border-color: var(--accent-gold);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  }

  .seat.active-turn .seat-avatar {
    border-color: transparent;
    box-shadow: none;
    animation: none;
  }

  .dealer-button {
    display: none;
  }

  .seat-pos-badges {
    display: inline-flex;
  }

  .seat-status-pill {
    display: inline-block;
  }

  .seat-avatar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: left;
  }

  .seat-header-row {
    justify-content: space-between;
    gap: 6px;
  }

  .seat-name {
    font-size: 12px;
    text-align: left;
  }

  .seat-chips-row {
    justify-content: space-between;
    margin-top: 3px;
  }

  .seat-chips {
    font-size: 12px;
  }

  .seat-bottom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 46px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .seat-cards .card {
    width: 32px;
    height: 44px;
    font-size: 11px;
  }

  .seat-bet {
    font-size: 11px;
    padding: 2px 7px;
    white-space: nowrap;
  }

  .action-sidebar {
    padding: 14px;
    max-height: 280px;
  }

  .standalone-topbar {
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .standalone-brand {
    font-size: 15px;
  }

  .standalone-badge {
    display: none;
  }
}




