:root {
  --bg: #f7fafc;
  --card: #ffffff;
  --accent: #0284c7;
  --text: #1e293b;
  --muted: #64748b;
  --gold: #fbbf24;
  --silver: #cbd5e1;
  --bronze: #fb923c;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.container {
  margin: 60px auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

h1 {
  text-align: center;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 8px;
}

.sub {
  text-align: center;
  font-size: 15px;
  margin-bottom: 30px;
  color: var(--muted);
}

.ranking {
  width: 100%;
}

.ranking .card {
  margin-bottom: 12px;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ranking .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.posicao {
  font-weight: 700;
  font-size: 18px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gold .posicao {
  background: var(--gold);
  color: #fff;
}
.silver .posicao {
  background: var(--silver);
  color: #374151;
}
.bronze .posicao {
  background: var(--bronze);
  color: #fff;
}

.ranking .card .info { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}
.ranking .card .name { font-weight: 600; }
.ranking .card .telefone { font-size: 13px; color: var(--muted); }
.ranking .card .score { font-weight: 700; font-size: 16px; color: var(--accent); }

.ranking .card.gold {
  border: 2px solid var(--gold);
  background: #fffbea;
}
.ranking .card.silver {
  border: 2px solid var(--silver);
  background: #f8fafc;
}
.ranking .card.bronze {
  border: 2px solid var(--bronze);
  background: #fff7ed;
}

.regulamento {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.regulamento h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 18px;
}

.regulamento ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.tempo {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  margin-bottom: 20px;
  background: #fff;
  color: var(--text);
}

/* Botão WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  animation: pulse 2s infinite;
  z-index: 9999;
  transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn img { width: 30px; height: 30px; }
@keyframes pulse { 
  0% { transform: scale(1); } 
  50% { transform: scale(1.15); } 
  100% { transform: scale(1); } 
}

@media (max-width: 600px) {
  .ranking .card { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 8px; 
  }
  .ranking .card .score { align-self: flex-end; }
  body { padding: 15px; }
}

.detalhes-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}


.detalhes-box {
  background: #f8fafc;
  padding-bottom: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ind-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ind-esq { 
  display: flex; 
  flex-direction: column; 
}

.ind-nome { font-weight: 600; color: var(--text); }
.ind-tel { font-size: 13px; color: var(--muted); }
.ind-data { font-size: 13px; color: var(--muted); }

.ind-pontos {
  background: var(--accent);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
}