/* ==========================================================================
   SHOW DO ADEMILHÃO — LAYOUT CORPORATIVO ADEMICON
   Paleta: Azul Institucional + Laranja/Dourado de destaque
   Design: Limpo, moderno, corporativo — inspirado no site da Ademicon
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,700&family=Montserrat:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

/* --------------------------------------------------------------------------
   Tokens de Marca — Identidade Visual Ademicon Refinada
   -------------------------------------------------------------------------- */
:root {
  /* Azul Institucional (cor primária) */
  --blue-deep:        #040c1e;
  --blue-dark:        #081b3d;
  --blue-mid:         #0d2b63;
  --blue-light:       #1d4ed8;
  --blue-accent:      #3b82f6;
  --blue-glow:        rgba(59, 130, 246, 0.35);

  /* Laranja / Dourado Ademicon (CTA, destaque) */
  --orange-primary:   #ff6b00;
  --orange-deep:      #ea580c;
  --orange-light:     #fdba74;
  --orange-glow:      rgba(255, 107, 0, 0.42);

  --gold-primary:     #f59e0b;
  --gold-light:       #fde047;
  --gold-glow:        rgba(245, 158, 11, 0.45);

  /* Fundo e superfícies — Profundidade & Elegância */
  --bg-page:          #040c1e;
  --bg-surface:       #071633;
  --bg-card:          rgba(9, 24, 56, 0.82);
  --bg-card-hover:    rgba(14, 35, 80, 0.94);
  --bg-elevated:      rgba(11, 28, 66, 0.96);

  /* Bordas — Delicadas e com contraste correto */
  --border-subtle:    rgba(59, 130, 246, 0.22);
  --border-medium:    rgba(59, 130, 246, 0.42);
  --border-strong:    rgba(59, 130, 246, 0.70);
  --border-orange:    rgba(255, 107, 0, 0.55);
  --border-gold:      rgba(245, 158, 11, 0.55);

  /* Estado */
  --color-correct:    #22c55e;
  --color-correct-bg: rgba(34, 197, 94, 0.16);
  --color-wrong:      #ef4444;
  --color-wrong-bg:   rgba(239, 68, 68, 0.16);
  --color-live:       #f43f5e;

  /* Texto — Alto Contraste (WCAG AA/AAA) */
  --text-white:       #ffffff;
  --text-primary:     #f8fafc;
  --text-secondary:   #cbd5e1;
  --text-muted:       #94a3b8;

  /* Tipografia */
  --font-heading:     'Ubuntu', 'Montserrat', -apple-system, sans-serif;
  --font-body:        'Montserrat', -apple-system, sans-serif;
  --font-mono:        'Space Grotesk', monospace;

  /* Arredondamentos Modernos e Consistentes */
  --radius-xs:        6px;
  --radius-sm:        10px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --radius-full:      9999px;

  /* Sombras */
  --shadow-card:      0 8px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-blue:      0 0 28px var(--blue-glow);
  --shadow-orange:    0 0 28px var(--orange-glow);
  --shadow-gold:      0 0 28px var(--gold-glow);

  /* Variáveis compatíveis com código existente */
  --accent-cyan:      var(--blue-accent);
  --accent-gold:      var(--gold-primary);
  --accent-gold-light: var(--gold-light);
  --border-card:      var(--border-medium);
  --border-glass:     var(--border-subtle);
  --border-glass-bright: var(--border-medium);
  --bg-card-glass:    var(--bg-card);
  --bg-card-glass-hover: var(--bg-card-hover);
  --ademicon-cyan:    var(--blue-accent);
  --ademicon-cyan-bright: #60a5fa;
  --ademicon-cyan-glow: var(--blue-glow);
  --ademicon-gold:    var(--gold-primary);
  --ademicon-gold-light: var(--gold-light);
  --ademicon-gold-deep: var(--orange-deep);
  --ademicon-gold-glow: var(--gold-glow);
  --shadow-neon-cyan: var(--shadow-blue);
  --shadow-neon-gold: var(--shadow-gold);
  --shadow-podium:    var(--shadow-card);
  --font-display:     var(--font-heading);
  --font-text:        var(--font-body);
  --color-correct-glow: rgba(34, 197, 94, 0.5);
  --color-wrong-glow: rgba(239, 68, 68, 0.5);
  --color-live:       #f43f5e;
  --text-high-contrast: var(--text-primary);
  --bg-deep-space:    var(--bg-page);
  --bg-stage-primary: var(--bg-surface);
}

/* --------------------------------------------------------------------------
   Reset Moderno
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Body — Fundo Corporativo Azul Escuro
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  position: relative;

  /* Grade sutil de fundo — estilo corporativo */
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13, 51, 115, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 95% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-page) 0%, #050e20 100%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   Plano de Fundo Atmosférico com Estúdio de TV (Banner Oficial)
   -------------------------------------------------------------------------- */
.studio-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(180deg,
      rgba(4, 12, 30, 0.78) 0%,
      rgba(4, 12, 30, 0.88) 35%,
      rgba(4, 12, 30, 0.95) 80%,
      rgba(4, 12, 30, 0.99) 100%
    ),
    url('../assets/banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.38;
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.02);
  transition: opacity 0.5s ease;
}

/* --------------------------------------------------------------------------
   Partículas de Fundo Flutuantes
   -------------------------------------------------------------------------- */
.particles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: clip;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

/* 8 partículas com tamanhos e posições variadas */
.particle:nth-child(1)  { width: 6px;  height: 6px;  background: var(--orange-primary); left: 10%; animation-duration: 18s; animation-delay: 0s;    animation-name: floatParticle; }
.particle:nth-child(2)  { width: 4px;  height: 4px;  background: var(--gold-light);     left: 25%; animation-duration: 22s; animation-delay: 3s;    animation-name: floatParticle; }
.particle:nth-child(3)  { width: 8px;  height: 8px;  background: var(--blue-accent);    left: 40%; animation-duration: 15s; animation-delay: 6s;    animation-name: floatParticle; }
.particle:nth-child(4)  { width: 5px;  height: 5px;  background: var(--orange-light);   left: 60%; animation-duration: 20s; animation-delay: 1s;    animation-name: floatParticle; }
.particle:nth-child(5)  { width: 3px;  height: 3px;  background: var(--gold-primary);   left: 75%; animation-duration: 25s; animation-delay: 8s;    animation-name: floatParticle; }
.particle:nth-child(6)  { width: 7px;  height: 7px;  background: var(--blue-light);     left: 85%; animation-duration: 17s; animation-delay: 4s;    animation-name: floatParticle; }
.particle:nth-child(7)  { width: 4px;  height: 4px;  background: var(--orange-primary); left: 50%; animation-duration: 23s; animation-delay: 11s;   animation-name: floatParticle; }
.particle:nth-child(8)  { width: 6px;  height: 6px;  background: var(--gold-light);     left: 90%; animation-duration: 19s; animation-delay: 7s;    animation-name: floatParticle; }

