/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VARIÁVEIS */
:root {
  --bg: #020617;
  --card: #0f172a;
  --text: #ffffff;
  --sub: #94a3b8;
  --primary: #22c55e;
}

/* BODY */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTAINER */
#app {
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

/* CARD */
#app {
  background: var(--card);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  text-align: center;
}

/* HEADER */
.header h1 {
  font-size: 20px;
  margin-bottom: 5px;
}

.header p {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 20px;
}

/* PROGRESS */
.progress {
  height: 6px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: 0.4s;
}

/* PERGUNTA */
#question {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--sub);
}

/* BOTÕES */
button {
  width: 100%;
  padding: 16px;
  margin: 8px 0;
  border: none;
  border-radius: 14px;
  background: #1e293b;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #22c55e;
  transform: translateY(-2px);
}

/* RESULTADO */
.hidden {
  display: none;
}

#result-title {
  font-size: 20px;
  margin-bottom: 10px;
}

#result-text {
  color: var(--sub);
  margin-bottom: 20px;
}

/* CTA */
#cta a {
  display: block;
  padding: 15px;
  background: var(--primary);
  color: black;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

#cta a:hover {
  transform: scale(1.05);
}

/* ANIMAÇÃO */
#app > * {
  animation: fade 0.4s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}