/* ═══════════════════════════════════════════════════════════════
   INDICA SITE — ESTILOS GLOBAIS
   Tema: Roxo + Dourado | Design Tecnológico
   ═══════════════════════════════════════════════════════════════ */

/* ── Variáveis ───────────────────────────────────────────────── */
:root {
  --purple-dark:   #0d0015;
  --purple-mid:    #1a0035;
  --purple-light:  #4a0080;
  --purple-glow:   #7b00cc;
  --purple-neon:   #bf40ff;

  --gold-dark:     #7d5800;
  --gold-mid:      #c8930a;
  --gold-bright:   #ffd700;
  --gold-shine:    #ffe566;
  --gold-white:    #fff8dc;

  --text-primary:  #f0e6ff;
  --text-muted:    #a880cc;
  --text-dim:      #6b4d8a;

  --surface:       rgba(26, 0, 53, 0.85);
  --surface-light: rgba(74, 0, 128, 0.25);
  --border:        rgba(191, 64, 255, 0.25);
  --border-gold:   rgba(255, 215, 0, 0.35);

  --radius:        14px;
  --radius-sm:     8px;
  --shadow-purple: 0 0 30px rgba(123, 0, 204, 0.4);
  --shadow-gold:   0 0 20px rgba(255, 215, 0, 0.3);
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset / Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--purple-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  touch-action: pan-x pan-y; /* bloqueia double-tap zoom */
}

/* ── Partículas de fundo ─────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes float-particle {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Utilitários ─────────────────────────────────────────────── */
.gold-text {
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-bright), var(--gold-shine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.purple-glow-text {
  color: var(--purple-neon);
  text-shadow: 0 0 10px var(--purple-neon), 0 0 30px var(--purple-glow);
}

/* ── Botões ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-glow));
  color: #fff;
  border: 1px solid var(--purple-neon);
  box-shadow: 0 0 15px rgba(123, 0, 204, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-glow), var(--purple-neon));
  box-shadow: 0 0 25px rgba(191, 64, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--purple-neon);
  color: var(--purple-neon);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #5c0020, #a00040);
  color: #fff;
  border: 1px solid #ff2060;
  box-shadow: 0 0 10px rgba(255, 32, 96, 0.3);
}
.btn-danger:hover {
  box-shadow: 0 0 20px rgba(255, 32, 96, 0.5);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid), var(--gold-bright));
  color: var(--purple-dark);
  border: none;
  font-weight: 900;
}
.btn-gold:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: 320px;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  background: linear-gradient(135deg, #003322, #006644);
  border: 1px solid #00cc88;
  color: #00ffaa;
  box-shadow: 0 0 20px rgba(0, 204, 136, 0.4);
}
.toast.error {
  background: linear-gradient(135deg, #330008, #660020);
  border: 1px solid #ff2060;
  color: #ff6090;
  box-shadow: 0 0 20px rgba(255, 32, 96, 0.4);
}
.toast.info {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  border: 1px solid var(--purple-neon);
  color: var(--purple-neon);
  box-shadow: var(--shadow-purple);
}

/* ── Modais ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none !important; }

.modal-card {
  background: linear-gradient(135deg, var(--purple-mid), #0f0025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-purple), 0 20px 60px rgba(0,0,0,0.6);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-small { max-width: 360px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--purple-neon);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.modal-msg {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal-msg strong { color: var(--gold-bright); }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.modal-error {
  color: #ff6090;
  font-size: 0.85rem;
  min-height: 20px;
  margin-top: 8px;
}

/* ── Campos de formulário ────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field-group label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.field-group input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.field-group input:focus {
  border-color: var(--purple-neon);
  box-shadow: 0 0 0 3px rgba(191, 64, 255, 0.15);
}
.field-group input::placeholder { color: var(--text-dim); }

/* ── Animações globais ───────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--gold-mid); }
  50%       { box-shadow: 0 0 40px var(--gold-bright), 0 0 60px var(--gold-mid); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--purple-dark); }
::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-glow); }

/* ═══════════════════════════════════════════════════════════════
   PÁGINA DE RANKING (index.html)
   ═══════════════════════════════════════════════════════════════ */
.ranking-body {
  background:
    radial-gradient(ellipse at top, #2a005f 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, #1a0040 0%, transparent 50%),
    var(--purple-dark);
}

/* Header */
.ranking-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 40px;
}
.header-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(123, 0, 204, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.ranking-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-bright), var(--gold-shine), var(--gold-mid));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  letter-spacing: 6px;
  text-shadow: none;
  margin-bottom: 6px;
}