@keyframes floatParticle {
  0%   { bottom: -20px; opacity: 0; transform: translateX(0) scale(0.5); }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { bottom: 105vh; opacity: 0; transform: translateX(40px) scale(1.2); }
}

/* --------------------------------------------------------------------------
   Popup de Pontos Flutuante (+X pts)
   -------------------------------------------------------------------------- */
.points-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--gold-light);
  text-shadow:
    0 0 20px var(--gold-glow),
    0 0 40px var(--orange-glow),
    2px 2px 0 var(--orange-deep);
  pointer-events: none;
  animation: pointsFloat 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  white-space: nowrap;
}

@keyframes pointsFloat {
  0%   { opacity: 0;   transform: translate(-50%, -30%) scale(0.5); }
  20%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.2); }
  60%  { opacity: 1;   transform: translate(-50%, -70%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -110%) scale(0.85); }
}

/* animação de pontuação no game over */
@keyframes scorePop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1);   opacity: 1; }
}

/* Canvas de Confetes */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* --------------------------------------------------------------------------
   Luzes de estúdio (mantidas para atmosfera, mas mais sutis)
   -------------------------------------------------------------------------- */
.studio-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: clip;
}

.light-beam-left, .light-beam-right {
  position: absolute;
  top: -200px;
  width: 380px;
  height: 900px;
  filter: blur(70px);
  transform-origin: top center;
  opacity: 0.35;
}

.light-beam-left {
  left: 5%;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.35) 0%, rgba(13, 51, 115, 0.1) 60%, transparent 90%);
  transform: rotate(-20deg);
  animation: spotlightSwayLeft 14s ease-in-out infinite alternate;
}

.light-beam-right {
  right: 5%;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.22) 0%, rgba(245, 158, 11, 0.07) 60%, transparent 90%);
  transform: rotate(20deg);
  animation: spotlightSwayRight 16s ease-in-out infinite alternate;
}

@keyframes spotlightSwayLeft {
  0% { transform: rotate(-24deg); opacity: 0.28; }
  100% { transform: rotate(-12deg); opacity: 0.42; }
}

@keyframes spotlightSwayRight {
  0% { transform: rotate(14deg); opacity: 0.22; }
  100% { transform: rotate(26deg); opacity: 0.38; }
}

/* --------------------------------------------------------------------------
   HEADER — Logo Real + Barra de Controles
   -------------------------------------------------------------------------- */
.game-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 10, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--orange-primary);
  padding: 6px clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 72px;
  container-type: inline-size;
  container-name: header-bar;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6), 0 6px 0 rgba(249, 115, 22, 0.12);
}

/* Logo */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Imagem logo real */
.brand-logo {
  height: clamp(46px, 6vw, 60px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.45));
  transition: filter 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.brand-logo:hover {
  filter: drop-shadow(0 0 22px rgba(249, 115, 22, 0.75));
  transform: scale(1.04);
}

/* Mantido para retro-compat (não usado quando logo img estiver presente) */
.brand-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-deep) 100%);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 18px var(--orange-glow);
  flex-shrink: 0;
  user-select: none;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 0.9rem + 1cqi, 1.55rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.live-tv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.45);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fb7185;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-live);
  border-radius: 50%;
  animation: pulseLive 1.4s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--orange-light);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Controles do Header */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-icon-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-icon-control:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--orange-primary);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-icon-control:active {
  transform: translateY(0);
}

.btn-icon-control.active {
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--orange-primary);
  color: var(--orange-light);
}

/* --------------------------------------------------------------------------
   LAYOUT PRINCIPAL — Grid 2 colunas
   -------------------------------------------------------------------------- */
.game-container {
  position: relative;
  z-index: 10;
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 30px);
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  container-type: inline-size;
  container-name: game-arena;
}

/* --------------------------------------------------------------------------
   ARENA POD — Coluna principal (Pergunta, Alternativas e Ajudas)
   -------------------------------------------------------------------------- */
.arena-pod {
  display: flex;
  flex-direction: column;
  gap: 20px;
  container-type: inline-size;
  container-name: arena-pod;
}

/* --------------------------------------------------------------------------
   FITA DE VALORES (Acertar / Parar / Errar)
   -------------------------------------------------------------------------- */
.values-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@container arena-pod (max-width: 580px) {
  .values-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.value-badge {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: clip;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}

.value-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

/* Acertar: Laranja Ademicon */
.value-badge.win {
  border-color: var(--border-orange);
  background: linear-gradient(165deg, rgba(255, 107, 0, 0.16) 0%, var(--bg-card) 100%);
}
.value-badge.win::before {
  background: linear-gradient(90deg, var(--orange-deep), var(--orange-primary), var(--gold-light));
}

/* Parar: Azul Corporativo */
.value-badge.stop {
  border-color: var(--border-medium);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.14) 0%, var(--bg-card) 100%);
}
.value-badge.stop::before {
  background: linear-gradient(90deg, #1e40af, var(--blue-accent));
}

/* Errar: Vermelho Coral */
.value-badge.wrong {
  border-color: rgba(239, 68, 68, 0.38);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.12) 0%, var(--bg-card) 100%);
}
.value-badge.wrong::before {
  background: linear-gradient(90deg, #991b1b, var(--color-wrong));
}

.badge-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.value-badge.win .badge-label   { color: #fdba74; }
.value-badge.stop .badge-label  { color: #93c5fd; }
.value-badge.wrong .badge-label { color: #fca5a5; }

.badge-amount {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.05rem + 0.6cqi, 1.6rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}
.value-badge.win .badge-amount {
  color: var(--gold-light);
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

/* --------------------------------------------------------------------------
   CAIXA DA PERGUNTA
   -------------------------------------------------------------------------- */
.question-arena {
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--orange-primary);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.2vw, 36px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: clip;
}

/* Brilho suave superior */
.question-arena::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-badge {
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--border-medium);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-badge.level {
  background: rgba(255, 107, 0, 0.14);
  color: var(--orange-light);
  border-color: var(--border-orange);
}

/* Estilo para Marco na badge */
.pill-badge.level.marco {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(255, 107, 0, 0.22) 100%);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.pill-badge.level.million {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.3) 0%, rgba(234, 88, 12, 0.3) 100%);
  color: #ffffff;
  border-color: #fde047;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
}

.badge-bonus {
  background: rgba(245, 158, 11, 0.25);
  color: #fde047;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.5);
  margin-left: 4px;
}

.question-text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.6cqi, 1.55rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-white);
  min-height: 72px;
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   GRID DE ALTERNATIVAS
   -------------------------------------------------------------------------- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@container arena-pod (max-width: 660px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}

.option-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: clip;
  animation: slideInOption 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.option-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.2s ease;
}

.option-card:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--blue-accent);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.option-card:hover:not(:disabled)::before {
  background: var(--blue-accent);
}

.option-card:active:not(:disabled) {
  transform: translateX(1px);
}

