/* ==========================================================================
   CONVITE VALENTINO GP - STYLESHEET (TEMA VR46)
   ========================================================================== */

/* Importação de Fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Orbitron:wght@400;700;900&display=swap');

:root {
  /* Paleta de Cores Rossi / VR46 */
  --vr-blue-dark: #000c1f;       /* Fundo profundo */
  --vr-blue-card: #041633;       /* Fundo de cartões */
  --vr-blue-royal: #0046ad;      /* Azul principal da Yamaha/Rossi */
  --vr-yellow-neon: #dffe00;     /* Amarelo clássico VR46 */
  --vr-green-neon: #39ff14;      /* Verde fluorescente */
  --vr-text-light: #ffffff;      /* Texto claro */
  --vr-text-muted: #8fa0c0;      /* Texto secundário */
  --vr-white: #ffffff;
  --vr-black: #000000;
  
  /* Fontes */
  --font-sport: 'Orbitron', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Transições e Sombras */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon-yellow: 0 0 15px rgba(223, 254, 0, 0.4);
  --shadow-neon-green: 0 0 15px rgba(57, 255, 20, 0.4);
  --shadow-blue-glow: 0 8px 32px 0 rgba(0, 70, 173, 0.2);
}

/* Reset e Configurações Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--vr-blue-dark);
  color: var(--vr-text-light);
  scroll-behavior: smooth;
}

/* Padrão de Fibra de Carbono para o Fundo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.1) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.1) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
  z-index: -2;
  pointer-events: none;
}

/* Faixa de Corrida no Fundo */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 100%;
  border-left: 2px dashed rgba(223, 254, 0, 0.15);
  border-right: 2px dashed rgba(223, 254, 0, 0.15);
  background: linear-gradient(to bottom, rgba(0, 12, 31, 0.8), rgba(0, 12, 31, 0.95));
  z-index: -1;
  pointer-events: none;
}

/* Container Principal Centralizado (Foco Mobile) */
.app-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 80px 20px;
  position: relative;
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 12, 31, 0.85);
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   1. OVERLAY DE LARGADA (INTRO SEMÁFORO)
   ========================================================================== */
.start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--vr-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 20px;
  cursor: pointer; /* Garante clique no iOS Safari e indica interatividade */
}

.start-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.traffic-light-container {
  background: #111;
  padding: 25px 30px;
  border-radius: 20px;
  border: 4px solid #333;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

/* Suporte de ferro do semáforo */
.traffic-light-container::before {
  content: '';
  position: absolute;
  top: -40px;
  width: 30px;
  height: 40px;
  background: #222;
  border: 4px solid #333;
  z-index: -1;
}

.lights-row {
  display: flex;
  gap: 20px;
}

.light-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #050505;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #222;
}

.light-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #200000;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.9);
  transition: background-color 0.1s, box-shadow 0.1s;
}

/* Estado Vermelho */
.light-circle.active-red {
  background-color: #ff0000;
  box-shadow: 0 0 30px #ff0000, inset 0 0 10px rgba(255,255,255,0.8);
}

/* Estado Verde */
.light-circle.active-green {
  background-color: var(--vr-green-neon);
  box-shadow: 0 0 35px var(--vr-green-neon), inset 0 0 10px rgba(255,255,255,0.9);
}

.start-text {
  font-family: var(--font-sport);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--vr-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  min-height: 40px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.start-btn {
  margin-top: 20px;
  background: transparent;
  border: 2px solid var(--vr-yellow-neon);
  color: var(--vr-yellow-neon);
  padding: 12px 30px;
  border-radius: 30px;
  font-family: var(--font-sport);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.start-btn:hover {
  background: var(--vr-yellow-neon);
  color: var(--vr-black);
  box-shadow: var(--shadow-neon-yellow);
  transform: scale(1.05);
}

/* ==========================================================================
   2. HEADER / HERO
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 40px 0 20px 0;
  position: relative;
}

/* Bandeira Quadriculada */
.checkered-banner {
  height: 15px;
  background-image: 
    linear-gradient(45deg, #000 25%, transparent 25%), 
    linear-gradient(-45deg, #000 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #000 75%), 
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.vr-logo-container {
  display: inline-block;
  position: relative;
  margin-bottom: 15px;
  animation: float 4s ease-in-out infinite;
}

.vr46-badge {
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--vr-yellow-neon);
  text-shadow: 4px 4px 0px var(--vr-blue-royal), 0 0 20px rgba(223, 254, 0, 0.4);
  font-style: italic;
  display: inline-block;
  transform: skewX(-10deg);
}

.vr-subtitle {
  font-family: var(--font-sport);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--vr-green-neon);
  text-transform: uppercase;
  margin-top: 5px;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.grand-prix-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--vr-white);
  margin: 15px 0 5px 0;
  font-style: italic;
}

.grand-prix-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--vr-yellow-neon);
  margin-bottom: 25px;
}

