html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #000000;

  display: flex;
  justify-content: center;   /* centraliza o app */
  align-items: center;

  min-height: 100vh;
  min-height: 100svh;
  padding: 16px;
}

/* CONTAINER PRINCIPAL */
#app {
  width: 100%;
  max-width: 420px;

  display: flex;
  flex-direction: column;
  align-items: center;      /* centraliza tudo horizontalmente */
  text-align: center;       /* centraliza textos */

  gap: 6px;
}

/* TÍTULO */
h1 {
  margin-bottom: 6px;
}

/* ESTÁDIO */
#estadio {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 16px 0;

  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  position: relative;
}

#imagem {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 80% 0);
  transition: clip-path 0.4s ease;
  filter: brightness(0.7) contrast(0.85) saturate(0.7);
}

/* INPUT + BOTÃO */
.entrada {
  display: flex;
  gap: 6px;
  justify-content: center;
}

input {
  padding: 6px 10px;
  width: 160px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
}

/* TENTATIVAS */
.tentativas {
  margin: 12px 0;
}

.bola {
  font-size: 20px;
  margin: 0 4px;
}

.bola::after {
  content: "⚽";
}

.bola.erro::after {
  content: "❌";
}

/* DICAS */
#dicas {
  margin-top: 10px;
  color: #333;
  text-align: center;
}

/* CONTADOR */
.contador {
  font-size: 14px;
  color: #555;
}

/* CRÉDITO DA IMAGEM */
.credito-imagem {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.credito-imagem.visivel {
  opacity: 1;
}

/* MODAL FINAL */
.resultado {
  position: fixed;
  inset: 0;
  background: #ffffff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  z-index: 999;
}

.oculto {
  display: none;
}