/* FeltWise Academy — Styles
 * Ponto de Decisão Brand Identity
 * Modular CSS extracted from monolith
 */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties — Brand Colors */
:root {
  --deep-indigo: #1a1a2e;
  --midnight-blue: #16213e;
  --alchemy-gold: #c9a227;
  --warm-amber: #d4a053;
  --sage-green: #2d6a4f;
  --signal-red: #c1121f;
  --steel-gray: #8d99ae;
  --smoke-white: #edf2f4;
  --obsidian: #0f0f1a;

  /* Suit Colors */
  --suit-spades: #1a1a2e;
  --suit-hearts: #c1121f;
  --suit-diamonds: #c9a227;
  --suit-clubs: #2d6a4f;

  /* Transitions & Animations */
  --transition-smooth: 0.3s ease;
  --transition-medium: 0.4s ease;
  --transition-snappy: 0.2s ease;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-tooltip: 1001;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--obsidian);
  color: var(--smoke-white);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  overflow: hidden;
}

/* Header — Ponto de Decisão */
header.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--midnight-blue) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: var(--z-sticky);
}

.brand-logo-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  transition: all var(--transition-snappy);
}

.brand-logo-lockup:hover .brand-logo-icon {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--alchemy-gold);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.brand-logo-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--alchemy-gold);
  letter-spacing: -0.5px;
}

.brand-logo-tagline {
  font-size: 9px;
  color: var(--steel-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Main Container */
#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

    /* View Management */
    .view {
      display: none;
      width: 100%;
      height: 100%;
      flex: 1;
    }

    .view.active {
      display: flex;
    }

/* Typography Base — Ponto de Decisão */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

h5 {
  font-size: 16px;
  font-weight: 600;
}

h6 {
  font-size: 14px;
  font-weight: 600;
}

p {
  font-size: 14px;
  color: var(--smoke-white);
  line-height: 1.7;
  margin-bottom: 1em;
}

small {
  font-size: 12px;
  color: var(--steel-gray);
  font-weight: 500;
}

a {
  color: var(--alchemy-gold);
  text-decoration: none;
  transition: color var(--transition-snappy);
}

a:hover {
  color: var(--warm-amber);
}

/* Buttons — Ponto de Decisão */
button {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--alchemy-gold);
  color: var(--obsidian);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--warm-amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--smoke-white);
  border: 2px solid var(--alchemy-gold);
  font-weight: 600;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--warm-amber);
  color: var(--warm-amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.2);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

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

    .btn-action {
      background-color: var(--midnight-blue);
      color: var(--smoke-white);
      border: 2px solid var(--steel-gray);
      padding: 10px 16px;
      font-size: 13px;
      min-width: 80px;
      flex: 1;
      max-width: 120px;
    }

    .btn-action:hover:not(:disabled) {
      border-color: var(--alchemy-gold);
      color: var(--alchemy-gold);
    }

    .btn-action:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      border-color: var(--steel-gray);
      color: var(--steel-gray);
    }

    .btn-action.active {
      border-color: var(--alchemy-gold);
      background-color: rgba(201, 162, 39, 0.1);
      color: var(--alchemy-gold);
    }

    /* Button Utilities */
    .btn-full { width: 100%; padding: 14px; font-size: 16px; }
    .btn-icon { background: none; border: none; cursor: pointer; padding: 4px 8px; color: var(--steel-gray); }
    .btn-icon:hover { color: var(--alchemy-gold); }
    .btn-sm { padding: 6px 12px; font-size: 11px; min-width: auto; }
    .btn-danger { border-color: var(--signal-red); color: var(--signal-red); }
    .btn-danger:hover { background: rgba(193,18,31,0.1); }
    .btn-ghost { background: none; border: 1px solid var(--steel-gray); color: var(--steel-gray); font-size: 11px; padding: 4px 10px; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; }
    .btn-ghost:hover { border-color: var(--alchemy-gold); color: var(--alchemy-gold); }
    .btn-link { background: none; border: none; color: var(--alchemy-gold); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
    .btn-link:hover { color: var(--warm-amber); }

/* Input Fields — Ponto de Decisão */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="range"],
select {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--midnight-blue);
  border: 1px solid rgba(141, 153, 174, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--smoke-white);
  font-size: 14px;
  font-weight: 400;
  transition: all var(--transition-snappy);
  min-height: 44px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--alchemy-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1), 0 0 8px rgba(201, 162, 39, 0.2);
  background-color: rgba(22, 33, 62, 0.8);
}

    input[type="range"] {
      height: 6px;
      padding: 0;
      cursor: pointer;
      border: none;
      background: linear-gradient(to right, var(--steel-gray), var(--alchemy-gold));
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--alchemy-gold);
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
    }

    input[type="range"]::-moz-range-thumb {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--alchemy-gold);
      cursor: pointer;
      border: none;
      box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
    }

    /* ===== LOBBY VIEW ===== */
    #lobbyView {
      flex-direction: column;
      background: linear-gradient(135deg, var(--obsidian) 0%, var(--deep-indigo) 100%);
      justify-content: center;
      align-items: center;
      padding: 40px 20px;
    }

