:root {
  color-scheme: light dark;
  --bg: #f5f2eb;
  --surface: #ece7dc;
  --card: #ffffff;
  --border: #e6e0d4;
  --text: #161b19;
  --muted: #59635e;
  --accent: #1b6b58;
  --accent-soft: #e3f0eb;
  --hero-bg: #144f41;
  --hero-text: #f7f5f0;
  --hero-muted: #b8d8ce;
  --gold: #c59b3e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b100e;
    --surface: #121a17;
    --card: #151e1b;
    --border: #24322d;
    --text: #eef2f0;
    --muted: #95a39d;
    --accent: #4fb89b;
    --accent-soft: #16332b;
    --hero-bg: #112a23;
    --hero-text: #f2f6f4;
    --hero-muted: #9bc2b6;
    --gold: #dfbc69;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 48px;
}
main {
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
main.narrow { width: min(100%, 440px); }
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  border-radius: 22px;
  padding: 28px 24px;
}
.hero h1 {
  color: var(--hero-text);
  font-size: 36px;
  line-height: 1.15;
  margin: 14px 0 8px;
  letter-spacing: -0.02em;
}
.hero p { color: var(--hero-muted); margin: 0; font-size: 17px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}
.card h2 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.card p, .card li { color: var(--muted); margin: 0 0 10px; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 20px; margin: 8px 0 12px; }
h1 { font-size: 32px; line-height: 1.2; margin: 12px 0 6px; letter-spacing: -0.02em; }
.mark { display: flex; gap: 8px; margin: 0; align-items: center; }
.mark span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.hero .mark span { border-color: var(--hero-muted); }
.mark .gold { background: var(--gold); border: 0; width: 18px; height: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.hero .pill { background: rgba(255, 255, 255, 0.12); color: var(--hero-text); }
#status { color: var(--muted); margin: 0; }
.code {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  background: var(--surface);
  color: var(--accent);
  border-radius: 16px;
  padding: 18px;
  margin: 14px 0 0;
}
.actions { display: grid; gap: 10px; margin-top: 16px; }
a.btn {
  display: block;
  min-height: 50px;
  border-radius: 14px;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  font-weight: 600;
  padding: 0 16px;
}
.primary { background: var(--accent); color: #ffffff; }
.secondary { border: 1.5px solid var(--border); background: var(--card); color: var(--text); }
a.inline { color: var(--accent); text-decoration: none; font-weight: 600; }
a.inline:hover { text-decoration: underline; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 4px;
}
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
footer {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  .primary { color: #0b100e; }
}
