:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4efe6;
  color: #1f2933;
}

body {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: 1rem;
}

.card {
  background: #fffaf2;
  border: 1px solid #eadfcc;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(78, 52, 20, 0.16);
  max-width: 560px;
  padding: clamp(1.5rem, 5vw, 3rem);
  width: 100%;
}

.eyebrow {
  color: #9a5f20;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.status,
.help {
  color: #5f6b76;
}

.actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.5rem 0;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 700;
}

input[type="text"],
input[type="file"],
input:not([type]) {
  background: white;
  border: 2px solid #e1d3be;
  border-radius: 16px;
  font: inherit;
  font-size: 1.25rem;
  padding: 0.9rem 1rem;
}

button {
  background: #1f2933;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.95rem 1.15rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.secondary button {
  background: #9a5f20;
}

.result {
  font-size: 1.1rem;
  font-weight: 800;
  min-height: 1.4rem;
}

.correct {
  color: #147a3d;
}

.incorrect {
  color: #b3261e;
}

.admin-link {
  color: #704214;
  display: inline-block;
  font-weight: 700;
  margin-top: 1rem;
}

code {
  background: #f2e6d4;
  border-radius: 10px;
  display: inline-block;
  padding: 0.4rem 0.6rem;
}

@media (max-width: 520px) {
  .actions {
    grid-template-columns: 1fr;
  }
}
