:root {
  color-scheme: light dark;
  --page: #eff2f8;
  --panel: #fff;
  --text: #151b27;
  --muted: #4b586d;
  --border: #dce3ee;
  --accent: #0755ba;
  --accent-fill: #066ad8;
  --subtle: #eaf1fe;
  --surface: #f6f8fc;
  --shadow: 0 12px 34px #1935580b;
  --error-text: #9a2339;
  --error-surface: #fff0f3;
  font: 16px/1.6 system-ui, "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #111620; --panel: #1b2230; --text: #f0f5ff; --muted: #bcc9dc; --border: #364255; --accent: #a2c7ff; --accent-fill: #1765de; --subtle: #223754; --surface: #161d29; --shadow: 0 12px 34px #0002; --error-text: #ffc1cb; --error-surface: #3d2635; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--text); }
.site-header { background: var(--panel); border-bottom: 1px solid var(--border); }
.wrap { width: min(100% - 32px, 1040px); margin: auto; }
.bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
a { color: var(--accent); text-underline-offset: 3px; }
.brand { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img, .hero-art { display: block; object-fit: contain; }
.back { font-size: .9rem; font-weight: 700; text-decoration: none; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 200px; padding: 20px clamp(0px, 3vw, 28px) 22px 0; }
.hero-art { width: clamp(84px, 20vw, 180px); height: auto; aspect-ratio: 1; flex: none; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 800; margin-bottom: 8px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; margin: 0; line-height: 1.22; }
h2 { margin: 0 0 14px; font-size: 1.2rem; line-height: 1.35; }
p { margin: 8px 0 0; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 48px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 22px; padding: 5px; border-radius: 12px; background: var(--surface); list-style: none; }
.steps li { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 3px; min-width: 0; color: var(--muted); font-size: clamp(.73rem, 2.4vw, .9rem); font-weight: 650; border-radius: 8px; }
.steps li span { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--subtle); font-size: .75rem; }
.steps li[aria-current] { color: var(--accent); background: var(--subtle); }
.steps li[aria-current] span { background: var(--accent-fill); color: #fff; }
label { display: block; margin: 14px 0 5px; font-weight: 650; }
input, textarea, button { font: inherit; }
input:not([type=checkbox]), textarea {
  width: 100%; padding: 10px 12px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; min-height: 46px;
}
.card-field { position: relative; }
.card-field input { padding-inline-end: 74px; }
.field-action { position: absolute; inset: 3px 3px 3px auto; min-height: 38px; padding: 4px 11px; background: transparent; color: var(--accent); }
textarea { resize: vertical; min-height: 92px; margin-top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint, .check { font-size: .9rem; }
.field-note { margin-top: 5px; }
[aria-invalid="true"] { border-color: var(--error-text) !important; }
[aria-invalid="true"] ~ .field-note { color: var(--error-text); }
.check { display: flex; align-items: start; gap: 8px; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.check input { width: 17px; height: 17px; flex: none; accent-color: var(--accent-fill); }
button { min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; background: var(--accent-fill); color: white; }
button:disabled { opacity: .65; cursor: wait; }
.secondary { background: var(--panel); border-color: var(--border); color: var(--accent); }
.actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.feedback, .account { overflow-wrap: anywhere; border-radius: 10px; padding: 10px 12px; background: var(--subtle); color: var(--text); }
.feedback.error { color: var(--error-text); background: var(--error-surface); }
.account { padding: 16px; }
.account span { display: block; color: var(--muted); font-size: .88rem; }
.account strong { display: block; margin-top: 5px; font-size: clamp(1rem, 3vw, 1.3rem); }
#review-button, #new-redemption { margin-top: 16px; }
.help { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 20px; }
@media (max-width: 720px) {
  .intro { min-height: 152px; }
  .intro p:not(.eyebrow) { font-size: .9rem; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  #review-button, #submit { width: 100%; }
}