/* Lobby Container — Ponto de Decisão */
.lobby-container {
  max-width: 500px;
  width: 100%;
  background-color: var(--midnight-blue);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 1px rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.15);
  position: relative;
  animation: fadeIn 0.4s ease;
}

/* Logo Section — Ponto de Decisão */
.logo-section {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--alchemy-gold);
  position: relative;
}

.logo-section::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--alchemy-gold), var(--warm-amber));
  border-radius: 1px;
}

.logo-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--alchemy-gold);
  margin-bottom: 8px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--alchemy-gold) 0%, var(--warm-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-size: clamp(12px, 2vw, 16px);
  color: var(--alchemy-gold);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* "Ponto de Decisão" destaque visual — P0 */
.logo-ponto {
  display: block;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 6px 0;
  background: linear-gradient(135deg, var(--alchemy-gold) 0%, var(--warm-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo SVG — Ponto de Decisão (P0.6) */
.feltwise-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .feltwise-logo { max-width: 180px; }
}
@media (max-width: 375px) {
  .feltwise-logo { max-width: 160px; }
}

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

    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--steel-gray);
    }

    .form-group input,
    .form-group select {
      width: 100%;
    }

    .bot-selector {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 24px;
    }

    .bot-card {
      padding: 12px;
      background-color: var(--deep-indigo);
      border: 2px solid var(--steel-gray);
      border-radius: 8px;
      text-align: center;
      cursor: pointer;
      transition: all var(--transition-smooth);
      min-height: 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .bot-card:hover {
      border-color: var(--alchemy-gold);
      background-color: rgba(201, 162, 39, 0.05);
      transform: translateY(-2px);
    }

    .bot-card.selected {
      border-color: var(--alchemy-gold);
      background-color: rgba(201, 162, 39, 0.1);
      box-shadow: 0 0 12px rgba(201, 162, 39, 0.2);
    }

    .bot-name {
      font-weight: 600;
      font-size: 13px;
      margin-bottom: 4px;
    }

    .bot-level {
      font-size: 10px;
      color: var(--steel-gray);
    }

    .bot-elo {
      font-size: 10px;
      color: var(--alchemy-gold);
      font-family: 'JetBrains Mono', monospace;
      margin-top: 4px;
    }

    .action-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 30px;
    }

    .action-buttons .lobby-nav-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 8px;
    }

    .action-buttons .lobby-nav-row .btn-secondary {
      font-size: 12px;
      padding: 10px 12px;
    }

    .action-buttons .btn-primary {
      width: 100%;
      padding: 16px;
      font-size: 16px;
    }

    /* ===== TABLE VIEW ===== */
    #tableView {
      flex-direction: row;
      background: linear-gradient(135deg, var(--obsidian) 0%, var(--deep-indigo) 100%);
      padding: 20px;
      gap: 20px;
    }

    .table-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: visible;
    }

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

    .street-badge {
      background-color: var(--alchemy-gold);
      color: var(--obsidian);
      padding: 6px 12px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .back-to-lobby {
      background-color: transparent;
      border: 1px solid var(--steel-gray);
      color: var(--smoke-white);
      padding: 8px 16px;
      font-size: 12px;
    }

    .back-to-lobby:hover {
      border-color: var(--alchemy-gold);
      color: var(--alchemy-gold);
    }

    /* Multi-player table layout */
    .multi-seats-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
    }

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

    .table-seat .seat-info {
      text-align: center;
      background-color: rgba(22, 33, 62, 0.9);
      padding: 8px 12px;
      border-radius: 6px;
      border: 1px solid var(--steel-gray);
      min-width: 110px;
      transition: border-color 0.3s;
    }

    .table-seat.is-hero .seat-info {
      border-color: var(--alchemy-gold);
      box-shadow: 0 0 8px rgba(201, 162, 39, 0.3);
    }

    .table-seat.is-active .seat-info {
      border-color: var(--sage-green);
      box-shadow: 0 0 12px rgba(45, 106, 79, 0.4);
    }

    .table-seat.is-folded .seat-info {
      opacity: 0.4;
    }

    .seat-position-badge {
      font-size: 10px;
      font-weight: 700;
      color: var(--obsidian);
      background: var(--alchemy-gold);
      padding: 2px 6px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 2px;
      display: inline-block;
    }

    .seat-position-badge.dealer {
      background: var(--alchemy-gold);
    }

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

    .seat-cards .card, .seat-cards .card-back {
      width: 44px;
      height: 62px;
      font-size: 12px;
    }

    .seat-cards .card .card-rank {
      font-size: 14px;
    }

    .seat-cards .card .card-suit {
      font-size: 10px;
    }

    .table-seat.is-hero .seat-cards .card,
    .table-seat.is-hero .seat-cards .card-back {
      width: 60px;
      height: 84px;
      font-size: 16px;
    }

    .table-seat.is-hero .seat-cards .card .card-rank {
      font-size: 17px;
    }

    .table-seat.is-hero .seat-cards .card .card-suit {
      font-size: 13px;
    }

    .seat-bet-chip {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--signal-red);
      background: rgba(22, 33, 62, 0.8);
      padding: 2px 8px;
      border-radius: 10px;
      border: 1px solid var(--signal-red);
    }

    .table-complexity-badge {
      position: absolute;
      top: 4px;
      right: 4px;
      font-size: 10px;
      color: var(--steel-gray);
      background: rgba(22, 33, 62, 0.8);
      padding: 4px 8px;
      border-radius: 4px;
      border: 1px solid var(--steel-gray);
      z-index: 3;
    }

    .poker-table {
      flex: 1;
      position: relative;
      min-height: 420px;
      margin-bottom: 20px;
      overflow: visible;
    }

    /* Outer wooden rim of the table */
    .poker-table::after {
      content: '';
      position: absolute;
      top: 6%;
      left: 3%;
      width: 94%;
      height: 88%;
      border-radius: 50%;
      border: 6px solid #2a1f14;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #4a3828;
      z-index: 0;
      pointer-events: none;
    }

    /* The green felt is a pseudo-element so it doesn't clip seats */
    .poker-table::before {
      content: '';
      position: absolute;
      top: 8%;
      left: 5%;
      width: 90%;
      height: 84%;
      background: radial-gradient(ellipse at center, #3d7347 0%, #2d5a3d 100%);
      border-radius: 50%;
      border: 2px solid #1a3a28;
      box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.4);
      z-index: 0;
    }

    .seats-container {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 40px 60px;
    }

    .seat {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .seat.villain {
      margin-top: 0;
    }

    .seat.hero {
      margin-bottom: 0;
    }

    .seat-info {
      text-align: center;
      background-color: rgba(22, 33, 62, 0.8);
      padding: 12px 16px;
      border-radius: 6px;
      border: 1px solid var(--steel-gray);
      min-width: 140px;
    }

    .player-name {
      font-weight: 600;
      font-size: 14px;
      color: var(--alchemy-gold);
      margin-bottom: 4px;
    }

    .player-stack {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--sage-green);
    }

    .current-bet {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--signal-red);
      margin-top: 4px;
    }

    .hole-cards-container {
      display: flex;
      gap: 12px;
      justify-content: center;
      padding: 10px;
      background-color: rgba(22, 33, 62, 0.6);
      border-radius: 8px;
      margin-top: 8px;
    }

    .community-section {
      position: absolute;
      top: 38%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      z-index: 3;
    }

    .pot-display {
      text-align: center;
      margin-bottom: 16px;
      color: var(--alchemy-gold);
    }

    .pot-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--steel-gray);
      margin-bottom: 4px;
    }

    .pot-amount {
      font-family: 'JetBrains Mono', monospace;
      font-size: 24px;
      font-weight: 600;
      color: var(--alchemy-gold);
    }

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

    .action-panel {
      background-color: var(--midnight-blue);
      border: 1px solid var(--steel-gray);
      border-radius: 8px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .action-buttons-row {
      display: flex;
      gap: 8px;
      justify-content: center;
    }

    .keyboard-shortcuts-hint {
      font-size: 12px;
      color: var(--steel-gray);
      text-align: center;
      margin-top: 12px;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 500;
      letter-spacing: 0.3px;
    }

    /* Live Scores */
    .score-group {
      display: flex;
      gap: 2px;
    }
    .score-badge {
      display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(26, 26, 46, 0.8);
      border: 1px solid var(--steel-gray);
      border-radius: 6px 0 0 6px;
      padding: 3px 8px;
      min-width: 60px;
    }
    .score-badge.session-badge {
      border-radius: 0 6px 6px 0;
      border-left: 1px dashed rgba(141,153,174,0.3);
      background: rgba(26, 26, 46, 0.6);
    }
    .score-label {
      font-size: 8px;
      color: var(--steel-gray);
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .score-value {
      font-size: 14px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
      color: var(--alchemy-gold);
    }
    .session-badge .score-value {
      color: var(--smoke-white);
      font-size: 13px;
    }
    .score-badge.positive .score-value { color: var(--sage-green); }
    .score-badge.negative .score-value { color: var(--signal-red); }
    .score-diagnostic {
      font-size: 10px;
      color: var(--warm-amber);
      max-width: 120px;
      line-height: 1.2;
      padding: 2px 6px;
    }
    .score-diagnostic.alerta {
      color: var(--signal-red);
      font-weight: 600;
    }

    /* Coach Toggle */
    .coach-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      font-size: 11px;
      color: var(--steel-gray);
    }
    .coach-toggle input[type="checkbox"] {
      accent-color: var(--alchemy-gold);
      width: 16px;
      height: 16px;
    }
    .coach-toggle-label {
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

/* Coach Feedback Panel — Mentorship */
.coach-panel {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.9));
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  animation: slideUp 0.3s ease;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(201, 162, 39, 0.1);
}
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .coach-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    .coach-rating {
      font-size: 18px;
    }
    .coach-title {
      font-weight: 700;
      color: var(--alchemy-gold);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .coach-explanation {
      color: var(--smoke-white);
      max-height: 120px;
      overflow-y: auto;
    }
    .coach-details {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(141, 153, 174, 0.3);
      font-size: 12px;
      color: var(--steel-gray);
    }
    .coach-context { margin-bottom: 6px; }
    .coach-optimal { color: var(--sage-green); font-weight: 500; }
    .coach-toggle-details {
      background: none;
      border: none;
      color: var(--alchemy-gold);
      cursor: pointer;
      font-size: 11px;
      padding: 4px 0;
      margin-top: 6px;
    }
    .coach-toggle-details:hover { text-decoration: underline; }

    .coach-not-understood {
      background: none;
      border: 1px solid var(--signal-red);
      color: var(--signal-red);
      cursor: pointer;
      font-size: 11px;
      padding: 4px 10px;
      margin-top: 6px;
      border-radius: 4px;
      transition: all 0.2s;
    }
    .coach-not-understood:hover {
      background: rgba(193,18,31,0.1);
    }

    /* ===== C.1/C.2: Coach Icon & Conditional Feedback ===== */
    .coach-icon-fixed {
      position: absolute;
      bottom: 12px;
      right: 12px;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: rgba(26,26,46,0.95);
      border: 2px solid var(--steel-gray);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 20;
      transition: all 0.3s ease;
      box-shadow: 0 2px 12px rgba(0,0,0,0.4);
      font-size: 24px;
      user-select: none;
    }
    .coach-icon-fixed:hover {
      transform: scale(1.1);
      border-color: var(--alchemy-gold);
    }
    .coach-icon-fixed .coach-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      border: 2px solid var(--midnight-navy);
      background: var(--midnight-navy);
    }
    .coach-icon-fixed.rating-erro,
    .coach-icon-fixed.rating-critico {
      border-color: var(--signal-red);
      animation: coachPulseRed 1s ease-in-out infinite;
    }
    .coach-icon-fixed.rating-parcial {
      border-color: #f0ad4e;
      animation: coachPulseYellow 1.5s ease-in-out 3;
    }
    .coach-icon-fixed.rating-bom,
    .coach-icon-fixed.rating-otimo {
      border-color: var(--sage-green);
    }
    .coach-icon-fixed.rating-auto {
      border-color: var(--steel-gray);
      opacity: 0.6;
    }
    @keyframes coachPulseRed {
      0%, 100% { box-shadow: 0 0 0 0 rgba(193,18,31,0.6); }
      50% { box-shadow: 0 0 0 10px rgba(193,18,31,0); }
    }
    @keyframes coachPulseYellow {
      0%, 100% { box-shadow: 0 0 0 0 rgba(240,173,78,0.5); }
      50% { box-shadow: 0 0 0 8px rgba(240,173,78,0); }
    }
    .coach-panel.severity-erro,
    .coach-panel.severity-critico {
      border-color: var(--signal-red);
      border-width: 2px;
      box-shadow: 0 0 16px rgba(193,18,31,0.3);
    }
    .coach-panel.severity-parcial {
      border-color: #f0ad4e;
    }
    .coach-panel.severity-bom,
    .coach-panel.severity-otimo {
      border-color: var(--sage-green);
    }
    .coach-micro-indicator {
      position: absolute;
      bottom: 70px;
      right: 16px;
      font-size: 18px;
      opacity: 0;
      animation: microFadeIn 0.3s ease forwards, microFadeOut 0.5s ease 1.5s forwards;
      z-index: 21;
      pointer-events: none;
    }
    @keyframes microFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes microFadeOut {
      from { opacity: 1; }
      to { opacity: 0; }
    }
    .auto-advance-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 3px;
      background: var(--sage-green);
      border-radius: 0 0 8px 8px;
      animation: autoAdvanceProgress 1.5s linear forwards;
    }
    @keyframes autoAdvanceProgress {
      from { width: 0; }
      to { width: 100%; }
    }

    /* ===== A.2: Pill Chips & Mini-Card ===== */
    .pill-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px solid rgba(141,153,174,0.15);
    }
    .pill-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      font-size: 11px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      border: 1px solid rgba(212,175,55,0.4);
      background: rgba(212,175,55,0.08);
      color: var(--warm-amber);
    }
    .pill-chip:hover {
      background: rgba(212,175,55,0.2);
      border-color: var(--alchemy-gold);
    }
    .pill-chip.seen {
      opacity: 0.5;
      border-color: rgba(141,153,174,0.3);
      background: rgba(141,153,174,0.05);
      color: var(--steel-gray);
    }
    .pill-chip .pill-icon { font-size: 12px; }

    .pill-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(10,10,20,0.85);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.2s ease;
    }
    @keyframes fadeIn {
      from { opacity: 0; } to { opacity: 1; }
    }
