:root {
  --ink: #020a0f;
  --panel: rgba(3, 18, 26, 0.86);
  --line: rgba(129, 185, 202, 0.24);
  --line-strong: rgba(140, 216, 230, 0.48);
  --muted: #95a9b1;
  --text: #f4f8f8;
  --accent: #00f0a8;
  --accent-strong: #00ffb2;
  --danger: #ff7f6f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

.exchange-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: max(22px, env(safe-area-inset-top)) clamp(24px, 5vw, 84px)
    max(24px, env(safe-area-inset-bottom));
  isolation: isolate;
}

.exchange-page::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #031018 url("/assets/code-exchange-hero-clean.png") center / cover no-repeat;
  content: "";
  transform: scale(1.01);
}

.exchange-page::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 12, 18, 0.99) 0%,
      rgba(2, 13, 19, 0.97) 29%,
      rgba(2, 13, 19, 0.9) 43%,
      rgba(2, 13, 19, 0.58) 54%,
      rgba(2, 13, 19, 0.08) 74%
    ),
    linear-gradient(180deg, rgba(0, 8, 13, 0.18), rgba(0, 8, 13, 0.42));
  content: "";
}

.site-header {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  height: 56px;
}

.brand-frame {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  overflow: visible;
}

.brand-symbol {
  position: relative;
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 39px;
  overflow: hidden;
}

.merchant-logo {
  position: absolute;
  top: 0;
  left: 50%;
  width: 78px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.brand-name {
  color: #f6f8f7;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
  white-space: nowrap;
}

.redeem-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 560px);
  min-height: calc(100svh - 112px);
  padding: 32px 0 56px;
}

.hero-copy {
  margin-bottom: 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #8aa7b0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 240, 168, 0.6);
}

.title-lockup {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.title-lockup h1 {
  margin: 0;
  color: #f3f5f2;
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: clamp(56px, 5.25vw, 88px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.98;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.46);
}

.code-mark {
  margin: 0 0 -7px -2px;
  color: var(--accent-strong);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(30px, 3.2vw, 52px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(0, 255, 178, 0.24);
  transform: rotate(-7deg);
}

.intro {
  max-width: 520px;
  margin: 24px 0 0;
  color: #a8bac0;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.035em;
}

.exchange-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(9, 35, 44, 0.5), transparent 42%),
    var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.exchange-form::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.02);
  pointer-events: none;
  content: "";
}

.form-corner {
  position: absolute;
  width: 23px;
  height: 23px;
  border-color: var(--accent);
  pointer-events: none;
}

.form-corner--top {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.form-corner--bottom {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: #d8e5e7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.field-group label span {
  margin-left: 8px;
  color: #5e7b83;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.input-frame {
  position: relative;
}

.field-index {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: #48636a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  transform: translateY(-50%);
}

.exchange-form input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 18px 0 52px;
  border: 1px solid rgba(133, 183, 195, 0.3);
  border-radius: 0;
  outline: 0;
  color: #f2f8f8;
  background: rgba(0, 9, 14, 0.74);
  caret-color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.03em;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.exchange-form input::placeholder {
  color: #60757b;
  opacity: 1;
}

.exchange-form input:hover {
  border-color: rgba(153, 215, 225, 0.48);
}

.exchange-form input:focus-visible {
  border-color: var(--accent);
  background: rgba(0, 16, 21, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 240, 168, 0.22), 0 0 24px rgba(0, 240, 168, 0.08);
}

.exchange-form button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 2px;
  padding: 12px 24px;
  overflow: hidden;
  border: 1px solid #15ffc0;
  border-radius: 0;
  outline: 0;
  color: #001910;
  background: linear-gradient(100deg, #00d796, #17ffc1 54%, #00e3a1);
  box-shadow: 0 9px 30px rgba(0, 240, 168, 0.2);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: filter 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.exchange-form button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 25%, rgba(255, 255, 255, 0.3) 47%, transparent 69%);
  content: "";
  transform: translateX(-110%);
  transition: transform 420ms ease;
}

.exchange-form button:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(0, 240, 168, 0.3);
}

.exchange-form button:hover::before {
  transform: translateX(110%);
}

.exchange-form button:active {
  transform: translateY(1px);
}

.exchange-form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.exchange-form button:disabled {
  cursor: wait;
  filter: saturate(0.65) brightness(0.78);
}

.button-arrow {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.form-status {
  display: flex;
  align-items: flex-start;
  min-height: 20px;
  margin-top: -5px;
  color: #7f979e;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.status-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: #587078;
  box-shadow: 0 0 0 3px rgba(88, 112, 120, 0.12);
}

.form-status[data-kind="error"] {
  color: #ff9a8e;
}

.form-status[data-kind="error"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 127, 111, 0.14);
}

.form-status[data-kind="success"] {
  color: #86d9c1;
}

.form-status[data-kind="success"] .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 240, 168, 0.14);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  color: #688087;
  font-size: 11px;
  line-height: 1.5;
}

.shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid #4f6d74;
  color: #80a3a8;
  font-size: 9px;
  line-height: 1;
  clip-path: polygon(50% 0, 94% 18%, 86% 74%, 50% 100%, 14% 74%, 6% 18%);
}

.acceleration-panel[hidden] {
  display: none;
}

.acceleration-panel {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 240, 168, 0.09), transparent 34%),
    rgba(3, 18, 26, 0.94);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  scroll-margin-top: 24px;
}

.acceleration-panel::before,
.acceleration-panel::after {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent);
  pointer-events: none;
  content: "";
}

.acceleration-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.acceleration-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.acceleration-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.acceleration-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.acceleration-summary h2 {
  margin: 0;
  color: #f4f8f8;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.acceleration-summary h2:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.acceleration-intro {
  margin: 9px 0 0;
  color: #8ea5ac;
  font-size: 12px;
  line-height: 1.65;
}

.arrival-estimate {
  min-width: 122px;
  padding: 12px 15px;
  border-left: 1px solid rgba(0, 240, 168, 0.45);
  background: rgba(0, 10, 15, 0.48);
}

.arrival-estimate > span {
  color: #759097;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.arrival-estimate p {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 4px 0 0;
}

.arrival-estimate strong {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 40px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 255, 178, 0.22);
}

.arrival-estimate p span {
  color: #d7e4e6;
  font-size: 13px;
  font-weight: 700;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(133, 183, 195, 0.24);
  background: rgba(0, 9, 14, 0.66);
  transition: border-color 160ms ease, opacity 160ms ease;
}

.task-card[data-completed="true"] {
  border-color: rgba(0, 240, 168, 0.48);
  background: rgba(0, 34, 28, 0.54);
}

.task-card[aria-busy="true"] {
  border-color: rgba(0, 240, 168, 0.4);
}

.task-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.task-number {
  color: #4b6870;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.task-card h3 {
  margin: 0;
  color: #edf5f5;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.task-card__head p {
  margin: 7px 0 0;
  color: #779097;
  font-size: 11px;
  line-height: 1.65;
}

.task-benefit {
  margin: 16px 0 0;
  color: #8ea8ae;
  font-size: 11px;
}

.task-benefit strong {
  margin-left: 4px;
  color: var(--accent);
  font-size: 14px;
}

.task-status {
  min-height: 19px;
  margin: 8px 0 14px;
  color: #8fa4aa;
  font-size: 11px;
  line-height: 1.55;
}

.task-status[data-kind="completed"] {
  color: #76e0c0;
}

.task-status[data-kind="uploading"] {
  color: #d6e7e8;
}

.task-status[data-kind="error"] {
  color: #ff9a8e;
}

.task-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 9px;
  margin-top: auto;
}

.task-tutorial,
.task-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 0;
  outline: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
}

.task-tutorial {
  border: 1px solid rgba(134, 194, 207, 0.4);
  color: #bdd0d4;
  background: rgba(4, 24, 31, 0.78);
}

.task-upload {
  border: 1px solid #15ffc0;
  color: #001910;
  background: linear-gradient(100deg, #00d796, #17ffc1 54%, #00e3a1);
}

.task-tutorial:hover,
.task-upload:hover {
  filter: brightness(1.08);
}

.task-tutorial:focus-visible,
.task-upload:focus-within,
.task-upload-input:focus-visible + .task-upload {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.task-upload[data-disabled="true"] {
  border-color: rgba(130, 166, 174, 0.24);
  color: #71868b;
  background: rgba(24, 42, 47, 0.72);
  cursor: not-allowed;
  filter: none;
}

.task-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.task-note {
  margin: -4px 0 0;
  color: #627b82;
  font-size: 10px;
  line-height: 1.6;
}

.result-dialog {
  width: min(calc(100% - 32px), 480px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(81, 229, 195, 0.5);
  border-radius: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.78), 0 0 42px rgba(0, 240, 168, 0.1);
}

.result-dialog::backdrop {
  background: rgba(0, 7, 11, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.result-dialog[open] {
  animation: dialog-enter 180ms ease-out;
}

.dialog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 34px);
  padding: 34px 32px 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 240, 168, 0.1), transparent 42%),
    #06151c;
}

.dialog-card::before,
.dialog-card::after {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--accent);
  pointer-events: none;
  content: "";
}

.dialog-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.dialog-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.dialog-card[data-kind="error"] {
  background:
    linear-gradient(135deg, rgba(255, 127, 111, 0.09), transparent 42%),
    #06151c;
}

.dialog-card[data-kind="error"]::before,
.dialog-card[data-kind="error"]::after {
  border-color: var(--danger);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #8ca2a9;
  background: transparent;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  color: #fff;
}

