/* ==========================================================================
   ACERTE A IDADE - VERSÃO OFICIAL (PRODUCTION DARK GLASS & MASSIVE HERO)
   ========================================================================== */

:root {
  color-scheme: only dark;
  
  /* Paleta Translúcida */
  --bg-deep: #04060a;
  --glass-surface: rgba(10, 15, 28, 0.32);
  --glass-surface-hover: rgba(18, 25, 45, 0.48);
  --glass-nested: rgba(255, 255, 255, 0.045);
  
  /* Bordas Iluminadas */
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 255, 255, 0.22);
  
  /* Acentos de Luz Neon */
  --p1-color: #06b6d4;
  --p1-light: #38bdf8;
  --p1-glow: rgba(6, 182, 212, 0.5);
  --p1-bg: rgba(6, 182, 212, 0.15);
  
  --p2-color: #a855f7;
  --p2-light: #c084fc;
  --p2-glow: rgba(168, 85, 247, 0.5);
  --p2-bg: rgba(168, 85, 247, 0.15);
  
  --accent-win: #10b981;
  --accent-gold: #fbbf24;
  --accent-danger: #ef4444;
  
  /* Textos */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Tipografia */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --blur-power: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-family);
  user-select: none;
}

/* CANVAS DE CONFETES OFFLINE */
.confetti-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   FUNDO AMBIENTE & TRANSPARÊNCIA REAL
   ========================================================================== */
.ambient-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: floatOrb 25s infinite ease-in-out alternate;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  top: -15%;
  left: -10%;
}

.orb-2 {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-duration: 30s;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  top: 35%;
  left: 30%;
  opacity: 0.18;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vh) scale(1.08); }
  100% { transform: translate(-3vw, -3vh) scale(0.95); }
}

/* FOTO AMBIENTE DESFOCADA NO FUNDO (Cria o efeito translúcido verdadeiro!) */
.celeb-ambient-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  filter: blur(65px) brightness(0.25) saturate(190%);
  transform: scale(1.18);
  transition: background-image 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.dark-vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(4, 6, 10, 0.85) 100%);
}

/* ==========================================================================
   ESTRUTURA 100% TELA
   ========================================================================== */
.app-fullscreen {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

/* CABEÇALHO FLUTUANTE EM VIDRO TRANSLÚCIDO */
.app-header {
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  margin: 0.5rem 0.85rem 0;
}

.glass-floating-pill {
  background: rgba(8, 12, 24, 0.38);
  backdrop-filter: blur(var(--blur-power)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--blur-power)) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #38bdf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

.version-tag {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  -webkit-text-fill-color: #34d399;
}

.logo-icon {
  font-size: 1.15rem;
  -webkit-text-fill-color: initial;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.room-code-tag {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: var(--p1-light);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.room-code-tag:hover {
  background: rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

.code-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #fff;
}

.copy-hint-icon {
  font-size: 0.85rem;
}

/* PLACAR DE CABEÇALHO COM STREAKS 🔥 */
.live-scoreboard {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  font-size: 0.82rem;
  font-weight: 700;
}

.p1-score-pill { border-color: rgba(6, 182, 212, 0.35); }
.p2-score-pill { border-color: rgba(168, 85, 247, 0.35); }

.score-player-pts {
  font-size: 1rem;
  font-weight: 900;
}

.p1-score-pill .score-player-pts { color: var(--p1-light); }
.p2-score-pill .score-player-pts { color: var(--p2-light); }

.streak-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.score-vs {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
}

.player-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-p1 { background-color: var(--p1-color); box-shadow: 0 0 10px var(--p1-glow); }
.dot-p2 { background-color: var(--p2-color); box-shadow: 0 0 10px var(--p2-glow); }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   VIEWPORT PRINCIPAL
   ========================================================================== */
.app-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 0.4rem 0.85rem 0.6rem;
}

.screen-view {
  position: absolute;
  inset: 0.4rem 0.85rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.98);
}

.screen-view.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: scale(1);
}

/* CARTOES COM TRANSPARÊNCIA REAL */
.glass-true-panel {
  background: var(--glass-surface);
  backdrop-filter: blur(var(--blur-power)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--blur-power)) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.glass-nested {
  background: var(--glass-nested);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
}

/* ==========================================================================
   TELA 1: MENU PRINCIPAL
   ========================================================================== */
.menu-card {
  width: 100%;
  max-width: 720px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
  max-height: calc(100dvh - 85px);
  overflow-y: auto;
}

.game-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.16);
  color: var(--p1-light);
  border: 1px solid rgba(6, 182, 212, 0.35);
  margin-bottom: 0.3rem;
}

.game-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mode-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.tab-btn:hover { color: #fff; }
.tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: flex; flex-direction: column; gap: 1rem; }

.online-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}

.online-box {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.online-box h3 { font-size: 0.95rem; font-weight: 800; color: #fff; }
.online-box p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }

.field-wrap { display: flex; flex-direction: column; gap: 0.3rem; }
.field-wrap label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }

