/* ==========================================================================
   redeem.css — 兑换页
   ========================================================================== */

body.redeem-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8f4ed 0%, #f5f0e8 100%);
}

.redeem {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.redeem__brand {
  align-self: flex-start;
}

.redeem__card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 6vw, 40px);
  box-shadow: var(--shadow-2);
  animation: redeem-in 0.6s var(--ease) both;
}

.redeem__card[hidden] {
  display: none;
}

@keyframes redeem-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.redeem__title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.redeem__sub {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-mute);
}

.redeem__form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.redeem__input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
  font-family: "SF Mono", Consolas, var(--font-sans);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.redeem__input::placeholder {
  color: #b3aa9d;
  letter-spacing: 0.12em;
}

.redeem__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(142, 75, 65, 0.1);
}

.redeem__btn {
  width: 100%;
}

.redeem__msg {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.redeem__transfer {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.redeem__transfer[hidden] {
  display: none !important;
}

.redeem__transfer-tip {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.redeem__transfer .redeem__input {
  letter-spacing: 0.28em;
  text-align: center;
}

.redeem__msg.is-error {
  color: #a2453a;
}

.redeem__msg.is-ok {
  color: var(--ok);
}

.redeem__link {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed rgba(22, 19, 15, 0.2);
  border-radius: var(--r-md);
  background: var(--paper-2);
  word-break: break-all;
}

.redeem__link code {
  font-family: "SF Mono", Consolas, var(--font-sans);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.redeem__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.redeem__actions .btn {
  flex: 1;
  min-width: 140px;
}

.redeem__note {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--ink-mute);
}

.redeem__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.redeem__foot a {
  border-bottom: 1px solid transparent;
}

.redeem__foot a:hover {
  border-bottom-color: currentColor;
}

@media (max-width: 420px) {
  .redeem {
    justify-content: flex-start;
    padding-top: 20px;
  }
}