/* Pill Card — Ponto de Decisão */
.pill-card {
  background: var(--deep-indigo);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 1px rgba(201, 162, 39, 0.1);
  animation: slideUp 0.3s ease;
  position: relative;
}

.pill-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--alchemy-gold), transparent);
  opacity: 0.5;
}
    .pill-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 16px;
    }
    .pill-card-title {
      color: var(--alchemy-gold);
      font-size: 16px;
      font-weight: 700;
    }
    .pill-card-section {
      font-size: 11px;
      color: var(--steel-gray);
      margin-top: 4px;
    }
    .pill-card-close {
      background: none;
      border: none;
      color: var(--steel-gray);
      font-size: 20px;
      cursor: pointer;
      padding: 0 4px;
      line-height: 1;
    }
    .pill-card-close:hover { color: var(--smoke-white); }
    .pill-card-content {
      color: var(--smoke-white);
      font-size: 13px;
      line-height: 1.7;
      margin-bottom: 16px;
    }
    .pill-card-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-top: 12px;
      border-top: 1px solid rgba(141,153,174,0.2);
    }
    .pill-understood-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .pill-understood-row input[type="checkbox"] {
      accent-color: var(--sage-green);
      width: 18px;
      height: 18px;
    }
    .pill-understood-row label {
      font-size: 13px;
      color: var(--smoke-white);
      cursor: pointer;
    }
    .pill-comprehension {
      display: flex;
      gap: 8px;
    }
    .pill-comp-btn {
      flex: 1;
      padding: 8px;
      border-radius: 6px;
      border: 1px solid rgba(141,153,174,0.3);
      background: rgba(15,15,26,0.6);
      color: var(--smoke-white);
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
    }
    .pill-comp-btn:hover { border-color: var(--alchemy-gold); }
    .pill-comp-btn.selected { border-color: var(--sage-green); background: rgba(92,141,80,0.2); }
    .pill-comp-btn.selected-partial { border-color: #f0ad4e; background: rgba(240,173,78,0.15); }
    .pill-comp-btn.selected-no { border-color: var(--signal-red); background: rgba(193,18,31,0.15); }
    .not-understood-form {
      margin-top: 8px;
      padding: 10px;
      background: rgba(15,15,26,0.5);
      border-radius: 6px;
      border: 1px solid var(--steel-gray);
    }

    .raise-section {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

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

    .preset-btn {
      padding: 8px 10px;
      font-size: 11px;
      background-color: var(--deep-indigo);
      border: 1px solid var(--steel-gray);
      color: var(--steel-gray);
      cursor: pointer;
      border-radius: 4px;
      transition: all var(--transition-smooth);
    }

    .preset-btn:hover {
      border-color: var(--warm-amber);
      color: var(--warm-amber);
    }

    .raise-input-row {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .raise-input-row input[type="range"] {
      flex: 1;
      min-width: 120px;
    }

    .raise-amount {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--alchemy-gold);
      min-width: 60px;
      text-align: right;
    }

    .hand-history-sidebar {
      width: 240px;
      background-color: var(--midnight-blue);
      border: 1px solid var(--steel-gray);
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      max-height: 600px;
      overflow-y: auto;
      position: relative;
    }

    .sidebar-title {
      font-weight: 600;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--steel-gray);
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--steel-gray);
    }

    .hand-history-items {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .history-item {
      font-size: 12px;
      padding: 8px;
      background-color: var(--deep-indigo);
      border-left: 2px solid var(--alchemy-gold);
      border-radius: 3px;
      color: var(--smoke-white);
    }

    .history-actor {
      font-weight: 600;
      color: var(--alchemy-gold);
      display: inline;
    }

    .history-action {
      color: var(--steel-gray);
    }

    /* ===== CARD STYLES ===== */
    .card {
      width: 70px;
      height: 98px;
      background-color: var(--smoke-white);
      color: #1a1a2e;
      border: 2px solid var(--midnight-blue);
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 18px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      transition: all var(--transition-smooth);
      position: relative;
      overflow: hidden;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    }

    .card-face {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .card-rank {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 800;
      color: inherit;
    }

    .card-suit {
      font-size: 14px;
      line-height: 1;
      color: inherit;
    }

    /* Suit color overrides */
    .card.suit-spades { color: var(--suit-spades); }
    .card.suit-hearts { color: var(--suit-hearts); }
    .card.suit-diamonds { color: var(--suit-diamonds); }
    .card.suit-clubs { color: var(--suit-clubs); }

    .card-back {
      width: 70px;
      height: 98px;
      background: linear-gradient(45deg, var(--midnight-blue) 25%, var(--deep-indigo) 25%, var(--deep-indigo) 50%, var(--midnight-blue) 50%, var(--midnight-blue) 75%, var(--deep-indigo) 75%, var(--deep-indigo));
      background-size: 12px 12px;
      border: 2px solid var(--alchemy-gold);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 12px;
      color: var(--alchemy-gold);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .suit-spades { color: var(--suit-spades); }
    .suit-hearts { color: var(--suit-hearts); }
    .suit-diamonds { color: var(--suit-diamonds); }
    .suit-clubs { color: var(--suit-clubs); }

    /* ===== DRILLS VIEW ===== */
    #drillsView {
      flex-direction: column;
      background: linear-gradient(135deg, var(--obsidian) 0%, var(--deep-indigo) 100%);
      padding: 40px;
      overflow-y: auto;
    }

    .drills-header {
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--steel-gray);
    }

    .drills-title {
      font-size: 32px;
      font-weight: 700;
      color: var(--alchemy-gold);
      margin-bottom: 8px;
    }

    .drills-subtitle {
      color: var(--steel-gray);
      font-size: 14px;
    }

    .filters-section {
      display: flex;
      gap: 16px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .filter-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--steel-gray);
      font-weight: 600;
    }

    .filter-group select {
      min-width: 160px;
    }

    .drills-content {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }

