:root {
  --bg-app: #080c12;
  --bg-panel: #111822;
  --bg-card: #16202c;
  --bg-elevated: #1c2838;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f3f6fa;
  --text-muted: #93a4b8;
  --text-dim: #65768b;

  --gold: #f5b731;
  --gold-dark: #c98c10;
  --emerald-light: #15684e;
  --emerald-mid: #0d4635;
  --emerald-dark: #06251c;
  --call-blue: #1f8efa;
  --fold-red: #dc4a4a;
  --green: #36d37c;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  background: radial-gradient(circle at 50% 15%, #132232 0%, var(--bg-app) 70%);
  color: var(--text-main);
  font-family: var(--font-sans);
  touch-action: manipulation;
}

.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-green { color: #75f0ac; }
.text-red { color: #ff8c8c; }

.app-shell {
  max-width: 440px;
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  background: #0b1016;
  overflow: hidden;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.view.active {
  display: flex;
}

/* Botones e inputs */
.btn-gold {
  background: linear-gradient(180deg, #ffca4b, #e39f16);
  color: #14120a;
  border: none;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.btn-gold:disabled,
.btn-outline-gold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline-gold {
  background: rgba(245, 183, 49, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 183, 49, 0.45);
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger {
  background: rgba(220, 74, 74, 0.18);
  color: #ffaaaa;
  border: 1px solid rgba(220, 74, 74, 0.45);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm { padding: 7px 11px; font-size: 12px; }
.full-btn { width: 100%; min-height: 44px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
.compact-select {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}

.compact-select {
  width: auto;
  padding: 6px 10px;
  font-size: 12px;
}

/* =========================================================
   AUTH VIEW
   ========================================================= */
#view-auth {
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 25%, #12332a 0%, #0b1016 70%);
}

.auth-card {
  background: rgba(17, 24, 34, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

.brand-suit {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
}

.auth-brand h1 { font-size: 20px; }
.auth-brand p { font-size: 12px; color: var(--text-muted); }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-banner {
  background: rgba(54, 211, 124, 0.1);
  border: 1px solid rgba(54, 211, 124, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
}

.info-banner.warn {
  background: rgba(245, 183, 49, 0.12);
  border-color: rgba(245, 183, 49, 0.4);
}

.info-banner strong { display: block; margin-bottom: 3px; color: var(--gold); }

.temp-box {
  background: rgba(245, 183, 49, 0.1);
  border: 1px solid rgba(245, 183, 49, 0.45);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.temp-box code {
  display: block;
  background: #090e14;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-align: center;
  user-select: all;
}

.temp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.auth-error {
  color: #ff9c9c;
  background: rgba(220, 74, 74, 0.15);
  border: 1px solid rgba(220, 74, 74, 0.4);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
}

/* =========================================================
   HUB HEADER & TABS
   ========================================================= */
.hub-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(6px, env(safe-area-inset-top)) 16px 6px;
  background: #090e14;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11.5px;
  flex-shrink: 0;
}

.hub-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.hub-brand-name i {
  font-style: normal;
  color: var(--gold);
}

.hub-brand-url {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(17, 24, 34, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.user-chip { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d3f54, #1b2736);
  border: 2px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.avatar-hero {
  background: linear-gradient(135deg, var(--gold), #b77709);
  color: #14120c;
  border-color: #ffe08d;
}

.user-meta { display: flex; flex-direction: column; }
.user-meta strong { font-size: 14px; }
.online-status { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.dot-green { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid rgba(245, 183, 49, 0.35);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.chip-label { font-size: 11px; color: var(--text-muted); }

.hub-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 84px;
}

.hub-tab {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.hub-tab.active {
  display: flex;
}

.quick-seat-card {
  background: linear-gradient(135deg, #135a43 0%, #092c21 100%);
  border: 1px solid rgba(54, 211, 124, 0.32);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qs-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: #84f2b7; }
.qs-info h2 { font-size: 18px; margin: 2px 0; }
.qs-info p { font-size: 11.5px; color: #c5e6d7; }

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-row h3 { font-size: 14.5px; }

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-card,
.room-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.room-head h4 { font-size: 14.5px; }
.room-sub { font-size: 11.5px; color: var(--text-muted); }

.status-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-waiting { background: rgba(245, 183, 49, 0.18); color: var(--gold); }
.st-playing { background: rgba(54, 211, 124, 0.2); color: #75f0ac; }
.st-closed { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.room-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card span { font-size: 11px; color: var(--text-muted); }
.stat-card strong { font-size: 17px; }

.closure-box { display: flex; flex-direction: column; gap: 8px; }
.sub-section { display: flex; flex-direction: column; gap: 8px; }
.sub-section h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

.ledger-row {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.inline-form { display: flex; flex-direction: column; gap: 8px; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  cursor: pointer;
}

.switch-row small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.switch-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; }

.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(13, 19, 27, 0.96);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 15;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.nav-tab.active { color: var(--gold); }
.nav-ico { font-size: 16px; }

/* =========================================================
   MESA EN VIVO (MANTENIENDO EL DISEÑO DE MOCKUPS)
   ========================================================= */
#view-table {
  background: radial-gradient(circle at 50% 35%, #122130 0%, #070b10 85%);
  justify-content: space-between;
}

.table-top-bar {
  height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  flex-shrink: 0;
}

.icon-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.table-meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 18, 26, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.net-dot.offline { background: var(--fold-red); box-shadow: 0 0 6px var(--fold-red); }

.top-right-tools { display: flex; gap: 6px; }
.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.table-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(14, 21, 30, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.table-subbar.practice-mode {
  background: rgba(21, 104, 78, 0.35);
  color: #9df7c4;
}

.vote-banner {
  background: rgba(245, 183, 49, 0.16);
  border-bottom: 1px solid rgba(245, 183, 49, 0.45);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 12;
  flex-shrink: 0;
}

.vote-info strong { display: block; font-size: 12px; color: var(--gold); }
.vote-info small { font-size: 11px; color: var(--text-main); }
.vote-actions { display: flex; gap: 6px; }

.felt-stage {
  flex: 1;
  position: relative;
  padding: 14px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poker-table-oval {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 470px;
}

.table-rail {
  position: absolute;
  inset: 24px 16px 16px;
  border-radius: 170px;
  background: linear-gradient(160deg, #3b281c 0%, #1d120c 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), inset 0 2px 3px rgba(255, 224, 180, 0.18);
}

.table-felt {
  position: absolute;
  inset: 36px 28px 28px;
  border-radius: 158px;
  background: radial-gradient(circle at 50% 42%, var(--emerald-light) 0%, var(--emerald-mid) 55%, var(--emerald-dark) 100%);
  border: 2px solid rgba(255, 218, 125, 0.16);
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}

.felt-watermark {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  transform: translateY(-56px);
  pointer-events: none;
}

/* Sillas de oponentes (2 a 4 oponentes dinámicos) */
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; z-index: 4; }
.seat-pos-tl { top: 14px; left: 4px; }
.seat-pos-tr { top: 14px; right: 4px; }
.seat-pos-ml { top: 112px; left: -2px; }
.seat-pos-mr { top: 112px; right: -2px; }
.seat-pos-tc { top: -8px; left: 50%; transform: translateX(-50%); }

.seat-pod {
  position: relative;
  background: rgba(14, 20, 29, 0.95);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 6px 12px 6px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 96px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.seat-pod.folded { opacity: 0.46; }
.seat-pod.turn-active { border-color: var(--gold); box-shadow: 0 0 14px rgba(245, 183, 49, 0.45); }
.seat-pod .avatar { width: 28px; height: 28px; font-size: 10px; }

.seat-info { display: flex; flex-direction: column; line-height: 1.15; }
.seat-name { font-size: 10.5px; font-weight: 700; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-stack { font-size: 11px; font-weight: 700; color: #a9f0c7; }

.action-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-call { background: var(--call-blue); color: #fff; }
.tag-raise { background: var(--gold); color: #111; }
.tag-check { background: #266b4f; color: #dfffe9; }
.tag-fold { background: #363f4b; color: #b7c2cf; }

.dealer-btn,
.blind-badge {
  position: absolute;
  top: -13px;
  right: 2px;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.dealer-btn { background: #fff; color: #111; border: 2px solid var(--gold); }
.blind-badge { background: #233346; color: #c2d4e8; border: 1px solid rgba(255, 255, 255, 0.25); width: auto; padding: 0 5px; border-radius: 999px; }

.opp-cards { display: flex; gap: 3px; margin-top: 12px; }
.mini-card { width: 18px; height: 25px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.35); }
.mini-card.back { background: repeating-linear-gradient(45deg, #1c3f6e, #1c3f6e 3px, #122b4d 3px, #122b4d 6px); }

.bet-chip {
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 183, 49, 0.45);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
}

.table-center {
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translate(-50%, -44%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92%;
  z-index: 3;
}

.pot-pill {
  background: rgba(6, 14, 12, 0.78);
  border: 1px solid rgba(245, 183, 49, 0.45);
  border-radius: 999px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pot-label { font-size: 9.5px; font-weight: 700; color: #b7d7c8; letter-spacing: 0.06em; }
.pot-value { font-size: 13.5px; color: var(--gold); }

.community-board { display: flex; gap: 5px; justify-content: center; }

/* Cartas en general: número grande arriba a la izquierda y símbolo grande en medio */
.playing-card {
  width: 41px;
  height: 58px;
  border-radius: 6px;
  background: #ffffff;
  color: #151922;
  padding: 3px;
  display: block;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.15);
  position: relative;
  user-select: none;
}

.playing-card .c-rank {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 16px;
  line-height: 1;
}

.playing-card .c-suit {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 23px;
  line-height: 1;
  opacity: 0.96;
}

.playing-card.opp-card { width: 28px; height: 39px; border-radius: 4px; }
.playing-card.opp-card .c-rank { top: 2px; left: 3px; font-size: 12px; }
.playing-card.opp-card .c-suit { top: 62%; font-size: 17px; }

.playing-card.suit-h,
.playing-card.suit-d { color: #d42b2b; }
.four-color .playing-card.suit-d { color: #1672d6; }
.four-color .playing-card.suit-c { color: #178a47; }

.playing-card.card-slot { background: rgba(0, 0, 0, 0.22); border: 1.5px dashed rgba(255, 255, 255, 0.2); box-shadow: none; }
.playing-card.win-highlight { transform: translateY(-5px); box-shadow: 0 0 0 2.5px var(--gold), 0 10px 20px rgba(245, 183, 49, 0.45); }
.playing-card.dimmed { opacity: 0.45; }

.showdown-banner {
  background: linear-gradient(90deg, rgba(20, 28, 38, 0.96), rgba(28, 42, 34, 0.96));
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.winner-crown { font-size: 19px; }
.showdown-banner strong { display: block; font-size: 12.5px; color: var(--gold); }
.showdown-banner small { font-size: 11px; color: #d2e4da; }

/* Hero Dock */
.hero-dock {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 18, 26, 0) 0%, rgba(11, 16, 22, 0.96) 24%, #0b1016 100%);
  padding: 8px 14px max(14px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
  flex-shrink: 0;
}

.hero-status-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

.hero-pod {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 26, 36, 0.96);
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  flex: 1;
}

.hero-pod.active-turn { border-color: var(--green); box-shadow: 0 0 18px rgba(54, 211, 124, 0.22); }

.hero-avatar-wrap { position: relative; width: 48px; height: 48px; display: grid; place-items: center; }
.timer-ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 3.5; }
.ring-progress { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 0; transition: stroke-dashoffset 0.25s linear; }
.timer-sec { position: absolute; bottom: -6px; background: #10261b; color: #6df2a6; border: 1px solid var(--green); border-radius: 999px; font-size: 9.5px; font-weight: 800; padding: 0 5px; }

.hero-details { display: flex; flex-direction: column; gap: 3px; }
.hero-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hero-name-row strong { font-size: 13px; }
.hand-strength-pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(245, 183, 49, 0.18); color: var(--gold); border: 1px solid rgba(245, 183, 49, 0.35); }
.hero-stack { font-size: 15px; font-weight: 800; color: #a9f0c7; }

.hero-cards-btn { background: none; border: none; display: flex; align-items: center; position: relative; padding: 0 2px; cursor: pointer; }
.hero-cards-pair { display: flex; align-items: center; }

.hero-card { width: 54px; height: 76px; }
.hero-card .c-rank { top: 4px; left: 5px; font-size: 19px; }
.hero-card .c-suit { top: 60%; font-size: 30px; }
.hero-card:first-child { transform: rotate(-5deg); margin-right: -4px; z-index: 1; }
.hero-card:nth-child(2) { transform: rotate(5deg); z-index: 2; }

.hero-cards-btn.hidden-cards .hero-card {
  background: repeating-linear-gradient(45deg, #1c3f6e, #1c3f6e 5px, #112746 5px, #112746 10px);
  color: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.peek-hint {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(11, 16, 22, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.action-toast {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #84f2b7;
  background: rgba(21, 104, 78, 0.35);
  border: 1px solid rgba(54, 211, 124, 0.35);
  padding: 6px 10px;
  border-radius: 10px;
}

.action-bar { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 8px; }
.act-btn { min-height: 54px; border-radius: 14px; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.act-title { font-size: 13px; font-weight: 800; }
.act-sub { font-size: 11px; font-weight: 700; opacity: 0.9; }
.act-fold { background: #2b1a1e; color: #ffb8b8; border: 1px solid rgba(220, 74, 74, 0.45); }
.act-call { background: linear-gradient(180deg, #2799ff, #146fd1); color: #fff; }
.act-raise { background: linear-gradient(180deg, #ffca4b, #df9b12); color: #131109; }

.waiting-bar {
  min-height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.bet-drawer {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  z-index: 16;
  background: #141d29;
  border: 1px solid rgba(245, 183, 49, 0.48);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.85);
}

.bet-drawer-top { display: flex; justify-content: space-between; align-items: center; }
.bet-label { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-muted); }
.bet-value-row { display: flex; align-items: baseline; gap: 7px; }
.bet-value-row strong { font-size: 22px; color: var(--gold); }
.bet-bb-tag { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.bet-stepper { display: flex; gap: 6px; }
.step-btn, .close-drawer-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text-main); font-size: 18px; font-weight: 700; cursor: pointer; }
.close-drawer-btn { font-size: 14px; }
.bet-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preset-btn { min-height: 36px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-elevated); color: var(--text-main); font-size: 12px; font-weight: 700; cursor: pointer; }
.preset-btn.active { background: rgba(245, 183, 49, 0.22); border-color: var(--gold); color: var(--gold); }
.preset-allin { color: #ff9a9a; border-color: rgba(220, 74, 74, 0.35); }
.slider-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.bet-range { flex: 1; height: 34px; accent-color: var(--gold); cursor: pointer; }
.btn-confirm-raise { min-height: 48px; border-radius: 13px; border: none; background: linear-gradient(180deg, #ffca4b, #df9b12); color: #131109; font-size: 14px; font-weight: 800; cursor: pointer; }
.btn-confirm-raise.allin-danger { background: linear-gradient(180deg, #ff5f5f, #c82727); color: #fff; }

/* Bottom Sheet Modal */
.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.74);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  z-index: 30;
}

.bottom-sheet {
  width: 100%;
  max-height: 85%;
  background: #131b26;
  border-top: 1px solid var(--border-strong);
  border-radius: 24px 24px 0 0;
  padding: 10px 16px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.sheet-handle { width: 42px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.24); margin: 0 auto; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; }
.sheet-header h3 { font-size: 16px; }
.sheet-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.08); color: var(--text-main); cursor: pointer; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; }

.check-grid { display: flex; flex-direction: column; gap: 6px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.standings-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.standings-table th, .standings-table td { padding: 6px 4px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.standings-table th { color: var(--text-muted); font-size: 11px; }
.standings-table td:last-child, .standings-table th:last-child { text-align: right; }

.chart-wrap {
  background: rgba(9, 14, 21, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.evo-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-main);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