/* Decoradores do título */
.title-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.title-badge--bottom {
  margin-bottom: 0;
  margin-top: 10px;
}
.title-badge-line {
  display: block;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
  flex-shrink: 0;
}
.title-badge--bottom .title-badge-line {
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3));
}
.title-badge:not(.title-badge--bottom) .title-badge-line:last-child {
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}
.title-badge--bottom .title-badge-line:last-child {
  background: linear-gradient(90deg, rgba(255,215,0,0.3), transparent);
}
.title-badge-gem {
  color: var(--gold-bright);
  font-size: 0.55rem;
  text-shadow: 0 0 12px var(--gold-bright), 0 0 24px var(--gold-mid);
  letter-spacing: 0;
}
.ranking-subtitle {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Pódio */
.podium-section {
  position: relative;
  z-index: 1;
  padding: 20px 20px 60px;
}
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  min-height: 260px; /* reserva espaço antes do JS renderizar */
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

/* Avatar do pódio */
.podium-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.podium-item:nth-child(1) .podium-avatar { /* 2º lugar */
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #4a4a4a, #aaa, #ddd);
  border: 3px solid #bbb;
  box-shadow: 0 0 20px rgba(200,200,200,0.3);
  color: #fff;
}
.podium-item:nth-child(2) .podium-avatar { /* 1º lugar */
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid), var(--gold-bright));
  border: 3px solid var(--gold-shine);
  box-shadow: 0 0 30px rgba(255,215,0,0.5), 0 0 60px rgba(255,215,0,0.2);
  color: var(--purple-dark);
  animation: pulse-glow 2s ease-in-out infinite;
}
.podium-item:nth-child(3) .podium-avatar { /* 3º lugar */
  width: 65px; height: 65px;
  background: linear-gradient(135deg, #5c2a00, #a05010, #cd7f32);
  border: 3px solid #cd7f32;
  box-shadow: 0 0 15px rgba(205,127,50,0.3);
  color: #fff;
}

.podium-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-item:nth-child(2) .podium-name {
  color: var(--gold-bright);
  text-shadow: 0 0 10px var(--gold-mid);
}
.podium-item:nth-child(1) .podium-name { color: #ddd; }
.podium-item:nth-child(3) .podium-name { color: #cd7f32; }

.podium-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.podium-item:nth-child(2) .podium-count { color: var(--gold-shine); }

/* Base do pódio */
.podium-base {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  gap: 2px;
}
.podium-roman {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1;
  display: block;
}
.podium-lugar {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 3px;
  display: block;
  opacity: 0.75;
}
.podium-item:nth-child(1) .podium-base {
  height: 90px;
  background: linear-gradient(180deg, rgba(170,170,170,0.2) 0%, rgba(100,100,100,0.3) 100%);
  border: 1px solid rgba(200,200,200,0.2);
  border-bottom: none;
  color: #bbb;
}
.podium-item:nth-child(2) .podium-base {
  height: 130px;
  background: linear-gradient(180deg, rgba(255,215,0,0.2) 0%, rgba(200,150,0,0.3) 100%);
  border: 1px solid rgba(255,215,0,0.35);
  border-bottom: none;
  color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(255,215,0,0.15);
}
.podium-item:nth-child(3) .podium-base {
  height: 70px;
  background: linear-gradient(180deg, rgba(205,127,50,0.2) 0%, rgba(130,80,20,0.3) 100%);
  border: 1px solid rgba(205,127,50,0.2);
  border-bottom: none;
  color: #cd7f32;
}

/* Divisor */
.divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
  gap: 16px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}
.divider-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold-mid);
  white-space: nowrap;
}

/* Lista */
.list-section {
  position: relative;
  z-index: 1;
  padding: 0 20px 60px;
}
.list-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px; /* reserva espaço antes do JS renderizar */
}

.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(18, 8, 36, 0.82);
  border: 1px solid rgba(140, 80, 200, 0.2);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  animation: slideUp 0.4s ease both;
}
/* Itens aguardando entrar na área visível (IntersectionObserver) */
.list-item--pending {
  opacity: 0;
  animation-play-state: paused !important;
}
.list-item:hover {
  border-color: rgba(191, 64, 255, 0.45);
  background: rgba(30, 10, 55, 0.75);
  transform: translateX(6px);
}