/* Moldura do Poster Principal */
.poster-container {
  position: relative;
  width: 100%;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(135deg, var(--vr-blue-royal), var(--vr-yellow-neon), var(--vr-green-neon));
  box-shadow: var(--shadow-blue-glow), 0 15px 35px rgba(0,0,0,0.6);
  margin-bottom: 30px;
  transform: rotate(-1deg);
  transition: var(--transition-smooth);
}

.poster-container:hover {
  transform: rotate(0deg) scale(1.02);
}

.poster-inner {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--vr-blue-dark);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge de 1 Ano */
.age-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--vr-yellow-neon);
  color: var(--vr-black);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sport);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4), 0 0 15px rgba(223, 254, 0, 0.6);
  border: 3px solid var(--vr-blue-royal);
  transform: rotate(15deg);
  z-index: 10;
}

.age-badge .num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.age-badge .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   3. SEÇÃO CONTAGEM REGRESSIVA (PAINEL SPEEDO)
   ========================================================================== */
.section-card {
  background: rgba(4, 22, 51, 0.7);
  border: 1px solid rgba(0, 70, 173, 0.4);
  border-radius: 20px;
  padding: 25px 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-blue-glow);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* Friso colorido no topo do cartão */
.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--vr-blue-royal), var(--vr-yellow-neon), var(--vr-green-neon));
}

.card-title {
  font-family: var(--font-sport);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--vr-green-neon);
  margin-bottom: 20px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.countdown-box {
  background: #020b18;
  border: 1px solid rgba(223, 254, 0, 0.2);
  border-radius: 12px;
  padding: 15px 5px;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.countdown-value {
  font-family: var(--font-sport);
  font-size: 2rem;
  font-weight: 900;
  color: var(--vr-yellow-neon);
  text-shadow: 0 0 10px rgba(223, 254, 0, 0.3);
  line-height: 1;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--vr-text-muted);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ==========================================================================
   4. GALERIA DE FOTOS (CARROSSEL INTERATIVO)
   ========================================================================== */
.gallery-container {
  position: relative;
  width: 100%;
  padding: 10px 0;
}

/* Wrapper do Carrossel */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: 15px;
  aspect-ratio: 4 / 5;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020b18;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* Botões do Carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 12, 31, 0.85);
  border: 1px solid rgba(223, 254, 0, 0.3);
  color: var(--vr-yellow-neon);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.carousel-btn:hover {
  background: var(--vr-yellow-neon);
  color: var(--vr-black);
  box-shadow: var(--shadow-neon-yellow);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Indicadores/Bolinhas */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vr-blue-royal);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.1);
}

.dot.active {
  background: var(--vr-yellow-neon);
  transform: scale(1.3);
  box-shadow: var(--shadow-neon-yellow);
}

/* Imagem Piloto Frame */
.slide-frame {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 12, 31, 0.95), rgba(0, 12, 31, 0));
  padding: 30px 20px 15px 20px;
  text-align: center;
}

.pilot-name-tag {
  display: inline-block;
  background: var(--vr-yellow-neon);
  color: var(--vr-black);
  font-family: var(--font-sport);
  font-weight: 900;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  transform: skewX(-10deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Loader para imagens pesadas */
.slide-loader {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(223, 254, 0, 0.1);
  border-left-color: var(--vr-yellow-neon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

/* ==========================================================================
   5. DETALHES DO CIRCUITO (DATA, HORÁRIO, LOCAL)
   ========================================================================== */
.details-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(2, 11, 24, 0.6);
  padding: 15px 20px;
  border-radius: 15px;
  border: 1px solid rgba(0, 70, 173, 0.2);
  transition: var(--transition-smooth);
}

.detail-item:hover {
  border-color: rgba(223, 254, 0, 0.4);
  transform: translateX(5deg);
}

.detail-icon {
  background: var(--vr-blue-royal);
  color: var(--vr-yellow-neon);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.detail-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.detail-info {
  flex-grow: 1;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vr-green-neon);
  letter-spacing: 1px;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vr-white);
  margin-top: 2px;
}

.detail-subvalue {
  font-size: 0.85rem;
  color: var(--vr-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ==========================================================================
   6. BOTÕES DE AÇÃO (GPS, CALENDÁRIO, RSVP)
   ========================================================================== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--vr-yellow-neon), var(--vr-green-neon));
  color: var(--vr-black);
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  padding: 16px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-neon-yellow), 0 5px 15px rgba(0,0,0,0.4);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.7), 0 5px 15px rgba(0,0,0,0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--vr-white);
  font-family: var(--font-sport);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 2px solid var(--vr-blue-royal);
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: var(--transition-smooth);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: rgba(0, 70, 173, 0.2);
  border-color: var(--vr-yellow-neon);
  color: var(--vr-yellow-neon);
  transform: translateY(-2px);
}

