:root {
  --bg: #0a0b10;
  --bg-elevated: #12151e;
  --table-fill: radial-gradient(circle at center, #0d462f 0%, #051a11 100%);
  --table-border: #1e382b;
  --plaque-bg: #181c27;
  --plaque-border: #2a3145;
  --text: #f0f3f8;
  --text-dim: #94a0b8;
  --text-faint: #56617a;
  --hero-accent: #ff9f1c;
  --chip-yellow: #ffc43d;
  --blue: #2e5fd9;
  --blue-hover: #3a6ef0;
  --fold-gray: #475569;
  --fold-gray-hover: #64748b;
  --green: #2ecc71;
  --green-hover: #27ae60;
  --red: #e74c3c;
  --red-hover: #ff6b6b;
  --red-dark: #38bdf8;
  --red-dark-hover: #60a5fa;
  --allin: #e63946;
  --allin-hover: #ff4d5a;
  --black-suit: #151821;
  --red-suit: #d63031;

  /* Cores do range no padrão GTO Wizard (separadas das cores dos botões de
     ação acima, que continuam com o esquema visual próprio do app) */
  --gto-fold:   #3D7CB8;
  --gto-fold-hover: #4E8FCC;
  --gto-call:   #5EBB6A;
  --gto-call-hover: #6DCB79;
  --gto-raise:  #F03C3C;
  --gto-raise-hover: #F5564F;
  --gto-allin:  #650909;
  --gto-allin-hover: #7A1414;
  --gto-3bet:   #E83A3A;
  --gto-3bet-hover: #F0504F;
  --gto-3bet2:  #C11010;
  --gto-3bet2-hover: #D62525;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 65px 16px 56px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* A landing page começa visível por padrão (antes do JS confirmar se
   tem sessão ativa) -- essa classe trava o scroll do body nesse
   estado, pra não duplicar com a rolagem própria da landing. JS tira
   a classe assim que confirma que não é mais o caso (login OU quando
   a pessoa entra no formulário). */
body.landing-lock-scroll { overflow: hidden; }

/* ===== HEADER ===== */

.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

.brand span { color: var(--hero-accent); }

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ===== APP LAYOUT (mesa à esquerda, painel lateral à direita) ===== */
.app-layout {
  width: 100%;
  max-width: 1850px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
}

.main-col {
  flex: 1;
  min-width: 750px;
  margin-top: 34px;
}

/* Multi-Mesa: quando ativo, main-col vira um grid com a mesa 1 (table-wrap)
   e as mesas extras lado a lado. Sem essa classe (modo padrão de 1 mesa),
   o layout continua exatamente igual a antes -- min-width normal, uma
   coluna só. O wrap das mesas extras usa display:contents pra que os
   filhos dele (cada mesa extra) entrem DIRETO no grid do main-col, em vez
   de ficarem aninhados numa caixa separada. */
.main-col.multitable-active {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 20px;
  align-items: start;
}
.main-col.multitable-active .table-wrap { margin: 0; }
.multitable-extra-wrap { display: contents; }
.multitable-extra-wrap.hidden { display: none; }
.multitable-table-slot {
  display: flex;
  gap: 14px;
}
.multitable-table-slot .history-panel {
  width: 200px;
  flex-shrink: 0;
}
.multitable-table-slot .main-col {
  min-width: 0;
  margin-top: 0;
  flex: 1;
}
@media (max-width: 1400px) {
  .main-col.multitable-active { grid-template-columns: 1fr; }
}

.side-col {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 16px;
}

.side-section {
  display: flex;
  flex-direction: column;
}

.scoreboard {
  display: flex;
  gap: 8px;
}

.score-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 6px;
  padding: 6px 12px;
  text-align: center;
  min-width: 0;
  flex: 1;
}

.score-chip .num {
  font-size: 16px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.score-chip .lbl {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.score-chip.hits .num { color: var(--hero-accent); }
.score-chip.streak .num { color: #f5a623; }
.score-chip.streak.is-record {
  border-color: var(--chip-yellow);
  box-shadow: 0 0 8px 1px rgba(232, 185, 35, 0.35);
}


/* ===== INFO BAR (acima da mesa) ===== */
.table-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 16px;
  margin-bottom: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
}


/* ===== FICHAS DE BLIND (SB e BB) ===== */
/* As fichas são position:absolute dentro do .seat, para não empurrar
   cartas nem rótulo de posição — esses elementos ficam sempre no mesmo lugar. */
.blind-chip-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  /* Posição padrão: abaixo e à direita do centro do seat.
     Ajuste fino via JS (BLIND_OFFSETS) por posição. */
  left: 0;
  top: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* Container das fichas empilhadas (BB = 2 fichas, SB = 1 ficha) */
.blind-chips-stack {
  position: relative;
  width: 24px;
  height: 32px;
  flex-shrink: 0;
}

.blind-chip  {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.6);
  box-shadow: 0 3px 8px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
  position: absolute;
}

/* Todas as fichas amarelas/douradas */
.blind-chip.chip-gold  {
  background: radial-gradient(circle at 35% 30%, #ffe17d, #b8860b 75%);
  border-color: #ffd700;
}

/* BB: ficha de baixo */
.blind-chip.chip-bottom {
  bottom: 0;
  left: 0;
}

/* BB: ficha de cima, levemente deslocada para dar sensação de pilha */
.blind-chip.chip-top {
  bottom: 7px;
  left: 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* SB: ficha única */
.blind-chip.chip-single {
  bottom: 4px;
  left: 0;
}

.blind-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.3px;
  background: rgba(0,0,0,0.65);
  border-radius: 10px;
  padding: 2px 7px;
}


/* ===== BOTÃO DE MODO ===== */
.mode-btn {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: pointer;
  text-align: center;
}
.mode-btn.active {
  background: var(--hero-accent);
  color: var(--bg);
  border-color: var(--hero-accent);
}
.mode-btn.hardmode-active {
  background: var(--allin);
  color: #fff;
  border-color: var(--allin);
}

.toggle-switch-row {
  display: grid;
  grid-template-columns: 62px auto 62px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.toggle-switch-row .toggle-switch-label:first-child { text-align: right; }
.toggle-switch-row .toggle-switch-label:last-child { text-align: left; }
.toggle-switch-row .toggle-switch { justify-self: center; }
.toggle-switch-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s;
}
.toggle-switch-label.active-label { color: var(--text); }
.toggle-switch {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  border: none;
  background: var(--plaque-border);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.toggle-switch.on { background: var(--hero-accent); }
.toggle-switch.danger.on { background: var(--allin); }
.toggle-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}
.toggle-switch.on .toggle-switch-knob { left: 20px; }

.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--plaque-border);
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  cursor: help;
  margin-right: 3px;
  vertical-align: middle;
}

/* Tooltip "post-it" — renderizado via JS como elemento fixo no <body>,
   pra nunca ficar preso pelo overflow:hidden de nenhum painel */
.global-tooltip {
  position: fixed;
  background: #fff4b8;
  color: #33301a;
  font-size: 10.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.4);
  width: 170px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 9999;
}
.global-tooltip.visible { opacity: 1; }
.global-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff4b8;
}

/* ===== PAINEL "OPÇÕES DE TREINO" (aberto por padrão, recolhe com o triângulo) ===== */
.training-options-content {
  max-height: 700px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.training-options.collapsed .training-options-content {
  max-height: 0;
  opacity: 0;
}
.collapse-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: #fff;
  padding: 2px 6px;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.2s;
}
.collapse-btn:hover { opacity: 1; }
.training-options.collapsed .collapse-btn {
  transform: rotate(-90deg);
}
.training-options-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #c8c8c8;
}

/* ===== HISTÓRICO LATERAL (oeste da mesa) ===== */
.history-panel {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  position: sticky;
  top: 52px;
  padding-top: 4px;
}
.history-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.history-nav-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  color: var(--text-dim);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}
.history-nav-btn:disabled { opacity: 0.3; cursor: default; }
.history-nav-page {
  font-size: 10px;
  color: var(--text-faint);
}
.history-title {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  font-size: 11px;
  transition: all 0.2s ease;
}
/* Última mão — destaque via classe JS */
.history-item.hist-latest {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.hist-icon {
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.history-item.hist-correct { border-color: rgb(50,205,50); }
.history-item.hist-correct .hist-icon { color: rgb(50,205,50); }
.history-item.hist-wrong { border-color: #e43a45; }
.history-item.hist-wrong .hist-icon { color: #e43a45; }
.hist-hand { font-weight: 700; color: var(--text); }
.hist-pos { font-size: 10px; color: var(--text-dim); }
.hist-range-btn {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--plaque-border);
  background: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}
.hist-range-btn:hover {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
}
/* Mesmo visual do .hist-range-btn, classe própria pra não colidir com o
   listener global de delegação de clique que já escuta .hist-range-btn
   (esse aqui abre o range de um SPOT do CSE, não uma situação de RFI/3bet). */
.hist-range-btn-cse {
  flex-shrink: 0; width: 18px; height: 18px; margin-left: auto;
  border-radius: 50%; border: 1px solid var(--plaque-border); background: none;
  color: var(--text-dim); font-size: 10px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  padding: 0; transition: all 0.15s;
}
.hist-range-btn-cse:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
.history-empty { font-size: 11px; color: var(--text-faint); padding: 8px; }

/* Ícone de "Ver RFI" sobreposto nas cartas do vilão, no 3bet ou Flat --
   fica numa camada acima das duas cartas, sem ocupar espaço extra no
   layout (senão empurraria o assento inteiro pra baixo). */
.mini-cards-rfi-wrap { position: relative; }
.villain-rfi-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: transform 0.15s;
}
.villain-rfi-icon:hover { transform: translate(-50%, -50%) scale(1.12); }

/* ===== FEEDBACK RÁPIDO ===== */
.feedback-quick {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 12px;
  letter-spacing: 0.3px;
}
.feedback-quick.correct {
  color: rgb(50,205,50);
  background: rgba(50,205,50,0.1);
}
.feedback-quick.wrong {
  color: #e43a45;
  background: rgba(228,58,69,0.1);
}
.feedback-quick.imprecise {
  color: #e8b923;
  background: rgba(232,185,35,0.1);
}


/* ===== TELA DE SELEÇÃO DE PERFIL ===== */
.profile-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-screen.hidden { display: none; }

.profile-box {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 16px;
  padding: 40px;
  width: 420px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}
.profile-logo span { color: var(--hero-accent); }

.profile-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: -10px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--plaque-border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s;
}
.profile-card:hover { border-color: var(--hero-accent); }

.profile-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hero-accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-card-info { flex: 1; }
.profile-card-name { font-size: 14px; font-weight: 700; color: var(--text); }
.profile-card-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.profile-card-streak {
  font-size: 13px;
  font-weight: 700;
  color: #f5a623;
}

.profile-card-delete {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.profile-card-delete:hover { opacity: 1; color: #e43a45; }

.profile-new-wrap {
  display: none;
  gap: 8px;
  flex-direction: column;
}
.profile-new-wrap.visible { display: flex; }

.profile-name-input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--plaque-border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.profile-name-input:focus { border-color: var(--hero-accent); }

.profile-create-btn {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--hero-accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-add-link {
  text-align: center;
  font-size: 12px;
  color: var(--hero-accent);
  cursor: pointer;
  text-decoration: underline;
}

/* ===== HUD DO HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg);
  padding: 8px 24px 0;
  overflow: visible;
  box-sizing: border-box;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--plaque-border);
  overflow: visible;
  flex-wrap: nowrap;
}
.header-top .brand-wrap {
  flex-shrink: 0;
  min-width: 0;
}
.header-top .header-nav {
  flex: 1;
  justify-content: center;
}
.header-top .profile-hud {
  flex-shrink: 0;
  margin-left: 0;
}

.brand-wrap { flex-shrink: 0; }

/* Nav tabs */
.header-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.nav-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  position: relative;
}
.sync-warning-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: 480px;
  width: calc(100% - 32px);
  background: #2a1f14;
  border: 1px solid #f5943a;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.sync-warning-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.sync-warning-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  padding: 2px 4px;
}
.sync-warning-close:hover { color: var(--text); }

.header-msg-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0483d;
  border: 1.5px solid var(--bg-elevated);
}
.profile-messages-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s, transform 0.15s;
}
.profile-messages-icon-btn:hover { transform: scale(1.08); }
.profile-messages-icon-btn.has-unseen {
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 4px rgba(224,72,61,0.6));
}
.admin-msg-item {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.admin-msg-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.admin-msg-item-date { color: var(--text-dim); font-size: 11px; margin-left: auto; }
.admin-msg-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.6;
}
.admin-msg-delete-btn:hover { opacity: 1; }
.admin-msg-item-text { font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-wrap; }

