/* FeltBots Watch — broadcast styles */
:root {
  --bg-base: #1a1a2e;
  --bg-card: #16213e;
  --bg-elevated: #0f3460;
  --accent-red: #e94560;
  --accent-red-deep: #b32a45;
  --accent-gold: #ffd700;
  --accent-gold-warm: #f0b400;
  --felt-green: #1a7a1a;
  --felt-green-deep: #0e4a0e;
  --felt-green-edge: #072907;
  --text-primary: #e0e0e0;
  --text-muted: #8b949e;
  --text-bright: #ffffff;
  --rail-wood: #3a1f0e;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --font-display: 'Inter', sans-serif;
}

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

.watch-shell {
  width: 100%;
  height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
html, body { height: 100%; margin: 0; }
#watch-new-root { display: flex; flex-direction: column; height: 100vh; }

/* ---------- Top broadcast strip ---------- */
.broadcast-bar {
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #0a0a18 0%, #12122a 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  height: 56px;
  flex-shrink: 0;
}
.bb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.bb-brand img { width: 32px; height: 32px; }
.bb-brand .wm { font-weight: 800; letter-spacing: -0.01em; font-size: 16px; color: var(--text-bright); }
.bb-brand .wm em { color: var(--accent-gold); font-style: normal; }
.bb-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  flex: 1;
}
.bb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.bb-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.bb-nav a.active {
  color: var(--accent-red);
  display: flex; align-items: center; gap: 6px;
}
.bb-nav a.active::before {
  content: ''; width: 7px; height: 7px; background: var(--accent-red);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent-red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.bb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.bb-cta {
  background: var(--accent-red);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.bb-cta:hover { background: #ff5570; }

/* ---------- Match header (table info, live ticker) ---------- */
.match-header {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--felt-green-deep) 0%, var(--bg-card) 60%);
  border-bottom: 1px solid rgba(255,215,0,0.2);
  height: 64px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.match-header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 100px, rgba(255,215,0,0.02) 100px, rgba(255,215,0,0.02) 101px);
  pointer-events: none;
}
.mh-live {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-red);
  color: white;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  margin-left: 18px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}
.mh-live .dot {
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.mh-table-info {
  display: flex; flex-direction: column;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 0;
}
.mh-table-info .num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}
.mh-table-info .meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.mh-stats {
  display: flex;
  margin-left: auto;
  height: 100%;
}
.mh-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 22px;
  border-left: 1px solid rgba(255,255,255,0.06);
  min-width: 90px;
}
.mh-stat .label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mh-stat .value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.mh-stat .value.gold { color: var(--accent-gold); }

/* ---------- Main broadcast layout ---------- */
.broadcast-main {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 0;
  min-height: 0;
}
.left-rail, .right-rail {
  background: var(--bg-card);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.right-rail { border-right: none; border-left: 1px solid rgba(255,255,255,0.06); }
.rail-section {
  display: flex; flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 0;
}
.rail-section:last-child { border-bottom: none; }
.rail-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.rail-header .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255,215,0,0.1);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0;
}

/* ---------- Felt arena ---------- */
.felt-arena {
  position: relative;
  background:
    radial-gradient(ellipse at center, #1a1a30 0%, #0a0a18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 110px 130px;
  min-height: 0;
  overflow: hidden;
}
.felt-arena::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.felt-table {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: 50% / 50%;
  background:
    radial-gradient(ellipse at 50% 40%, #2a9a2a 0%, var(--felt-green) 40%, var(--felt-green-deep) 80%, var(--felt-green-edge) 100%);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 8px var(--felt-green-edge),
    inset 0 0 0 14px var(--rail-wood),
    inset 0 0 0 16px #1a0e05,
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(26, 122, 26, 0.15);
}
.felt-table::before {
  /* subtle felt texture via repeating gradient */
  content: '';
  position: absolute; inset: 16px;
  border-radius: 50% / 50%;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 3px),
    repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 3px);
  pointer-events: none;
}
.felt-table::after {
  /* inner oval ring */
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50% / 50%;
  border: 1px solid rgba(255, 215, 0, 0.12);
  pointer-events: none;
}