.btn-primary svg, .btn-secondary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   7. CONTROLES DE MÚSICA & CONFIGURAÇÃO
   ========================================================================== */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(4, 22, 51, 0.9);
  border: 2px solid var(--vr-blue-royal);
  color: var(--vr-yellow-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-blue-glow), 0 4px 10px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.music-toggle:hover {
  transform: scale(1.1);
  border-color: var(--vr-yellow-neon);
  box-shadow: var(--shadow-neon-yellow);
}

.music-toggle.playing {
  border-color: var(--vr-green-neon);
  color: var(--vr-green-neon);
  box-shadow: var(--shadow-neon-green);
  animation: pulse-green 2s infinite;
}

.music-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Botão do Editor Configurator (Discreto) */
.admin-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(4, 22, 51, 0.9);
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--vr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.admin-toggle:hover {
  color: var(--vr-white);
  border-color: var(--vr-white);
  transform: rotate(45deg);
}

.admin-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   8. PAINEL DE EDIÇÃO / CONFIGURADOR (MODAL)
   ========================================================================== */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.admin-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-content {
  background: var(--vr-blue-card);
  border: 2px solid var(--vr-yellow-neon);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 25px;
  box-shadow: var(--shadow-neon-yellow), 0 10px 30px rgba(0,0,0,0.8);
  position: relative;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}

.admin-title {
  font-family: var(--font-sport);
  color: var(--vr-yellow-neon);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.admin-close {
  background: transparent;
  border: none;
  color: var(--vr-text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.admin-close:hover {
  color: var(--vr-white);
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vr-green-neon);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: #020b18;
  border: 1px solid rgba(0, 70, 173, 0.4);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--vr-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--vr-yellow-neon);
  outline: none;
  box-shadow: 0 0 8px rgba(223, 254, 0, 0.3);
}

.admin-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.admin-btn-save {
  background: var(--vr-yellow-neon);
  color: var(--vr-black);
  font-family: var(--font-sport);
  font-weight: 900;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: center;
}

.admin-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-yellow);
  filter: brightness(1.1);
}

.admin-btn-export {
  background: transparent;
  color: var(--vr-green-neon);
  border: 2px solid var(--vr-green-neon);
  font-family: var(--font-sport);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  width: 100%;
}

.admin-btn-export:hover {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: var(--shadow-neon-green);
}

.export-box {
  margin-top: 15px;
  background: #01060f;
  border: 1px solid #112a52;
  border-radius: 8px;
  padding: 10px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #a8c2f0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 150px;
  overflow-y: auto;
  display: none;
}

.export-box.active {
  display: block;
}

/* ==========================================================================
   9. LIGHTBOX (VISUALIZAÇÃO AMPLIADA DE FOTOS)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  border: 3px solid rgba(255,255,255,0.1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--vr-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   10. ANIMAÇÕES & EFEITOS
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px) skewX(-10deg); }
  50% { transform: translateY(-10px) skewX(-10deg); }
  100% { transform: translateY(0px) skewX(-10deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(57, 255, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

/* Responsividade de Tela */
@media (max-width: 480px) {
  .app-container {
    padding: 0 15px 70px 15px;
  }
  .vr46-badge {
    font-size: 3.5rem;
  }
  .grand-prix-title {
    font-size: 1.8rem;
  }
  .countdown-value {
    font-size: 1.5rem;
  }
  .countdown-box {
    padding: 10px 2px;
  }
  
  /* Ajustes do semáforo no mobile para evitar quebra de layout e garantir escala */
  .lights-row {
    gap: 8px !important;
  }
  .light-circle {
    width: 32px !important;
    height: 32px !important;
  }
  .light-box {
    padding: 6px !important;
    border-radius: 8px !important;
  }
  .traffic-light-container {
    padding: 15px 20px !important;
    gap: 10px !important;
  }
  .start-text {
    font-size: 1.4rem !important;
  }
}