/* Scenario Cards — Ponto de Decisão */
.scenario-card {
  background-color: var(--midnight-blue);
  border: 1px solid rgba(141, 153, 174, 0.2);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.scenario-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--alchemy-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.scenario-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.15), 0 0 1px rgba(201, 162, 39, 0.1);
  background-color: rgba(26, 26, 46, 0.9);
}

.scenario-card:hover::before {
  opacity: 1;
}

    .scenario-header {
      margin-bottom: 12px;
    }

    .scenario-title {
      font-weight: 600;
      font-size: 16px;
      color: var(--alchemy-gold);
      margin-bottom: 6px;
    }

    .scenario-category {
      display: inline-block;
      font-size: 11px;
      background-color: var(--deep-indigo);
      border: 1px solid var(--steel-gray);
      color: var(--steel-gray);
      padding: 4px 8px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .scenario-body {
      flex: 1;
      margin-bottom: 12px;
    }

    .scenario-description {
      font-size: 13px;
      color: var(--smoke-white);
      line-height: 1.6;
      margin-bottom: 8px;
    }

    .scenario-difficulty {
      font-size: 12px;
      color: var(--steel-gray);
      font-style: italic;
    }

    .scenario-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid var(--steel-gray);
    }

    .scenario-stats {
      font-size: 12px;
      color: var(--steel-gray);
    }

    .scenario-btn {
      background-color: var(--alchemy-gold);
      color: var(--obsidian);
      border: none;
      padding: 6px 12px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 12px;
      cursor: pointer;
      transition: all var(--transition-smooth);
    }

    .scenario-btn:hover {
      background-color: var(--warm-amber);
      transform: scale(1.05);
    }

    /* Modal Styles */