/* Selecionada */
.option-card.selected {
  border-color: var(--orange-primary);
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-orange);
}
.option-card.selected::before {
  background: var(--orange-primary);
}

/* Validando */
.option-card.validating {
  border-color: var(--orange-primary);
  animation: pulseValidation 0.55s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseValidation {
  0%   { background: rgba(255, 107, 0, 0.14); box-shadow: 0 0 12px rgba(255, 107, 0, 0.3); }
  100% { background: rgba(255, 107, 0, 0.42); box-shadow: 0 0 32px rgba(255, 107, 0, 0.7); }
}

/* Correta */
.option-card.correct {
  border-color: var(--color-correct) !important;
  background: var(--color-correct-bg) !important;
  box-shadow: 0 0 32px var(--color-correct-glow) !important;
  animation: correctBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.option-card.correct::before { background: var(--color-correct) !important; }

@keyframes correctBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* Errada */
.option-card.wrong {
  border-color: var(--color-wrong) !important;
  background: var(--color-wrong-bg) !important;
  box-shadow: 0 0 32px var(--color-wrong-glow) !important;
}
.option-card.wrong::before { background: var(--color-wrong) !important; }

/* Eliminada */
.option-card.eliminated {
  opacity: 0.22;
  pointer-events: none;
  filter: grayscale(1);
  text-decoration: line-through;
}

/* Letra da alternativa */
.option-letter {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.18);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #93c5fd;
  transition: all 0.2s ease;
}

.option-card:hover:not(:disabled) .option-letter,
.option-card.selected .option-letter {
  background: var(--orange-primary);
  border-color: var(--orange-light);
  color: #fff;
  box-shadow: 0 0 12px var(--orange-glow);
}

.option-text {
  font-size: clamp(0.95rem, 0.88rem + 0.25cqi, 1.08rem);
  font-weight: 500;
  line-height: 1.48;
  color: var(--text-primary);
  flex: 1;
}

/* --------------------------------------------------------------------------
   FEEDBACK EDUCATIVO PÓS-RESPOSTA
   -------------------------------------------------------------------------- */
.feedback-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(11, 28, 66, 0.98) 100%);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--orange-primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: opacity 0.3s ease-out, translate 0.3s ease-out;
}

.feedback-card.hidden {
  display: none;
}

@starting-style {
  .feedback-card:not(.hidden) {
    opacity: 0;
    translate: 0 10px;
  }
}

.feedback-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
}

.feedback-text {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.btn-advance {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-deep) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all 0.2s ease;
}

.btn-advance:hover {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.6);
}

/* --------------------------------------------------------------------------
   BARRA DE AJUDAS (Lifelines)
   -------------------------------------------------------------------------- */
.helps-dock {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px clamp(12px, 2vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.help-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px clamp(12px, 1.4vw, 18px);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
  min-width: 74px;
}

.help-icon {
  font-size: 1.45rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.help-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.18);
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
  color: var(--text-white);
}

.help-btn:hover:not(:disabled) .help-icon {
  transform: scale(1.2) rotate(-8deg);
}

.help-btn:hover:not(:disabled) .help-label {
  color: #93c5fd;
}

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

.help-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  filter: grayscale(0.9);
}

.help-btn.stop-btn {
  border-color: var(--border-orange);
}
.help-btn.stop-btn .help-icon { color: var(--orange-light); }
.help-btn.stop-btn .help-label { color: var(--orange-light); }

.help-btn.stop-btn:hover:not(:disabled) {
  background: rgba(255, 107, 0, 0.18);
  border-color: var(--orange-primary);
  box-shadow: var(--shadow-orange);
}

.badge-count {
  background: var(--orange-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   PAINEL LATERAL — Torre de Prêmios (Ladder)
   Otimizado para caber todos os 16 níveis SEM rolagem de barra
   -------------------------------------------------------------------------- */
.ladder-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--orange-primary);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}

.ladder-header {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1.2px;
  color: var(--orange-light);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  text-transform: uppercase;
}

.ladder-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: visible;
  max-height: none;
  padding: 0;
}

.ladder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.25;
}

.ladder-item .ladder-num {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  min-width: 20px;
}

.ladder-item .ladder-val {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

/* Badge / Pill de Marco e Ademilhão na Escada */
.ladder-pill {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  line-height: 1.2;
}

.ladder-pill.marco {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.ladder-pill.million {
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid #fde047;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Item de Marco (níveis 5, 10, 15) */
.ladder-item.marco-tier {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
}
.ladder-item.marco-tier .ladder-val {
  color: #fde047;
  font-weight: 800;
}

/* Item atual */
.ladder-item.current {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.28) 0%, rgba(37, 99, 235, 0.22) 100%);
  border-color: var(--orange-primary);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.35);
  transform: scale(1.02);
}
.ladder-item.current .ladder-num,
.ladder-item.current .ladder-val {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Já completado */
.ladder-item.completed {
  opacity: 0.35;
  text-decoration: line-through;
}

/* Nível do milhão */
.ladder-item.million-tier {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(234, 88, 12, 0.22) 100%);
  animation: pulseMillionGold 2s infinite alternate ease-in-out;
}
@keyframes pulseMillionGold {
  0%   { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.6); }
}
.ladder-item.million-tier .ladder-val {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 12px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE DA ARENA & ESCADA (Mobile & Multi-dispositivos)
   Prioridade absoluta: a pergunta e as opções aparecem no topo da tela do celular!
   -------------------------------------------------------------------------- */
.ladder-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ladder-toggle-icon {
  display: none;
}

@media (max-width: 980px) {
  .game-container {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    gap: 16px;
    max-width: 100%;
  }

  /* ARENA DA PERGUNTA SEMPRE NO TOPO */
  .arena-pod {
    order: 1 !important;
    width: 100%;
    gap: 14px;
  }

  /* ESCADA DE PONTOS VAI PARA BAIXO */
  .ladder-panel {
    order: 2 !important;
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }

  .ladder-header-bar {
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
  }

  .ladder-toggle-icon {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--orange-light);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Estado recolhido no mobile */
  .ladder-panel.collapsed .ladder-toggle-icon {
    transform: rotate(-90deg);
  }

  .ladder-panel.collapsed .ladder-list {
    display: none !important;
  }

  /* Escada em grade compacta de 4 colunas no mobile */
  .ladder-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }

  .ladder-item {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 6px 4px !important;
    border-radius: var(--radius-xs) !important;
    gap: 2px !important;
    text-align: center !important;
    min-height: 46px !important;
  }

  .ladder-item .ladder-num {
    font-size: 0.72rem !important;
    min-width: auto !important;
  }

  .ladder-item .ladder-val {
    font-size: 0.78rem !important;
    margin-left: 0 !important;
    font-weight: 800 !important;
  }

  .ladder-item .ladder-pill {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
  }
}

