@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Rajdhani:wght@600;700&display=swap');

:root {
  /* Cores Oficiais e Primárias Cauplas */
  --cauplas-blue-primary: #0064f0;
  --cauplas-blue-vivid: #007bff;
  --cauplas-blue-cyan: #00adee;
  --cauplas-blue-dark: #091b38;
  --cauplas-blue-deep: #051024;
  --cauplas-blue-card-back: #0a1f42;
  --cauplas-blue-glow: rgba(0, 173, 238, 0.45);
  
  /* Fundos e Neutros */
  --bg-app-light: #f4f7fb;
  --bg-card-light: #ffffff;
  --bg-subtle-gray: #e9eef5;
  --border-light: #d4e0ee;
  
  /* Tipografia */
  --text-primary: #0a1931;
  --text-secondary: #4a5d78;
  --text-muted: #7c8ea3;
  --text-white: #ffffff;
  
  /* Status */
  --status-success: #10b981;
  --status-danger: #ef4444;
  --status-warning: #f59e0b;
  
  /* Efeitos */
  --shadow-sm: 0 4px 12px rgba(10, 25, 49, 0.08);
  --shadow-md: 0 10px 25px rgba(10, 25, 49, 0.12);
  --shadow-lg: 0 18px 45px rgba(10, 25, 49, 0.18);
  --shadow-glow: 0 0 25px rgba(0, 173, 238, 0.5);
  
  /* Transições e Bordas */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 20%, #ffffff 0%, var(--bg-app-light) 65%, #e1e8f2 100%);
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Background Gráfico com Textura Industrial Sutil */
.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decorations::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 173, 238, 0.1) 0%, rgba(0, 100, 240, 0.02) 60%, transparent 80%);
}

.bg-decorations::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9, 27, 56, 0.07) 0%, transparent 70%);
}

/* Canvas de Partículas Global */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 900;
  pointer-events: none;
}

/* Container de Telas (SPA) */
#app-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Gerenciamento de Visibilidade das Telas */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

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

/* ========================================================
   CABEÇALHO PADRÃO (NAVBAR)
   ======================================================== */
.app-header {
  position: relative;
  width: 100%;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 20;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-video {
  height: 64px;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 100, 240, 0.15));
}

.brand-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cauplas-blue-primary);
  margin-top: 2px;
}

/* Botões do Cabeçalho da Partida */
.header-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: var(--bg-card-light);
  color: var(--cauplas-blue-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.header-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
  background: var(--bg-subtle-gray);
  border-color: var(--cauplas-blue-primary);
}

.header-nav-btn.btn-back {
  left: 28px;
}

.header-nav-btn.btn-portal {
  left: 28px;
  width: auto;
  min-width: 52px;
  padding: 0 16px;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--cauplas-blue-primary);
}

.header-nav-btn.btn-portal:hover {
  background: #ffffff;
  border-color: var(--cauplas-blue-primary);
  box-shadow: 0 6px 18px rgba(0, 100, 240, 0.2);
  transform: translateY(-50%) translateY(-2px);
}

.header-nav-btn.btn-reload {
  right: 28px;
}

/* ========================================================
   TELA 1: INÍCIO (CONFIGURAÇÕES)
   ======================================================== */
.screen-start {
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 30px;
}

.start-content-wrapper {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
}

.hero-banner {
  text-align: center;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero-title-icon {
  width: 2em;
  height: 2em;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 100, 240, 0.35));
  flex-shrink: 0;
}

.hero-title span {
  color: var(--cauplas-blue-primary);
  background: linear-gradient(135deg, var(--cauplas-blue-primary) 0%, var(--cauplas-blue-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Card de Configurações */
.config-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(212, 224, 238, 0.9);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cauplas-blue-primary);
  background: rgba(0, 100, 240, 0.1);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

/* Controles Seletores [-] XX [+] */
.stepper-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-app-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: inset 0 2px 4px rgba(10, 25, 49, 0.04);
}

.stepper-btn {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-card-light);
  color: var(--cauplas-blue-primary);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 100, 240, 0.12);
  transition: transform 0.15s ease, background 0.2s ease;
}