/* table-center info */
.table-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  z-index: 4;
  width: 80%;
  max-width: 460px;
}
.round-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  white-space: nowrap;
}
.community-cards {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.pot-display {
  text-align: center;
  margin-top: 4px;
}
.pot-display .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,215,0,0.7);
  text-transform: uppercase;
  font-weight: 600;
}
.pot-display .amount {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.4), 0 2px 0 rgba(0,0,0,0.5);
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pot-display .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Cards */
.card {
  width: 44px;
  height: 62px;
  background: linear-gradient(180deg, #fdfdf8 0%, #efeee8 100%);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 6px;
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.08);
  color: #111;
}
.card.red { color: #c82d2d; }
.card .corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.card .corner .suit { font-size: 12px; }
.card .corner.bottom {
  align-self: flex-end;
  transform: rotate(180deg);
}
.card.back {
  background:
    repeating-linear-gradient(45deg, #b32a45 0, #b32a45 4px, #8a1f35 4px, #8a1f35 8px);
  border: 2px solid #1a1a2e;
}
.card.placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  box-shadow: none;
}
.card.lg {
  width: 56px; height: 78px; font-size: 20px;
}
.card.lg .corner .suit { font-size: 16px; }
.card.sm {
  width: 30px; height: 42px; font-size: 11px; padding: 3px 4px;
}
.card.sm .corner .suit { font-size: 9px; }

/* Player seats — positioned around oval */
.seat {
  position: absolute;
  width: 156px;
  z-index: 3;
}
.seat-card {
  background: linear-gradient(180deg, #1a1f3e 0%, #0e1330 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  transition: all 0.2s;
}
.seat.active .seat-card {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold), 0 0 28px rgba(255,215,0,0.35), 0 6px 18px rgba(0,0,0,0.5);
  background: linear-gradient(180deg, #2a2540 0%, #1a1530 100%);
}
.seat.folded .seat-card {
  opacity: 0.4;
  filter: saturate(0.4);
}
.seat.allin .seat-card {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 1px var(--accent-red), 0 0 28px rgba(233,69,96,0.4), 0 6px 18px rgba(0,0,0,0.5);
}
.seat-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.seat-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.seat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seat-model {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 1px;
}
.seat-stack {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.seat-stack .unit { font-size: 10px; color: rgba(255,215,0,0.6); }
.seat-status {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 6px;
  padding: 3px 6px;
  border-radius: 3px;
  display: inline-block;
}
.seat-status.thinking { background: rgba(255,215,0,0.15); color: var(--accent-gold); }
.seat-status.acted { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.seat-status.folded { background: rgba(139,148,158,0.15); color: var(--text-muted); }
.seat-status.allin { background: rgba(233,69,96,0.2); color: var(--accent-red); }
.seat-status.waiting { background: rgba(3,218,198,0.0); color: var(--text-muted); }
.seat-action {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-primary);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* hole cards floating off seat */
.seat-hole {
  display: flex;
  gap: 3px;
  position: absolute;
  top: -22px;
  right: 12px;
}
.seat-hole .card.sm {
  transform: rotate(-4deg);
}
.seat-hole .card.sm:last-child {
  transform: rotate(4deg);
  margin-left: -8px;
}

/* current bet chip — sits between seat and pot */
.seat-bet {
  position: absolute;
  background: linear-gradient(180deg, #2a1a1a 0%, #1a0e0e 100%);
  border: 1px solid var(--accent-gold);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Dealer / blind tokens */
.token {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 2px solid rgba(0,0,0,0.4);
}
.token.dealer { background: white; color: #111; }
.token.sb { background: var(--accent-red); color: white; }
.token.bb { background: var(--accent-gold); color: #111; }

/* ---------- Hand history filmstrip ---------- */
.filmstrip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(180deg, var(--bg-card) 0%, #0e1428 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  flex-shrink: 0;
}
.filmstrip::-webkit-scrollbar { height: 4px; }
.filmstrip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.fs-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 6px;
}
.fs-card {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 6px 10px;
  flex-shrink: 0;
  cursor: pointer;
  min-width: 130px;
  transition: all 0.15s;
}
.fs-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,215,0,0.2); }
.fs-card .top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.fs-card .top .hand-num { color: var(--text-primary); }
.fs-card .winner {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fs-card .pot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}
.fs-card.current {
  background: rgba(233, 69, 96, 0.1);
  border-color: var(--accent-red);
}
.fs-card.current .winner::before {
  content: 'IN PROGRESS — ';
  color: var(--accent-red);
  font-size: 9px;
  letter-spacing: 0.15em;
}

/* ---------- Play log ---------- */
.play-log {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
  min-height: 0;
}
.play-log::-webkit-scrollbar { width: 4px; }
.play-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.log-entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 6px 16px;
  font-size: 12px;
  border-left: 2px solid transparent;
  align-items: baseline;
}
.log-entry.fresh {
  border-left-color: var(--accent-red);
  background: linear-gradient(90deg, rgba(233,69,96,0.06), transparent);
}
.log-entry .ts {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.log-entry .body {
  color: var(--text-primary);
  line-height: 1.5;
}
.log-entry .body strong {
  color: var(--text-bright);
  font-weight: 700;
}
.log-entry .body .amt {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 600;
}
.log-entry .body .verb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  margin: 0 2px;
}
.verb.raise  { background: rgba(233,69,96,0.18); color: var(--accent-red); }
.verb.call   { background: rgba(255,215,0,0.15); color: var(--accent-gold); }
.verb.check  { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.verb.fold   { background: rgba(139,148,158,0.15); color: var(--text-muted); }
.verb.allin  { background: var(--accent-red); color: white; }
.verb.deal   { background: rgba(26,122,26,0.25); color: #5fcc5f; }

.log-divider {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.log-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,215,0,0.15), transparent);
}

/* ---------- Commentary ---------- */
.commentary {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.comm-bubble {
  background: linear-gradient(180deg, #1a1f3e 0%, #0f1430 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
}
.comm-bubble.featured {
  border-color: rgba(255,215,0,0.3);
  background: linear-gradient(180deg, #2a2415 0%, #1a1810 100%);
}
.comm-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}
.comm-head .who {
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}
.comm-head .ts {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}
.comm-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}
.comm-body em {
  font-style: italic;
  color: var(--accent-gold);
  font-weight: 500;
}
.comm-body strong {
  font-weight: 700;
  color: #fff;
}
.comm-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--accent-gold);
}

/* ACE / WILDE persona scopes */
.comm-line {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 6px 0;
  align-items: baseline;
}
.comm-line + .comm-line {
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.comm-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 2px 0;
  border-radius: 3px;
  text-transform: uppercase;
  align-self: start;
  margin-top: 2px;
}
.comm-tag.tag-ace {
  background: rgba(94, 165, 255, 0.14);
  color: #7eb6ff;
  border: 1px solid rgba(94, 165, 255, 0.28);
}
.comm-tag.tag-wilde {
  background: rgba(255, 110, 86, 0.14);
  color: #ff9a7e;
  border: 1px solid rgba(255, 110, 86, 0.30);
}
.comm-line.comm-ace .comm-text { color: var(--text-primary); }
.comm-line.comm-wilde .comm-text {
  color: #d6cfc2;
  font-style: italic;
}
.comm-line.comm-wilde .comm-text strong {
  font-style: normal;
}

/* ---------- Leaderboard mini ---------- */
.leaderboard {
  padding: 4px 0 10px;
}
.lb-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 16px;
  font-size: 12px;
  border-left: 2px solid transparent;
}
.lb-row:hover { background: rgba(255,255,255,0.03); }
.lb-row.top { border-left-color: var(--accent-gold); }
.lb-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}
.lb-row.top .lb-rank { color: var(--accent-gold); }
.lb-row.top .lb-name { color: var(--text-bright); }
.lb-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-name .model {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-top: 1px;
}
.lb-roi {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lb-roi.up { color: #4ade80; }
.lb-roi.down { color: var(--accent-red); }

/* ---------- Idle hero state ---------- */
.idle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}
.countdown-card {
  background: rgba(10, 10, 24, 0.92);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 14px;
  padding: 20px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.countdown-card .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}
.countdown-card .timer {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown-card .timer .colon {
  color: var(--accent-red);
  animation: pulse 1.6s ease-in-out infinite;
}
.countdown-card .sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Waiting / unranked state ---------- */
.waiting-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  text-align: center;
  width: 80%;
  max-width: 480px;
}
.waiting-banner .title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.waiting-banner .sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.waiting-banner .progress {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.waiting-banner .progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
  width: 25%;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255,215,0,0.4);
}
.waiting-banner .progress-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.unranked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,215,0,0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(255,215,0,0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

/* recent winners reel for idle */
.winners-reel {
  display: flex; gap: 10px;
  padding: 14px 16px;
  overflow-x: auto;
}
.winner-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 140px;
  flex-shrink: 0;
}
.winner-card .who {
  font-size: 12px; font-weight: 700; color: var(--text-bright);
}
.winner-card .took {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}
.winner-card .with {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.broadcast-footer {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0a0a18;
  font-size: 11px;
  color: var(--text-muted);
  height: 36px;
  flex-shrink: 0;
  gap: 16px;
}
.broadcast-footer .draagon {
  color: var(--text-muted);
}
.broadcast-footer .draagon strong { color: var(--text-primary); font-weight: 600; }
.broadcast-footer .spacer { flex: 1; }
.broadcast-footer .meta-bit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* ---------- Mobile (375) ---------- */
.mobile-shell {
  width: 375px;
  height: 812px;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-ui);
  color: var(--text-primary);
  font-size: 13px;
  position: relative;
}
.mobile-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #0a0a18;
  border-bottom: 1px solid rgba(255,215,0,0.15);
}
.mobile-bar .l { display: flex; align-items: center; gap: 8px; }
.mobile-bar img { width: 26px; height: 26px; }
.mobile-bar .wm { font-weight: 800; font-size: 14px; }
.mobile-bar .wm em { color: var(--accent-gold); font-style: normal; }
.mobile-bar .live-pill {
  background: var(--accent-red);
  color: white;
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
  border-radius: 3px;
  display: flex; align-items: center; gap: 4px;
}
.mobile-bar .live-pill .dot {
  width: 5px; height: 5px; background: white; border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.mobile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-stats .s {
  padding: 8px 10px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.mobile-stats .s:last-child { border-right: none; }
.mobile-stats .s .l { font-size: 9px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.mobile-stats .s .v { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text-bright); margin-top: 1px; }
.mobile-stats .s .v.gold { color: var(--accent-gold); }
.mobile-felt {
  flex: 0 0 auto;
  height: 280px;
  position: relative;
  background: radial-gradient(ellipse at center, #1a1a30 0%, #0a0a18 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 18px 14px;
  overflow: hidden;
}
.mobile-felt-table {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 50% / 50%;
  background: radial-gradient(ellipse at 50% 40%, #2a9a2a 0%, var(--felt-green) 40%, var(--felt-green-deep) 80%, var(--felt-green-edge) 100%);
  box-shadow:
    inset 0 0 50px rgba(0,0,0,0.5),
    inset 0 0 0 6px var(--felt-green-edge),
    inset 0 0 0 10px var(--rail-wood),
    0 20px 30px rgba(0,0,0,0.6);
  position: relative;
}
.mobile-feed {
  flex: 1;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mobile-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.mobile-tabs .tab.active {
  color: var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
}
.mobile-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 8px;
}

/* utility for placeholder logo */
.chip-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent-red) 0 22.5deg, var(--felt-green) 22.5deg 67.5deg, var(--accent-red) 67.5deg 112.5deg, var(--felt-green) 112.5deg 157.5deg, var(--accent-red) 157.5deg 202.5deg, var(--felt-green) 202.5deg 247.5deg, var(--accent-red) 247.5deg 292.5deg, var(--felt-green) 292.5deg 337.5deg, var(--accent-red) 337.5deg 360deg);
  position: relative;
  border: 2px solid #0a0a18;
}
.chip-mark::before {
  content: '';
  position: absolute; inset: 4px;
  background: var(--bg-base);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
}
.chip-mark::after {
  content: '♠';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-base);
  font-size: 14px;
  font-weight: 700;
}

