:root {
  color-scheme: light;
  --bg: #eff4ff;
  --card: #ffffff;
  --text: #3d3d3d;
  --muted: #8b8b8b;
  --accent: #406bd5;
  --border: #d8d8d8;
  --radius: 16px;
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.brand {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}

h1 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.3;
}

.lead,
.hint,
.footnote,
.status,
.label {
  margin: 0;
  line-height: 1.6;
}

.lead {
  margin-bottom: 24px;
  color: var(--text);
}

.hint,
.footnote,
.status,
.label {
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.code {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.status {
  margin-top: 12px;
}

.actions {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.button {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

/* ストアバッジは必ず縦1列・同じ枠サイズ（素材差で見た目がズレないようにする） */
.store-badges {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  justify-items: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 168px;
  height: 50px;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: 168px;
  height: 50px;
  object-fit: contain;
  object-position: center;
}

.button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}