.dialog-kicker {
  margin: 0 42px 9px 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.dialog-card[data-kind="error"] .dialog-kicker {
  color: var(--danger);
}

.dialog-card h2 {
  margin: 0;
  color: #f4f8f8;
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.dialog-reward {
  margin: 22px 0 4px;
  color: var(--accent-strong);
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: clamp(31px, 9vw, 46px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-shadow: 0 0 24px rgba(0, 255, 178, 0.25);
}

.dialog-message {
  max-height: min(42dvh, 350px);
  margin: 20px 0 0;
  padding-right: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #b3c4c9;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
  scrollbar-color: rgba(0, 240, 168, 0.42) rgba(5, 25, 32, 0.5);
  scrollbar-width: thin;
}

.dialog-card[data-kind="success"] .dialog-message {
  margin-top: 14px;
}

.dialog-card[data-kind="library"] .dialog-message {
  padding: 14px 16px;
  border: 1px solid rgba(129, 185, 202, 0.24);
  color: #d9e8e9;
  background: rgba(0, 8, 12, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.9;
  user-select: text;
}

.dialog-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 26px;
  padding: 10px 20px;
  border: 1px solid #15ffc0;
  border-radius: 0;
  outline: 0;
  color: #001910;
  background: linear-gradient(100deg, #00d796, #17ffc1 54%, #00e3a1);
  box-shadow: 0 9px 26px rgba(0, 240, 168, 0.16);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.dialog-close:focus-visible,
.dialog-confirm:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .exchange-page::after {
    background:
      linear-gradient(90deg, rgba(2, 12, 18, 0.99) 0%, rgba(2, 12, 18, 0.92) 55%, rgba(2, 12, 18, 0.3) 100%),
      linear-gradient(180deg, rgba(0, 8, 13, 0.1), rgba(0, 8, 13, 0.45));
  }
}

@media (max-width: 720px) {
  .exchange-page {
    min-height: 100svh;
    padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    overflow: clip;
  }

  .exchange-page::before {
    background-position: 100% top;
    background-size: auto clamp(315px, 44svh, 410px);
    transform: none;
  }

  .exchange-page::after {
    background:
      linear-gradient(180deg, rgba(1, 10, 15, 0.2) 0, rgba(1, 10, 15, 0.14) 18svh, #020b10 42svh, #020b10 100%),
      linear-gradient(90deg, rgba(2, 12, 18, 0.96) 0%, rgba(2, 12, 18, 0.58) 28%, rgba(2, 12, 18, 0.04) 68%);
  }

  .site-header {
    width: 100%;
    height: 42px;
  }

  .brand-frame {
    gap: 8px;
    height: 40px;
  }

  .brand-symbol {
    flex-basis: 38px;
    width: 38px;
    height: 34px;
  }

  .merchant-logo {
    width: 68px;
  }

  .brand-name {
    font-size: 15px;
  }

  .redeem-shell {
    justify-content: flex-start;
    width: 100%;
    min-height: auto;
    padding: clamp(220px, 34svh, 306px) 0 20px;
  }

  .hero-copy {
    margin-bottom: 22px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .title-lockup {
    gap: 10px;
  }

  .title-lockup h1 {
    font-size: clamp(42px, 12vw, 54px);
  }

  .code-mark {
    margin-bottom: -3px;
    font-size: clamp(27px, 8vw, 36px);
  }

  .intro {
    margin-top: 17px;
    font-size: 13px;
    line-height: 1.75;
  }

  .desktop-break {
    display: none;
  }

  .exchange-form {
    gap: 16px;
    padding: 20px 16px 18px;
    background: rgba(3, 17, 24, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .exchange-form input,
  .exchange-form button {
    min-height: 54px;
    font-size: 16px;
  }

  .exchange-form input {
    height: 54px;
  }

  .privacy-note {
    margin-top: 13px;
  }

  .acceleration-panel {
    gap: 19px;
    margin-top: 26px;
    padding: 20px 16px;
  }

  .acceleration-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .acceleration-summary h2 {
    font-size: 21px;
  }

  .arrival-estimate {
    min-width: 105px;
    padding: 10px 12px;
  }

  .arrival-estimate strong {
    font-size: 34px;
  }

  .task-grid {
    grid-template-columns: 1fr;
  }

  .result-dialog {
    width: min(calc(100% - 24px), 480px);
    max-height: calc(100dvh - 24px);
  }

  .dialog-card {
    max-height: calc(100dvh - 26px);
    padding: 30px 22px 24px;
  }

  .dialog-message {
    max-height: min(45dvh, 330px);
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .redeem-shell {
    padding-top: clamp(205px, 31svh, 258px);
  }

  .title-lockup h1 {
    font-size: 40px;
  }

  .code-mark {
    font-size: 27px;
  }

  .intro {
    font-size: 12px;
  }

  .acceleration-summary {
    grid-template-columns: 1fr;
  }

  .arrival-estimate {
    width: 100%;
  }

  .task-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exchange-form button,
  .exchange-form button::before,
  .exchange-form input {
    transition: none;
  }

  .result-dialog[open] {
    animation: none;
  }
}
