

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --roxo-escuro: #0a0414;
  --roxo-medio: #1e0a40;
  --roxo-vivo: #4a1a9e;
  --roxo-neon: #7c3aed;
  --roxo-claro: #a78bfa;
  --rosa-neon: #c084fc;
  --azul-neon: #0ea5e9;
  --ouro: #fbbf24;
  --ouro-claro: #fde68a;
  --branco: #f0eaff;
  --cinza: #c4b5fd;
  --sombra-roxa: 0 0 30px rgba(124, 58, 237, 0.5);
  --sombra-neon: 0 0 20px rgba(124, 58, 237, 0.7), 0 0 40px rgba(124, 58, 237, 0.4);
}

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--roxo-escuro);
  color: var(--branco);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(123, 47, 247, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(61, 26, 110, 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--roxo-neon);
  opacity: 0.15;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--roxo-neon));
  animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { filter: drop-shadow(0 0 20px var(--roxo-neon)); }
  50% { filter: drop-shadow(0 0 40px var(--roxo-neon)) drop-shadow(0 0 60px var(--rosa-neon)); }
}

.titulo-principal {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 3px;
  line-height: 1;
  background: linear-gradient(135deg, var(--ouro), var(--ouro-claro), var(--ouro));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5)); }
  50% { filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.8)); }
}

.subtitulo {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--roxo-claro);
  letter-spacing: 4px;
  margin-top: 5px;
}

.premiacao-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 50px;
  padding: 10px 25px;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ouro-claro);
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.6); }
}

.countdown-section {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  margin-bottom: 10px;
}

.countdown-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--roxo-claro);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown-box {
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.3), rgba(61, 26, 110, 0.5));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  padding: 15px 20px;
  min-width: 80px;
  backdrop-filter: blur(10px);
  box-shadow: var(--sombra-roxa);
}

.countdown-num {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--roxo-neon);
  line-height: 1;
  display: block;
  text-shadow: 0 0 20px var(--roxo-neon);
}

.countdown-unit {
  font-size: 0.7rem;
  color: var(--roxo-claro);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.tabela-section {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tabela-titulo {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  color: var(--branco);
  letter-spacing: 3px;
  margin-bottom: 25px;
  position: relative;
}

.tabela-titulo::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--roxo-neon), transparent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.tabela-container {
  background: linear-gradient(135deg, rgba(26, 10, 46, 0.9), rgba(61, 26, 110, 0.4));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--sombra-neon);
  backdrop-filter: blur(20px);
}

.tabela {
  width: 100%;
  border-collapse: collapse;
}

.tabela thead tr {
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-vivo));
}

.tabela thead th {
  padding: 18px 12px;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--branco);
  text-align: center;
  border-bottom: 2px solid rgba(168, 85, 247, 0.5);
}

.tabela thead th:first-child {
  text-align: left;
  padding-left: 20px;
  width: 130px;
}

.tabela tbody tr {
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.tabela tbody tr:hover {
  background: rgba(168, 85, 247, 0.1);
}

.tabela tbody tr:last-child {
  border-bottom: none;
}

.tabela tbody td {
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.sala-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px !important;
  text-align: left !important;
}

.sala-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: white;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.sala-1A { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.sala-1B { background: linear-gradient(135deg, #22c55e, #15803d); }
.sala-1C { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.sala-1D { background: linear-gradient(135deg, #f97316, #c2410c); }
.sala-1E { background: linear-gradient(135deg, #f43f5e, #be123c); }
.sala-2A { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.sala-2B { background: linear-gradient(135deg, #eab308, #a16207); }

.sala-nome {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--cinza);
  font-weight: 600;
}

.ponto-cell {
  color: var(--roxo-claro);
  font-size: 1rem;
}

.ponto-cell.tem-ponto {
  color: var(--branco);
  font-weight: 800;
}

.total-cell {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--ouro) !important;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  margin-left: 8px;
}

.pos-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a0a2e; }
.pos-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #1a0a2e; }
.pos-3 { background: linear-gradient(135deg, #cd7c2f, #a16207); color: white; }

.row-primeiro {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02)) !important;
  border-left: 3px solid var(--ouro) !important;
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 15px;
  flex-direction: column;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--roxo-neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 30px 20px;
  color: rgba(216, 180, 254, 0.4);
  font-size: 0.85rem;
}

.admin-link {
  color: rgba(168, 85, 247, 0.5);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.8rem;
}

.admin-link:hover {
  color: var(--roxo-neon);
}

@media (max-width: 768px) {
  .tabela thead th {
    padding: 12px 6px;
    font-size: 0.85rem;
  }

  .tabela tbody td {
    padding: 12px 6px;
    font-size: 0.9rem;
  }

  .sala-badge {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .sala-cell {
    gap: 8px;
    padding: 8px 12px !important;
  }

  .total-cell {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .sala-nome {
    display: none;
  }

  .tabela thead th:first-child {
    width: 70px;
  }

  .sala-cell {
    padding: 8px !important;
  }

  .countdown-box {
    padding: 10px 12px;
    min-width: 65px;
  }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.tabela tbody tr {
  animation: slide-in 0.4s ease forwards;
}

.tabela tbody tr:nth-child(1) { animation-delay: 0.05s; }
.tabela tbody tr:nth-child(2) { animation-delay: 0.10s; }
.tabela tbody tr:nth-child(3) { animation-delay: 0.15s; }
.tabela tbody tr:nth-child(4) { animation-delay: 0.20s; }
.tabela tbody tr:nth-child(5) { animation-delay: 0.25s; }
.tabela tbody tr:nth-child(6) { animation-delay: 0.30s; }
.tabela tbody tr:nth-child(7) { animation-delay: 0.35s; }

.notif {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-vivo));
  border: 1px solid var(--roxo-neon);
  border-radius: 12px;
  padding: 15px 25px;
  color: white;
  font-weight: 700;
  box-shadow: var(--sombra-neon);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notif.show {
  transform: translateY(0);
  opacity: 1;
}

.tentaculo-deco {
  position: fixed;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1;
}

.tentaculo-deco.top-right {
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--roxo-neon) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.tentaculo-deco.bottom-left {
  bottom: -50px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--roxo-medio) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.08;
}

.feito-por {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 50px;
  padding: 6px 14px 6px 6px;
  color: rgba(216, 180, 254, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}

.feito-por:hover {
  background: rgba(168, 85, 247, 0.15);
  color: rgba(216, 180, 254, 0.8);
}

.feito-por strong {
  color: var(--roxo-neon);
}

.logo-footer {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