.stepper-btn:active {
  transform: scale(0.9);
  background: var(--cauplas-blue-primary);
  color: var(--text-white);
}

.stepper-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stepper-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cauplas-blue-dark);
}

.stepper-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Botão Iniciar Partida */
.btn-primary-action {
  width: 100%;
  max-width: 440px;
  padding: 18px 24px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cauplas-blue-vivid) 0%, var(--cauplas-blue-primary) 50%, #004ecc 100%);
  color: var(--text-white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 100, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.2s ease;
}

.btn-primary-action:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(0, 100, 240, 0.3);
}

.btn-primary-action .icon {
  font-size: 1.4rem;
}

/* Rodapé Institucional */
.start-footer {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ========================================================
   TELA 2: PARTIDA (GAMEPLAY)
   ======================================================== */
.screen-game {
  justify-content: flex-start;
  padding: 0 20px 16px;
}

/* Barra de Status (Chances e Progresso) */
.game-status-bar {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.status-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-icon {
  font-size: 1.5rem;
}

.status-text-col {
  display: flex;
  flex-direction: column;
}

.status-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.status-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cauplas-blue-dark);
}

.chances-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chance-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  transition: all 0.3s ease;
}

.chance-dot.lost {
  background: #cbd5e1;
  box-shadow: none;
  transform: scale(0.75);
}

.chance-dot.warning {
  background: var(--status-danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: pulse-danger 0.8s infinite alternate;
}

/* ========================================================
   GRID DE CARTAS (ZERO SCROLL, DINÂMICO)
   ======================================================== */
.board-container {
  flex: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0; /* Previne estouro flexbox */
  position: relative;
}

.cards-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 12px;
  align-content: center;
  justify-content: center;
  perspective: 1200px;
}

/* Cada Carta (3D Flip, Retangular Horizontal) */
.memory-card {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-smooth);
  border-radius: var(--radius-md);
}

.memory-card:active:not(.flipped):not(.matched) {
  transform: scale(0.96);
}

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

.memory-card.matched {
  transform: rotateY(0deg) scale(0.96) !important;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.memory-card.matched .card-back {
  background: linear-gradient(145deg, #1c2e4a 0%, #152238 100%);
  border: 2px solid #506a8c;
  box-shadow: 0 4px 12px rgba(9, 27, 56, 0.2);
}

.memory-card.matched .card-back-logo {
  opacity: 0.8;
  transform: none !important;
  filter: none !important;
}

.memory-card.matched .card-front {
  display: none !important;
}

/* Face da Carta (Frente e Verso) */
.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* VERSO DA CARTA: Tom azul escuro profundo com bordas destacadas e logo */
.card-back {
  background: linear-gradient(145deg, #0d2857 0%, var(--cauplas-blue-card-back) 50%, var(--cauplas-blue-dark) 100%);
  border: 3px solid var(--cauplas-blue-cyan);
  box-shadow: 0 6px 18px rgba(9, 27, 56, 0.4), inset 0 0 16px rgba(0, 173, 238, 0.35);
  padding: 12px;
}

.card-back-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  background: radial-gradient(circle, #ffffff 10%, transparent 10%);
  background-size: 16px 16px;
}

.card-back-logo {
  width: 75%;
  max-width: 140px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 173, 238, 0.5));
  position: relative;
  z-index: 2;
}

/* FRENTE DA CARTA: Branco com bordas azuis, foto da mangueira e código */
.card-front {
  background: var(--bg-card-light);
  border: 3px solid var(--cauplas-blue-primary);
  box-shadow: 0 8px 20px rgba(0, 100, 240, 0.18), inset 0 0 0 1px rgba(0, 173, 238, 0.2);
  transform: rotateY(180deg);
  padding: 8px 10px;
  justify-content: space-between;
}

.card-img-wrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-hose-img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.card-code-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cauplas-blue-dark);
  background: var(--bg-app-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3px 12px;
  text-align: center;
  width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

/* Animação de Erro (Vibração e Borda Vermelha) */
.memory-card.shake-error {
  animation: card-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.memory-card.shake-error .card-front {
  border-color: var(--status-danger) !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.5) !important;
}

/* ========================================================
   MODAIS E OVERLAYS (SHOWCASE 7S, CONFIRMAÇÃO, VITÓRIA)
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 16, 36, 0.78);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* MODAL 1: SHOWCASE DE 7 SEGUNDOS DA MANGUEIRA */
.showcase-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 3px solid var(--cauplas-blue-cyan);
  box-shadow: var(--shadow-glow), 0 25px 60px rgba(0, 0, 0, 0.4);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: modal-zoom-in 0.4s var(--ease-spring);
}