/* Modals — Ponto de Decisão */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 26, 0.85);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--midnight-blue);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(201, 162, 39, 0.1);
  animation: slideUp 0.3s ease;
}

    .modal-header {
      margin-bottom: 24px;
    }

    .modal-title {
      font-size: 28px;
      font-weight: 700;
      color: var(--alchemy-gold);
      margin-bottom: 8px;
    }

    .modal-subtitle {
      color: var(--steel-gray);
      font-size: 14px;
    }

    .modal-body {
      margin-bottom: 24px;
      font-size: 14px;
      line-height: 1.8;
      color: var(--smoke-white);
    }

    .modal-footer {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .close-modal {
      background-color: var(--deep-indigo);
      color: var(--smoke-white);
      border: 1px solid var(--steel-gray);
      padding: 10px 20px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      transition: all var(--transition-smooth);
    }

    .close-modal:hover {
      border-color: var(--steel-gray);
    }

    /* Poker Term Tooltips */
    .term {
      color: var(--alchemy-gold);
      cursor: help;
      border-bottom: 1px dotted var(--alchemy-gold);
      position: relative;
      display: inline;
    }

    .term:hover::after {
      content: attr(data-def);
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--obsidian);
      color: var(--smoke-white);
      padding: 8px 12px;
      border-radius: 6px;
      border: 1px solid var(--alchemy-gold);
      font-size: 12px;
      font-weight: 400;
      line-height: 1.5;
      white-space: normal;
      width: max-content;
      max-width: 280px;
      z-index: 1000;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
      pointer-events: none;
    }

    .term:hover::before {
      content: '';
      position: absolute;
      bottom: calc(100% + 2px);
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: var(--alchemy-gold);
      z-index: 1001;
      pointer-events: none;
    }

    .term:hover::after {
      transition-delay: var(--tooltip-delay, 0ms);
      opacity: 1;
    }

    /* Adaptive tooltip visibility based on player level */
    body.tooltips-reduced .term {
      border-bottom: none;
    }

    body.tooltips-hidden .term::after,
    body.tooltips-hidden .term::before {
      display: none !important;
    }

    body.tooltips-hidden .term {
      border-bottom: none;
      cursor: default;
      color: inherit;
    }


    /* ===== DASHBOARD VIEW ===== */
    .dashboard-container {
      display: flex;
      flex-direction: column;
      gap: 32px;
      padding: 40px;
      overflow-y: auto;
      background-color: var(--obsidian);
    }

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

    .dashboard-header h1 {
      flex: 1;
    }

    .dashboard-header .back-to-lobby {
      flex-shrink: 0;
    }

    .dashboard-stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }

/* Stat Cards — Ponto de Decisão */
.stat-card {
  background-color: var(--midnight-blue);
  border: 1px solid rgba(141, 153, 174, 0.15);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.stat-card:hover {
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

    .stat-label {
      font-size: 13px;
      color: var(--steel-gray);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 600;
    }

    .stat-value {
      font-size: 32px;
      font-weight: 800;
      color: var(--alchemy-gold);
    }

    .stat-value.positive {
      color: var(--sage-green);
    }

    .stat-value.negative {
      color: var(--signal-red);
    }

    .stat-value.neutral {
      color: var(--smoke-white);
    }

    .elo-color-1200 {
      color: var(--sage-green);
    }

    .elo-color-1600 {
      color: var(--alchemy-gold);
    }

    .elo-color-800 {
      color: var(--signal-red);
    }

    /* Leak Detector */
    .leak-detector {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .leak-detector h3 {
      color: var(--alchemy-gold);
    }

    .leak-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .leak-item {
      background-color: var(--midnight-blue);
      border-left: 4px solid var(--steel-gray);
      border-radius: 8px;
      padding: 16px;
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }

    .leak-item.minor {
      border-left-color: var(--steel-gray);
    }

    .leak-item.moderate {
      border-left-color: var(--warm-amber);
    }

    .leak-item.critical {
      border-left-color: var(--signal-red);
    }

    .leak-severity-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
    }

    .leak-severity-badge::before {
      content: '';
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .leak-severity-badge.minor {
      background-color: rgba(141, 153, 174, 0.1);
      color: var(--steel-gray);
    }

    .leak-severity-badge.minor::before {
      background-color: var(--steel-gray);
    }

    .leak-severity-badge.moderate {
      background-color: rgba(212, 160, 83, 0.1);
      color: var(--warm-amber);
    }

    .leak-severity-badge.moderate::before {
      background-color: var(--warm-amber);
    }

    .leak-severity-badge.critical {
      background-color: rgba(193, 18, 31, 0.1);
      color: var(--signal-red);
    }

    .leak-severity-badge.critical::before {
      background-color: var(--signal-red);
    }

    .leak-content {
      flex: 1;
    }

    .leak-name {
      font-weight: 600;
      color: var(--smoke-white);
      margin-bottom: 4px;
    }

    .leak-detail {
      font-size: 13px;
      color: var(--steel-gray);
      margin: 4px 0;
    }

    .leak-advice {
      font-size: 13px;
      color: var(--warm-amber);
      margin-top: 8px;
      font-style: italic;
    }

    /* Skill Radar */
    .skill-radar-section h3 {
      color: var(--alchemy-gold);
      margin-bottom: 16px;
    }

    .skill-radar {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .radar-bar {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .radar-label {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      font-weight: 600;
    }

    .radar-label .label-name {
      color: var(--smoke-white);
    }

    .radar-label .label-value {
      color: var(--alchemy-gold);
    }

    .radar-fill {
      height: 8px;
      background-color: var(--midnight-blue);
      border-radius: 4px;
      position: relative;
      overflow: hidden;
    }

    .radar-fill::after {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      background: linear-gradient(90deg, var(--sage-green), var(--alchemy-gold));
      border-radius: 4px;
      width: var(--fill-width, 0%);
      transition: width var(--transition-smooth);
    }

    /* Session Summary */
    .session-summary-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(15, 15, 26, 0.8);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .session-summary-overlay.active {
      display: flex;
    }

    .session-summary-modal {
      background-color: var(--midnight-blue);
      border: 2px solid var(--alchemy-gold);
      border-radius: 16px;
      padding: 40px;
      max-width: 500px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .session-summary-modal h2 {
      color: var(--alchemy-gold);
      text-align: center;
    }

    .session-summary-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .session-summary-stat {
      background-color: var(--deep-indigo);
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .session-summary-stat .label {
      font-size: 12px;
      color: var(--steel-gray);
      text-transform: uppercase;
    }

    .session-summary-stat .value {
      font-size: 24px;
      font-weight: 700;
      color: var(--alchemy-gold);
    }

    .session-summary-stat .value.win {
      color: var(--sage-green);
    }

    .session-summary-stat .value.loss {
      color: var(--signal-red);
    }

    .best-hand-display {
      background-color: var(--deep-indigo);
      border-radius: 8px;
      padding: 16px;
      text-align: center;
    }

    .best-hand-label {
      font-size: 12px;
      color: var(--steel-gray);
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .best-hand-cards {
      font-size: 32px;
      font-weight: 700;
      color: var(--alchemy-gold);
    }

    .session-summary-modal .btn-primary {
      width: 100%;
    }

    /* Responsive */
    @media (max-width: 1200px) {
      #tableView {
        flex-direction: column;
      }

      .hand-history-sidebar {
        width: 100%;
        max-height: 150px;
      }
    }

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

      .poker-table {
        min-height: 300px;
      }

      .seats-container {
        padding: 20px 30px;
      }

      .bot-selector {
        grid-template-columns: 1fr;
      }

      .raise-presets {
        grid-template-columns: repeat(2, 1fr);
      }

      .drills-content {
        grid-template-columns: 1fr;
      }

      #drillsView {
        padding: 20px 16px;
      }

      #scenarioScoreBar {
        flex-wrap: wrap;
        gap: 8px;
      }

      .drills-title {
        font-size: 24px;
      }

      /* Dashboard Responsive */
      .dashboard-stats-grid {
        grid-template-columns: 1fr;
      }

      .skill-radar {
        gap: 8px;
      }
    }

    /* ===== ONBOARDING VIEW ===== */
    .onboarding-container {
      max-width: 840px;
      width: 100%;
      margin: 0 auto;
      padding: 40px 32px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
    }

    @media (max-width: 768px) {
      .onboarding-container {
        max-width: 100%;
        padding: 24px 16px;
      }
    }

    #onboardingView {
      flex-direction: column;
      background: linear-gradient(135deg, var(--obsidian) 0%, var(--deep-indigo) 100%);
      justify-content: center;
      overflow-y: auto;
      align-items: center;
      padding: 40px 20px;
    }

    .onboard-step {
      width: 100%;
      animation: fadeIn 0.5s ease;
    }
    .ob-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--steel-gray);
      opacity: 0.6;
      border: 1px solid rgba(141,153,174,0.4);
      transition: all 0.3s;
    }
    .ob-dot.active {
      background: var(--alchemy-gold);
      opacity: 1;
      transform: scale(1.3);
    }
    .ob-dot.completed {
      background: var(--sage-green);
      opacity: 0.8;
    }

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

    .self-level-btn {
      text-align: left;
      padding: 16px;
      transition: all var(--transition-smooth);
    }

    .self-level-btn:hover {
      border-color: var(--warm-amber);
      background-color: rgba(201, 162, 39, 0.05);
    }

    .self-level-btn.selected {
      border-color: var(--alchemy-gold) !important;
      background: rgba(201, 162, 39, 0.1) !important;
      box-shadow: 0 0 12px rgba(201, 162, 39, 0.2);
    }

    .cat-answer-btn {
      flex: 1;
      min-width: 60px;
      font-size: 12px;
      padding: 8px;
    }

    .cat-answer-btn.active {
      border-color: var(--alchemy-gold);
      background-color: rgba(201, 162, 39, 0.1);
      color: var(--alchemy-gold);
    }

/* View System */
.view { display: none; }
.view.active { display: flex; }

/* Smooth view transitions */
.view-entering { animation: viewFadeIn 0.3s ease forwards; }
@keyframes viewFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   BREADCRUMB NAVIGATION — Ponto de Decisão
   ======================================== */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  color: var(--steel-gray);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  background: linear-gradient(135deg, rgba(15,15,26,0.7), rgba(26,26,46,0.5));
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.breadcrumb-link {
  color: var(--steel-gray);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.breadcrumb-link:hover {
  color: var(--alchemy-gold);
}

.breadcrumb-sep {
  color: rgba(141,153,174,0.4);
  font-size: 14px;
  user-select: none;
}

.breadcrumb-current {
  color: var(--smoke-white);
  font-weight: 600;
}

/* ── Dashboard Metrics (3 cards: Performance, Learning, Retention) — Ponto de Decisão ── */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: linear-gradient(135deg, var(--midnight-blue) 0%, rgba(26,26,46,0.8) 100%);
  border: 1px solid rgba(141,153,174,0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.metric-card:hover {
  border-color: rgba(201, 162, 39, 0.2);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.1);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card:hover { border-color: var(--alchemy-gold); }

.metric-icon { font-size: 24px; margin-bottom: 8px; }

.metric-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--steel-gray);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--alchemy-gold);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 11px;
  color: var(--steel-gray);
}