@media (max-width: 680px) {
  /* Cabeçalho ultra-compacto em 1 linha de botões com scroll horizontal */
  .game-header {
    padding: 6px 10px !important;
    min-height: auto !important;
    gap: 6px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .brand-wrapper {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .brand-logo {
    height: 38px !important;
  }

  .live-tv-badge {
    font-size: 0.64rem !important;
    padding: 2px 7px !important;
  }

  .header-controls {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding: 2px 0 4px 0 !important;
    width: 100% !important;
  }

  .header-controls::-webkit-scrollbar {
    display: none !important;
  }

  .btn-icon-control {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
  }

  /* Fita de Valores compacta em 3 colunas lado a lado */
  .values-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .value-badge {
    padding: 8px 4px !important;
    border-radius: 8px !important;
    gap: 2px !important;
  }

  .badge-label {
    font-size: 0.64rem !important;
    letter-spacing: 0.3px !important;
  }

  .badge-amount {
    font-size: 0.95rem !important;
  }

  /* Caixa de Pergunta e Timer */
  .question-arena {
    padding: 14px 14px !important;
    border-radius: 12px !important;
  }

  .question-text {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
  }

  .question-timer-bar {
    margin: 6px 0 10px 0 !important;
    padding: 6px 10px !important;
  }

  .options-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .option-card {
    padding: 10px 12px !important;
    min-height: 48px !important;
    gap: 10px !important;
  }

  .option-letter {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .option-text {
    font-size: 0.88rem !important;
  }

  /* Barra de Ajudas em 1 linha compacta */
  .helps-dock {
    padding: 8px 8px !important;
    gap: 4px !important;
    justify-content: space-around !important;
  }

  .help-btn {
    padding: 6px 6px !important;
    min-width: 54px !important;
    border-radius: 8px !important;
  }

  .help-icon {
    font-size: 1.25rem !important;
  }

  .help-label {
    font-size: 0.62rem !important;
  }

  /* Escada de pontos em 4 colunas compactas */
  .ladder-list {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }

  .ladder-item {
    min-height: 42px !important;
    padding: 4px 2px !important;
  }

  .ladder-item .ladder-val {
    font-size: 0.72rem !important;
  }
}

/* --------------------------------------------------------------------------
   MODAIS NATIVOS (<dialog>)
   100% responsivos com auto-ajuste e eliminação total de rolagem horizontal
   -------------------------------------------------------------------------- */
dialog {
  border: none;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  width: min(94vw, 560px);
  max-width: 94vw;
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  scale: 0.95;
  translate: 0 12px;
  transition:
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    scale 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    translate 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    display 0.25s allow-discrete,
    overlay 0.25s allow-discrete;
}

/* Modais que demandam layout amplo (Certificado de Vitória, Gerenciador e Ranking) */
dialog#dialog-win {
  width: min(94vw, 680px);
  max-width: 94vw;
}

dialog#dialog-manager {
  width: min(94vw, 760px);
  max-width: 94vw;
}

dialog#dialog-ranking {
  width: min(96vw, 860px);
  max-width: 96vw;
}

dialog[open] {
  opacity: 1;
  scale: 1;
  translate: 0 0;
}

@starting-style {
  dialog[open] {
    opacity: 0;
    scale: 0.95;
    translate: 0 12px;
  }
}

dialog::backdrop {
  opacity: 0;
  background: rgba(2, 8, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    opacity 0.25s ease-out,
    display 0.25s allow-discrete,
    overlay 0.25s allow-discrete;
}
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }

.dialog-box {
  background: linear-gradient(155deg, var(--blue-dark) 0%, #050e22 100%);
  border: 1px solid var(--border-medium);
  border-top: 4px solid var(--orange-primary);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3.2vw, 32px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), var(--shadow-blue);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.dialog-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.2px;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 4px;
  border-radius: 6px;
}
.dialog-close-btn:hover { 
  color: var(--text-white); 
  transform: scale(1.1);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Botões de Modal */
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-white);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-deep) 100%);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.6);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-wrong) 0%, #b91c1c 100%);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
  transition: all 0.2s ease;
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6);
}

/* --------------------------------------------------------------------------
   MODAL DAS CARTAS EM 3D
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  perspective: 1000px;
  padding: 12px 0;
}

@media (max-width: 500px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.ademicon-card {
  height: 144px;
  cursor: pointer;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.ademicon-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.card-front {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
  border: 1.5px solid var(--border-medium);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.85rem;
}

.card-front .card-logo {
  font-size: 2.6rem;
  font-family: var(--font-heading);
  color: var(--orange-primary);
  text-shadow: 0 0 16px var(--orange-glow);
}

.card-back {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-deep) 100%);
  border: 2px solid #fff;
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: 0 0 28px rgba(255, 107, 0, 0.65);
}

.card-val {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
}

.card-desc {
  font-size: 0.78rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   CONSULTORES UNIVERSITÁRIOS
   -------------------------------------------------------------------------- */
.consultores-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consultor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.consultor-card:hover {
  transform: translateX(3px);
  border-color: var(--blue-accent);
}

.consultor-avatar {
  font-size: 2.2rem;
  background: rgba(37, 99, 235, 0.18);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border-medium);
}

.consultor-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.consultor-role {
  font-size: 0.76rem;
  color: #93c5fd;
  margin-top: 2px;
}

.consultor-vote {
  margin-top: 5px;
  font-size: 0.94rem;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   PLACAS (AUDITÓRIO)
   -------------------------------------------------------------------------- */
.placas-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.placa-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.placa-label {
  font-family: var(--font-heading);
  font-weight: 800;
  width: 32px;
  font-size: 1.25rem;
  color: #93c5fd;
}

.placa-progress-bg {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: clip;
  border: 1px solid var(--border-subtle);
  padding: 2px;
}

.placa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-accent) 0%, var(--orange-primary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.placa-perc {
  font-family: var(--font-heading);
  font-weight: 800;
  width: 52px;
  text-align: right;
  color: var(--text-white);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   CERTIFICADO DE 1 MILHÃO / ADEMILHÃO
   -------------------------------------------------------------------------- */
.certificate-frame {
  background: linear-gradient(145deg, var(--blue-deep) 0%, #030a1a 100%);
  border: 3px solid var(--gold-primary);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 3.2vw, 36px);
  text-align: center;
  position: relative;
  box-shadow: 0 0 55px var(--gold-glow);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Logo no topo do certificado */
.cert-logo {
  height: clamp(48px, 8vw, 70px);
  width: auto;
  max-width: 90%;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.6));
  animation: logoPulse 3s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0%   { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.85)); transform: scale(1.04); }
}

.cert-stamp {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--gold-light) 0%, #d97706 100%);
  color: #030816;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  box-shadow: 0 0 28px var(--gold-glow);
}

.cert-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.7rem);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
  word-break: break-word;
  line-height: 1.3;
}

.cert-prize-display {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-white);
  margin: 10px 0;
  text-shadow: 0 0 18px var(--gold-glow);
  word-break: break-word;
  white-space: normal;
  line-height: 1.25;
}

