/* Page composition only. Brand, motion, layers and action styles: welcome.css. */
:root {
  --redeem-width: 430px;
  --redeem-radius: 22px;
  --redeem-body: 13px;
  --redeem-caption: 11px;
  --redeem-error: #a34350;
}
body { overflow: auto; }
[hidden] { display: none !important; }
.redeem-app { min-height: 100dvh; background-attachment: fixed; }
.redeem-app > #ether, .redeem-app > .atmosphere, .redeem-app > .focus-halo,
.redeem-app > .stream, .redeem-app > .grain { position: fixed; }
.redeem-stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4svh, 42px);
  padding: calc(var(--safe-top) + 64px) max(20px, env(safe-area-inset-right)) var(--safe-bottom) max(20px, env(safe-area-inset-left));
}
.redeem-stage .hero { flex: none; transform: none; }
.flow { width: min(100%, var(--redeem-width)); }
.progress { display: flex; align-items: flex-start; justify-content: center; gap: 12px; margin-bottom: 22px; }
.dot-step { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.dot-step b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-weight: 630; }
.dot-step.current { color: var(--blue-deep); }
.dot-step.current b { background: var(--blue); color: white; border-color: var(--blue); }
.dot-step.done { color: var(--blue); }
.dot-step.done b { background: var(--blue-soft); }
.bar { height: 1px; width: clamp(18px, 6vw, 34px); margin-top: 12px; background: var(--line); }
.bar.active { background: var(--blue); }
.panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--redeem-radius); box-shadow: 0 18px 60px rgba(47, 95, 155, .08); backdrop-filter: blur(16px) saturate(115%); }
.eyebrow { margin: 0 0 12px; font-size: 9px; font-weight: 630; letter-spacing: .17em; color: var(--muted); }
h2 { margin: 0 0 8px; color: var(--text-strong); font-size: 24px; font-weight: 590; letter-spacing: -.04em; line-height: 1.35; }
h2:focus { outline: none; }
.desc, .helper, .notice, .guide, .checkrow, .privacy-note { font-size: var(--redeem-body); line-height: 1.8; }
.desc { margin: 0 0 22px; color: var(--muted); }
.label { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 630; }
.code-input { width: 100%; height: 52px; }
.helper { margin: 10px 0 20px; color: var(--muted); font-size: var(--redeem-caption); }
.notice { margin: 20px 0 16px; padding: 14px 16px; border-radius: 12px; background: rgba(220, 236, 255, .36); font-size: var(--redeem-caption); color: var(--muted); }
.notice strong { color: var(--text); font-weight: 630; }
.notice p { margin: 4px 0 0; }
.checkrow { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 20px; color: var(--muted); font-size: var(--redeem-caption); cursor: pointer; }
.checkrow input { width: 16px; height: 16px; flex: none; margin: 3px 0 0; accent-color: var(--blue); }
.feedback { color: var(--redeem-error); font-size: 12px; line-height: 1.7; margin: 12px 0; }
.feedback:empty { display: none; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 128px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; background: rgba(255, 255, 255, .52); cursor: pointer; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue); background: var(--surface-strong); }
.dropzone:focus-within { outline: 3px solid rgba(55, 126, 226, .22); outline-offset: 3px; }
.upload-icon { width: 26px; height: 26px; color: var(--blue); stroke-width: 1.2; }
.dropzone strong { font-size: 12px; font-weight: 590; }
.dropzone span { font-size: var(--redeem-caption); color: var(--muted); }
.dropzone img { max-width: 100%; max-height: 144px; object-fit: contain; border-radius: 6px; }
.dropzone.selected .upload-icon { display: none; }
.privacy-note { color: var(--muted); font-size: 10px; margin: 12px 0 20px; }
.back { display: block; min-height: 44px; width: 100%; margin-top: 10px; color: var(--muted); background: none; cursor: pointer; font-size: var(--redeem-caption); }
.back:hover { color: var(--blue); }
.back:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
button:disabled { opacity: .58; cursor: wait; }
.footer { margin: 20px 0 0; text-align: center; font-size: 10px; color: var(--muted); letter-spacing: .035em; line-height: 1.6; }
.result { text-align: center; }
.success-mark { display: block; width: 44px; height: 44px; margin: 20px auto; color: var(--blue); stroke-width: 1.2; }
.card-code { margin: 20px 0 12px; padding: 20px 12px; background: rgba(220, 236, 255, .36); border: 1px solid var(--line); border-radius: 12px; font-size: 17px; font-weight: 590; line-height: 1.8; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
/* Reference-card composition. The Welcome shell and shared actions stay above. */
.panel--form {
  --card-inset-inline: clamp(20px, 4vw, 38px);
  --card-inset-top: 30px;
  --card-section-gap: 24px;
  --card-muted: #7a91ad;
  --card-label: #365e91;
  --card-meta: #86a2c3;
  --card-info-surface: rgba(238, 245, 255, .72);
  --card-info-border: #e3eeff;
  --card-title-size: 27px;
  --card-step-size: 26px;
  --card-step-gap: 14px;
  padding: var(--card-inset-top) var(--card-inset-inline) 30px;
}
.panel--form .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel--form .eyebrow { margin: 0; font-size: 10px; font-weight: 750; color: var(--card-meta); }
.step-count { flex: none; font-size: 11px; color: var(--card-meta); font-variant-numeric: tabular-nums; }
.panel--form h2 { margin: 0 0 8px; font-size: var(--card-title-size); line-height: 1.32; font-weight: 720; letter-spacing: -.045em; }
.panel--form .desc { margin: 0 0 var(--card-section-gap); color: var(--card-muted); }
.panel--form .label { margin-bottom: 10px; font-weight: 650; color: var(--card-label); }
.code-entry { position: relative; }
.code-entry > svg { position: absolute; z-index: 1; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--card-meta); stroke-width: 1.6; pointer-events: none; }
.panel--form .code-input { height: 54px; padding-left: 46px; background: var(--surface-strong); font-size: 13px; font-weight: 450; letter-spacing: .015em; }
.panel--form .code-input:focus { background: #fff; }
.panel--form .helper { margin: 9px 0 20px; color: var(--card-muted); }
.panel--form .notice { margin: 18px 0; padding: 12px 14px; border: 1px solid var(--card-info-border); border-radius: 12px; background: var(--card-info-surface); color: var(--card-muted); font-size: var(--redeem-caption); line-height: 1.75; }
.panel--form .notice p { margin: 0; }
.panel--form .notice strong { color: var(--card-label); font-weight: 650; }
.panel--form .checkrow { align-items: flex-start; min-height: 44px; margin-bottom: 20px; color: var(--card-muted); }
.panel--form .checkrow input { margin: 3px 0 0; }
.guide-steps { display: grid; gap: var(--card-step-gap); margin: 0 0 20px; padding: 0; list-style: none; }
.guide-step { display: grid; grid-template-columns: var(--card-step-size) minmax(0, 1fr); gap: 10px; align-items: start; }
.guide-step .number { display: grid; place-items: center; width: var(--card-step-size); height: var(--card-step-size); border: 1px solid var(--card-info-border); border-radius: 8px; color: var(--blue); background: var(--card-info-surface); font-size: 11px; font-weight: 650; }
.guide-step b { display: block; color: var(--card-label); font-size: 12px; line-height: 1.6; font-weight: 650; }
.guide-step p { margin: 0; color: var(--card-muted); font-size: var(--redeem-caption); line-height: 1.6; }
.panel--form .screenshot-requirements { margin: 20px 0; }
.panel--form .dropzone { min-height: 110px; gap: 8px; padding: 16px; background: rgba(247, 251, 255, .65); }
.panel--form .upload-icon { width: 24px; height: 24px; }
.panel--form .privacy-note { margin: 10px 0 14px; }
@media (max-width: 719px) {
  .redeem-stage { justify-content: flex-start; gap: 22px; padding-top: calc(var(--safe-top) + 48px); }
  .redeem-stage .wind-mark { margin-bottom: 24px; }
  .panel { padding: 20px; }
  .progress { margin-bottom: 18px; }
  .footer { margin-top: 16px; }
  .code-input { font-size: 16px; letter-spacing: .01em; }
  .panel--form { --card-inset-top: 24px; --card-title-size: 24px; padding: var(--card-inset-top) var(--card-inset-inline) 24px; }
  .panel--form .panel-head { gap: 8px; }
  .panel--form .eyebrow { font-size: 9px; letter-spacing: .14em; }
  .step-count { font-size: 10px; }
  .panel--form .code-input { font-size: 16px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .redeem-stage { justify-content: flex-start; }
  .redeem-stage .wind-mark { width: 70px; margin-bottom: 22px; }
}