.team-exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.team-exercise-card {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-exercise-card-title { font-size: 15px; font-weight: 800; color: var(--text); }
.team-exercise-card-desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; min-height: 32px; }
.team-exercise-card-meta { font-size: 11px; color: var(--text-dim); }
.team-exercise-card-meta b { color: var(--hero-accent); }
.team-exercise-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.team-exercise-card-stats {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--plaque-border);
}
.team-exercise-card-stats b { color: var(--hero-accent); }
.nav-btn:hover {
  border-color: var(--hero-accent);
  color: var(--text);
}
.nav-btn.active {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: var(--bg);
}

.profile-hud {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hero-accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.hud-avatar:hover {
  box-shadow: 0 0 0 2px var(--hero-accent);
}
.hud-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hud-info { display: flex; flex-direction: column; }
.hud-name { font-size: 13px; font-weight: 700; color: var(--text); }
.hud-level { font-size: 10px; color: var(--text-dim); }

.hud-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hud-streak { font-size: 13px; font-weight: 700; color: #f5a623; display: inline-block; }
.hud-streak.streak-pulse { animation: streakPulse 0.6s ease 1; }

@keyframes streakPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); text-shadow: 0 0 10px rgba(245,166,35,0.8); }
  100% { transform: scale(1); }
}
.hud-xp { font-size: 10px; color: var(--text-dim); }

.hud-switch-btn {
  background: none;
  border: 1px solid var(--plaque-border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
}
.hud-switch-btn:hover { border-color: var(--hero-accent); color: var(--hero-accent); }

/* ===== META DIÁRIA ===== */
.daily-goal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 5px;
}
.daily-goal-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
.daily-goal-label span { color: var(--text); font-weight: 700; }
.daily-goal-bar {
  height: 6px;
  background: var(--plaque-border);
  border-radius: 3px;
  overflow: hidden;
}
.daily-goal-fill {
  height: 100%;
  background: var(--hero-accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}


/* ===== POPUP DE XP ===== */
.xp-popup {
  position: fixed;
  top: 80px;
  right: 24px;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 9999;
  animation: xpFade 1.2s ease forwards;
  pointer-events: none;
}
.xp-popup.xp-correct {
  background: rgba(50,205,50,0.15);
  color: rgb(50,205,50);
  border: 1px solid rgb(50,205,50);
}
.xp-popup.xp-wrong {
  background: rgba(228,58,69,0.15);
  color: #e43a45;
  border: 1px solid #e43a45;
}
.xp-popup.xp-imprecise {
  background: rgba(232,185,35,0.15);
  color: #e8b923;
  border: 1px solid #e8b923;
}
@keyframes xpFade {
  0%   { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(-30px); }
}


/* ===== MINIATURAS DE CARTAS NO HISTÓRICO ===== */
.hist-cards-wrap {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.hist-card {
  width: 22px;
  height: 30px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hist-card-rank { font-size: 11px; line-height: 1; color: #fff; }
.hist-card-suit { font-size: 7px; color: rgba(255,255,255,0.8); }
.hist-card.spade   { background: #2b2b2b; }
.hist-card.heart   { background: #c93b34; }
.rank-card { display: inline-flex; vertical-align: middle; }
.hist-card.diamond { background: #2860c9; }
.hist-card.club    { background: #1d7a44; }

/* ===== BADGES / CONQUISTAS ===== */
.badges-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 44px;
  cursor: default;
}
.badge-icon { font-size: 22px; }
.badge-name { font-size: 8px; color: var(--text-dim); text-align: center; line-height: 1.2; }
.badge-item.locked { opacity: 0.25; filter: grayscale(1); }
.badge-item.earned { opacity: 1; }

/* Badge popup */
.badge-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--bg-elevated);
  border: 1px solid var(--hero-accent);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 280px;
}
.badge-popup.visible { opacity: 1; transform: translateY(0); }
.badge-popup-icon { font-size: 32px; }
.badge-popup-title { font-size: 10px; color: var(--hero-accent); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-popup-name { font-size: 14px; font-weight: 800; color: var(--text); }
.badge-popup-desc { font-size: 11px; color: var(--text-dim); }

/* ===== MAPA DE FRAQUEZAS ===== */
.weakness-map-btn {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: 1px solid var(--plaque-border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
}
.weakness-map-btn:hover { border-color: var(--hero-accent); color: var(--hero-accent); }

.weakness-section {
  margin-top: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 14px;
}
.weakness-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.weakness-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}
.weakness-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 1px;
  background: #e8e8e8;
  border-radius: 4px;
  padding: 2px;
  max-width: 510px;
}
.wk-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  border-radius: 2px;
  cursor: default;
}
.wk-nodata { background: #2a2a2a; color: #555; }
.wk-great  { background: rgb(50,205,50); color: #000; }
.wk-ok     { background: #f5c842; color: #000; }
.wk-weak   { background: #f5943a; color: #000; }
.wk-bad    { background: #e43a45; color: #fff; }

/* Alinhamento de texto estilo GTO Wizard (canto superior esquerdo) — só
   pros grids de range (preview/biblioteca), não mexe no mapa de fraquezas
   que reaproveita a mesma classe base .wk-cell */
.wk-cell.gto-cell {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2px 0 0 2px;
  font-weight: 600;
}

.weakness-legend {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.wk-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: -1px;
}
.wk-dot.wk-great  { background: rgb(50,205,50); }
.wk-dot.wk-ok     { background: #f5c842; }
.wk-dot.wk-weak   { background: #f5943a; }
.wk-dot.wk-bad    { background: #e43a45; }
.wk-dot.wk-nodata { background: #2a2a2a; border: 1px solid #555; }
.weakness-empty { font-size: 12px; color: var(--text-faint); padding: 16px; text-align: center; }


/* ===== PAINÉIS GENÉRICOS (ranking, relatório) ===== */
.panel-section {
  margin-top: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 14px;
}
.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

/* ===== RANKING ===== */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ranking-table th {
  text-align: left;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-bottom: 1px solid var(--plaque-border);
}
.ranking-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  vertical-align: middle;
}
.ranking-table tr.is-active td { background: rgba(255,165,0,0.06); }
.rank-pos {
  font-weight: 800;
  font-size: 13px;
  width: 28px;
  text-align: center;
}
.rank-pos.gold   { color: #f5c842; }
.rank-pos.silver { color: #aaa; }
.rank-pos.bronze { color: #cd7f32; }
.rank-player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rank-name { font-weight: 700; }
.rank-level { font-size: 10px; color: var(--text-dim); }
.rank-xp { font-weight: 700; color: var(--hero-accent); text-align: right; }
.rank-acc { text-align: right; }
.rank-streak { text-align: right; color: #f5a623; }

/* ===== RELATÓRIO POR POSIÇÃO/STACK ===== */
.report-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 12px 0 6px;
}
.report-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.report-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--plaque-border);
  min-width: 70px;
  gap: 3px;
}
.report-chip-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
}
.report-chip-acc {
  font-size: 16px;
  font-weight: 800;
}
.report-chip-sub {
  font-size: 9px;
  color: var(--text-faint);
}
.report-chip.rep-great { border-color: rgb(50,205,50); }
.report-chip.rep-great .report-chip-acc { color: rgb(50,205,50); }
.report-chip.rep-ok    { border-color: #f5c842; }
.report-chip.rep-ok    .report-chip-acc { color: #f5c842; }
.report-chip.rep-weak  { border-color: #f5943a; }
.report-chip.rep-weak  .report-chip-acc { color: #f5943a; }
.report-chip.rep-bad   { border-color: #e43a45; }
.report-chip.rep-bad   .report-chip-acc { color: #e43a45; }
.report-chip.rep-none  { opacity: 0.4; }
.report-chip.rep-none  .report-chip-acc { color: var(--text-dim); font-size: 12px; }

.report-overall {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--plaque-border);
}
.report-overall-stat { flex: 1; text-align: center; }
.report-overall-val { font-size: 20px; font-weight: 800; color: var(--text); }
.report-overall-lbl { font-size: 10px; color: var(--text-dim); margin-top: 2px; }


/* ===== DESAFIO DIÁRIO ===== */
.dc-indicator {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--hero-accent);
  border: 1px solid var(--hero-accent);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(255,165,0,0.06);
}
.dc-card {
  max-width: 420px;
  margin: 0 auto;
}
.dc-explainer {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
}
.dc-info { margin-bottom: 12px; }
.dc-progress-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.dc-bar { height: 6px; background: var(--plaque-border); border-radius: 3px; overflow: hidden; }
.dc-bar-fill { height: 100%; background: var(--hero-accent); border-radius: 3px; transition: width 0.3s; }
.dc-start-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--hero-accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.dc-done, .dc-finish {
  text-align: center;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dc-done-icon, .dc-finish-icon { font-size: 40px; }
.dc-done-score, .dc-finish-score { font-size: 32px; font-weight: 800; color: var(--hero-accent); }
.dc-done-label, .dc-finish-label { font-size: 13px; color: var(--text); font-weight: 600; }
.dc-done-msg { font-size: 12px; color: var(--text-dim); }
.dc-done-next { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.dc-finish-xp { font-size: 14px; font-weight: 700; color: rgb(50,205,50); }

/* ===== GRÁFICO DE EVOLUÇÃO ===== */
.chart-label {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.3px;
}


/* ===== SISTEMA DE PÁGINAS ===== */
.page {
  display: none;
  width: 100%;
  max-width: 1350px;
  animation: pageFadeIn 0.2s ease;
}
.page.active { display: block; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-content {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 8px;
}

.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--plaque-border);
}

.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  transition: color 0.15s;
}
.page-back-btn:hover { color: var(--hero-accent); }

/* ===== POPUP DE NOVIDADES ===== */
.whatsnew-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.whatsnew-modal.visible { opacity: 1; }
.whatsnew-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 14px;
  padding: 22px;
  max-width: 460px;
  width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.whatsnew-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.whatsnew-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.whatsnew-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.whatsnew-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.whatsnew-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.whatsnew-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.whatsnew-item-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 2px;
}


/* ===== FILTROS DO MAPA DE FRAQUEZAS ===== */
.weakness-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.wk-filter-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: var(--bg);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wk-filter-btn.active {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: var(--bg);
}
.wk-sizemode-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: var(--bg);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wk-sizemode-btn.active {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: var(--bg);
}
.wk-sub-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.wk-sub-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--plaque-border);
  background: var(--bg);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.wk-sub-btn.active {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: var(--bg);
}
.weakness-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.weakness-review-panel {
  flex: 1;
  min-width: 200px;
}
.weakness-review-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.weakness-review-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--plaque-border);
  margin-bottom: 5px;
  font-size: 12px;
}
.wrl-hand { font-weight: 800; color: var(--text); min-width: 36px; }
.wrl-acc  { color: #e43a45; font-weight: 700; }
.wrl-count { color: var(--text-dim); font-size: 10px; }


/* ===== LAYOUT DO RELATÓRIO ===== */
.report-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.report-left { flex: 1; min-width: 260px; }
.report-right { flex: 1; min-width: 220px; }

.report-overall-compact {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.report-overall-compact .report-overall-stat {
  flex: 1;
  min-width: 60px;
  text-align: center;
  padding: 8px 6px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--plaque-border);
}
.report-overall-compact .report-overall-val { font-size: 16px; font-weight: 800; }
.report-overall-compact .report-overall-lbl { font-size: 9px; }


/* Botão de revisão nos filtros — largura automática */
.weakness-filters .dc-start-btn {
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===== POPUP CONCLUSÃO DESAFIO ===== */
.finish-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.finish-popup.visible { opacity: 1; }
.finish-popup-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--hero-accent);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.finish-popup-icon { font-size: 56px; }
.finish-popup-title { font-size: 13px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.finish-popup-score { font-size: 52px; font-weight: 900; color: var(--hero-accent); line-height: 1; }
.finish-popup-detail { font-size: 14px; color: var(--text-dim); }
.finish-popup-msg { font-size: 13px; color: var(--text); font-weight: 600; }
.finish-popup-xp { font-size: 16px; font-weight: 800; color: rgb(50,205,50); }
.finish-popup-btn {
  margin-top: 8px;
  padding: 10px 32px;
  border-radius: 8px;
  border: none;
  background: var(--hero-accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}


/* Feedback dentro do history-panel */
.history-panel .feedback-zone {
  margin-top: 12px;
}
.history-panel .feedback-card {
  padding: 10px;
  font-size: 11px;
}
.history-panel .feedback-detail {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 6px;
}
.history-panel .next-btn {
  width: 100%;
  padding: 7px;
  font-size: 11px;
  margin-top: 8px;
}
.history-panel .range-toggle {
  font-size: 10px;
  padding: 5px 8px;
}
.history-panel .verdict {
  font-size: 13px;
}


/* HUD extra stats (mãos + precisão) */
.hud-extra-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  border-left: 1px solid var(--plaque-border);
  padding-left: 10px;
  margin-left: 2px;
}
.hud-extra-item {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}


/* Streak de acertos em sequência */
.streak-acertos {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #f5c842;
  letter-spacing: 0.5px;
  padding: 4px 0 2px;
  animation: streakPop 0.3s ease;
}
@keyframes streakPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}


/* Cabeçalho minimizável */
.side-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.side-section-header .stack-bar-label,
.side-section-header .pos-bar-label { margin-bottom: 0; }

.minimize-btn {
  background: none;
  border: 1px solid var(--plaque-border);
  color: var(--text-dim);
  border-radius: 4px;
  width: 18px;
  height: 18px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.minimize-btn:hover { color: var(--text); border-color: var(--text-dim); }


/* Filtros 3bet */
#threebet-villain-filter,
#threebet-hero-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}



/* ===== MODAL DE RANGE ===== */
.range-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.range-modal.visible { opacity: 1; }
.range-modal-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 12px;
  padding: 20px;
  max-width: 520px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.range-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.range-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.range-modal-close {
  background: none;
  border: 1px solid var(--plaque-border);
  color: var(--text-dim);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.range-modal-close:hover { color: var(--text); }
.range-modal-body .range-grid {
  max-width: 100%;
}


/* Indicador de modo (revisão / desafio) */
.mode-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 0;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid #f5943a;
  color: #f5943a;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
}
.mode-indicator.active { display: flex; }


/* ===== AUTH / LOGIN ===== */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--plaque-border);
}
.auth-tab {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--hero-accent);
  border-bottom-color: var(--hero-accent);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.auth-divider {
  text-align: center;
  margin: 12px 0;
  position: relative;
  color: var(--text-dim);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--plaque-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.google-btn:hover { background: var(--bg); }
.auth-error {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(228,58,69,0.15);
  color: #e43a45;
  font-size: 12px;
  text-align: center;
}
.auth-success {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(97,192,109,0.15);
  color: #61c06d;
  font-size: 12px;
  text-align: center;
}
.auth-forgot-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
  padding: 6px 0 0;
  align-self: center;
}
.auth-forgot-link:hover { color: var(--hero-accent); }


/* ===== MENU SANDUÍCHE ===== */
.hamburger-wrap {
  position: relative;
}
.hamburger-btn {
  background: none;
  border: 1px solid var(--plaque-border);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.15s;
}
.hamburger-btn:hover span { background: var(--hero-accent); }
.hamburger-menu {
  position: fixed;
  right: 16px;
  top: 72px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 99999;
  overflow: hidden;
}
.hamburger-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.hamburger-item:hover { background: var(--bg); color: var(--hero-accent); }


/* Mini scoreboard */
.scoreboard-mini {
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--plaque-border);
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
}
.score-lbl { color: var(--text-dim); }
.score-val { font-weight: 700; color: var(--text); }
.score-thumbs { justify-content: center; gap: 20px; }
.thumb-up { color: var(--gto-call); font-size: 12px; font-weight: 700; }
.thumb-down { color: #e05a4e; font-size: 12px; font-weight: 700; }


/* Botão sair */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.logout-btn:hover {
  border-color: #e43a45;
  color: #e43a45;
}

/* ===== PÁGINA DE PERFIL ===== */
.profile-page-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) {
  .profile-page-grid { grid-template-columns: 1fr; }
}
.profile-page-card {
  background: var(--bg);
  border: 1px solid var(--plaque-border);
  border-radius: 12px;
  padding: 20px;
}
.avatar-picker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--plaque-border);
}
.profile-avatar-current {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hero-accent);
  color: var(--bg);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-avatar-current img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.avatar-picker-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}
.avatar-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.avatar-nav-btn:hover {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
}
.avatar-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--plaque-border);
  background: var(--bg-elevated);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}
.avatar-option-side {
  width: 30px;
  height: 30px;
  opacity: 0.6;
}
.avatar-option-side:hover { opacity: 1; }
.avatar-option-center {
  width: 48px;
  height: 48px;
  border-color: var(--hero-accent);
}
.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-option:hover { border-color: var(--text-dim); }
.avatar-option.active {
  border-color: var(--hero-accent);
  background: rgba(224,138,46,0.15);
}
.profile-field-note {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 4px;
}
.profile-field {
  margin-bottom: 16px;
}
.profile-field-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.profile-field-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-name-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.6;
  padding: 2px;
  transition: opacity 0.15s;
}
.profile-name-edit-btn:hover { opacity: 1; }
.profile-name-edit-input {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--hero-accent);
  border-radius: 6px;
  padding: 3px 8px;
  width: 180px;
}
.profile-select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
}
.profile-select:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}
.profile-logout-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.profile-delete-btn {
  color: #e05a4e;
  border-color: rgba(224,90,78,0.35);
}
.profile-delete-btn:hover {
  background: rgba(224,90,78,0.1);
  border-color: #e05a4e;
  color: #e05a4e;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.profile-stat-item {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.profile-stat-val { font-size: 18px; font-weight: 800; color: var(--hero-accent); }
.profile-stat-lbl { font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }

.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.profile-shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s;
}
.profile-shortcut-card:hover { border-color: var(--hero-accent); }
.profile-shortcut-icon { font-size: 22px; }
.profile-shortcut-title { font-size: 13px; font-weight: 700; color: var(--text); }
.profile-shortcut-desc { font-size: 11px; color: var(--text-dim); }


/* ===== FICHAS PNG ===== */
.chip-img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.chip-img-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
}
.chip-img-top {
  position: absolute;
  bottom: 9px;
  left: 0;
  filter: drop-shadow(0 -2px 3px rgba(0,0,0,0.3));
}
.chip-img-single {
  position: absolute;
  bottom: 4px;
  left: 0;
}


/* ===== PAINEL ADM ===== */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.admin-card {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}
.admin-card-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--hero-accent);
  margin-bottom: 4px;
}
.admin-card-lbl {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
}
.admin-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--plaque-border);
}
/* Abas do painel admin */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--plaque-border);
  overflow-x: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}