.cert-name-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 8px 14px;
  font-size: 1rem;
  font-family: var(--font-heading);
  text-align: center;
  margin: 8px auto;
  width: min(100%, 320px);
  max-width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   MODAL DE CONFIGURAÇÃO / GERENCIADOR DE PERGUNTAS (Estilo Ademicon & NotebookLM)
   -------------------------------------------------------------------------- */
.mgr-modal {
  width: 100%;
  max-width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 16px;
  padding: clamp(16px, 2.8vw, 26px);
  box-sizing: border-box;
}

.mgr-modal .dialog-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mgr-modal .dialog-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.mgr-modal .dialog-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mgr-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.mgr-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mgr-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.mgr-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.22) 0%, rgba(37, 99, 235, 0.22) 100%);
  border-color: var(--orange-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
}

/* Painel de Estatísticas */
.mgr-stats-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, rgba(255, 107, 0, 0.1) 100%);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--orange-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.summary-hero .hero-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--orange-light);
  line-height: 1;
}

.summary-hero .hero-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-hero .hero-info strong {
  font-size: 1rem;
  color: #ffffff;
}

.summary-hero .hero-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mgr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .mgr-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .summary-hero {
    flex-direction: column;
    text-align: center;
    padding: 12px;
    gap: 8px;
  }
}