.glass-input {
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.glass-input:focus {
  border-color: var(--p1-color);
  box-shadow: 0 0 15px var(--p1-glow);
}

.glass-select {
  padding: 0.65rem 0.85rem;
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}
.glass-select option {
  background: #080c18;
  color: #fff;
}

.code-numeric-input {
  width: 100%;
  height: 52px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 12px;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  outline: none;
}
.code-numeric-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.waiting-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.big-room-code-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.8rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
}

.code-intro { font-size: 0.72rem; font-weight: 800; color: var(--text-muted); }
.display-code-big {
  font-family: var(--font-mono);
  font-size: 4.2rem;
  font-weight: 900;
  color: var(--p1-light);
  line-height: 1;
}

.btn-copy-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.btn-copy-badge:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.waiting-tip { font-size: 0.85rem; color: var(--text-muted); }
.status-waiting { font-size: 0.85rem; font-weight: 700; color: #fbbf24; animation: pulse 1.6s infinite; }
.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.bot-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
}
.bot-avatar { font-size: 2.2rem; }
.bot-info-card strong { color: #fff; font-size: 1rem; }
.bot-info-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}
.config-column { display: flex; flex-direction: column; gap: 0.3rem; }
.form-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }

.rules-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.85rem;
  text-align: left;
}
.rule-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--text-muted); }
.rule-item strong { color: #fff; display: block; }
.rule-icon { font-size: 1.3rem; }

.btn-primary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.glow-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}
.glow-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.6);
}

.glow-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.glow-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.6);
}

/* ==========================================================================
   TELA 2: FOTO GIGANTE (84vh) + TIMER LASER + DOCK FLUTUANTE
   ========================================================================== */
.fullscreen-photo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* LASER TIMER NO TOPO (10 SEGUNDOS) */
.laser-timer-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.laser-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #06b6d4 0%, #38bdf8 100%);
  box-shadow: 0 0 16px var(--p1-glow);
  transition: width 0.05s linear;
}

.laser-bar-fill.warn {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
}

.laser-bar-fill.danger {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 0 25px rgba(239, 68, 68, 1);
  animation: laserPulse 0.35s infinite alternate;
}

@keyframes laserPulse {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

.timer-countdown-tag {
  position: absolute;
  top: 10px;
  right: 16px;
  background: rgba(8, 12, 24, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* O PALCO DA FOTO GIGANTE: OCUPA QUASE TODA A TELA (84vh) */
.giant-photo-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 85px;
  overflow: hidden;
}

.giant-hero-img {
  max-height: calc(100dvh - 120px);
  height: 84vh;
  width: auto;
  max-width: 94vw;
  object-fit: contain; /* NUNCA CORTA O ROSTO */
  object-position: center;
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-glass);
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.giant-hero-img.is-zoomed {
  transform: scale(1.22);
}

.mystery-floating-tag {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 12, 24, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 1.15rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.zoom-hint-tag {
  position: absolute;
  bottom: 96px;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  padding: 0.2rem 0.75rem;
  border-radius: 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 5;
}

.pulse-cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* DOCK FLUTUANTE INFERIOR ULTRA-TRANSLÚCIDO */
.floating-dock-glass {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  z-index: 10;
}

.glass-floating-card {
  background: rgba(8, 12, 24, 0.42);
  backdrop-filter: blur(var(--blur-power)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--blur-power)) saturate(190%);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dock-left-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 260px;
}

.dock-turn-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.dock-auto-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dock-auto-tip strong { color: var(--p1-light); }

/* INPUT DE 2 DÍGITOS COM BOTÃO ENTER */
.dock-center-input {
  display: flex;
  align-items: center;
}

.input-glow-frame {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid var(--border-glow);
  padding: 0.25rem 0.85rem;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.input-glow-frame:focus-within {
  border-color: var(--p1-color);
  box-shadow: 0 0 25px var(--p1-glow);
}

.age-display-input {
  width: 75px;
  height: 52px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 900;
  outline: none;
  letter-spacing: 0.05em;
}

.unit-anos {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
}

.btn-enter-confirm {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
  transition: all 0.2s ease;
}
.btn-enter-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.6);
}
.btn-enter-confirm:active {
  transform: scale(0.96);
}

/* CHIPS DE STATUS SECRETO */
.dock-right-status {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 190px;
}

.chip-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 700;
}

.chip-label { color: #fff; }

.chip-val {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.chip-val.pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.chip-val.ready {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   TELA 3: REVELAÇÃO DO FAMOSO (COM CURIOSIDADE)
   ========================================================================== */
.reveal-card {
  width: 100%;
  max-width: 950px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
}

.outcome-banner {
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glow);
}

.outcome-title { font-size: 1.4rem; font-weight: 900; }
.outcome-desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.2rem; }

.outcome-banner.winner-p1 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28) 0%, rgba(10, 15, 28, 0.6) 100%);
  border-color: rgba(6, 182, 212, 0.55);
}

.outcome-banner.winner-p2 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28) 0%, rgba(10, 15, 28, 0.6) 100%);
  border-color: rgba(168, 85, 247, 0.55);
}

.outcome-banner.winner-tie {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28) 0%, rgba(10, 15, 28, 0.6) 100%);
  border-color: rgba(59, 130, 246, 0.55);
}

