:root {
  color-scheme: dark;
  --background: #171310;
  --surface: #211b18;
  --surface-raised: #302722;
  --text: #fff8f2;
  --muted: #c9b9ae;
  --accent: #f3a85d;
  --accent-text: #2a1607;
  --danger: #ffb4ab;
  --border: #594940;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(243, 168, 93, 0.18), transparent 42%),
    var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card {
  width: min(100%, 460px);
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.mark { font-size: 52px; line-height: 1; }
.eyebrow { margin: 18px 0 8px; color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 8vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.detail { margin: 18px auto 26px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.detail.error { color: var(--danger); }

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
}

.button:hover { filter: brightness(1.06); }
.button:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.button[hidden] { display: none; }
.help { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #fff8f2;
    --surface: #fffdfb;
    --surface-raised: #f5eae2;
    --text: #291d18;
    --muted: #705f55;
    --accent: #a94f00;
    --accent-text: #ffffff;
    --danger: #a83832;
    --border: #ddcdc3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter 140ms ease, transform 140ms ease; }
  .button:active { transform: scale(0.98); }
}