.stat-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.stat-tier-card.facil   { border-top: 3px solid #22c55e; }
.stat-tier-card.medio   { border-top: 3px solid #3b82f6; }
.stat-tier-card.dificil { border-top: 3px solid #f97316; }
.stat-tier-card.milhao  { border-top: 3px solid #eab308; }

.stat-tier-card .tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-tier-card .tier-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-tier-card .tier-count {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-tier-card .tier-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-tier-card .tier-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.notebook-integration-box {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  align-items: flex-start;
}

.notebook-integration-box .notebook-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.notebook-integration-box strong {
  color: var(--gold-light);
}

.notebook-integration-box p {
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Painel JSON */
.mgr-json-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.mgr-json-header label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

#json-editor-textarea {
  width: 100%;
  background: #020713;
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 190px;
}

#json-editor-textarea:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
}

.mgr-json-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mgr-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 220px;
}

.mgr-footer-actions {
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.btn-danger-soft {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fee2e2;
}

/* --------------------------------------------------------------------------
   ACESSIBILIDADE — Preferência por Movimento Reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .light-beam-left, .light-beam-right { animation: none; }
  .particle { animation: none !important; }
  dialog, dialog[open] { scale: 1 !important; translate: none !important; }
}

/* --------------------------------------------------------------------------
   ANIMAÇÕES DINÂMICAS — Entrada de alternativas, shimmer, pulso
   -------------------------------------------------------------------------- */

/* Definição da animação de entrada */
@keyframes slideInOption {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Delay sequencial das alternativas */
.option-card:nth-child(1) { animation-delay: 0.05s; }
.option-card:nth-child(2) { animation-delay: 0.12s; }
.option-card:nth-child(3) { animation-delay: 0.19s; }
.option-card:nth-child(4) { animation-delay: 0.26s; }

/* Shimmer no badge-amount quando valor muda */
.badge-amount {
  animation: shimmerAmount 0.5s ease-out;
}
@keyframes shimmerAmount {
  0%   { opacity: 0; transform: scale(0.8) translateY(4px); }
  60%  { opacity: 1; transform: scale(1.08) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

/* Pulso de atenção no item atual da escada */
.ladder-item.current {
  animation: ladderCurrentPulse 2.2s ease-in-out infinite;
}
@keyframes ladderCurrentPulse {
  0%   { box-shadow: 0 0 10px rgba(249, 115, 22, 0.22); }
  50%  { box-shadow: 0 0 26px rgba(249, 115, 22, 0.55), 0 0 6px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 10px rgba(249, 115, 22, 0.22); }
}

/* Wobble no help-btn ao hover */
@keyframes helpWobble {
  0%   { transform: translateY(-4px) rotate(0deg); }
  25%  { transform: translateY(-6px) rotate(-5deg); }
  75%  { transform: translateY(-6px) rotate(5deg); }
  100% { transform: translateY(-4px) rotate(0deg); }
}
.help-btn:hover:not(:disabled) {
  animation: helpWobble 0.45s ease-in-out;
  animation-fill-mode: forwards;
}

/* Entrada da caixa de pergunta */
.question-arena {
  animation: fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Brilho animado no item do milhão */
.ladder-item.million-tier::after {
  content: '★';
  position: absolute;
  right: 8px;
  font-size: 0.8rem;
  color: var(--gold-light);
  animation: starSpin 3s linear infinite;
}
.ladder-item {
  position: relative;
}
@keyframes starSpin {
  0%   { transform: rotate(0deg) scale(1);    opacity: 1; }
  50%  { transform: rotate(180deg) scale(1.3); opacity: 0.7; }
  100% { transform: rotate(360deg) scale(1);  opacity: 1; }
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE MULTI-DISPOSITIVOS — Smartphones, Tablets e Telas Compactas
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .game-header {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .header-logo-container {
    height: 52px;
  }
  .header-logo {
    height: 48px;
  }
  .live-tv-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
  }
  .header-controls {
    gap: 6px;
    margin-left: auto;
  }
  .btn-icon-control {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .question-box {
    padding: clamp(14px, 3vw, 20px);
  }
  .question-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.45;
  }
  .options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .option-card {
    padding: 12px 16px;
    min-height: 52px;
    font-size: 0.92rem;
  }
  .helps-dock {
    padding: 8px 10px;
    gap: 6px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .help-btn {
    min-width: 0;
    width: 100%;
    padding: 8px 4px;
  }
  .help-icon {
    font-size: 1.25rem;
  }
  .help-label {
    font-size: 0.62rem;
    letter-spacing: 0;
  }
  .values-strip {
    gap: 8px;
  }
  .value-badge {
    padding: 8px 6px;
  }
  .value-badge .badge-label {
    font-size: 0.68rem;
  }
  .value-badge .badge-amount {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .btn-icon-control {
    flex: 1;
    justify-content: center;
    padding: 6px 4px;
    font-size: 0.74rem;
  }
  .dialog-box {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }
  .dialog-title {
    font-size: 1.15rem;
  }
  .dialog-actions {
    flex-direction: column;
    gap: 8px;
  }
  .dialog-actions button {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   TELA DE ABERTURA CINEMATOGRÁFICA / START SCREEN
   -------------------------------------------------------------------------- */
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(3, 8, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.start-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-screen.fade-out {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.start-screen-card {
  width: min(94vw, 680px);
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #071736 0%, #051026 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  animation: startModalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes startModalPop {
  0%   { opacity: 0; transform: scale(0.92) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.start-banner-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 250px;
  overflow: hidden;
  border-top-left-radius: calc(var(--radius-lg) - 2px);
  border-top-right-radius: calc(var(--radius-lg) - 2px);
  background: #000;
}

.start-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.6s ease;
}

.start-banner-container:hover .start-banner-img {
  transform: scale(1.03);
}

.start-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(7, 23, 54, 0.95) 100%);
  pointer-events: none;
}

.start-banner-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.start-content-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.start-badge-pill {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.start-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
}

.start-subtitle {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.start-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0.25rem 0;
}

@media (max-width: 580px) {
  .start-rules-grid {
    grid-template-columns: 1fr;
  }
}

.start-rule-box {
  background: rgba(13, 43, 99, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.rule-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rule-content strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.rule-content small {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.start-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.btn-enter-stage {
  flex: 1 1 240px;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.45), 0 0 25px rgba(255, 107, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-enter-stage:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.6), 0 0 35px rgba(255, 107, 0, 0.5);
}

.btn-enter-stage:active {
  transform: translateY(1px);
}

.btn-start-secondary {
  flex: 0 1 auto;
  background: rgba(13, 43, 99, 0.6);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-start-secondary:hover {
  background: rgba(29, 78, 216, 0.4);
  color: #fff;
  border-color: var(--blue-accent);
}

/* --------------------------------------------------------------------------
   HEADER COM BANNER DO ESTÚDIO NO GERENCIADOR DE PERGUNTAS
   -------------------------------------------------------------------------- */
.mgr-banner-header {
  position: relative;
  width: 100%;
  height: 125px;
  overflow: hidden;
  border-top-left-radius: calc(var(--radius-lg) - 2px);
  border-top-right-radius: calc(var(--radius-lg) - 2px);
  background: #020712;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.5rem;
}

.mgr-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.45;
  filter: contrast(1.1);
}

.mgr-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 30, 0.3) 0%, rgba(7, 22, 51, 0.95) 100%);
}

.mgr-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mgr-banner-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.mgr-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mgr-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 1);
}

/* --------------------------------------------------------------------------
   DESTAQUES DE PERFIL E RANKING NO HEADER
   -------------------------------------------------------------------------- */
.btn-profile-highlight {
  border-color: var(--blue-accent) !important;
  background: rgba(59, 130, 246, 0.15) !important;
  color: var(--text-white) !important;
  font-weight: 700 !important;
}

.btn-profile-highlight:hover {
  background: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 0 14px var(--blue-glow);
}

.btn-ranking-highlight {
  border-color: var(--gold-primary) !important;
  background: rgba(245, 158, 11, 0.16) !important;
  color: var(--gold-light) !important;
  font-weight: 700 !important;
}

.btn-ranking-highlight:hover {
  background: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 0 16px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   CRONÔMETRO POR NÍVEL DE DIFICULDADE (QUESTION TIMER)
   -------------------------------------------------------------------------- */
.question-timer-bar {
  width: 100%;
  margin: 8px 0 14px 0;
  padding: 10px 14px;
  background: rgba(4, 14, 38, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.timer-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-countdown {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-white);
  transition: color 0.3s ease;
}

.timer-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.timer-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: var(--radius-full);
  transition: width 1s linear, background-color 0.4s ease;
}

/* Estados de Urgência */
.question-timer-bar.timer-safe .timer-progress-fill {
  background: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.question-timer-bar.timer-safe .timer-countdown {
  color: #86efac;
}

.question-timer-bar.timer-warning {
  border-color: rgba(245, 158, 11, 0.5);
}
.question-timer-bar.timer-warning .timer-progress-fill {
  background: linear-gradient(90deg, #eab308 0%, #f59e0b 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}
.question-timer-bar.timer-warning .timer-countdown {
  color: var(--gold-light);
}

.question-timer-bar.timer-critical {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
  animation: pulseTimerCritical 1s infinite alternate;
}
.question-timer-bar.timer-critical .timer-progress-fill {
  background: linear-gradient(90deg, #f43f5e 0%, #ef4444 100%);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
}
.question-timer-bar.timer-critical .timer-countdown {
  color: #fca5a5;
  animation: blinkTimerCount 0.5s infinite alternate;
}

@keyframes pulseTimerCritical {
  0%   { border-color: rgba(239, 68, 68, 0.5); }
  100% { border-color: rgba(239, 68, 68, 1); }
}

@keyframes blinkTimerCount {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0.75; transform: scale(1.08); }
}

/* --------------------------------------------------------------------------
   MODAL DE AUTENTICAÇÃO / LOGIN
   -------------------------------------------------------------------------- */
.auth-modal {
  width: min(94vw, 480px);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

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

.auth-form label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.auth-input {
  background: rgba(6, 18, 44, 0.9);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 12px var(--blue-glow);
}

.auth-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-xs);
  color: #fca5a5;
  font-size: 0.85rem;
}

.auth-error.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   MODAL DE RANKING & PÓDIO — DESIGN SYSTEM TV SHOW / ADEMICON
   -------------------------------------------------------------------------- */
.dialog-box.ranking-modal {
  width: 100%;
  max-width: 860px;
  max-height: min(92vh, 880px);
  padding: 0;
  gap: 0;
  background: linear-gradient(175deg, #071633 0%, #040c1e 55%, #020712 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-top: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(29, 78, 216, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Faixa luminosa superior estilo Ademicon */
.dialog-box.ranking-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b00 0%, #f59e0b 35%, #3b82f6 70%, #60a5fa 100%);
  z-index: 10;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

/* Header Banner Estilo TV Show */
.ranking-modal-header {
  position: relative;
  padding: 22px 24px 18px;
  background: linear-gradient(180deg, rgba(13, 43, 99, 0.65) 0%, rgba(7, 22, 51, 0.35) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  overflow: hidden;
}

.ranking-header-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 130px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.45) 0%, rgba(245, 158, 11, 0.15) 45%, transparent 70%);
  pointer-events: none;
}

.ranking-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.ranking-title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ranking-trophy-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(13, 43, 99, 0.85) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 1.75rem;
  flex-shrink: 0;
  animation: trophyFloat 3.5s infinite ease-in-out;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5)); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 0 14px rgba(253, 224, 71, 0.75)); }
}

.ranking-title-group {
  display: flex;
  flex-direction: column;
}

.ranking-kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.8s infinite;
}

.ranking-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.ranking-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 3px 0 0 0;
  font-weight: 500;
}

.ranking-header-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
  line-height: 1;
}

.ranking-header-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

/* Corpo do Modal */
.ranking-modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  max-height: calc(92vh - 165px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Custom Scrollbar */
.ranking-modal-body::-webkit-scrollbar,
.ranking-table-scroll::-webkit-scrollbar {
  width: 6px;
}
.ranking-modal-body::-webkit-scrollbar-track,
.ranking-table-scroll::-webkit-scrollbar-track {
  background: rgba(4, 12, 30, 0.6);
}
.ranking-modal-body::-webkit-scrollbar-thumb,
.ranking-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.45);
  border-radius: 3px;
}
.ranking-modal-body::-webkit-scrollbar-thumb:hover,
.ranking-table-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.65);
}

/* ==========================================================================
   PÓDIO 3D DOS TOP 3 CAMPEÕES
   ========================================================================== */
.ranking-podium-wrapper {
  background: radial-gradient(ellipse at 50% 120%, rgba(29, 78, 216, 0.35) 0%, rgba(13, 43, 99, 0.15) 60%, transparent 100%),
              radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.16) 0%, transparent 55%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 16px 14px;
  position: relative;
  box-shadow: inset 0 0 35px rgba(7, 22, 51, 0.7);
  overflow: hidden;
}