@media (max-width: 600px) {
  .dashboard-metrics { grid-template-columns: 1fr; }
}

/* ── Equity Overlay (Learning Mode) ── */
.equity-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  background: rgba(15,15,26,0.85);
  border: 1px solid var(--alchemy-gold);
  border-radius: 10px;
  padding: 6px 16px;
  z-index: 50;
  pointer-events: none;
}

.equity-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--steel-gray);
}

.equity-value {
  font-size: 22px;
  font-weight: 700;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--smoke-white);
  max-width: 380px;
  animation: toastIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}

.toast-error { background: var(--signal-red); }
.toast-success { background: var(--sage-green); }
.toast-warning { background: var(--warm-amber); color: var(--obsidian); }
.toast-info { background: var(--midnight-blue); border: 1px solid var(--steel-gray); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* Ponto de Decisão specific animations */
@keyframes decisionPointPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 162, 39, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes glowIn {
  from {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.3);
    opacity: 0;
  }
  to {
    box-shadow: 0 0 20px 0 rgba(201, 162, 39, 0);
    opacity: 1;
  }
}

/* Blind level-up banner */
@keyframes levelUpSlide {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(-20px); }
  15% { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
  80% { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-10px); }
}

/* Mode HUD pulse on level change */
@keyframes hudPulse {
  0% { box-shadow: 0 0 0 0 rgba(201,162,39,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(201,162,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}

/* P5.1 — Tilt nudge slide-in */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* P5.2 — Accessibility Tooltips */
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.poker-tooltip {
  position: relative;
  cursor: help;
}

.poker-tooltip::before,
.poker-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  pointer-events: none;
  