* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  padding: 24px 16px 64px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

header p {
  color: #94a3b8;
  margin: 0;
}

.identificacao {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .identificacao {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  font-size: 1rem;
}

.pista {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.pista h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #f8fafc;
}

.pista p {
  margin: 0 0 10px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pergunta {
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.digito-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.digito-wrap input {
  width: 56px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 10px;
  border: 2px solid #334155;
  background: #0f172a;
  color: #f8fafc;
}

.digito-wrap input:focus {
  outline: none;
  border-color: #818cf8;
}

.status-icon {
  font-size: 1.3rem;
  min-width: 24px;
}

.pista.correta {
  border-color: #22c55e;
  background: #14291d;
}

.pista.incorreta {
  border-color: #ef4444;
  background: #2a1616;
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: #6366f1;
  color: white;
  cursor: pointer;
  margin-top: 8px;
}

button[type="submit"]:hover {
  background: #4f46e5;
}

button[type="submit"]:disabled {
  background: #475569;
  cursor: not-allowed;
}

#resultado {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  display: none;
}

#resultado.mostrar {
  display: block;
}

#resultado.sucesso {
  background: #14291d;
  border: 1px solid #22c55e;
}

#resultado.parcial {
  background: #2a2410;
  border: 1px solid #eab308;
}

#resultado h2 {
  margin-top: 0;
}

.erro-msg {
  color: #fca5a5;
  background: #2a1616;
  border: 1px solid #ef4444;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}

.erro-msg.mostrar {
  display: block;
}

footer {
  text-align: center;
  margin-top: 32px;
  color: #475569;
  font-size: 0.8rem;
}

footer a {
  color: #64748b;
}