.podium-display {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* Colunas do Pódio */
.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.podium-col:hover {
  transform: translateY(-4px);
}

.podium-col.col-gold {
  order: 2;
  flex: 1 1 145px;
  max-width: 210px;
  z-index: 3;
}

.podium-col.col-silver {
  order: 1;
  flex: 1 1 130px;
  max-width: 190px;
  z-index: 2;
}

.podium-col.col-bronze {
  order: 3;
  flex: 1 1 130px;
  max-width: 190px;
  z-index: 1;
}

/* Coroa Flutuante do 1º Lugar */
.podium-crown {
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: 2px;
  animation: crownFloat 2.6s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.85));
}

.podium-crown.dimmed {
  opacity: 0.45;
  filter: grayscale(0.6);
  animation: none;
}

@keyframes crownFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.85));
  }
  50% {
    transform: translateY(-6px) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(253, 224, 71, 0.95));
  }
}

/* Avatar Ring no Pódio */
.podium-avatar-wrapper {
  position: relative;
  margin-bottom: 6px;
}

.podium-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.podium-avatar.gold-avatar {
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  border: 2.5px solid #fde047;
}

.podium-avatar.silver-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.92rem;
  background: linear-gradient(135deg, #94a3b8, #475569);
  color: #ffffff;
  border: 2px solid #f1f5f9;
}

.podium-avatar.bronze-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.92rem;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  color: #ffffff;
  border: 2px solid #fed7aa;
}

.podium-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.55) 0%, transparent 70%);
  animation: pulseAvatar 2.2s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulseAvatar {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* Badges de Colocação */
.podium-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.podium-badge.gold-badge {
  background: rgba(245, 158, 11, 0.28);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.65);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.podium-badge.silver-badge {
  background: rgba(203, 213, 225, 0.22);
  color: #f1f5f9;
  border: 1px solid rgba(203, 213, 225, 0.55);
}

.podium-badge.bronze-badge {
  background: rgba(234, 88, 12, 0.24);
  color: #fed7aa;
  border: 1px solid rgba(234, 88, 12, 0.6);
}

/* Nome do Consultor no Pódio */
.podium-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Pílula de Pontuação no Pódio */
.podium-score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 5px;
}

.podium-score-pill.gold-pill {
  background: rgba(245, 158, 11, 0.28);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fde047;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.podium-score-pill.silver-pill {
  background: rgba(203, 213, 225, 0.2);
  border: 1px solid rgba(203, 213, 225, 0.5);
  color: #f8fafc;
}

.podium-score-pill.bronze-pill {
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(234, 88, 12, 0.55);
  color: #fed7aa;
}

.podium-score-pill .score-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.podium-score-pill .score-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

/* Meta dados do Pódio (Tempo e Status) */
.podium-meta {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.podium-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.podium-status-pill {
  font-size: 0.62rem;
  padding: 2px 7px;
}

/* Vaga em Aberto no Pódio */
.podium-col.is-empty {
  opacity: 0.7;
}

.podium-empty-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.podium-name.empty-slot {
  color: var(--text-muted) !important;
  font-style: italic;
  font-weight: 500;
  font-size: 0.82rem;
}

.podium-empty-hint {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 3px;
}

/* ==========================================================================
   DEGRAUS DO PEDESTAL 3D (COM ALTURAS ESCALONADAS REAIS)
   ========================================================================== */
.podium-pedestal {
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  box-sizing: border-box;
}

.pedestal-top {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.2) 100%);
}

.pedestal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.pedestal-rank-emblem {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.pedestal-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}

/* Pedestal 1 (Ouro — 1º Lugar, mais alto) */
.podium-pedestal.pedestal-1 {
  height: 105px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.45) 0%, rgba(180, 83, 9, 0.6) 45%, rgba(69, 26, 3, 0.95) 100%);
  border: 2px solid #fbbf24;
  border-bottom: none;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 10px rgba(0, 0, 0, 0.5);
}

.podium-pedestal.pedestal-1 .pedestal-rank-emblem {
  font-size: 1.85rem;
  color: #fde047;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.podium-pedestal.pedestal-1 .pedestal-label {
  color: #fde047;
}

/* Pedestal 2 (Prata — 2º Lugar, altura intermediária) */
.podium-pedestal.pedestal-2 {
  height: 72px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.35) 0%, rgba(100, 116, 139, 0.5) 45%, rgba(30, 41, 59, 0.95) 100%);
  border: 2px solid #e2e8f0;
  border-bottom: none;
  box-shadow: 0 0 25px rgba(148, 163, 184, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 10px rgba(0, 0, 0, 0.5);
}

.podium-pedestal.pedestal-2 .pedestal-rank-emblem {
  font-size: 1.5rem;
  color: #f8fafc;
  text-shadow: 0 0 12px rgba(203, 213, 225, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.podium-pedestal.pedestal-2 .pedestal-label {
  color: #cbd5e1;
}

/* Pedestal 3 (Bronze — 3º Lugar, degrau mais baixo) */
.podium-pedestal.pedestal-3 {
  height: 48px;
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.35) 0%, rgba(154, 52, 18, 0.5) 45%, rgba(67, 20, 7, 0.95) 100%);
  border: 2px solid #fb923c;
  border-bottom: none;
  box-shadow: 0 0 22px rgba(234, 88, 12, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -4px 10px rgba(0, 0, 0, 0.5);
}

.podium-pedestal.pedestal-3 .pedestal-rank-emblem {
  font-size: 1.3rem;
  color: #fed7aa;
  text-shadow: 0 0 10px rgba(234, 88, 12, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.podium-pedestal.pedestal-3 .pedestal-label {
  color: #fed7aa;
}

/* Pedestais Vazios */
.podium-pedestal.is-empty {
  border-style: dashed;
  opacity: 0.55;
  background: rgba(13, 43, 99, 0.22) !important;
  box-shadow: none !important;
}

.podium-pedestal.is-empty .pedestal-rank-emblem {
  color: rgba(255, 255, 255, 0.35) !important;
  text-shadow: none !important;
}

.podium-pedestal.is-empty .pedestal-label {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Base Metálica Iluminada do Pódio */
.podium-stage-base {
  position: relative;
  height: 10px;
  width: 100%;
  max-width: 620px;
  margin: 4px auto 0;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.6) 20%, rgba(245, 158, 11, 0.9) 50%, rgba(59, 130, 246, 0.6) 80%, transparent 100%);
  border-radius: 5px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 28px rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   TABELA GLASSMÓRFICA — CLASSIFICAÇÃO GERAL (4º AO 30º)
   ========================================================================== */
.ranking-table-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

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

.table-info-icon {
  font-size: 1.05rem;
}

.table-info-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.table-info-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ranking-competitors-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.ranking-table-scroll {
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: var(--radius-md);
  background: rgba(4, 12, 30, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.ranking-table th {
  background: #081b3d;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.th-rank {
  width: 58px;
  text-align: center;
}

.th-user {
  min-width: 180px;
}

.th-points {
  width: 90px;
  text-align: center;
}

.th-time {
  width: 105px;
  text-align: center;
}

.th-date {
  width: 125px;
  text-align: right;
}

.ranking-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  vertical-align: middle;
}

.ranking-table tbody tr {
  transition: background 0.18s ease;
}

.ranking-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.12);
}

.ranking-table tr.row-winner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.02) 100%);
  border-left: 3px solid #f59e0b;
}