.admin-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.admin-tab-btn {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.admin-tab-btn:hover { color: var(--text); }
.admin-tab-btn.active {
  color: var(--hero-accent);
  border-bottom-color: var(--hero-accent);
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }


.admin-activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 12px 16px 8px;
  margin-bottom: 8px;
}
.admin-activity-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.admin-activity-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.admin-activity-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.admin-activity-bar {
  width: 70%;
  background: var(--hero-accent);
  border-radius: 4px 4px 0 0;
  opacity: 0.6;
  transition: height 0.3s ease;
}
.admin-activity-bar.today {
  opacity: 1;
}
.admin-activity-lbl {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 4px;
  text-align: center;
}


/* Controles heatmap admin */
.admin-heatmap-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.admin-filter-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.admin-filter-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.12s;
}
.admin-filter-btn:hover { color: var(--text); border-color: var(--text-dim); }
.admin-filter-btn.active {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: #fff;
}


/* ===== BIBLIOTECA DE RANGES ===== */
.range-lib-grid-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.range-lib-card {
  width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 12px;
}
.range-nonexistent-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(224, 165, 78, 0.1);
  border: 1px solid #e0a54e;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #e0a54e;
}
.nonexistent-line-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e0a54e;
  color: #1a1300;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nonexistent-line-close-btn:hover { background: #f0b85e; }
.range-lib-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}


/* ===== MODO DIFÍCIL (admin) ===== */
.hm-copy-box {
  background: var(--bg-elevated);
  border: 1px dashed var(--plaque-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 20px;
}
.hm-cell {
  cursor: pointer;
  transition: background 0.15s;
}
.hm-cell:hover {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

/* ===== CENTRAL DE RANGES ===== */
/* ===== CENTRAL DE RANGES ===== */
.rm-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px dashed var(--plaque-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, border-color 0.12s;
}
.rm-collapsible-header:hover { color: var(--text); border-color: var(--text-dim); }
.rm-collapsible-chevron { font-size: 11px; }
.rm-maintenance {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: var(--bg-elevated);
  border: 1px dashed var(--plaque-border);
  border-radius: 8px;
}
.rm-maintenance-note {
  font-size: 11px;
  color: var(--text-dim);
}
.rm-number-input {
  width: 80px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.rm-wrap { margin-bottom: 24px; }

/* ===== TELA ESTUDAR ===== */
.study-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 10px 0 12px;
}
.study-settings-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 52px;
  max-width: 102px;
}
.study-settings-card {
  cursor: pointer;
  font-family: inherit;
}
.study-settings-sub { font-size: 9px; color: var(--text-dim); line-height: 1.4; }
.study-settings-block #study-reset-btn { width: 100%; font-size: 10px; padding: 5px 4px; text-align: center; }
.study-seat {
  flex: 1;
  min-width: 52px;
  max-width: 102px;
  background: var(--panel-bg, #14171f);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  padding: 7px 6px;
  text-align: left;
  transition: all 0.15s;
}
.study-seat.active {
  border-color: var(--plaque-border);
}
.study-seat.active.focused {
  border-color: var(--hero-accent);
  box-shadow: 0 0 0 2px var(--hero-accent) inset;
}
.study-seat-hint { font-size: 10px; color: var(--text-dim); text-align: center; padding: 4px 0; }
.study-postflop-card { cursor: pointer; font-family: inherit; text-align: center; border-color: var(--hero-accent); }
.study-postflop-card:hover { background: rgba(255,255,255,0.05); }
.study-seat-pos-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--plaque-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}
.study-seat-pos-btn:hover { color: var(--hero-accent); }
.study-seat-stack-inline { font-size: 10px; font-weight: 700; color: var(--hero-accent); }
/* Ações dentro do card da posição ativa -- igual o GTO Wizard: linhas
   de texto empilhadas, alinhadas à esquerda. Cor única (mesma do botão
   "Recomeçar") pra todas quando não selecionadas -- só quando marcada
   como escolhida é que ganha a cor própria da ação (fundo colorido +
   texto branco). */
.study-seat-decision-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 3px 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s;
}
.study-seat-decision-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.study-seat-decision-btn.selected {
  background: var(--btn-color, var(--gto-fold));
  color: #fff !important;
  position: relative;
}
.study-seat-decision-btn.selected::before {
  content: "✓ ";
}
.study-situation-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.study-decision-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.study-decision-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.12s;
}
.study-decision-btn:hover { filter: brightness(1.12); }
.rm-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }

