/* Mesma identidade do Bolão da Virada: fundo escuro, brilho dourado, letreiro */
:root {
  --fundo: #0a0c18;
  --painel: #131729;
  --painel-borda: #232842;
  --ouro: #ffc23d;
  --ouro-escuro: #f59e0b;
  --texto: #c9cce0;
  --branco: #fff;
  --cinza: #7d82a1;
  --verde: #3ddc84;
  --vermelho: #ff5c5c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fundo); }
body {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--texto);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(245, 158, 11, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 194, 61, 0.12), transparent 70%),
    var(--fundo);
}
b { color: var(--branco); }
.ouro { color: var(--ouro); }
[hidden] { display: none !important; }

.pagina { max-width: 680px; margin: 0 auto; padding: 32px 18px 48px; text-align: center; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ouro); }

/* Indicador de etapas */
.passos-topo { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 36px; counter-reset: p; }
.passos-topo li {
  white-space: nowrap;
  counter-increment: p;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cinza);
  padding: 6px 12px;
  border: 1px solid var(--painel-borda);
  border-radius: 99px;
}
.passos-topo li::before { content: counter(p) " · "; }
.passos-topo li.atual { color: #1a1100; background: var(--ouro); border-color: var(--ouro); }
.passos-topo li.feito { color: var(--verde); border-color: rgba(61, 220, 132, 0.4); }
.passos-topo li.feito::before { content: "✓ "; }

.titulo {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--branco);
  font-size: clamp(42px, 10vw, 64px);
  margin-bottom: 28px;
}
.titulo .ouro { text-shadow: 0 0 28px rgba(255, 194, 61, 0.45); }

.btn {
  display: inline-block;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd56b, var(--ouro) 50%, var(--ouro-escuro));
  color: #1a1100;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
  padding: 10px 26px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* Área de arquivo */
.soltar {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 18px;
  background: var(--painel);
  border: 2px dashed var(--painel-borda);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.soltar:hover, .soltar.sobre { border-color: var(--ouro); background: #171b30; }
.soltar input { display: none; }
.dica { font-size: 13px; color: var(--cinza); }

.msg { margin-top: 14px; font-weight: 700; min-height: 1.5em; }
.msg.ok { color: var(--verde); }
.msg.erro { color: var(--vermelho); }
.msg.alerta { color: var(--ouro); }

.mapa { display: grid; gap: 10px; margin-top: 12px; text-align: left; }
.mapa label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--cinza); }
.mapa .btn { justify-self: center; margin-top: 6px; }
select, .busca input {
  font: inherit;
  color: var(--branco);
  background: var(--painel);
  border: 1px solid var(--painel-borda);
  border-radius: 10px;
  padding: 9px 12px;
}
select:focus, .busca input:focus { outline: 2px solid var(--ouro); outline-offset: 1px; }

.voltar {
  margin-top: 28px;
  background: none;
  border: 0;
  font: 700 14px "Manrope", Arial, sans-serif;
  color: var(--cinza);
  cursor: pointer;
}
.voltar:hover { color: var(--branco); }

/* Busca */
.busca { display: flex; gap: 10px; }
.busca input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 900;
  font-size: 40px;
  letter-spacing: 0.08em;
  padding: 4px 14px;
}

@media (max-width: 480px) { .busca { flex-direction: column; } }

/* ============ Tela do sorteio ============ */
body.largo .pagina { max-width: 980px; }
.btn-grande { font-size: 26px; padding: 14px 34px; }
.btn-gigante {
  font-size: clamp(40px, 8vw, 72px); padding: 18px 64px; border-radius: 18px;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.5), 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: respira 1.8s ease-in-out infinite;
}
@keyframes respira { 50% { transform: scale(1.04); box-shadow: 0 0 90px rgba(245, 158, 11, 0.7), 0 12px 30px rgba(0, 0, 0, 0.4); } }
.btn:hover { filter: brightness(1.06); }