/* ── Campeões na lista ───────────────────────────────────────── */
.list-item--champ { position: relative; overflow: hidden; }
.list-item--champ::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}
.list-item--gold {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(90deg, rgba(255,215,0,0.08) 0%, var(--surface) 60%);
  box-shadow: inset 3px 0 0 var(--gold-bright), 0 0 18px rgba(255,215,0,0.08);
}
.list-item--gold:hover {
  border-color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(255,215,0,0.15) 0%, rgba(74,0,128,0.3) 60%);
  transform: translateX(6px);
}
.list-item--silver {
  border-color: rgba(192, 192, 192, 0.4);
  background: linear-gradient(90deg, rgba(192,192,192,0.07) 0%, var(--surface) 60%);
  box-shadow: inset 3px 0 0 #c0c0c0, 0 0 14px rgba(192,192,192,0.06);
}
.list-item--silver:hover {
  border-color: #ddd;
  background: linear-gradient(90deg, rgba(192,192,192,0.14) 0%, rgba(74,0,128,0.3) 60%);
  transform: translateX(6px);
}
.list-item--bronze {
  border-color: rgba(205, 127, 50, 0.4);
  background: linear-gradient(90deg, rgba(205,127,50,0.07) 0%, var(--surface) 60%);
  box-shadow: inset 3px 0 0 #cd7f32, 0 0 14px rgba(205,127,50,0.06);
}
.list-item--bronze:hover {
  border-color: #cd7f32;
  background: linear-gradient(90deg, rgba(205,127,50,0.14) 0%, rgba(74,0,128,0.3) 60%);
  transform: translateX(6px);
}

