:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #191f28;
  --muted: #6b7684;
  --accent: #4e74c8;
  --accent-hover: #3f63b5;
  --surface: #f1f4f9;
  --border: rgba(25, 31, 40, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111419;
    --card: #1b2029;
    --text: #f3f5f8;
    --muted: #9aa4b2;
    --accent: #6c8fe0;
    --accent-hover: #5c80d6;
    --surface: #252c38;
    --border: rgba(255, 255, 255, 0.08);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.code-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.code-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.code-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  margin-bottom: 10px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  margin-bottom: 16px;
}
.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.store-link {
  display: block;
  padding: 11px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.hint {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.legal-links a:hover {
  color: var(--text);
}
.hidden { display: none; }
