/* Yellow's shield look: marigold ground, ink type. One look in both themes,
   like the app's lock screen. */
:root {
  --marigold: #FFC824;
  --ink: #1D1B14;
  --ink-soft: rgba(29, 27, 20, 0.72);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--marigold);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 30rem;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}

.hero { display: flex; flex-direction: column; gap: 16px; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 10vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; color: var(--ink-soft); max-width: 34ch; }

.actions { display: flex; flex-direction: column; gap: 12px; }
.actions[hidden] { display: none; }

.code-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px;
  margin-bottom: 8px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  transform: rotate(-1deg);
}
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.code {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.hint { font-size: 14px; color: var(--ink-soft); }

.button {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--marigold);
}
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button[hidden] { display: none; }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.fine { font-size: 14px; text-align: center; max-width: none; }