#palco { display: grid; gap: 22px; }
#palco > [hidden] { display: none; }
.show-rotulo {
  font-size: 13px; font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--cinza); margin-bottom: 8px;
}
.show-etapa { animation: entra 0.45s ease-out; }
@keyframes entra { from { transform: translateY(24px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* Cilindros (tambores 3D) */
.cil {
  position: relative;
  height: calc(var(--h) * 2.3);
  perspective: 1100px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.cil::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: var(--h); transform: translateY(-50%);
  border-top: 2px solid rgba(255, 194, 61, 0.55); border-bottom: 2px solid rgba(255, 194, 61, 0.55);
  background: linear-gradient(90deg, transparent, rgba(255, 194, 61, 0.07), transparent);
  border-radius: 6px; pointer-events: none; z-index: 1;
}
.cil-rolo {
  position: absolute; left: 0; right: 0; top: 50%; height: var(--h); margin-top: calc(var(--h) / -2);
  transform-style: preserve-3d;
}
.cil-face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; text-transform: uppercase; line-height: 1;
  color: var(--branco);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #121527, #1a1e36 50%, #121527);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.cil-cota .cil-face { font-size: calc(var(--h) * 0.82); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.cil-nome .cil-face { font-size: calc(var(--h) * 0.62); padding: 0 4%; }
.cil-face.travou { color: var(--ouro); text-shadow: 0 0 40px rgba(255, 194, 61, 0.7); }
.cil.parado::before { border-color: var(--ouro); box-shadow: 0 0 40px rgba(255, 194, 61, 0.35); }
.cil.ruim .cil-face.travou { color: var(--vermelho); text-shadow: 0 0 40px rgba(255, 92, 92, 0.6); }

/* Etapa concluída: texto fixo e compacto */
.show-fixo {
  font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; text-transform: uppercase; line-height: 1;
  font-size: clamp(36px, 6vw, 64px); color: var(--ouro); text-shadow: 0 0 30px rgba(255, 194, 61, 0.5);
  letter-spacing: 0.04em;
  animation: encolhe 0.4s ease-out;
}
.show-fixo.ruim { color: var(--vermelho); text-shadow: 0 0 30px rgba(255, 92, 92, 0.5); }
@keyframes encolhe { from { transform: scale(1.6); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Dados da compra */
.info {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  animation: entra 0.45s ease-out;
}
.info div { background: var(--painel); border: 1px solid var(--painel-borda); border-radius: 12px; padding: 12px; }
.info dt { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cinza); }
.info dd { color: var(--branco); font-weight: 800; font-size: 17px; word-break: break-word; }

#acao { animation: entra 0.45s ease-out; }
.alerta-grande {
  font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; text-transform: uppercase; line-height: 1;
  font-size: clamp(36px, 6vw, 60px); color: var(--vermelho);
}
#acao p { margin-top: 8px; }
.aviso-pequeno { color: var(--ouro); font-weight: 700; font-size: 13px; margin-bottom: 12px; }

/* Barra de carregamento */
.barra { max-width: 620px; width: 100%; margin: 0 auto; animation: entra 0.45s ease-out; }
.barra-msg { font-weight: 800; color: var(--branco); margin-bottom: 10px; min-height: 1.5em; }
.barra-trilho { height: 16px; background: var(--painel); border: 1px solid var(--painel-borda); border-radius: 99px; overflow: hidden; }
.barra-cheia {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--ouro-escuro), var(--ouro), #ffe9a8, var(--ouro));
  background-size: 200% 100%;
  animation: brilho-barra 1s linear infinite;
  box-shadow: 0 0 20px rgba(255, 194, 61, 0.6);
}
@keyframes brilho-barra { to { background-position: -200% 0; } }
.barra-pct { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--cinza); font-variant-numeric: tabular-nums; }
.barra.completa .barra-msg { color: var(--verde); }

/* Anúncio do grupo */
.anuncio { animation: estoura 0.7s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes estoura { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.anuncio-grupo span {
  display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cinza);
}
.anuncio-grupo b {
  display: block;
  font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; line-height: 1;
  font-size: clamp(120px, 22vw, 220px); color: var(--ouro);
  text-shadow: 0 0 80px rgba(255, 194, 61, 0.8), 0 0 20px rgba(255, 194, 61, 0.6);
  animation: brilha 1.6s ease-in-out infinite alternate;
}
@keyframes brilha { to { text-shadow: 0 0 120px rgba(255, 194, 61, 1), 0 0 30px rgba(255, 213, 107, 0.9); } }
.anuncio-texto { font-size: clamp(18px, 2.6vw, 24px); max-width: 720px; margin: 8px auto 22px; line-height: 1.4; }

/* Contemplados */
.contemplados { margin-top: 10px; animation: entra 0.45s ease-out; scroll-margin-top: 20px; }
.contemplados h2 {
  font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; text-transform: uppercase; line-height: 1;
  font-size: clamp(30px, 5vw, 48px); color: var(--branco);
}
.contemplados .cada { margin: 10px 0 16px; font-weight: 700; }
.tabela-rolagem {
  margin-top: 18px; max-height: 60vh; overflow: auto;
  background: var(--painel); border: 1px solid var(--painel-borda); border-radius: 14px;
}
.contemplados table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.contemplados th {
  position: sticky; top: 0; background: #181c33;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cinza); padding: 10px;
}
.contemplados td { padding: 9px 10px; border-top: 1px solid var(--painel-borda); vertical-align: top; }
.contemplados td:nth-child(n+4) { white-space: nowrap; }
.contemplados td:last-child { color: var(--verde); font-weight: 800; }
.contemplados tr.destaque td { background: rgba(255, 194, 61, 0.12); color: var(--branco); font-weight: 800; }

.rodape-sorteio { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.confete { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

@media (max-width: 700px) {
  .info { grid-template-columns: 1fr 1fr; }
}
