:root { --bg: #FCF0F3; --card: #FFF9FA; --ink: #3D2A3A; --soft: #7A6474; --line: #F6E3E9; --from: #FB76B0; --to: #DE3F87; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  -webkit-text-size-adjust: 100%;
}
main { width: 100%; max-width: 420px; text-align: center; }
.mark { font-size: 34px; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 20px; color: var(--ink); }
h1 { font-size: 24px; line-height: 1.4; margin: 0 0 8px; text-wrap: balance; }
p { font-size: 16px; line-height: 1.7; margin: 0; color: var(--soft); text-wrap: pretty; }
.card { background: var(--card); border-radius: 28px; padding: 24px 20px; margin: 28px 0 20px; box-shadow: 0 10px 30px rgba(61, 42, 58, 0.08); }
.label { font-size: 13px; color: var(--soft); margin-bottom: 6px; }
.code { color: var(--ink); font-size: 40px; font-weight: 700; letter-spacing: 0.18em; padding-left: 0.18em; margin: 0; user-select: all; -webkit-user-select: all; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 12px 24px;
  border: 0; border-radius: 999px; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.primary { color: #fff; background: linear-gradient(90deg, var(--from), var(--to)); box-shadow: 0 10px 24px rgba(222, 63, 135, 0.28); }
.btn.second { margin-top: 16px; color: var(--ink); background: var(--card); box-shadow: 0 4px 14px rgba(61, 42, 58, 0.08); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid #CFBDFA; outline-offset: 3px; }
ol { text-align: left; margin: 16px 0 0; padding: 0 0 0 1.4em; color: var(--soft); font-size: 15px; line-height: 1.8; }
.note { margin-top: 12px; font-size: 14px; min-height: 1.7em; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