.showcase-header-tag {
  background: linear-gradient(135deg, var(--cauplas-blue-primary) 0%, var(--cauplas-blue-cyan) 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 100, 240, 0.3);
}

.showcase-img-container {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #f8faff 0%, #eaf1fa 100%);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  padding: 16px;
}

.showcase-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.showcase-info {
  width: 100%;
  text-align: center;
}

.showcase-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.showcase-code {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cauplas-blue-dark);
}

.showcase-oem-badge {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-subtle-gray);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-desc {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
  text-transform: uppercase;
}

/* Barra de Progresso do Temporizador de 5 Segundos */
.showcase-timer-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-subtle-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.showcase-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cauplas-blue-cyan), var(--cauplas-blue-primary));
  transform-origin: left;
  animation: timer-countdown 5s linear forwards;
}

/* MODAL 2: CONFIRMAÇÃO DE REINÍCIO */
.confirm-box {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: modal-zoom-in 0.3s var(--ease-spring);
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 100, 240, 0.1);
  color: var(--cauplas-blue-primary);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.confirm-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.confirm-actions {
  display: flex;
  width: 100%;
  gap: 12px;
  margin-top: 8px;
}

.btn-modal {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}

.btn-modal:active {
  transform: scale(0.95);
}

.btn-modal-cancel {
  background: var(--bg-subtle-gray);
  color: var(--text-secondary);
}

.btn-modal-confirm {
  background: var(--cauplas-blue-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 100, 240, 0.3);
}

/* MODAL 3: VITÓRIA E GAME OVER */
.endgame-card {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 3px solid var(--cauplas-blue-cyan);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-glow), 0 30px 70px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: modal-zoom-in 0.45s var(--ease-spring);
}

.victory-trophy {
  font-size: 4rem;
  filter: drop-shadow(0 6px 12px rgba(255, 193, 7, 0.5));
  animation: trophy-bounce 1s infinite alternate ease-in-out;
}

.endgame-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.endgame-title.victory {
  background: linear-gradient(135deg, var(--cauplas-blue-primary), var(--cauplas-blue-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.endgame-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 460px;
}

/* Botão "Jogar Novamente" (surge após 5s) */
.btn-play-again-wrapper {
  margin-top: 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-play-again {
  padding: 16px 36px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--status-success) 0%, #059669 100%);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}

.btn-play-again.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.btn-play-again:active {
  transform: scale(0.94);
}

.countdown-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========================================================
   SPLASH SCREEN (5 SEGUNDOS COM PULSO DO ÍCONE)
   ======================================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #0e2f63 0%, var(--cauplas-blue-dark) 55%, var(--cauplas-blue-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.75s ease, transform 0.75s ease, visibility 0.75s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.05);
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  max-width: 580px;
  padding: 30px;
}

.splash-cauplas-logo {
  width: clamp(160px, 40vw, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 173, 238, 0.5));
}

.splash-icon-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-icon {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 173, 238, 0.65));
  animation: splash-icon-pulse 1.8s infinite ease-in-out;
  position: relative;
  z-index: 2;
}

.splash-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--cauplas-blue-cyan);
  animation: splash-ring-expand 1.8s infinite ease-out;
  pointer-events: none;
  z-index: 1;
}

.splash-title {
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 100, 240, 0.6);
  background: linear-gradient(135deg, #ffffff 40%, var(--cauplas-blue-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin: 0;
}

.splash-brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cauplas-blue-cyan);
  opacity: 0.92;
}

.splash-loader-bar {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.splash-loader-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cauplas-blue-primary), var(--cauplas-blue-cyan));
  transform-origin: left;
  animation: splash-loader-progress 5s linear forwards;
}
