:root {
  --azul: #0051B3;
  --vermelho: #EF4135;
  --verde: #00A651;
  --preto: #000000;
  --branco: #ffffff;
  --cinza: #f4f7f9;
}

* { box-sizing: border-box; }

body {
  margin: 0; padding: 20px 15px;
  font-family: -apple-system, sans-serif;
  background-color: var(--branco);
  display: flex; flex-direction: column; align-items: center;
}

/* HEADER */
.topo-jogo {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: 400px; margin-bottom: 20px;
}
.menu-jogos { display: flex; gap: 4px; background: #eee; padding: 4px; border-radius: 30px; }
.menu-jogos a { text-decoration: none; color: #777; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; }
.menu-jogos a.ativo { background: var(--azul); color: #fff; }
.btn-icon { color: var(--azul); background: #eee; border: none; padding: 8px; border-radius: 50%; cursor: pointer; }

/* TÍTULOS PRETOS */
#app { width: 100%; max-width: 400px; text-align: center; }
.logo { color: var(--preto); font-weight: 900; margin: 0; font-size: 32px; letter-spacing: -1px; }
.subtitulo { color: var(--preto); font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; opacity: 0.7; }

/* IMAGEM */
#estadio { width: 100%; aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; margin-bottom: 15px; border: 1px solid #ddd; }
#imagem { width: 100%; height: 100%; background-size: cover; background-position: center; clip-path: inset(0 0 80% 0); transition: clip-path 0.5s ease; }

/* ENTRADA CENTRALIZADA */
.entrada { 
  display: flex; width: 100%; gap: 8px; margin-bottom: 15px; justify-content: center; align-items: stretch;
}

.input-wrapper { 
  width: 70%; 
  position: relative;
}

input { 
  width: 100%; 
  padding: 12px; 
  border: 1px solid #ddd; 
  border-radius: 10px; 
  font-size: 16px; 
  outline: none; 
  background: #f9f9f9; 
}

#confirmar { 
  width: 30%; 
  background: var(--verde); 
  color: #fff; 
  border: none; 
  border-radius: 10px; 
  font-weight: 800; 
  cursor: pointer; 
  font-size: 13px; 
}

/* CAIXA DE SELEÇÃO (AUTOCOMPLETE) EDITADA */
.sugestoes {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--branco);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  z-index: 5000;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
}

.sugestoes li {
  padding: 12px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.sugestoes li:hover {
  background-color: #f0f7ff;
  color: var(--azul);
}

.sugestoes li span {
  font-size: 16px;
}

/* SCROLLBAR DA SELEÇÃO */
.sugestoes::-webkit-scrollbar { width: 5px; }
.sugestoes::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

/* PROGRESSO */
.progress-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.dot { font-size: 24px; }

/* DICAS */
#dicas { width: 100%; background: #f4f7f9; padding: 12px; border-radius: 10px; text-align: left; font-size: 14px; color: #333; }

/* MODAL DE RESULTADO OTIMIZADO */
.resultado { 
  position: fixed; inset: 0; background: #fff; z-index: 2000; 
  padding: 20px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; 
}
.conteudo-modal { width: 100%; max-width: 380px; text-align: center; }
#resultadoImagem { width: 100%; border-radius: 12px; border: 1px solid #eee; }
#resultadoNome { font-weight: 800; font-size: 20px; margin: 10px 0; color: var(--preto); }
#mensagemFinal { font-size: 22px; font-weight: 900; margin: 0 0 5px 0; }
#estatistica { font-size: 12px; font-weight: 700; color: #666; text-transform: uppercase; margin-bottom: 15px; }

.ficha-tecnica { background: #f4f7f9; border-radius: 12px; padding: 15px; width: 100%; text-align: left; margin: 15px 0; border: 1px solid #eee; }
.ficha-item { font-size: 13px; margin-bottom: 6px; border-bottom: 1px solid #eef1f4; padding-bottom: 4px; }
.destaque-especial { color: var(--vermelho); font-weight: 800; font-size: 10px; margin-left: 4px; }

.share { display: flex; gap: 8px; width: 100%; }
.btn-share { flex: 1; padding: 12px; border-radius: 10px; text-align: center; text-decoration: none; color: #fff; font-weight: 800; font-size: 13px; }
.btn-x { background: #000; }
.btn-whats { background: #25D366; }

/* UTILITÁRIOS */
.oculto { display: none !important; }
.modal-sobreposicao { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.conteudo-calendario { background: #fff; padding: 20px; border-radius: 20px; width: 90%; max-width: 340px; }
.header-calendario { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
#lista-dias { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dia-link { text-decoration: none; background: #f4f7f9; color: var(--azul); padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; border: 1px solid #eee; }

.ads-container {
  width: 100%;
  max-height: 90px;
  min-height: 60px;
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: bold;
}