.outcome-banner.exact-hit {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(10, 15, 28, 0.6) 100%);
  border-color: rgba(245, 158, 11, 0.65);
}

.reveal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  align-items: center;
}

.reveal-celeb-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.reveal-img-wrapper {
  position: relative;
  width: 220px;
  height: 270px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.reveal-img { width: 100%; height: 100%; object-fit: cover; }

.real-age-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.real-age-tag .age-number { font-size: 1.6rem; font-weight: 900; color: #38bdf8; }
.real-age-tag .age-label { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); }

.reveal-name { font-size: 1.5rem; font-weight: 800; }
.reveal-desc { font-size: 0.85rem; color: var(--text-muted); }

.reveal-stats-box {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.comparison-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.comparison-card {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.p1-border { border-left: 4px solid var(--p1-color); }
.p2-border { border-left: 4px solid var(--p2-color); }

.comp-header { display: flex; align-items: center; justify-content: space-between; }
.comp-player { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.9rem; }

.comp-points-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.comp-points-badge.win {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.comp-points-badge.tie {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.comp-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.85rem; }
.comp-stat { display: flex; align-items: center; gap: 0.4rem; }
.stat-caption { color: var(--text-dim); }
.stat-val { font-weight: 700; color: #fff; }
.stat-val.highlight { color: #38bdf8; }

/* CURIOSIDADE */
.trivia-pill {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.35;
}
.trivia-icon { font-size: 1.1rem; }
.trivia-content strong { color: #fbbf24; }
.trivia-content span { color: #cbd5e1; }

/* BARRAS DE AUTO-AVANÇO FLUIDO */
.auto-advance-strip {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.auto-advance-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.auto-advance-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #c084fc 100%);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.auto-advance-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}
.auto-advance-text strong { color: #38bdf8; }

.btn-secondary-glass {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-glow);
}

/* ==========================================================================
   TELA 4: TELA SEPARADA DE PONTUAÇÃO
   ========================================================================== */
.scoreboard-screen-card {
  width: 100%;
  max-width: 780px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.sb-header { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.sb-title { font-size: 2.2rem; font-weight: 900; }
.sb-lead-text { font-size: 0.95rem; color: var(--text-muted); }

.sb-players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.sb-player-card {
  position: relative;
  padding: 1.75rem 1.25rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.p1-card {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.12) 0%, rgba(10, 15, 28, 0.6) 100%);
}

.p2-card {
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12) 0%, rgba(10, 15, 28, 0.6) 100%);
}

.sb-card-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}
.p1-badge { background: rgba(6, 182, 212, 0.2); color: var(--p1-light); }
.p2-badge { background: rgba(168, 85, 247, 0.2); color: var(--p2-light); }

.sb-player-name { font-size: 1.3rem; font-weight: 800; }
.sb-score-big { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.p1-card .sb-score-big { color: var(--p1-light); }
.p2-card .sb-score-big { color: var(--p2-light); }

.pts-unit { font-size: 1.2rem; font-weight: 700; color: var(--text-dim); }
.sb-points-gain { font-size: 0.85rem; font-weight: 700; color: #34d399; }

.sb-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.sb-progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.p1-fill { background: var(--p1-color); box-shadow: 0 0 10px var(--p1-glow); }
.p2-fill { background: var(--p2-color); box-shadow: 0 0 10px var(--p2-glow); }

.sb-round-stats {
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-col { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); }
.stat-val-big { font-size: 1.15rem; font-weight: 800; color: #fff; }
.stat-val-big.highlight { color: #38bdf8; }

.sb-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-pause-glass {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.btn-pause-glass:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ==========================================================================
   TELA 5: FIM DE JOGO
   ========================================================================== */
.gameover-container {
  width: 100%;
  max-width: 680px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.trophy-badge {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.5));
  animation: bounceTrophy 2s infinite ease-in-out;
}

@keyframes bounceTrophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gameover-title { font-size: 2.2rem; font-weight: 900; }
.gameover-subtitle { color: var(--text-muted); font-size: 1rem; }

.final-score-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.final-player-card {
  padding: 1.5rem 1rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.final-player-card.winner {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(10, 15, 28, 0.7) 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.final-name { font-size: 1.1rem; font-weight: 700; }
.final-score-big { font-size: 3.2rem; font-weight: 900; line-height: 1; }
.final-score-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

.crown-badge {
  position: absolute;
  top: -12px;
  background: var(--accent-gold);
  color: #000;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.gameover-stats {
  width: 100%;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.go-stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
.go-stat-label { font-size: 0.75rem; color: var(--text-muted); }
.go-stat-value { font-size: 1.1rem; font-weight: 700; color: #38bdf8; }

.image-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(4, 6, 10, 0.85);
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-loader.active { opacity: 1; pointer-events: auto; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--p1-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.hidden { display: none !important; }

@media (max-width: 800px) {
  .online-setup-grid,
  .sb-players-grid,
  .reveal-content-grid,
  .rules-box {
    grid-template-columns: 1fr;
  }
  .floating-dock-glass {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }
  .giant-hero-img {
    height: 70vh;
  }
}