.card-picker-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  max-width: 620px;
  margin-top: 8px;
}
.card-picker-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, border-color 0.15s;
}
.card-picker-cell:hover { border-color: var(--hero-accent); transform: scale(1.06); }
.card-picker-cell.selected {
  background: var(--hero-accent) !important;
  border-color: var(--hero-accent);
  color: #1a1a1a !important;
}
.card-picker-order {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hero-accent);
}
.fc-board-preview {
  display: flex;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  width: fit-content;
}
.fc-board-preview:hover { background: rgba(255,255,255,0.05); }
.rm-group { display: flex; flex-direction: column; gap: 6px; }
.rm-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.rm-label-sub { font-size: 9px; font-weight: 500; text-transform: none; letter-spacing: normal; opacity: 0.7; }
.rm-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.rm-field { display: flex; flex-direction: column; gap: 6px; }
.fc-bet-field-header { display: flex; align-items: center; gap: 6px; }
.fc-bet-field-header .rm-number-input { flex: 1; }
.fc-allin-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ff6b4a;
  background: rgba(255,107,74,0.12);
  border: 1px solid rgba(255,107,74,0.35);
  border-radius: 6px;
  padding: 6px 10px;
}
.fc-situations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 1100px) {
  .fc-situations-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .fc-situations-grid { grid-template-columns: repeat(2, 1fr); }
}
.fc-situation-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  font-size: 11px;
  background: var(--plaque-bg);
}
.fc-situation-info { color: var(--text-dim); text-align: center; line-height: 1.3; }
.fc-situation-board { color: var(--hero-accent); font-weight: 700; }
.fc-situation-actions { display: flex; gap: 4px; }
.fc-mini-board { display: flex; gap: 3px; }
.fc-mini-board .card {
  width: 24px;
  height: 34px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.fc-mini-board .card .rank { font-size: 13px; }
.fc-mini-board .card .suit { font-size: 9px; top: 0; left: 2px; }
.fc-mini-board .mini-card-back { width: 24px; height: 34px; border-radius: 3px; }

/* Destaque permanente pro campo de tamanho de abertura -- é o valor que
   alimenta o cálculo de pote/stack no Pós-Flop inteiro, então precisa
   chamar mais atenção que um campo comum do formulário. */
.rm-open-size-group { border: 1px solid #f0a83055; border-radius: 8px; padding: 8px 10px; background: rgba(240,168,48,0.06); }
.rm-open-size-input { border-color: #f0a830 !important; font-weight: 700; }

/* Brilho temporário quando chega nesse campo via o atalho do editor de
   Pós-Flop -- chama atenção na hora, depois desaparece sozinho. */
.rm-open-size-highlight { animation: rmOpenSizePulse 0.6s ease-in-out 3; }
@keyframes rmOpenSizePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,168,48,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(240,168,48,0); }
}
.rm-textarea {
  width: 100%;
  height: 80px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 11px;
  padding: 8px;
  resize: vertical;
  box-sizing: border-box;
  font-family: monospace;
}
.rm-textarea:focus { outline: none; border-color: var(--hero-accent); }
.rm-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.rm-legend { display: flex; gap: 16px; font-size: 11px; color: var(--text-dim); margin-bottom: 6px; }
.rm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

/* ===== TABLE ===== */
.table-wrap {
  width: 100%;
  margin-top: 6px;
}

.felt-table  {
  position: relative;
  background: var(--table-fill);
  border: 8px solid var(--table-border);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.8), 0 12px 40px rgba(0,0,0,0.6);
  border-radius: 200px;
  min-height: 320px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[id^="seats-layer"] {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seat-plaque  {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--plaque-bg);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.seat-plaque .seat-stack {
  color: var(--text-dim);
  font-weight: 700;
}

.seat.hero .seat-plaque  {
  border-color: var(--hero-accent);
  box-shadow: 0 0 16px rgba(255, 159, 28, 0.35);
}

.seat.hero .seat-plaque .seat-stack { color: var(--hero-accent); }

.seat.folded .seat-plaque {
  opacity: 0.4;
}

.seat-bb-action {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  background: var(--gto-raise);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.dealer-button  {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  border: 1px solid #ccc;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ===== CENTER CONTENT ===== */
.table-center-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.pot-line {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}

.pot-line b { color: var(--text); }

.stack-indicator {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}

.stack-indicator b { color: var(--hero-accent); }

/* ===== HERO CARDS (renderizadas dentro do seat do herói) ===== */
.hero-cards  {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 6px;
}

.card {
  width: 52px;
  height: 74px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  position: relative;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
}

.card .rank  {
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card .suit  {
  position: absolute;
  top: -1px;
  left: 5px;
  font-size: 20px;
  margin-left: 0;
}

/* Quatro cores de FUNDO por naipe (texto sempre branco para contraste):
   ouros azul, copas vermelho, espadas preto, paus verde */
.card.spade    {
  background: linear-gradient(145deg, #2b2e38, #15171e);
}
.card.heart    {
  background: linear-gradient(145deg, #e63946, #9b1c26);
}
.card.diamond  {
  background: linear-gradient(145deg, #3f7fe0, #2860c9);
}
.card.club     {
  background: linear-gradient(145deg, #2d965a, #1d7a44);
}

/* Verso de cartas dos jogadores ainda ativos na mão (não-herói) */
.mini-cards {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 4px;
}

.mini-cards-placeholder {
  visibility: hidden; /* ocupa espaço mas não aparece */
  width: 89px;  /* 2x 42px + 5px gap — igual às mini-cards reais */
  height: 58px; /* altura de uma mini-card-back */
  margin-bottom: 4px; /* igual ao .mini-cards */
}

.mini-card-back  {
  width: 42px;
  height: 58px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #1e3a8a 0px, #1e3a8a 4px, #1d4ed8 4px, #1d4ed8 8px);
  border: 1px solid #3b82f6;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* ===== ACTION BUTTONS (abaixo da mesa) ===== */
.actions-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

/* Pós-Flop C-bet sempre mostra os 8 botões de ação (Check + Bet1 a
   Bet6 + All-in), mesmo pra tamanhos que não foram cadastrados de
   verdade (o app completa com um tamanho maior que o último
   cadastrado) -- assim o layout nunca muda de uma situação pra outra.
   Usa o MESMO visual padrão dos outros modos (botão arredondado) --
   só força 4 por linha (2 linhas), com largura FIXA (não porcentagem)
   grande o bastante pra sempre caber o texto mais longo (ex: "All-in
   97.7"), e um espaçamento mais apertado entre eles.
*/
.actions-bar-4col {
  gap: 6px;
  max-width: 630px;
  margin-left: auto;
  margin-right: auto;
}
/* A divzinha de porcentagem reserva espaço mesmo vazia (pra não pular o
   layout quando o texto aparece) -- isso fazia o espaço ENTRE as duas
   linhas parecer bem maior que o espaço ENTRE os botões da mesma linha,
   apesar de ambos usarem o mesmo "gap". Escondendo ela por completo
   enquanto vazia (só no Pós-Flop, que é onde isso incomodava), o gap
   entre linhas fica igual ao gap entre colunas. */
.actions-bar-4col .act-btn-freq:empty {
  display: none;
}
.actions-bar-4col .act-btn-wrap:not(.next-hand-wrap) {
  flex: 0 0 150px;
}
.actions-bar-4col .act-btn-wrap:not(.next-hand-wrap) .act-btn {
  width: 150px;
}

.act-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.act-btn-freq {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  min-height: 14px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.act-btn-freq.visible { opacity: 1; transform: translateY(0); }

/* Fica sempre por último e numa linha própria (embaixo de todos os
   botões de ação), pra qualquer cenário -- não só no Pós-Flop, que já
   ficava assim naturalmente por ter 8 botões ocupando 2 linhas
   inteiras. Sem isso, quando os botões de ação ganham uma ordem
   customizada (ex: 3bet/3bet 2/All-in), o Próxima Mão (sem ordem
   própria) ficava competindo no meio deles. */
.next-hand-wrap {
  order: 99 !important;
  flex-basis: 100% !important;
  margin-left: 0;
  margin-top: 6px;
  display: flex;
  justify-content: center;
}
.next-hand-btn {
  background: var(--hero-accent);
}
.next-hand-btn:hover {
  background: #f0a04a;
}

/* ===== MODO INSANO ===== */
.insano-play-wrap {
  margin-left: 28px;
}
.insano-play-btn {
  background: var(--gto-allin);
  font-size: 20px;
  min-width: 64px;
}
.insano-play-btn:hover { background: var(--gto-allin-hover); }
.insano-play-btn.playing-state {
  animation: none;
}
.insano-play-btn.waiting-state {
  animation: insanoPulse 1.1s ease-in-out infinite;
}
@keyframes insanoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,60,60,0.65); }
  50% { box-shadow: 0 0 0 10px rgba(240,60,60,0); }
}

.insano-timer-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 10px;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--plaque-border);
}
.insano-timer-fill {
  height: 100%;
  width: 100%;
  background: var(--gto-call);
  border-radius: 5px;
  transition: width 0.1s linear, background 0.3s ease;
}
.insano-timer-fill.timer-warning { background: #e8b923; }
.insano-timer-fill.timer-danger  { background: var(--gto-allin); }

/* Botões de dificuldade (Normal / Difícil / Insano) */
.difficulty-btn-group {
  display: flex;
  gap: 6px;
}
.diff-btn {
  flex: 1;
  padding: 7px 4px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: visible;
}
.diff-btn.diff-normal.active {
  background: var(--gto-call);
  color: #fff;
  border-color: var(--gto-call);
}
.diff-btn.diff-hard.active,
.diff-btn.diff-insane.active {
  background: var(--gto-allin);
  color: #fff;
  border-color: var(--gto-allin);
}
.spark-particle {
  position: absolute;
  bottom: 90%;
  left: 50%;
  font-size: 14px;
  pointer-events: none;
  animation: sparkFly 1.1s ease-out forwards;
  z-index: 20;
}
@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
  60%  { opacity: 1; transform: translate(-50%, -22px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -38px) scale(0.85); }
}

/* ===== MINI JOGO: INSANO 3 VIDAS ===== */
.minigame-sidebar-lives { font-size: 18px; letter-spacing: 3px; text-align: center; }

.minigame-play-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--plaque-border);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.minigame-play-hud-lives { font-size: 17px; letter-spacing: 2px; }
.minigame-play-hud-item b { color: var(--hero-accent); }
.minigame-play-hud-exit {
  margin-left: 10px;
  background: none;
  border: 1px solid var(--plaque-border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.minigame-play-hud-exit:hover { color: var(--gto-allin); border-color: var(--gto-allin); }

.minigame-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(0,0,0,0.9), 0 0 60px var(--hero-accent);
  z-index: 40;
  pointer-events: none;
  animation: countdownPulse 1s ease;
}
@keyframes countdownPulse {
  0%   { opacity: 0; transform: scale(1.6); }
  30%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}

.minigame-viewhands-card { max-width: 420px; text-align: left; }
.minigame-viewhands-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.minigame-viewhands-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  font-size: 12px;
}
.minigame-viewhands-row.correct { border-left: 3px solid var(--gto-call); }
.minigame-viewhands-row.wrong { border-left: 3px solid var(--gto-allin); }
.minigame-viewhands-hand { font-weight: 700; min-width: 34px; }
.minigame-viewhands-pos { color: var(--text-dim); flex: 1; }

.minigame-meme-wrap {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 130px;
  z-index: 30;
  animation: memePop 0.35s ease;
  pointer-events: none;
}
.minigame-meme-wrap img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid var(--gto-allin);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  display: block;
}
.minigame-meme-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gto-allin);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  text-align: center;
}
@keyframes memePop {
  0%   { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.minigame-gameover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.minigame-gameover-card {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 14px;
  padding: 32px 40px;
  text-align: center;
  max-width: 360px;
}
.minigame-gameover-title { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.minigame-gameover-score { font-size: 16px; margin-bottom: 6px; }
.minigame-gameover-score b { color: var(--hero-accent); font-size: 20px; }
.minigame-gameover-best { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }
.minigame-gameover-actions { display: flex; flex-direction: column; gap: 10px; }

#minigames-hub-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.minigame-card {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 12px;
  padding: 20px;
  max-width: 420px;
}
.minigame-card-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.minigame-card-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.minigame-card-best { font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
.minigame-card-best b { color: var(--hero-accent); font-size: 14px; }

.minigame-card-banner {
  max-width: 420px;
  padding: 0;
  overflow: hidden;
}
.minigame-banner-wrap {
  position: relative;
  cursor: pointer;
}
.minigame-banner-img {
  width: 100%;
  display: block;
  transition: filter 0.15s ease;
}
.minigame-banner-wrap:hover .minigame-banner-img { filter: brightness(1.06); }
.minigame-banner-recorde {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.minigame-banner-recorde b { color: var(--hero-accent); font-size: 13px; }

/* ===== JÓQUEI CLUB DO RFI ===== */
.jockey-banner-wrap {
  position: relative;
  height: 100%;
  min-height: 140px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #1a3a1f 0%, #0d2010 100%);
  border: 1px solid var(--plaque-border);
  overflow: hidden;
}
.jockey-banner-visual { font-size: 42px; }
.jockey-banner-title { font-size: 15px; font-weight: 800; color: var(--text); }
.jockey-banner-sub { font-size: 10.5px; color: var(--text-dim); }

.jockey-track-banner {
  width: 100%;
  background: var(--plaque-bg);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
/* O botão "Próxima mão" do shell genérico de treino nunca é usado no
   Jockey Club (a corrida avança sozinha, sem precisar clicar) -- mas
   como o shell só o esconde com visibility:hidden (pra não "pular" o
   layout no treino normal, onde ele aparece/some com frequência), ele
   continuava reservando ~54px de altura vazia entre os botões de ação
   e a pista, mesmo nunca aparecendo de verdade. Esconde de vez só no
   contexto do Jockey. */
#next-hand-wrap--jockey { display: none !important; }
.jockey-sidebar-stats { text-align: center; }
.jockey-timer { font-size: 30px; font-weight: 900; font-family: 'Courier New', monospace; color: var(--hero-accent); letter-spacing: 1px; }
.jockey-timer.jockey-timer-critical { color: #e0483d; animation: jockeyTimerPulse 0.5s infinite; }
@keyframes jockeyTimerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.jockey-progress { font-size: 12px; color: var(--text-dim); font-weight: 600; margin-top: 6px; }

.jockey-track {
  position: relative;
  aspect-ratio: 5 / 1;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.jockey-track-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.jockey-lane { position: absolute; width: 100%; height: 1px; background: rgba(255,255,255,0.06); }
.jockey-lane-1 { top: 54%; } .jockey-lane-2 { top: 60%; } .jockey-lane-3 { top: 68%; }
.jockey-horse {
  position: absolute;
  width: 5.4%;
  transform: translate(0, -50%);
  transition: left 0.25s ease-out;
  z-index: 2;
}
/* Camadas invertidas: o cavalo-0 (que antes ficava atrás, por vir
   primeiro no DOM) agora fica na FRENTE de todos; o cavalo-2 (que antes
   ficava na frente) agora fica atrás. O cavalo-1 continua no meio. */
#jockey-horse-0, #jockey-replay-horse-0 { z-index: 4; }
#jockey-horse-1, #jockey-replay-horse-1 { z-index: 3; }
#jockey-horse-2, #jockey-replay-horse-2 { z-index: 2; }
.jockey-horse img { width: 100%; display: block; }
.jockey-horse-you img { animation: jockeyGallop 0.42s ease-in-out infinite; }
@keyframes jockeyGallop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.jockey-flash-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.jockey-lobby-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--plaque-bg);
  border: 1px solid var(--plaque-border);
  margin-bottom: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}
.jockey-lobby-race-name { font-weight: 700; flex: 1; min-width: 160px; }
.jockey-lobby-race-status { color: var(--text-dim); font-size: 11px; }

/* "Suas corridas em andamento" em grid de colunas, em vez de linhas
   largas -- cada cartão fica compacto, com o nome, status, seu tempo e
   o tempo de quem já correu. */
.jockey-my-races-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .jockey-my-races-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .jockey-my-races-grid { grid-template-columns: repeat(2, 1fr); }
}
.jockey-my-races-grid .jockey-lobby-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 0;
}
.jockey-my-races-grid .jockey-lobby-race-name { min-width: 0; font-size: 12px; }
.jockey-my-race-time { font-size: 11px; color: var(--hero-accent); margin-top: 2px; }
.jockey-my-race-other { font-size: 10.5px; color: var(--text-dim); }

.jockey-summary-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.jockey-summary-card {
  flex: 1;
  min-width: 90px;
  background: var(--plaque-bg);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}
.jockey-summary-num { font-size: 20px; font-weight: 900; color: var(--hero-accent); }
.jockey-summary-lbl { font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }

.jockey-finished-card {
  background: var(--plaque-bg);
  border: 1px solid var(--plaque-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
}
.jockey-finished-name { font-weight: 800; font-size: 14px; margin-bottom: 8px; padding-right: 24px; }
.jockey-finished-expiry { font-size: 10.5px; color: var(--text-dim); margin-top: 6px; font-style: italic; }
.jockey-finished-delete-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.5;
  padding: 2px;
  transition: opacity 0.15s;
}
.jockey-finished-delete-btn:hover { opacity: 1; }
.jockey-finished-delete-btn:disabled { opacity: 0.25; cursor: default; }

.jockey-timer-on-track {
  position: absolute;
  bottom: 32px;
  right: 22px;
  z-index: 6;
  font-size: 15px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: var(--hero-accent);
  background: #0a0b10;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}
.jockey-timer-on-track.jockey-timer-critical { color: #ff5b4d; animation: jockeyTimerPulse 0.5s infinite; }
.jockey-flash-overlay.jockey-flash-active {
  animation: jockeyCameraFlash 0.5s ease-out;
}
@keyframes jockeyCameraFlash {
  0% { opacity: 0; }
  8% { opacity: 1; }
  100% { opacity: 0; }
}
.jockey-horse.jockey-horse-you { filter: drop-shadow(0 0 6px var(--hero-accent)); }
.jockey-horse-label {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  white-space: nowrap;
  background: rgba(0,0,0,0.45);
  padding: 1px 5px;
  border-radius: 4px;
}

.jockey-countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(10,11,16,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jockey-countdown-number {
  font-size: 130px;
  font-weight: 900;
  color: var(--hero-accent);
  text-shadow: 0 0 40px rgba(255,159,28,0.6);
  animation: jockeyCountdownPop 1s ease-out;
}
@keyframes jockeyCountdownPop {
  0% { transform: scale(0.3); opacity: 0; }
  30% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Modal de resultado/replay */
.jockey-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--plaque-bg);
  margin-bottom: 8px;
  font-size: 13px;
}
.jockey-result-row.jockey-result-me { border: 1px solid var(--hero-accent); }
.jockey-result-medal { font-size: 18px; width: 28px; }
.jockey-result-name { font-weight: 700; flex: 1; }
.jockey-result-time { color: var(--text-dim); font-size: 12px; }
.jockey-result-dnf { color: #e0483d; font-size: 12px; }
.next-hand-hint {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.act-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: background 0.12s ease, opacity 0.12s ease;
}

.act-btn:disabled { opacity: 0.35; cursor: default; }

.act-btn.fold { background: var(--gto-fold); }
.act-btn.fold:hover:not(:disabled) { background: var(--gto-fold-hover); }

.act-btn.limp { background: var(--gto-call); }
.act-btn.limp:hover:not(:disabled) { background: var(--gto-call-hover); }

.act-btn.raise { background: var(--gto-raise); }
.act-btn.raise:hover:not(:disabled) { background: var(--gto-raise-hover); }

.act-btn.allin { background: var(--gto-allin); }
.act-btn.allin:hover:not(:disabled) { background: var(--gto-allin-hover); }
.act-btn.bet-extra { background: #8a3a33; }
.act-btn.bet-extra:hover:not(:disabled) { background: #a3453c; }

.act-btn.act-btn-correct {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--chip-yellow), 0 0 14px 2px rgba(232, 185, 35, 0.6);
  animation: correctPulse 0.9s ease 1;
}

.act-btn.act-btn-imprecise {
  opacity: 1;
  box-shadow: 0 0 0 3px #b98ae0, 0 0 14px 2px rgba(185, 138, 224, 0.55);
  animation: correctPulse 0.9s ease 1;
}

@keyframes correctPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ===== FEEDBACK PANEL ===== */
.feedback-zone {
  width: 100%;
  margin-top: 16px;
  min-height: 30px;
}

.feedback-card {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  padding: 16px 20px;
}

.feedback-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.verdict {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.verdict.correct { color: var(--green-hover); }
.verdict.wrong { color: var(--red-hover); }
.verdict.imprecise { color: #b98ae0; }

.feedback-detail {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 14px;
}

.feedback-detail b { color: var(--text); font-weight: 700; }

.next-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--hero-accent);
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.next-btn:hover { background: #f0a04a; }

/* ===== RANGE GRID ===== */
.range-section { margin-top: 14px; }

/* Selo indicando que o spot/range foi criado pelo próprio time (não é
   dado oficial do MyTrainer) -- aparece no card de feedback do CSE e
   no modal de visualização de range. */
.cse-team-seal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--plaque-border, #2a2f3a);
  font-size: 10.5px;
  color: var(--text-faint, #6b7280);
  line-height: 1.4;
}
.cse-team-seal img { flex-shrink: 0; opacity: 0.9; }

.range-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  margin-bottom: 10px;
}

.range-toggle:hover { color: var(--hero-accent); }

.range-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  max-width: 420px;
  background: #e8e8e8;
  border-radius: 4px;
  padding: 2px;
}

.range-grid .cell {
  aspect-ratio: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3px 0 0 4px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 2px;
  background: #262626;
  color: #fff;
  cursor: default;
}

.range-grid .cell.fold-zone {
  background: var(--gto-fold);
  color: #fff;
}

.range-grid .cell.limp-zone {
  background: var(--gto-call);
  color: #fff;
}

.range-grid .cell.raise-zone {
  background: var(--gto-raise);
  color: #fff;
}

.range-grid .cell.allin-zone {
  background: var(--gto-allin);
  color: #fff;
}

.range-grid .cell.tested {
  outline: 3px solid #ffd400;
  outline-offset: -2px;
  color: #fff;
}

.wk-cell.gto-cell.tested-hand {
  outline: 3px solid #ffd400;
  outline-offset: -2px;
}

.range-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ===== VISUALIZADOR RICO DE RANGE PÓS-FLOP (estilo GTO Wizard) ===== */
.frv-situation {
  background: var(--plaque-bg);
  border: 1px solid var(--plaque-border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 14px;
  text-align: center;
}
.frv-action-line { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.frv-action-line .frv-fold { opacity: 0.4; }
.frv-action-line .frv-active { color: var(--text); font-weight: 700; }
.frv-board-line { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 10px; }
.frv-board-line b { color: var(--text); }
.frv-board-cards { display: inline-flex; gap: 4px; }
.frv-board-card {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 30px; border-radius: 4px; background: #f0f3f8; color: #111;
  font-size: 12px; font-weight: 800; gap: 1px;
}

.frv-dashboard { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.frv-stat-card {
  flex: 1; min-width: 90px; background: var(--plaque-bg); border: 1px solid var(--plaque-border);
  border-radius: 8px; padding: 10px; text-align: center;
}
.frv-stat-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.3px; }
.frv-stat-value { font-size: 17px; font-weight: 800; }
.frv-stat-combos { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

.frv-overview-bar { display: flex; width: 100%; height: 9px; border-radius: 5px; overflow: hidden; background: var(--plaque-bg); margin-bottom: 12px; }
.frv-overview-bar div { height: 100%; }

.frv-filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.frv-filter-group { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.frv-filter-label { font-size: 11px; color: var(--text-dim); margin-right: 2px; }
.frv-filter-btn {
  background: var(--plaque-bg); border: 1px solid var(--plaque-border); color: var(--text-dim);
  font-size: 10.5px; padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all 0.12s;
}
.frv-filter-btn:hover { color: var(--text); border-color: var(--text-dim); }
.frv-filter-btn.active { background: var(--hero-accent); border-color: var(--hero-accent); color: #1a1005; font-weight: 700; }

.frv-main { display: flex; gap: 16px; flex-wrap: wrap; }
.frv-matrix-wrap { background: var(--plaque-bg); border: 1px solid var(--plaque-border); border-radius: 8px; padding: 8px; }
.frv-matrix { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; width: 420px; height: 420px; }
.frv-cell {
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; cursor: pointer; position: relative; overflow: hidden;
  border: 1px solid transparent; transition: border-color 0.1s, opacity 0.15s; color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.85);
}
.frv-cell:hover { border-color: #fff; z-index: 2; }
.frv-cell.frv-selected { border-color: var(--hero-accent); box-shadow: 0 0 0 2px var(--hero-accent); z-index: 3; }
.frv-cell.frv-dimmed { opacity: 0.15; }
.frv-cell.frv-dimmed:hover { opacity: 0.4; }
.frv-cell-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: row; z-index: 0; }
.frv-cell-label { position: relative; z-index: 1; }

.frv-details { flex: 1; min-width: 260px; background: var(--plaque-bg); border: 1px solid var(--plaque-border); border-radius: 8px; padding: 12px; }
.frv-details-header { font-size: 13px; font-weight: 800; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--plaque-border); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.frv-details-header span:last-child { font-size: 10.5px; font-weight: 400; color: var(--text-dim); }
.frv-combo-list { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; }
.frv-combo-item { background: var(--bg); border-radius: 4px; padding: 6px 8px; font-size: 11px; }
.frv-combo-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.frv-combo-bars { height: 9px; border-radius: 5px; background: var(--plaque-border); display: flex; overflow: hidden; }

.range-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}

.swatch.allin-zone { background: var(--gto-allin); }
.swatch.raise-zone { background: var(--gto-raise); }
.swatch.limp-zone { background: var(--gto-call); }
.swatch.fold-zone { background: var(--gto-fold); }

/* ===== SETTINGS (painel lateral) ===== */
.stack-bar-label, .pos-bar-label {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.stack-filter, .pos-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-pill, .pos-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--plaque-border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: pointer;
}

.stack-pill.active, .pos-pill.active {
  background: var(--hero-accent);
  color: var(--bg);
  border-color: var(--hero-accent);
}

.stack-pill.random-pill { border-style: dashed; }
.stack-pill.random-pill.active { border-style: solid; }

.stack-pill.stack-locked {
  opacity: 0.35;
  cursor: not-allowed;
}
.stack-pill.stack-locked:hover { opacity: 0.55; }
.lock-icon { font-size: 9px; margin-left: 2px; }

.reset-btn {
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: 1px solid var(--plaque-border);
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.reset-btn:hover { color: var(--red-hover); border-color: var(--red); }

@media (max-width: 880px) {
  .app-layout { flex-direction: column; }
  .side-col {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  .side-col .scoreboard { width: 100%; }
  .side-section { flex: 1; min-width: 200px; }
  .reset-btn { align-self: flex-start; }
}

@media (max-width: 600px) {
  .felt-table { border-radius: 999px; min-height: 420px; padding: 16px; }
  .table-center-content { margin-top: 52px; }
  .card { width: 36px; height: 50px; }
  .card .rank { font-size: 19px; }
  .card .suit { font-size: 10px; top: 3px; left: 4px; }
  .mini-card-back { width: 36px; height: 50px; }
  .act-btn { padding: 10px 14px; font-size: 12px; }
  .seat-plaque { font-size: 10px; padding: 5px 8px; }
  .brand { font-size: 16px; }
  .score-chip { min-width: 46px; padding: 5px 8px; }
  .side-col { flex-direction: column; }
}

/* ===== LOGO DA MESA ===== */
.table-logo {
  width: 203px;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.table-pot {
  position: absolute;
  left: 50%;
  top: calc(27% + 10px);
  transform: translateX(-50%);
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.65);
  border-radius: 12px;
  padding: 4px 12px;
}
.table-center-chips {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.board-cards {
  position: absolute;
  left: 50%;
  top: calc(45% + 20px);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  gap: 6px;
  pointer-events: none;
  user-select: none;
}

/* ===== FICHAS DE BB (unidade + décimo) — proporção de empilhamento exata:
   13,8pt de deslocamento pra uma ficha de 91,37pt de altura (~15,1%) ===== */
.bb-chips-row {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
}
.bb-chip-stack {
  position: relative;
  flex-shrink: 0;
}
.bb-chip-img {
  position: absolute;
  left: 0;
  object-fit: contain;
}
.bb-chip-img.bb-chip-shadow {
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

/* ============================================================
   LANDING PAGE (primeira visita) -- classes prefixadas com "ldg-"
   pra nunca colidir com o resto do app. Reaproveita as MESMAS
   variáveis de cor do app (--bg, --hero-accent etc), já que a landing
   foi desenhada com a mesma paleta.
   ============================================================ */
.landing-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}
.landing-screen.hidden { display: none; }

.ldg-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 11, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--plaque-border);
  z-index: 10;
  padding: 16px 24px;
}
.ldg-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ldg-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.ldg-logo span { color: var(--hero-accent); }
.ldg-header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ldg-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
  font-family: inherit;
}
.ldg-btn-primary {
  background: var(--hero-accent);
  color: var(--bg);
}
.ldg-btn-primary:hover {
  background: #f0a04a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.3);
}
.ldg-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--plaque-border);
}
.ldg-btn-secondary:hover {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
}

.ldg-hero {
  padding: 80px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ldg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 159, 28, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ldg-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ldg-hero-badge {
  display: inline-block;
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid var(--hero-accent);
  color: var(--hero-accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.ldg-hero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.ldg-highlight,
.ldg-highlight-text { color: var(--hero-accent); }
.ldg-hero-subtitle {
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.ldg-hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.ldg-hero-ctas .ldg-btn {
  padding: 14px 32px;
  font-size: 16px;
}
.ldg-hero-image-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  /* Corta 15% de baixo da imagem (onde tem uma logo que não queremos
     mostrar) -- a proporção original é 1200:669, então mostrar só 85%
     da altura vira 1200:568.65. */
  aspect-ratio: 1200 / 568.65;
}
.ldg-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ldg-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.ldg-section-title {
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.ldg-section-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ldg-pain-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--plaque-border);
  border-bottom: 1px solid var(--plaque-border);
}
.ldg-pain-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.ldg-pain-icon { font-size: 48px; margin-bottom: 20px; }
.ldg-pain-text {
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}
.ldg-pain-text strong { color: var(--hero-accent); }

.ldg-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.ldg-feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}
.ldg-feature-card:hover {
  border-color: var(--hero-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 159, 28, 0.1);
}
.ldg-feature-icon { font-size: 36px; margin-bottom: 16px; }
.ldg-feature-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.ldg-feature-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.ldg-teams-section {
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.05) 0%, rgba(10, 11, 16, 0) 100%);
  border: 1px solid var(--plaque-border);
  border-radius: 16px;
  padding: 60px 40px;
  margin: 80px auto;
  max-width: 1100px;
}
.ldg-teams-header { text-align: center; margin-bottom: 48px; }
.ldg-teams-badge {
  display: inline-block;
  background: var(--hero-accent);
  color: var(--bg);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.ldg-teams-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
}
.ldg-teams-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}
.ldg-teams-image-container {
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.ldg-teams-image { width: 100%; height: auto; display: block; }
.ldg-teams-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.ldg-team-feature { display: flex; gap: 16px; align-items: flex-start; }
.ldg-team-feature-icon { font-size: 32px; flex-shrink: 0; }
.ldg-team-feature-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.ldg-team-feature-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.ldg-gamification-section { position: relative; overflow: hidden; }
.ldg-gamification-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('poker-background-pattern.webp');
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.ldg-gamification-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.ldg-gamification-text { text-align: left; }
.ldg-gamification-text h2 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.ldg-gamification-text p {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}
.ldg-gamification-image-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ldg-gamification-image { width: 100%; height: auto; display: block; }
.ldg-gamification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.ldg-gamification-card {
  background: var(--bg-elevated);
  border: 1px solid var(--plaque-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}
.ldg-gamification-card:hover {
  border-color: var(--hero-accent);
  transform: scale(1.02);
}
.ldg-gamification-icon { font-size: 48px; margin-bottom: 12px; }
.ldg-gamification-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.ldg-gamification-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.ldg-pricing-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--plaque-border);
  border-bottom: 1px solid var(--plaque-border);
}
.ldg-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
.ldg-pricing-card {
  background: var(--bg);
  border: 1px solid var(--plaque-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}
.ldg-pricing-card:hover {
  border-color: var(--hero-accent);
  transform: translateY(-4px);
}
.ldg-pricing-featured {
  border-color: var(--hero-accent);
  box-shadow: 0 12px 40px rgba(255, 159, 28, 0.15);
}
.ldg-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hero-accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ldg-pricing-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ldg-pricing-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -1px;
}
.ldg-pricing-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
}
.ldg-pricing-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.ldg-pricing-note strong { color: var(--hero-accent); }
.ldg-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.ldg-pricing-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--plaque-border);
}
.ldg-pricing-features li:last-child { border-bottom: none; }
.ldg-pricing-btn { width: 100%; text-align: center; padding: 14px; font-size: 15px; }
.ldg-pricing-team {
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.ldg-pricing-team-icon { font-size: 36px; margin-bottom: 16px; }
.ldg-pricing-team-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}

.ldg-final-cta {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 159, 28, 0.05) 100%);
}
.ldg-final-cta h2 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.ldg-final-cta p {
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ldg-final-cta .ldg-btn { padding: 16px 40px; font-size: 18px; }

.ldg-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--plaque-border);
  padding: 40px 24px;
  text-align: center;
}
.ldg-footer-content { max-width: 1200px; margin: 0 auto; }
.ldg-footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.ldg-footer-logo span { color: var(--hero-accent); }
.ldg-footer-text { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.ldg-footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.ldg-footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.ldg-footer-links a:hover { color: var(--hero-accent); }

@keyframes ldgFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.ldg-fade-in { animation: ldgFadeInUp 0.6s ease-out; }

@media (max-width: 768px) {
  .ldg-hero h1 { font-size: 34px; }
  .ldg-hero-subtitle { font-size: 16px; }
  .ldg-section-title { font-size: 28px; }
  .ldg-teams-title { font-size: 24px; }
  .ldg-final-cta h2 { font-size: 28px; }
  .ldg-gamification-content { grid-template-columns: 1fr; gap: 40px; }
  .ldg-gamification-text { text-align: center; }
  .ldg-gamification-text h2 { font-size: 28px; }
  .ldg-header-cta { gap: 8px; }
  .ldg-btn { padding: 8px 16px; font-size: 13px; }
}

/* ============================================================
   CRIADOR DE SPOTS ESPECÍFICOS (CSE) -- ferramenta admin-only pra
   criar spots de turn/river independentes dos ranges de pré-flop e
   pós-flop já cadastrados. Variáveis próprias prefixadas com --cse-
   pra nunca colidir com o resto do app; o que já existia com o mesmo
   significado (fundo, texto, cores de ação) foi reaproveitado direto.
   Tudo escopado dentro de #page-cse -- nunca mexe em regras globais
   como body{} que afetariam o app inteiro.
   ============================================================ */

:root {
  --cse-accent-dim: #b8721a;
  --cse-villain: #e14b4b;
  --cse-felt: #0d3d2e;
  --cse-felt-rail: #6b3f1f;
  --cse-mono: 'JetBrains Mono', ui-monospace, monospace;
  --cse-sans: 'Inter', system-ui, sans-serif;
  --cse-radius: 10px;
  --cse-radius-sm: 6px;
  --cse-border: #262c3a;
  --cse-border-soft: #1c212c;
}



/* box-sizing: border-box já é global no app (linha ~44) -- não precisa repetir */

/* Escopado em #page-cse -- NÃO mexe no body do app inteiro, só no
   conteúdo dessa página específica */
#page-cse {
  font-family: var(--cse-sans);
}
#page-cse ::selection { background: var(--hero-accent); color: #000; }

/* ===== Header ===== */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10,11,16,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cse-border-soft);
}
.cse-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hero-accent), #d9720f);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cse-mono); font-weight: 700; font-size: 13px; color: #14100a;
  box-shadow: 0 4px 14px rgba(255,159,28,0.25);
}
.brand-text { line-height: 1.15; }
.brand-text .t1 { font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
.brand-text .t2 { font-size: 10.5px; color: var(--text-dim); font-family: var(--cse-mono); letter-spacing: 0.3px; }
.badge-admin {
  font-family: var(--cse-mono);
  font-size: 10px;
  color: var(--hero-accent);
  border: 1px solid var(--cse-accent-dim);
  background: rgba(255,159,28,0.08);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.top-nav { display: flex; gap: 6px; align-items: center; }
.top-nav button {
  font-family: var(--cse-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.top-nav button:hover { color: var(--text); background: var(--plaque-bg); }
.top-nav button.active { color: var(--bg); background: var(--hero-accent); }

/* ===== Layout geral ===== */
.shell { max-width: 1180px; margin: 0 auto; padding: 32px 28px 80px; }
.view { display: none; }
.view.active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Wizard: trilha de etapas ===== */
.wizard-shell { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.step-rail { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.step-rail-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.step-rail-item .num {
  font-family: var(--cse-mono); font-size: 11px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--plaque-bg); color: var(--text-faint);
  flex-shrink: 0;
}
.step-rail-item .lbl { font-size: 12.5px; font-weight: 600; color: var(--text-faint); }
.step-rail-item.done .num { background: rgba(47,180,99,0.18); color: var(--gto-call); }
.step-rail-item.done .lbl { color: var(--text-dim); }
.step-rail-item.active { background: var(--plaque-bg); border-left-color: var(--hero-accent); }
.step-rail-item.active .num { background: var(--hero-accent); color: #14100a; }
.step-rail-item.active .lbl { color: var(--text); }
.step-rail-item:hover .lbl { color: var(--text); }

.step-panel { background: var(--bg-elevated); border: 1px solid var(--cse-border-soft); border-radius: var(--cse-radius); padding: 28px 30px; min-height: 420px; }
.step-eyebrow { font-family: var(--cse-mono); font-size: 10.5px; color: var(--hero-accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.step-title { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.step-desc { font-size: 12.5px; color: var(--text-dim); margin: 0 0 24px; line-height: 1.5; }

.step-actions { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cse-border-soft); }

/* ===== Botões ===== */
.btn {
  font-family: var(--cse-sans);
  font-size: 13px; font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--cse-border);
  background: var(--plaque-bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { border-color: var(--text-faint); }
.btn-primary { background: var(--hero-accent); border-color: var(--hero-accent); color: #14100a; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--plaque-bg); }
.btn-danger { color: var(--gto-raise); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Tag pills (etapa 1) ===== */
.tag-group { margin-bottom: 22px; }
.tag-group-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 9px; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill {
  font-family: var(--cse-sans);
  font-size: 12.5px; font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  border: 1px solid var(--cse-border);
  background: var(--plaque-bg);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.12s;
}
.tag-pill:hover { border-color: var(--text-faint); color: var(--text); }
.tag-pill.active { background: var(--hero-accent); border-color: var(--hero-accent); color: #14100a; }
.tag-pill:disabled { opacity: 0.4; cursor: not-allowed; }
.tag-pill:disabled:hover { border-color: var(--cse-border); color: var(--text-dim); }
.tag-pill.active:disabled { opacity: 0.85; }

/* ===== Mesa (etapa 2) ===== */
.cse-table-wrap { display: flex; justify-content: center; padding: 10px 0 30px; }
.poker-table {
  position: relative;
  width: 640px; height: 340px;
  background: radial-gradient(ellipse at center, var(--cse-felt) 0%, #082a20 100%);
  border-radius: 170px;
  border: 10px solid var(--cse-felt-rail);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.4);
}
.seat-spot {
  position: absolute;
  width: 118px;
  transform: translate(-50%, -50%);
  text-align: center;
}
.seat-card {
  background: var(--plaque-bg);
  border: 1.5px solid var(--cse-border);
  border-radius: 9px;
  padding: 8px 8px 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.seat-card:hover { border-color: var(--text-faint); }
.seat-card .pos-lbl { font-family: var(--cse-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; }
.seat-card .seat-stack-display {
  margin-top: 5px;
  color: var(--text-dim); font-family: var(--cse-mono);
  font-size: 11.5px; text-align: center;
}
.stacks-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; padding: 16px; background: var(--plaque-bg); border-radius: var(--cse-radius-sm); border: 1px solid var(--cse-border-soft); }
.stacks-row-item { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; }
.stacks-row-item label { font-family: var(--cse-mono); font-size: 10px; font-weight: 700; color: var(--text-faint); letter-spacing: 0.4px; }
.stacks-row-item input { width: 100%; background: var(--bg); border: 1px solid var(--cse-border-soft); border-radius: 5px; color: var(--text); font-family: var(--cse-mono); font-size: 12.5px; text-align: center; padding: 6px 2px; }
.stacks-row-item input:focus { outline: none; border-color: var(--hero-accent); }
.seat-card .role-row { display: flex; gap: 4px; margin-top: 6px; }
.role-btn {
  flex: 1; font-size: 9.5px; font-weight: 700; font-family: var(--cse-mono);
  padding: 4px 0; border-radius: 4px; border: 1px solid var(--cse-border);
  background: transparent; color: var(--text-faint); cursor: pointer;
  letter-spacing: 0.3px;
}
.role-btn.hero-btn.active { background: var(--hero-accent); border-color: var(--hero-accent); color: #14100a; }
.role-btn.villain-btn.active { background: var(--cse-villain); border-color: var(--cse-villain); color: #fff; }
.seat-card.is-hero { border-color: var(--hero-accent); box-shadow: 0 0 0 1px var(--hero-accent); }
.seat-card.is-villain { border-color: var(--cse-villain); box-shadow: 0 0 0 1px var(--cse-villain); }

/* ===== Street selector ===== */
.street-pills { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.street-pill {
  font-family: var(--cse-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 9px 20px; border-radius: 8px; border: 1px solid var(--cse-border);
  background: var(--plaque-bg); color: var(--text-dim); cursor: pointer; text-transform: uppercase;
}
.street-pill.active { background: var(--hero-accent); border-color: var(--hero-accent); color: #14100a; }

/* ===== Form fields genéricos ===== */
.field { margin-bottom: 18px; }
.field-label { font-size: 11.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 7px; display: block; }
.field input[type="text"], .field input[type="number"], .field textarea {
  width: 100%;
  background: var(--plaque-bg);
  border: 1px solid var(--cse-border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--cse-sans);
  font-size: 13.5px;
  padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 70px; font-family: var(--cse-sans); line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--hero-accent); }
.field-hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.existing-names-hint { font-size: 10.5px; color: var(--text-faint); margin-top: 8px; line-height: 1.8; }
.existing-name-tag { display: inline-block; background: var(--plaque-bg); border: 1px solid var(--cse-border-soft); border-radius: 4px; padding: 2px 7px; margin: 0 4px 4px 0; font-family: var(--cse-mono); color: var(--text-dim); cursor: pointer; transition: all 0.12s; }
.existing-name-tag:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== Card picker (board) ===== */
.board-slots { display: flex; gap: 10px; justify-content: center; margin: 4px 0 20px; }
.board-slot {
  width: 58px; height: 80px;
  border-radius: 8px;
  border: 2px dashed var(--cse-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cse-mono); font-size: 20px; font-weight: 700;
  cursor: pointer; background: var(--plaque-bg);
}
.board-slot.filled { border-style: solid; background: #fff; color: #111; }
.board-slot.filled.red { color: #d21414; }
.board-slot.filled.black { color: #111; }

.cse-card-picker-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 100; }
.cse-card-picker-modal.open { display: flex; }
.cse-card-picker-inner { background: var(--bg-elevated); border: 1px solid var(--cse-border); border-radius: 12px; padding: 22px; width: 660px; max-width: 92vw; max-height: 82vh; overflow: auto; }
.cp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cp-title { font-weight: 700; font-size: 14px; }
.cp-close { background: none; border: none; color: var(--text-dim); font-size: 18px; cursor: pointer; }

/* ===== Ações e range (etapa 4) ===== */
.action-def-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.action-def-row input[type="text"] { flex: 1; background: var(--plaque-bg); border: 1px solid var(--cse-border); border-radius: 6px; color: var(--text); padding: 8px 10px; font-size: 12.5px; }
.action-size-wrap { display: flex; align-items: center; gap: 5px; background: var(--plaque-bg); border: 1px solid var(--cse-border); border-radius: 6px; padding: 0 4px 0 10px; flex-shrink: 0; width: 76px; box-sizing: border-box; }
.action-size-wrap-empty { background: transparent; border-color: transparent; }
.action-size-input { width: 52px; background: transparent; border: none; color: var(--text); padding: 8px 0; font-size: 12.5px; font-family: var(--cse-mono); }
.action-size-input:focus { outline: none; }
.action-size-suffix { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; padding-right: 6px; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cse-border-soft); cursor: pointer; flex-shrink: 0; }
.color-swatches { display: flex; gap: 5px; }
.remove-action-btn { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 15px; padding: 4px 8px; }
.remove-action-btn:hover { color: var(--gto-raise); }

.range-editor-block { border: 1px solid var(--cse-border-soft); border-radius: 9px; padding: 14px 16px; margin-bottom: 12px; background: var(--plaque-bg); }
.range-editor-block .rb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; }
.range-editor-block textarea { width: 100%; background: var(--bg); border: 1px solid var(--cse-border-soft); border-radius: 6px; color: var(--text); font-family: var(--cse-mono); font-size: 11px; padding: 8px; min-height: 50px; }

.grid-169 { display: grid; grid-template-columns: repeat(13, 1fr); gap: 1px; background: var(--cse-border-soft); border: 1px solid var(--cse-border-soft); border-radius: 4px; overflow: hidden; }
.grid-cell { aspect-ratio: 1; display: flex; align-items: flex-start; justify-content: flex-start; padding: 2px 0 0 3px; font-size: 8px; font-weight: 700; background: var(--plaque-bg); color: #fff; }

/* ===== Biblioteca ===== */
.lib-toolbar { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }
.lib-search { flex: 1; background: var(--bg-elevated); border: 1px solid var(--cse-border-soft); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 13px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.spot-card { background: var(--bg-elevated); border: 1px solid var(--cse-border-soft); border-radius: var(--cse-radius); padding: 16px 18px; cursor: pointer; transition: all 0.15s; }
.spot-card:hover { border-color: var(--cse-accent-dim); transform: translateY(-1px); }
.spot-card .sc-street { font-family: var(--cse-mono); font-size: 10px; color: var(--hero-accent); letter-spacing: 0.5px; text-transform: uppercase; }
.spot-card .sc-name { font-size: 15px; font-weight: 800; margin: 4px 0 6px; }
.spot-card .sc-summary { font-size: 12px; color: var(--text-dim); line-height: 1.4; margin-bottom: 10px; max-height: 34px; overflow: hidden; }
.spot-card .sc-board { display: flex; gap: 3px; margin-bottom: 10px; }
.sc-mini-card { width: 20px; height: 27px; border-radius: 3px; background: #fff; color: #111; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--cse-mono); }
.sc-mini-card.red { color: #d21414; }
.spot-card .sc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-btn-row { display: flex; gap: 6px; margin-top: 12px; }
.sc-btn-row .btn { padding: 9px 12px; }
.sc-edit-btn, .sc-dup-btn { flex-shrink: 0; }
.sc-tag { font-family: var(--cse-mono); font-size: 9px; color: var(--text-faint); background: var(--plaque-bg); padding: 2px 6px; border-radius: 4px; }
.empty-lib { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty-lib .big { font-size: 40px; margin-bottom: 12px; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--gto-call); color: #06210f; font-weight: 700; font-size: 13px; padding: 12px 22px; border-radius: 9px; opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Testar na mesa ===== */
.play-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.play-title-block .pt-eyebrow { font-family: var(--cse-mono); font-size: 10.5px; color: var(--hero-accent); letter-spacing: 1px; text-transform: uppercase; }
.play-title-block .pt-name { font-size: 19px; font-weight: 800; }
.play-summary { background: var(--bg-elevated); border: 1px solid var(--cse-border-soft); border-radius: var(--cse-radius); padding: 14px 18px; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-bottom: 22px; }
.play-summary b { color: var(--text); }

.play-table-wrap { display: flex; justify-content: center; margin-bottom: 8px; }
.play-table { position: relative; width: 640px; height: 300px; background: radial-gradient(ellipse at center, var(--cse-felt) 0%, #082a20 100%); border-radius: 150px; border: 9px solid var(--cse-felt-rail); box-shadow: inset 0 0 40px rgba(0,0,0,0.5); }
.play-seat { position: absolute; transform: translate(-50%,-50%); text-align: center; width: 90px; }
.play-seat .ps-lbl { font-family: var(--cse-mono); font-size: 10px; font-weight: 700; color: var(--text-faint); background: var(--plaque-bg); border-radius: 5px; padding: 3px 6px; display: inline-block; }
.play-seat.ps-hero .ps-lbl { color: var(--hero-accent); background: rgba(255,159,28,0.12); }
.play-seat.ps-villain .ps-lbl { color: var(--cse-villain); background: rgba(225,75,75,0.12); }
.play-seat .ps-stack { font-size: 9px; color: var(--text-faint); margin-top: 2px; }
.play-board { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; gap: 6px; }
.play-mini-card { width: 34px; height: 46px; border-radius: 4px; background: #fff; color: #111; font-family: var(--cse-mono); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.play-mini-card.red { color: #d21414; }
.play-pot-lbl { position: absolute; top: 62%; left: 50%; transform: translate(-50%,0); font-family: var(--cse-mono); font-size: 10px; color: var(--text-faint); }

.hero-hand-wrap { display: flex; justify-content: center; gap: 8px; margin: -6px 0 26px; }
.hero-hand-card { width: 62px; height: 86px; border-radius: 7px; background: #fff; color: #111; font-family: var(--cse-mono); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.hero-hand-card.red { color: #d21414; }

.play-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.play-action-btn { font-family: var(--cse-sans); font-weight: 700; font-size: 13.5px; padding: 13px 24px; border-radius: 9px; border: 2px solid; background: transparent; cursor: pointer; transition: all 0.12s; }
.play-action-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }
.play-action-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.play-feedback { background: var(--bg-elevated); border: 1px solid var(--cse-border-soft); border-radius: var(--cse-radius); padding: 18px 20px; margin: 0 auto 20px; max-width: 480px; }
.pf-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.pf-row .pf-pct { font-family: var(--cse-mono); font-weight: 700; }
.pf-clicked { border-radius: 6px; padding: 4px 8px; margin: 0 -8px; }

.play-footer { display: flex; justify-content: center; gap: 10px; }
.no-data-msg { text-align: center; padding: 60px 20px; color: var(--text-faint); }


/* ---- Adições da rodada de refinamento (etapa 1 agrupada, etapa 2 sem
   mesa, board com verso de carta, visualização rica de range) ---- */
.cse-step-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cse-match-count { font-family: var(--cse-mono); font-size: 11px; color: var(--hero-accent); background: rgba(255,159,28,0.08); border: 1px solid var(--cse-accent-dim); padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
.tag-row { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 22px; }
.tag-row .tag-group { margin-bottom: 0; }
.cse-field-hint-inline { font-weight: 400; text-transform: none; color: var(--text-faint); font-size: 10px; letter-spacing: 0; }

.cse-pos-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin-bottom: 6px; }
.cse-pos-card { background: var(--plaque-bg); border: 1.5px solid var(--cse-border); border-radius: 9px; padding: 10px; text-align: center; transition: border-color 0.15s; }
.cse-pos-card label { display: block; font-family: var(--cse-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.4px; margin-bottom: 6px; }
.cse-pos-card input { width: 100%; background: var(--bg); border: 1px solid var(--cse-border-soft); border-radius: 5px; color: var(--text); font-family: var(--cse-mono); font-size: 12.5px; text-align: center; padding: 6px 2px; margin-bottom: 7px; }
.cse-pos-card input:focus { outline: none; border-color: var(--hero-accent); }
.cse-pos-card.is-hero { border-color: var(--hero-accent); box-shadow: 0 0 0 1px var(--hero-accent); }
.cse-pos-card.is-villain { border-color: var(--cse-villain); box-shadow: 0 0 0 1px var(--cse-villain); }

.cse-board-trigger { display: flex; gap: 8px; justify-content: center; background: transparent; border: none; cursor: pointer; padding: 6px; border-radius: 8px; transition: background 0.15s; width: 100%; }
.cse-board-trigger:hover { background: var(--plaque-bg); }

.cse-mini-card-scale { display: inline-block; transform: scale(var(--cse-scale, 0.55)); transform-origin: center; margin: 0 -8px; vertical-align: middle; }

.cse-range-warning { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); background: var(--plaque-bg); border: 1px solid var(--cse-border-soft); border-radius: 7px; padding: 8px 12px; margin-bottom: 14px; }
.cse-tooltip-wrap { position: relative; display: inline-flex; }
.cse-tooltip-icon { width: 15px; height: 15px; border-radius: 50%; background: var(--cse-border); color: var(--text-dim); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: help; }
.cse-tooltip-wrap:hover .cse-tooltip-text { display: block; }
.cse-tooltip-text { display: none; position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); width: 280px; background: #06070a; border: 1px solid var(--cse-border); border-radius: 8px; padding: 10px 12px; font-size: 11px; line-height: 1.5; color: var(--text-dim); z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

/* ---- Rodada 3 de refinamento: card AVG, botões H/V compactos, etapa 3
   em 2 colunas, combos reais + arredondamento correto na visualização ---- */
.cse-pos-avg { border-color: var(--cse-accent-dim); background: rgba(255,159,28,0.06); cursor: default; }
.cse-avg-value { font-family: var(--cse-mono); font-size: 15px; font-weight: 800; color: var(--hero-accent); text-align: center; padding: 6px 0; margin-bottom: 7px; }
.cse-role-row-spacer { height: 24px; } /* mesma altura da role-row normal, mantém o card AVG alinhado com os demais */

.cse-stack-warning { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); background: var(--plaque-bg); border: 1px solid var(--cse-border-soft); border-radius: 7px; padding: 8px 12px; margin-top: 14px; text-align: left; }

.cse-step3-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.cse-step3-left { display: flex; flex-direction: column; gap: 18px; }
.cse-step3-right { display: flex; }
.cse-field-fill { display: flex; flex-direction: column; flex: 1; margin-bottom: 0; }
.cse-textarea-fill { flex: 1; resize: none; min-height: 140px; }

/* Card de spot específico dentro do seletor de "Criar Exercício" -- reaproveita
   .spot-card, só adiciona o estado "selecionado" */
.ex-cse-spot-selected { border-color: var(--hero-accent) !important; box-shadow: 0 0 0 1px var(--hero-accent); }

/* ============================================================
   RELATÓRIO GERAL DO TIME -- impressão / "Gerar PDF"
   ============================================================
   O botão "Gerar PDF" chama window.print() -- o navegador então deixa
   o usuário escolher "Salvar como PDF" no destino da impressão (nativo
   em Chrome/Edge/Firefox/Safari, sem precisar de nenhuma biblioteca
   extra). Esse bloco força um layout limpo, só com o conteúdo do
   relatório, em cores claras (o app usa tema escuro, que ficaria
   ilegível impresso sem forçar isso -- texto branco em fundo branco). */
@media print {
  body * { visibility: hidden; }
  #team-report-content, #team-report-content * { visibility: visible; }
  #team-report-content {
    position: absolute; left: 0; top: 0; width: 100%;
    background: #fff !important; color: #111 !important;
  }
  #team-report-content .admin-card {
    background: #fff !important; border: 1px solid #ddd !important;
    color: #111 !important; break-inside: avoid; page-break-inside: avoid;
    box-shadow: none !important;
  }
  #team-report-content * { color: #111 !important; border-color: #ddd !important; }
  #team-report-content [style*="color:var(--gto-call"] { color: #1a8f3c !important; }
  #team-report-content [style*="color:var(--red"] { color: #c0392b !important; }
  #team-report-content [style*="color:var(--hero-accent"] { color: #cc7a00 !important; }
  #team-report-content [style*="color:var(--text-dim"],
  #team-report-content [style*="color:var(--text-faint"] { color: #666 !important; }
  .weakness-empty { color: #666 !important; }
}
