/* ===============================
   Reset e Base
=============================== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0a0f1c;
  color: #fff;
  padding-top: 80px;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.top {
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp 0.8s ease forwards;
}

/* =============================== */
/* NAVBAR */
/* =============================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #00ff9c;
}

/* MENU DESKTOP */
.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}
.menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #00ff9c;
  transition: 0.3s;
}

.menu li a:hover {
  color: #00ff9c;

}
.menu li a:hover::after {
  width: 100%;
}
/* BOTÃO HAMBÚRGUER */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  flex-direction: column;
   gap: 5px;
   z-index: 10000;
}

/* =============================== */
/* HAMBÚRGUER ANIMADO */
/* =============================== */

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 5px;
}

/* ANIMAÇÃO X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================== */
/* MENU LATERAL (APP STYLE) */
/* =============================== */



/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #121a2f;
    flex-direction: column;
    padding-top: 80px;
    gap: 20px;
    transition: 0.3s ease;
    z-index: 9999;
	will-change: right;
  }

  .menu.active {
    right: 0;
  }

  .menu li {
    text-align: center;
  }

  .menu li a {
    font-size: 18px;
  }
  body.menu-open {
  overflow: hidden;
}
}

/* =============================== */
/* OVERLAY */
/* =============================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* ===============================
   Hero e Botões
=============================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #00ff9c, #fff700, #1e90ff, #ffffff);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  border-radius: 0 0 50% 50% / 0 0 10% 10%;
  color: #000;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.hero p {
  margin: 20px 0;
  font-size: 1.3rem;
  opacity: 0.9;
}

.btn {
  background: #1e90ff;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: #00ff9c;
  color: #000;
  box-shadow: 0 10px 20px rgba(0, 255, 156, 0.4);
}

/* ===============================
   Cards e Info
=============================== */
.info {
  display: flex;
  gap: 20px;
  padding: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #121a2f;
  padding: 30px;
  border-radius: 16px;
  width: 220px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 255, 156, 0.4);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.card p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===============================
   Formulários e Inputs
=============================== */
.player input,
.times input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  margin-bottom: 30px;
  font-size: 16px;
}

.times input {
  width: 50px;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

.jogos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jogo {
  background: #121a2f;
  padding: 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.salvar {
  width: 100%;
  margin-top: 40px;
}

/* ===============================
   Pódio
=============================== */
.podium {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.place {
  background: #121a2f;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  width: 140px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeZoom 0.6s ease forwards;
}

.place span {
  font-size: 30px;
}

.place:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 255, 156, 0.4);
}

/* Primeiro lugar com brilho animado */
.first {
  transform: translateY(-20px);
  background: linear-gradient(135deg, #ffd700, #ffea70);
  color: #000;
  position: relative;
  overflow: hidden;
}

.first::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shine 3s infinite;
}

/* Segundo e terceiro lugar */
.second {
  background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
  color: #000;
}

.third {
  background: linear-gradient(135deg, #cd7f32, #e6a15a);
  color: #000;
}

/* ===============================
   Tabela de Ranking
=============================== */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  background: #121a2f;
  border-radius: 16px;
  overflow: hidden;
  animation: fadeUp 0.8s ease forwards;
}

.ranking-table th,
.ranking-table td {
  padding: 14px;
  text-align: center;
}

.ranking-table thead {
  background: #0f3460;
}

.ranking-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
  transition: background 0.3s ease, transform 0.2s ease;
}

.ranking-table tbody tr:hover {
  background: rgba(0, 255, 156, 0.08);
  transform: scale(1.01);
}


/* ===============================
   Animações
=============================== */
@keyframes shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeZoom {
  from { opacity: 0; transform: scale(0.5) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===============================
   Gradiente animado do Hero
=============================== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ===============================
   Modal PIX
=============================== */
.pix-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  z-index: 999;
}

.pix-box {
  background: #121a2f;
  padding: 30px;
  border-radius: 20px;
  width: 320px;
  max-height: 90vh;
  text-align: center;
  animation: fadeZoom 0.4s ease forwards;
  margin: auto;
}

.pix-box h2 {
  margin-bottom: 15px;
}

.pix-qrcode img {
  margin: 20px 0;
  border-radius: 12px;
}

.pix-chave {
  font-size: 14px;
  opacity: 0.9;
}

.cancelar {
  margin-top: 10px;
  background: #444;
}
/* estado inicial (ANTES de aparecer) */
#mensagemFinal {
  margin-top: 20px;
  font-size: 18px;
  color: #2ecc71;

  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

#mensagemFinal.show {
  opacity: 1;
  transform: translateY(0);
}
/* =============================== */
/* Sublista Premiação — CORREÇÃO FINAL */
/* =============================== */
ol.jogos li ul.premiacao {
  list-style: disc;
  padding-left: 25px;
  margin-top: 10px;
}

/* REMOVE COMPLETAMENTE qualquer numeração herdada */
ol.jogos li ul.premiacao li {
  border-left: none;
  padding: 6px 0;
  margin: 0;
  font-weight: normal;
  opacity: 1;
  animation: none;
  position: static;
}

/* DESATIVA o ::before do contador */
ol.jogos li ul.premiacao li::before {
  content: none !important;
}
/* =============================== */
/* 📱 RESPONSIVIDADE REAL */
/* =============================== */

/* TABLET */
@media (max-width: 1024px) {

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .info {
    padding: 40px 20px;
  }

  .card {
    width: 45%;
  }

  .jogo {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .times input {
    width: 60px;
  }

  .podium {
    flex-wrap: wrap;
  }

  .place {
    width: 120px;
  }
}


/* CELULAR */
@media (max-width: 768px) {

  body {
    font-size: 14px;
  }

  .hero {
    padding: 60px 20px;
    border-radius: 0 0 30% 30% / 0 0 10% 10%;
  }

  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    padding: 14px;
  }

  /* CARDS */
  .info {
    flex-direction: column;
    padding: 30px 15px;
  }

  .card {
    width: 100%;
  }

  /* JOGOS */
  .jogo {
    flex-direction: column;
    gap: 15px;
  }

  .times {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  /* PODIUM */
  .podium {
    flex-direction: column;
    align-items: center;
  }

  .place {
    width: 80%;
  }

  .first {
    transform: translateY(0);
  }

  /* TABELA */
  .ranking-table th,
  .ranking-table td {
    font-size: 12px;
    padding: 10px;
  }

  /* MODAL */
  .pix-box {
    width: 90%;
  }
}