:root {
  --green: #06c755;
  --green-dark: #05a647;
  --text: #1f2328;
  --muted: #5f6b76;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #d9dee3;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #e8ecef; --muted: #a3adb6; --bg: #111417; --card: #1b1f23; --line: #2c3238; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.card.wide { max-width: 640px; text-align: left; }
section { display: flex; flex-direction: column; align-items: center; gap: 14px; }
section[hidden] { display: none; }
p { margin: 0; }
.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { background: var(--green-dark); }
.btn.secondary { background: transparent; color: var(--green); border: 2px solid var(--green); }
.link { color: var(--muted); font-size: 14px; }
.qr { width: 240px; height: 240px; background: #fff; border-radius: 8px; }
.spinner {
  width: 36px; height: 36px;
  border: 4px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
h1 { font-size: 20px; margin: 0 0 8px; }
.note { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.links code { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); word-break: break-all; }