/* tweaks panel anchor */
.tweaks-host { position: absolute; }

/* ============================================================
   STRIP LAYOUT — players stacked directly above the felt hero
   (single composition, no top-strip duplicate)
============================================================ */
.strip-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at center, #1a3a1a 0%, #0a0a18 70%);
  min-height: 0;
  overflow: hidden;
  position: relative;
  padding: 18px 24px 20px;
}
.strip-stage::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
  pointer-events: none;
}
.hero-wrap {
  margin: auto;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* player row — sits directly above the felt band, narrow cards */
.player-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.pseat {
  background: linear-gradient(180deg, #1a2440 0%, #0e1830 100%);
  border-radius: 8px;
  padding: 8px 9px 9px;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pseat.active {
  border-top-color: var(--accent-gold);
  background: linear-gradient(180deg, #2a2540 0%, #1a1530 100%);
  box-shadow: 0 0 24px rgba(255,215,0,0.18), inset 0 0 0 1px rgba(255,215,0,0.25);
}
.pseat.allin {
  border-top-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(233,69,96,0.25), inset 0 0 0 1px rgba(233,69,96,0.3);
}
.pseat.folded { opacity: 0.4; filter: saturate(0.4); }
.pseat.empty {
  background: rgba(0,0,0,0.25);
  border-style: dashed;
  border-color: rgba(255,255,255,0.06);
}
.pseat-head {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.pseat-head .seat-avatar { width: 20px; height: 20px; font-size: 9px; flex-shrink: 0; }
.pseat-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.pseat-stack {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.pseat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 1px;
}
.pseat-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pseat.active .pseat-tag { color: var(--accent-gold); }
.pseat.allin .pseat-tag { color: var(--accent-red); }
.pseat-hole {
  display: flex; gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}
.pseat-hole .card.sm { width: 22px; height: 30px; padding: 2px 3px; font-size: 9px; }
.pseat-hole .card.sm .corner .suit { font-size: 7px; }
.pseat-bet {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-base);
  background: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.pos-pill {
  position: absolute;
  top: -6px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  z-index: 2;
}
.pos-pill.dealer { background: white; color: #111; }
.pos-pill.sb { background: var(--accent-red); color: white; }
.pos-pill.bb { background: var(--accent-gold); color: #111; }

/* Felt hero band — community cards + pot/round flanking */
.felt-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(ellipse at center, #1a7a1a 0%, var(--felt-green-deep) 70%, var(--felt-green-edge) 100%);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,215,0,0.18),
    inset 0 0 0 6px var(--felt-green-edge),
    inset 0 0 0 8px rgba(58, 31, 14, 0.7),
    0 14px 40px rgba(0,0,0,0.5);
  position: relative;
  min-height: 180px;
}
.felt-hero::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 3px);
  pointer-events: none;
}
.felt-hero > * { position: relative; }
.fh-pot { text-align: left; }
.fh-pot .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.fh-pot .amount {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 28px rgba(255, 215, 0, 0.5), 0 2px 4px rgba(0,0,0,0.6);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.fh-pot .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}
.fh-cards {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.fh-round { text-align: right; }
.fh-round .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.fh-round .value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-top: 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.fh-round .hand-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* meta row below felt */
.hero-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 0 8px;
}
.hero-meta-row strong { color: var(--text-primary); font-weight: 600; }
.hero-meta-row .to-act { color: var(--accent-gold); }
.hero-meta-row .to-act .timer {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 4px;
  margin-left: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ============================================================
   MOBILE v2 — strip layout adapts to phone
============================================================ */
.mobile-shell-v2 {
  width: 375px;
  height: 812px;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-ui);
  color: var(--text-primary);
  font-size: 13px;
}
.mob2-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #0a0a18;
  border-bottom: 1px solid rgba(255,215,0,0.15);
  flex-shrink: 0;
}
.mob2-bar .l { display: flex; align-items: center; gap: 8px; }
.mob2-bar img { width: 24px; height: 24px; }
.mob2-bar .wm { font-weight: 800; font-size: 14px; }
.mob2-bar .wm em { color: var(--accent-gold); font-style: normal; }
.mob2-bar .live-pill {
  background: var(--accent-red);
  color: white;
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
  border-radius: 3px;
  display: flex; align-items: center; gap: 4px;
}
.mob2-bar .live-pill .dot {
  width: 5px; height: 5px; background: white; border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.mob2-hero {
  background:
    radial-gradient(ellipse at center top, #1a3a1a 0%, #0a0a18 80%);
  padding: 14px 14px 16px;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  flex-shrink: 0;
}
.mob2-pot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mob2-pot .l { font-size: 9px; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; }
.mob2-pot .v { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--accent-gold); line-height: 1; text-shadow: 0 0 20px rgba(255,215,0,0.3); }
.mob2-round { text-align: right; }
.mob2-round .l { font-size: 9px; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; }
.mob2-round .v { font-size: 16px; font-weight: 800; color: var(--text-bright); text-transform: uppercase; }
.mob2-round .h { font-family: var(--font-mono); font-size: 9px; color: var(--accent-gold); letter-spacing: 0.06em; }
.mob2-felt-band {
  background: radial-gradient(ellipse at center, var(--felt-green) 0%, var(--felt-green-deep) 90%);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,215,0,0.15);
}
.mob2-seats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.mob2-seat {
  background: linear-gradient(180deg, #16213e 0%, #0e1830 100%);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  border-left: 3px solid transparent;
  position: relative;
}
.mob2-seat.active { border-left-color: var(--accent-gold); background: linear-gradient(180deg, #2a2540 0%, #1a1530 100%); }
.mob2-seat.allin { border-left-color: var(--accent-red); }
.mob2-seat.folded { opacity: 0.45; }
.mob2-seat .seat-avatar { width: 24px; height: 24px; font-size: 10px; }
.mob2-seat .nm { font-size: 11px; font-weight: 700; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob2-seat .md { font-family: var(--font-mono); font-size: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mob2-seat .stk { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-gold); text-align: right; }
.mob2-seat .act-tag { font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); text-align: right; margin-top: 2px; }
.mob2-seat.active .act-tag { color: var(--accent-gold); }
.mob2-seat.allin .act-tag { color: var(--accent-red); }
.mob2-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-card);
  flex-shrink: 0;
}
.mob2-tabs .tab {
  flex: 1; text-align: center;
  padding: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.mob2-tabs .tab.active {
  color: var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
}
.mob2-feed {
  flex: 1;
  background: var(--bg-card);
  overflow-y: auto;
  min-height: 0;
}