/* Rank colorido dos campeões */
.list-item--gold   .list-rank { color: var(--gold-bright); text-shadow: 0 0 8px rgba(255,215,0,0.5); }
.list-item--silver .list-rank { color: #ddd; text-shadow: 0 0 8px rgba(200,200,200,0.4); }
.list-item--bronze .list-rank { color: #cd7f32; text-shadow: 0 0 8px rgba(205,127,50,0.4); }

/* ── Botão de prêmio ─────────────────────────────────────────── */
.prize-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid;
  background: transparent;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.prize-btn-icon { font-size: 0.7rem; }
.prize-btn--gold  { border-color: rgba(255,215,0,0.5); color: var(--gold-bright); }
.prize-btn--silver{ border-color: rgba(200,200,200,0.4); color: #ddd; }
.prize-btn--bronze{ border-color: rgba(205,127,50,0.45); color: #cd7f32; }
.prize-btn--gold:hover   { border-color: var(--gold-bright); text-shadow: 0 0 10px rgba(255,215,0,0.5); transform: scale(1.05); }
.prize-btn--silver:hover { border-color: #ddd; text-shadow: 0 0 10px rgba(200,200,200,0.4); transform: scale(1.05); }
.prize-btn--bronze:hover { border-color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,0.4); transform: scale(1.05); }

/* ── Modal de prêmio ─────────────────────────────────────────── */
.prize-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.prize-overlay[hidden] { display: none !important; }

.prize-card {
  position: relative;
  background: linear-gradient(145deg, #120025, #0a001a);
  border-radius: var(--radius);
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  border: 1px solid;
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
/* Linha de cor no topo */
.prize-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}
.prize-card[data-theme="gold"] {
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 0 40px rgba(255,215,0,0.15), 0 30px 60px rgba(0,0,0,0.6);
}
.prize-card[data-theme="gold"]::before {
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold-shine), var(--gold-bright), transparent);
}
.prize-card[data-theme="silver"] {
  border-color: rgba(200,200,200,0.35);
  box-shadow: 0 0 30px rgba(200,200,200,0.1), 0 30px 60px rgba(0,0,0,0.6);
}
.prize-card[data-theme="silver"]::before {
  background: linear-gradient(90deg, transparent, #ccc, #fff, #ccc, transparent);
}
.prize-card[data-theme="bronze"] {
  border-color: rgba(205,127,50,0.4);
  box-shadow: 0 0 30px rgba(205,127,50,0.12), 0 30px 60px rgba(0,0,0,0.6);
}
.prize-card[data-theme="bronze"]::before {
  background: linear-gradient(90deg, transparent, #cd7f32, #e8a060, #cd7f32, transparent);
}

.prize-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}
.prize-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.prize-rank-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
}
.prize-card[data-theme="gold"]   .prize-rank-badge { color: var(--gold-bright); border: 1px solid rgba(255,215,0,0.4); background: rgba(255,215,0,0.07); }
.prize-card[data-theme="silver"] .prize-rank-badge { color: #ddd; border: 1px solid rgba(200,200,200,0.3); background: rgba(200,200,200,0.06); }
.prize-card[data-theme="bronze"] .prize-rank-badge { color: #cd7f32; border: 1px solid rgba(205,127,50,0.35); background: rgba(205,127,50,0.06); }

.prize-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  line-height: 1;
}
.prize-card[data-theme="gold"]   .prize-icon { color: var(--gold-bright); text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 40px rgba(255,215,0,0.3); }
.prize-card[data-theme="silver"] .prize-icon { color: #ddd; text-shadow: 0 0 16px rgba(200,200,200,0.5); }
.prize-card[data-theme="bronze"] .prize-icon { color: #cd7f32; text-shadow: 0 0 16px rgba(205,127,50,0.5); }

.prize-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prize-divider {
  height: 1px;
  margin: 0 auto 20px;
  width: 60px;
}
.prize-card[data-theme="gold"]   .prize-divider { background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); }
.prize-card[data-theme="silver"] .prize-divider { background: linear-gradient(90deg, transparent, #bbb, transparent); }
.prize-card[data-theme="bronze"] .prize-divider { background: linear-gradient(90deg, transparent, #cd7f32, transparent); }

.prize-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.prize-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.prize-card[data-theme="gold"]   .prize-value { color: var(--gold-bright); text-shadow: 0 0 15px rgba(255,215,0,0.4); }
.prize-card[data-theme="silver"] .prize-value { color: #ddd; }
.prize-card[data-theme="bronze"] .prize-value { color: #cd7f32; }

.prize-detail {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.list-rank {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(160, 130, 200, 0.65);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.list-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a1a4a, #3d2570);
  border: 2px solid rgba(180, 130, 240, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(230, 210, 255, 0.9);
  flex-shrink: 0;
  overflow: hidden;
}

/* ── Cores dos avatares da lista ─────────────────────────────── */
.list-avatar--gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid), var(--gold-bright));
  border-color: var(--gold-shine);
  box-shadow: 0 0 12px rgba(255,215,0,0.35);
  color: var(--purple-dark);
}
.list-avatar--silver {
  background: linear-gradient(135deg, #4a4a4a, #aaa, #ddd);
  border-color: #bbb;
  box-shadow: 0 0 10px rgba(200,200,200,0.25);
  color: #fff;
}
.list-avatar--bronze {
  background: linear-gradient(135deg, #5c2a00, #a05010, #cd7f32);
  border-color: #cd7f32;
  box-shadow: 0 0 10px rgba(205,127,50,0.3);
  color: #fff;
}
/* Ciclo de 6 cores vibrantes para posições 4+ */
.list-avatar--c1 {
  background: linear-gradient(135deg, #0a2a40, #0a7090);
  border-color: rgba(0, 180, 220, 0.5);
  color: #a0eeff;
}
.list-avatar--c2 {
  background: linear-gradient(135deg, #3a0a18, #aa2040);
  border-color: rgba(220, 60, 100, 0.5);
  color: #ffaac0;
}
.list-avatar--c3 {
  background: linear-gradient(135deg, #0a2a10, #1a8840);
  border-color: rgba(40, 200, 100, 0.5);
  color: #a0ffcc;
}
.list-avatar--c4 {
  background: linear-gradient(135deg, #2a1800, #905010);
  border-color: rgba(220, 130, 30, 0.5);
  color: #ffd080;
}
.list-avatar--c5 {
  background: linear-gradient(135deg, #0a1040, #1840b0);
  border-color: rgba(60, 120, 240, 0.5);
  color: #a0c0ff;
}
.list-avatar--c6 {
  background: linear-gradient(135deg, #280a30, #882090);
  border-color: rgba(200, 60, 220, 0.5);
  color: #f0a0ff;
}

.list-avatar .avatar-img,
.podium-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: brightness(1.15) contrast(1.05);
}

.list-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 20px;
  padding: 4px 14px;
  flex-shrink: 0;
}

/* Rodapé */
.ranking-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
}
.footer-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  margin: 0;
}

/* Contador regressivo fixo — topo direito */
.countdown-widget {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}
.countdown-widget[hidden] { display: none; }
.countdown-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.countdown-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.cd-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.cd-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  margin-left: 1px;
}
.countdown-sep {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  margin: 0 3px;
}

/* Paginação */
.pagination {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding-bottom: 16px;
}
.pg-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  background: rgba(255, 215, 0, 0.06);
  color: var(--gold-bright);
  cursor: pointer;
  transition: var(--transition);
}
.pg-btn:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
}
.pg-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}
.pg-info {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  min-width: 120px;
  text-align: center;
}

/* ── Media queries ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .podium-container { gap: 8px; }
  .podium-item { min-width: 100px; }
  .podium-avatar { width: 60px !important; height: 60px !important; font-size: 1.2rem; }
  .podium-item:nth-child(2) .podium-avatar { width: 70px !important; height: 70px !important; }
  .list-item { padding: 12px 14px; gap: 10px; }
}

/* Widget de contagem regressiva — centralizado em todos os celulares (≤768px) */
@media (max-width: 768px) {
  .countdown-widget {
    top: 10px;
    right: 10px;
    left: 10px;
    justify-content: center;
    backdrop-filter: none; /* remove blur para ganhar FPS em Android */
    background: rgba(0,0,0,0.65);
  }
}

/* iOS: restaura blur e background original do widget */
html.is-ios .countdown-widget {
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.45);
}