.ranking-table tr.row-winner:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.08) 100%);
}

/* Badges da coluna Posição */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.rank-badge.rank-top10 {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: #93c5fd;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.22);
}

.rank-badge.rank-standard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

/* Célula do Consultor */
.user-cell-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8 0%, #0d2b63 100%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.user-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-user-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.88rem;
}

/* Pílulas de Status na Tabela */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-pill.win {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.status-pill.stop {
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.status-pill.timeout {
  background: rgba(217, 70, 239, 0.18);
  color: #f5d0fe;
  border: 1px solid rgba(217, 70, 239, 0.45);
}

.status-pill.wrong {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.38);
}

/* Célula de Pontos */
.points-badge-cell {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  width: 100%;
}

.points-badge-cell.gold-glow .points-val {
  color: #fde047;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.points-badge-cell .points-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-light);
}

.points-badge-cell .points-unit {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Célula de Tempo */
.time-badge-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: 100%;
}

/* Célula de Data */
.date-badge-cell {
  display: block;
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Estados Vazios e Loading */
.ranking-empty-cell {
  text-align: center;
  padding: 30px 16px;
}

.ranking-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
}

.ranking-empty-state.mini {
  padding: 8px 0;
}

.ranking-empty-state .empty-state-icon {
  font-size: 2.2rem;
  margin-bottom: 2px;
}

.ranking-empty-state strong {
  color: #f1f5f9;
  font-size: 0.95rem;
}

.ranking-empty-state p {
  font-size: 0.8rem;
  margin: 0;
  max-width: 440px;
  line-height: 1.45;
  color: var(--text-muted);
}

.ranking-loading-box,
.podium-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  padding: 20px;
}

.ranking-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(59, 130, 246, 0.25);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RODAPÉ E AÇÕES DO MODAL
   ========================================================================== */
.ranking-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(4, 12, 30, 0.85);
  border-top: 1px solid rgba(59, 130, 246, 0.22);
}

.btn-ranking-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #93c5fd;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-ranking-refresh:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.65);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.btn-ranking-refresh .refresh-icon {
  display: inline-block;
  transition: transform 0.45s ease;
}

.btn-ranking-refresh:hover .refresh-icon {
  transform: rotate(180deg);
}

.btn-ranking-refresh.loading .refresh-icon {
  animation: spin 0.7s linear infinite;
}

.btn-ranking-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: 1px solid rgba(59, 130, 246, 0.6);
  color: #ffffff;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
  font-family: var(--font-body);
}

.btn-ranking-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.btn-ranking-close:active {
  transform: translateY(0);
}

/* ==========================================================================
   DESIGN RESPONSIVO — MODAL DE RANKING
   ========================================================================== */
@media (max-width: 680px) {
  .ranking-modal-header {
    padding: 16px 16px 14px;
  }
  .ranking-trophy-badge {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .ranking-modal-title {
    font-size: 1.12rem;
  }
  .ranking-modal-subtitle {
    font-size: 0.74rem;
  }
  .ranking-modal-body {
    padding: 14px 14px;
    gap: 14px;
  }
  .ranking-podium-wrapper {
    padding: 18px 8px 10px;
  }
  .podium-display {
    gap: 8px;
  }

  .podium-crown { font-size: 1.4rem; }
  .podium-avatar.gold-avatar { width: 40px; height: 40px; font-size: 0.9rem; }
  .podium-avatar.silver-avatar,
  .podium-avatar.bronze-avatar { width: 34px; height: 34px; font-size: 0.8rem; }
  .podium-empty-avatar { width: 34px; height: 34px; font-size: 0.95rem; }

  .podium-badge { font-size: 0.65rem; padding: 2px 6px; }
  .podium-name { font-size: 0.78rem; }
  .podium-score-pill .score-num { font-size: 1rem; }
  .podium-time { font-size: 0.66rem; }

  /* Alturas escalonadas proporcionais no mobile */
  .podium-pedestal.pedestal-1 { height: 75px; }
  .podium-pedestal.pedestal-2 { height: 52px; }
  .podium-pedestal.pedestal-3 { height: 34px; }

  .podium-pedestal.pedestal-1 .pedestal-rank-emblem { font-size: 1.4rem; }
  .podium-pedestal.pedestal-2 .pedestal-rank-emblem { font-size: 1.15rem; }
  .podium-pedestal.pedestal-3 .pedestal-rank-emblem { font-size: 1rem; }

  /* Esconde a data em telas menores para eliminar overflow horizontal */
  .th-date,
  .col-date {
    display: none !important;
  }

  .th-rank { width: 44px; }
  .th-points { width: 68px; }
  .th-time { width: 75px; }
  .th-user { min-width: 120px; }

  .ranking-table th,
  .ranking-table td {
    padding: 8px 6px;
  }

  .ranking-modal-footer {
    padding: 12px 16px;
  }
}

@media (max-width: 440px) {
  .podium-display {
    gap: 4px;
  }
  .podium-pedestal.pedestal-1 { height: 65px; }
  .podium-pedestal.pedestal-2 { height: 46px; }
  .podium-pedestal.pedestal-3 { height: 30px; }

  .podium-badge { font-size: 0.58rem; padding: 2px 4px; }
  .podium-score-pill { padding: 2px 6px; }
  .pedestal-label { font-size: 0.52rem; }

  .ranking-modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .btn-ranking-refresh,
  .btn-ranking-close {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   IMPRESSÃO — Certificado
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .game-header, .arena-pod, .ladder-panel, .studio-lights, #confetti-canvas {
    display: none !important;
  }
  dialog#dialog-win {
    position: static;
    opacity: 1;
    scale: 1;
    width: 100%;
    max-width: 100%;
  }
  .certificate-frame {
    background: #fff !important;
    color: #000 !important;
    border: 3px solid #b8860b !important;
    box-shadow: none !important;
  }
  .cert-title, .cert-prize-display {
    color: #000 !important;
    text-shadow: none !important;
  }
  .btn-print-cert, .dialog-actions { display: none !important; }
}
