/* Reset básico */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
}

.container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
}

h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.lead {
  text-align: center;
  color: #475569;
  margin-bottom: 1.5rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.label {
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.cipher {
  font-family: monospace;
  font-size: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  word-wrap: break-word;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  resize: vertical;
}

.buttons {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

button {
  flex: 1;
  padding: 0.75rem;
  background: #3b82f6;
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #2563eb;
}

.feedback {
  margin-top: 1rem;
  font-weight: bold;
}

.feedback.ok {
  color: green;
}

.feedback.bad {
  color: red;
}

.hint {
  margin-top: 0.75rem;
  color: #475569;
  font-style: italic;
  font-size: 0.95rem;
}
