: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,
select {
  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 {
  flex: 0 0 auto;
  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;
  white-space: nowrap;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.46);
}

.code-mark {
  flex: 0 0 auto;
  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);
}

.uid-query-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(133, 183, 195, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 240, 168, 0.07), transparent 46%),
    rgba(3, 18, 26, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.uid-query-heading {
  display: grid;
  gap: 5px;
}

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

.uid-query-heading h2 {
  margin: 0;
  color: #eef6f5;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.uid-query-heading > p:last-child {
  margin: 0;
  color: #829aa1;
  font-size: 12px;
  line-height: 1.65;
}

.uid-query-form {
  display: grid;
  gap: 10px;
}

.uid-query-form > label {
  color: #d8e5e7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.uid-query-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 10px;
}

.uid-query-controls input,
.uid-query-controls button {
  width: 100%;
  min-height: 52px;
  border-radius: 0;
  outline: 0;
  font-size: 16px;
}

.uid-query-controls input {
  min-width: 0;
  padding: 0 16px;
  border: 1px solid rgba(133, 183, 195, 0.3);
  color: #f2f8f8;
  background: rgba(0, 9, 14, 0.74);
  caret-color: var(--accent);
}

.uid-query-controls input::placeholder {
  color: #60757b;
  opacity: 1;
}

.uid-query-controls input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 240, 168, 0.22), 0 0 24px rgba(0, 240, 168, 0.08);
}

.uid-query-controls button {
  border: 1px solid var(--accent);
  color: #001910;
  background: linear-gradient(100deg, #00d796, #17ffc1 54%, #00e3a1);
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.uid-query-controls button:hover {
  filter: brightness(1.06);
}

.uid-query-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.uid-query-controls button:disabled {
  cursor: wait;
  filter: saturate(0.65) brightness(0.78);
}

.uid-query-status {
  min-height: 19px;
  margin: 0;
}

.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;
  container-type: inline-size;
  width: 100%;
  gap: 18px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 240, 168, 0.075), transparent 30%),
    rgba(3, 16, 23, 0.97);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.4);
  scroll-margin-top: 24px;
}

@media (min-width: 721px) {
  .acceleration-panel {
    align-self: flex-start;
    width: min(820px, calc(100vw - 48px));
  }
}

.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(180px, 0.72fr) minmax(360px, 1.28fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px 20px;
  border: 1px solid rgba(123, 182, 194, 0.2);
  background:
    linear-gradient(110deg, rgba(0, 240, 168, 0.08), transparent 48%),
    rgba(0, 9, 14, 0.58);
}

.acceleration-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.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: clamp(22px, 3.2cqw, 28px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

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

.acceleration-metrics {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(112px, 0.65fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 168, 0.24);
  background:
    linear-gradient(115deg, rgba(0, 240, 168, 0.1), rgba(0, 10, 15, 0.76) 62%),
    rgba(0, 10, 15, 0.72);
  box-shadow:
    inset 3px 0 0 rgba(0, 240, 168, 0.86),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.acceleration-metrics::before {
  position: absolute;
  top: -1px;
  left: 3px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
}

.summary-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
}

.summary-metric__label {
  color: #759097;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.summary-metric__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0;
}

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

.summary-metric__value span {
  color: #d7e4e6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.reward-total {
  padding-left: 20px;
}

.reward-total .summary-metric__value strong {
  font-size: 34px;
}

.arrival-estimate {
  border-left: 1px solid rgba(123, 182, 194, 0.2);
  background: rgba(0, 14, 20, 0.28);
}

.arrival-estimate .summary-metric__value strong {
  font-size: 44px;
}

.reward-bonus-line {
  width: fit-content;
  max-width: 100%;
  margin: 9px 0 0;
  padding: 7px 0 0;
  border-top: 1px solid rgba(255, 207, 103, 0.28);
  color: #ffe9ae;
  background: none;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.reward-bonus-line[hidden],
.task-card[hidden],
.task-unlock-toast[hidden] {
  display: none;
}

.task-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.task-grid--single .task-card:not([hidden]) {
  grid-column: 1 / -1;
}

@container (min-width: 680px) {
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.task-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 11px;
  border-bottom: 1px solid rgba(126, 180, 193, 0.18);
}

.task-list-heading p {
  margin: 0 0 4px;
  color: #6d9299;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.task-list-heading h3 {
  margin: 0;
  color: #edf6f5;
  font-size: 18px;
  font-weight: 850;
}

.task-list-heading > span {
  color: #6f888e;
  font-size: 11px;
  white-space: nowrap;
}

.task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 290px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(133, 183, 195, 0.25);
  background:
    linear-gradient(145deg, rgba(8, 30, 36, 0.68), rgba(0, 8, 13, 0.88)),
    rgba(0, 9, 14, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.task-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 58px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 240, 168, 0));
  content: "";
}

.task-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.task-card--unlock-reveal {
  animation: task-unlock-reveal 1400ms cubic-bezier(0.18, 0.82, 0.2, 1) both;
}

@keyframes task-unlock-reveal {
  0% {
    opacity: 0.58;
    transform: translateY(24px) scale(0.975);
    border-color: rgba(0, 240, 168, 0.18);
    box-shadow: 0 0 0 rgba(0, 240, 168, 0);
  }
  34% {
    opacity: 1;
    transform: translateY(-5px) scale(1.012);
    border-color: rgba(111, 255, 214, 0.98);
    box-shadow:
      0 0 0 3px rgba(0, 240, 168, 0.13),
      0 0 52px rgba(0, 240, 168, 0.38);
  }
  62% {
    transform: translateY(0) scale(1);
    border-color: rgba(0, 240, 168, 0.54);
    box-shadow: 0 0 18px rgba(0, 240, 168, 0.12);
  }
  82% {
    border-color: rgba(94, 255, 210, 0.9);
    box-shadow:
      0 0 0 2px rgba(0, 240, 168, 0.1),
      0 0 36px rgba(0, 240, 168, 0.24);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    border-color: rgba(0, 240, 168, 0.56);
    box-shadow: 0 0 24px rgba(0, 240, 168, 0.14);
  }
}

.task-card[data-completed="true"],
.reward-track-compact[data-completed="true"] {
  border-color: rgba(0, 240, 168, 0.48);
  background:
    linear-gradient(145deg, rgba(0, 70, 53, 0.34), rgba(0, 15, 17, 0.88)),
    rgba(0, 34, 28, 0.54);
}

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

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

.task-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 240, 168, 0.25);
  color: #6cd8bb;
  background: rgba(0, 240, 168, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.task-card__title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.task-card__title > span {
  color: #5f7e85;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

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

.task-benefit {
  width: fit-content;
  max-width: 100%;
  margin: 15px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(0, 240, 168, 0.18);
  color: #8ea8ae;
  font-size: 11px;
  line-height: 1.55;
  background: rgba(0, 240, 168, 0.045);
}

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

.task-unlock-toast {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(420px, calc(100vw - 28px));
  margin: 0;
  padding: 11px 15px 11px 12px;
  border: 1px solid rgba(83, 255, 207, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(100deg, rgba(0, 240, 168, 0.18), rgba(0, 93, 76, 0.06)),
    rgba(2, 23, 26, 0.96);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(0, 240, 168, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.task-unlock-toast--visible {
  animation: task-unlock-toast-in 240ms ease-out both;
}

.task-unlock-toast--leaving {
  animation: task-unlock-toast-out 360ms ease-in both;
}

.task-unlock-toast__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #03150f;
  background: #60ffd1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 950;
}

.task-unlock-toast strong {
  color: #eafff8;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

@keyframes task-unlock-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes task-unlock-toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.985);
  }
}

.task-status {
  min-height: 38px;
  margin: 14px 0 16px;
  padding: 9px 11px;
  border-left: 2px solid rgba(126, 171, 182, 0.35);
  color: #8fa4aa;
  font-size: 11px;
  line-height: 1.55;
  background: rgba(5, 24, 30, 0.62);
}

.task-status[data-kind="completed"] {
  border-left-color: rgba(0, 240, 168, 0.75);
  color: #76e0c0;
  background: rgba(0, 240, 168, 0.07);
}

.task-status[data-kind="uploading"] {
  border-left-color: rgba(215, 239, 241, 0.52);
  color: #d6e7e8;
}

.task-status[data-kind="error"] {
  border-left-color: rgba(255, 127, 111, 0.76);
  color: #ff9a8e;
  background: rgba(255, 127, 111, 0.07);
}

.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: 48px;
  padding: 9px 10px;
  border-radius: 0;
  outline: 0;
  font-size: 12px;
  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 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 0;
  padding-top: 2px;
  color: #718990;
  font-size: 11px;
  line-height: 1.6;
}

.reward-track-compact[hidden],
.reward-journey[hidden],
.dialog-confirm[hidden] {
  display: none;
}

.reward-track-compact {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 168, 0.34);
  background:
    linear-gradient(112deg, rgba(0, 240, 168, 0.11), transparent 48%),
    rgba(0, 10, 15, 0.72);
}

.reward-track-compact::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  content: "";
}

.reward-track-compact__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.reward-track-compact__header p {
  margin: 0;
  color: #78949a;
  font-size: 11px;
  line-height: 1.45;
}

.reward-track-compact__header > div > p {
  margin-bottom: 3px;
  color: #66d7b6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.reward-track-compact__header h3 {
  margin: 0;
  color: #eef8f6;
  font-size: 17px;
  font-weight: 900;
}

.reward-track-compact__header strong {
  margin: 0 3px;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 23px;
}

.reward-track-compact__status {
  margin: 0;
}

.reward-track-compact__actions {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  margin-top: 0;
}

.reward-track-compact__actions > * {
  width: 100%;
}

.reward-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-track--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reward-day-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 60px auto auto;
  align-content: start;
  min-width: 0;
  min-height: 154px;
  padding: 10px 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(119, 174, 185, 0.23);
  color: #d9e7e7;
  background:
    linear-gradient(155deg, rgba(14, 44, 49, 0.62), rgba(1, 10, 15, 0.9)),
    #031018;
  text-align: center;
  scroll-snap-align: center;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.reward-day-card[data-state="future"] {
  opacity: 0.58;
}

.reward-day-card[data-state="tomorrow"] {
  border-color: rgba(247, 198, 92, 0.52);
  opacity: 0.9;
  background:
    linear-gradient(155deg, rgba(120, 83, 16, 0.2), rgba(1, 10, 15, 0.92)),
    #031018;
  box-shadow: inset 0 0 18px rgba(247, 198, 92, 0.08);
}

.reward-day-card[data-state="complete"] {
  border-color: rgba(0, 240, 168, 0.34);
  background:
    linear-gradient(155deg, rgba(0, 93, 70, 0.24), rgba(1, 10, 15, 0.9)),
    #031018;
}

.reward-day-card[aria-current="step"] {
  z-index: 1;
  border: 2px solid #21ffc3;
  opacity: 1;
  background:
    linear-gradient(155deg, rgba(0, 240, 168, 0.2), rgba(1, 19, 20, 0.94)),
    #031018;
  box-shadow:
    0 0 0 1px rgba(0, 240, 168, 0.12),
    0 0 24px rgba(0, 240, 168, 0.22);
  transform: translateY(-2px);
}

.reward-day-card__day {
  min-height: 18px;
  color: #718f94;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.reward-day-card[aria-current="step"] .reward-day-card__day {
  color: #6effd3;
}

.reward-day-card__current {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 6px;
  color: #001910;
  background: #26ffc4;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.reward-day-card__tomorrow {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 6px;
  color: #251600;
  background: #f7c65c;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.reward-day-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin: 2px auto 5px;
}

.reward-day-card__ticket {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(196, 219, 217, 0.2);
  background: #202223;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.34);
}

.reward-day-card__wangge {
  display: block;
  width: 92px;
  height: 54px;
  object-fit: contain;
  border: 1px solid rgba(244, 196, 105, 0.26);
  background: #151a1e;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(246, 196, 92, 0.12);
}

.reward-day-card__reward {
  min-height: 34px;
  margin: 0;
  color: #eef7f6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.reward-day-card[data-kind="item"] .reward-day-card__reward {
  color: #ffe4a0;
}

.reward-day-card__speed {
  margin: 3px 0 0;
  color: #6ebba5;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
}

.reward-day-card__done {
  position: absolute;
  top: 5px;
  left: 6px;
  color: #4dffca;
  font-size: 12px;
  font-weight: 950;
}

.reward-track-compact__action {
  justify-self: stretch;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 240, 168, 0.62);
  color: #001910;
  background: linear-gradient(100deg, #00d796, #17ffc1);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

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

.reward-track-compact .task-panel-status {
  margin: 0;
}

.task-list-heading[hidden] {
  display: none;
}

.task-preview-banner[hidden],
.test-console[hidden],
.test-console__panel[hidden],
.test-console__exit[hidden] {
  display: none;
}

.task-preview-banner {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 202, 88, 0.58);
  color: #ffe8a9;
  background:
    linear-gradient(100deg, rgba(255, 180, 49, 0.15), rgba(0, 240, 168, 0.08)),
    rgba(0, 10, 15, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.test-console {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.test-console__launcher,
.test-console__panel {
  pointer-events: auto;
}

.test-console__launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 172px;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid rgba(0, 240, 168, 0.72);
  color: #eafbf5;
  background:
    linear-gradient(120deg, rgba(0, 240, 168, 0.17), rgba(0, 240, 168, 0.04)),
    rgba(2, 17, 24, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46), 0 0 24px rgba(0, 240, 168, 0.12);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.test-console__launcher span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  color: #00110c;
  background: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.test-console__panel {
  width: min(340px, calc(100vw - 36px));
  max-height: min(72dvh, 620px);
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(117, 221, 205, 0.48);
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(0, 240, 168, 0.09), transparent 42%),
    rgba(3, 17, 24, 0.985);
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.68);
}

.test-console__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(123, 182, 194, 0.22);
}

.test-console__header p {
  margin: 0 0 5px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.test-console__header h2 {
  margin: 0;
  color: #f4f9f7;
  font-size: 20px;
  line-height: 1.25;
}

.test-console__close {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(124, 177, 190, 0.25);
  color: #9bb2b7;
  background: rgba(0, 8, 13, 0.5);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.test-console__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
}

.test-console__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid rgba(118, 178, 190, 0.25);
  color: #aac0c5;
  background: rgba(0, 9, 14, 0.56);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.test-console__chips span:first-child {
  border-color: rgba(0, 240, 168, 0.48);
  color: #00120d;
  background: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 950;
}

.test-console__field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.test-console__field > span {
  color: #a3b8bc;
  font-size: 11px;
  font-weight: 800;
}

.test-console__field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(122, 190, 201, 0.34);
  border-radius: 0;
  outline: 0;
  color: #f1f7f6;
  background: #061820;
  font-size: 14px;
}

.test-console__field select:focus-visible,
.test-console button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.test-console__toggle {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid rgba(0, 240, 168, 0.28);
  background: rgba(0, 240, 168, 0.055);
  cursor: pointer;
}

.test-console__toggle input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.test-console__toggle span {
  display: grid;
  gap: 4px;
}

.test-console__toggle strong {
  color: #eef7f5;
  font-size: 12px;
  line-height: 1.45;
}

.test-console__toggle small {
  color: #758f95;
  font-size: 10px;
  line-height: 1.55;
}

.test-console__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.test-console__actions button,
.test-console__exit {
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid rgba(0, 240, 168, 0.55);
  color: #00120d;
  background: var(--accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  cursor: pointer;
}

.test-console__actions button + button {
  border-color: rgba(255, 191, 74, 0.55);
  color: #ffe5a2;
  background: rgba(255, 179, 57, 0.1);
}

.test-console__exit {
  width: 100%;
  margin-top: 8px;
  border-color: rgba(133, 182, 193, 0.28);
  color: #a5bbc0;
  background: rgba(1, 10, 15, 0.62);
}

.test-console__status {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(123, 182, 194, 0.16);
  color: #80989e;
  font-size: 10px;
  line-height: 1.6;
}

.test-console__status[data-kind="success"] {
  color: #76e9c2;
}

.test-console__status[data-kind="error"] {
  color: #ff9e8f;
}

.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[data-layout="journey"] {
  width: min(calc(100% - 40px), 780px);
}

.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-card[data-kind="warning"] {
  background:
    linear-gradient(135deg, rgba(255, 185, 75, 0.1), transparent 42%),
    #06151c;
}

.dialog-card[data-kind="warning"]::before,
.dialog-card[data-kind="warning"]::after {
  border-color: #ffbd56;
}

.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[data-kind="warning"] .dialog-kicker {
  color: #ffcb78;
}

.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-card[data-variant="journey"] {
  padding: 28px 28px 24px;
  background:
    radial-gradient(circle at 78% 12%, rgba(246, 196, 92, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(0, 240, 168, 0.13), transparent 42%),
    #06151c;
}

.dialog-card[data-variant="journey"] h2 {
  padding-right: 42px;
  font-size: clamp(25px, 4vw, 36px);
}

.reward-journey {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 15px;
  overflow: hidden;
}

.reward-journey__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 8px 11px;
  border-left: 2px solid var(--accent);
  color: #8da7ad;
  background: rgba(0, 240, 168, 0.055);
  font-size: 11px;
}

.reward-journey__status > span {
  color: #8bdec8;
  font-weight: 850;
}

.reward-journey__status p {
  margin: 0;
}

.reward-journey__status strong {
  margin: 0 3px;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
}

.reward-journey__intro {
  margin: 11px 0 13px;
  color: #a9bec2;
  font-size: 13px;
  line-height: 1.65;
}

.reward-track--dialog {
  flex: 0 1 auto;
  padding: 7px 3px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(0, 240, 168, 0.42) rgba(5, 25, 32, 0.5);
  scrollbar-width: thin;
}

.reward-track--dialog .reward-day-card {
  min-height: 172px;
  padding-top: 13px;
}

.reward-current-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 13px;
  margin: 10px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(0, 255, 178, 0.68);
  color: #b7cec9;
  background:
    linear-gradient(100deg, rgba(0, 240, 168, 0.2), rgba(0, 61, 51, 0.08)),
    rgba(0, 18, 21, 0.88);
  box-shadow: 0 0 22px rgba(0, 240, 168, 0.13);
}

.reward-current-notice > span {
  grid-row: 1 / 3;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: 12px;
  border-right: 1px solid rgba(0, 255, 178, 0.35);
  color: #5fffd0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.reward-current-notice strong {
  color: #f5fffc;
  font-size: 15px;
  font-weight: 950;
}

.reward-current-notice small {
  color: #8ec2b4;
  font-size: 11px;
  line-height: 1.4;
}

.reward-journey__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 13px;
}

.reward-journey__upload,
.reward-journey__later {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 9px 17px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.reward-journey__upload {
  border: 1px solid #15ffc0;
  color: #001910;
  background: linear-gradient(100deg, #00d796, #17ffc1 54%, #00e3a1);
  box-shadow: 0 9px 26px rgba(0, 240, 168, 0.16);
}

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

.reward-journey__upload:disabled {
  border-color: rgba(130, 166, 174, 0.24);
  color: #71868b;
  background: rgba(24, 42, 47, 0.72);
  box-shadow: none;
  cursor: not-allowed;
}

.reward-journey__upload:focus-visible,
.reward-journey__later:focus-visible,
.reward-track-compact__action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.dialog-reward-presentation {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin: 18px 0 4px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(84, 226, 195, 0.24);
  background:
    linear-gradient(105deg, rgba(0, 240, 168, 0.1), rgba(5, 21, 28, 0.18) 60%),
    rgba(1, 11, 16, 0.54);
  box-shadow: inset 0 0 24px rgba(0, 240, 168, 0.035);
}

.dialog-reward-presentation[hidden] {
  display: none;
}

.dialog-reward-icon {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border: 1px solid rgba(199, 223, 221, 0.22);
  background: #202223;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(0, 240, 168, 0.08);
}

.dialog-reward-presentation--wangge {
  grid-template-columns: 150px minmax(0, 1fr);
  border-color: rgba(244, 196, 105, 0.34);
  background:
    linear-gradient(105deg, rgba(246, 196, 92, 0.12), rgba(5, 21, 28, 0.18) 64%),
    rgba(1, 11, 16, 0.54);
}

.dialog-reward-icon--wangge {
  width: 150px;
  height: 72px;
  object-fit: contain;
  border-color: rgba(244, 196, 105, 0.3);
  background: #151a1e;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(246, 196, 92, 0.13);
}

.dialog-reward {
  min-width: 0;
  margin: 0;
  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;
}

.tutorial-dialog {
  width: min(calc(100% - 32px), 720px);
}

.tutorial-dialog .dialog-card {
  height: min(900px, calc(100dvh - 34px));
  padding-bottom: 20px;
}

.tutorial-dialog h2 {
  margin-right: 50px;
  font-size: clamp(23px, 5vw, 32px);
}

.tutorial-dialog .dialog-close {
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
}

.tutorial-content {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 18px;
  padding-right: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-color: rgba(0, 240, 168, 0.42) rgba(5, 25, 32, 0.5);
  scrollbar-width: thin;
}

.tutorial-intro {
  margin: 0 0 16px;
  color: #c6d6d9;
  font-size: 14px;
  line-height: 1.7;
}

.tutorial-intro[hidden] {
  display: none;
}

[data-tutorial-content][hidden] {
  display: none;
}

.xhs-entry-guide {
  --xhs-guide-bg: #050b0f;
  --xhs-guide-surface: #08141a;
  --xhs-guide-surface-soft: #0c1b21;
  --xhs-guide-text: #f3fbfa;
  --xhs-guide-muted: #9db0b2;
  --xhs-guide-cyan: #45f2d0;
  --xhs-guide-cyan-deep: #14c8a8;
  --xhs-guide-gold: #f5bd43;
  --xhs-guide-line: rgba(106, 236, 212, 0.2);
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid rgba(69, 242, 208, 0.22);
  border-radius: 18px;
  color: var(--xhs-guide-text);
  background:
    radial-gradient(circle at 84% 8%, rgba(20, 200, 168, 0.18), transparent 34%),
    var(--xhs-guide-bg);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

.xhs-entry-guide[hidden],
.xhs-checkin-guide-heading[hidden] {
  display: none;
}

.xhs-entry-guide__hero {
  position: relative;
  aspect-ratio: 750 / 564;
  overflow: hidden;
  background: #081118;
}

.xhs-entry-guide__hero::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 15, 0.96));
  content: "";
  pointer-events: none;
}

.xhs-entry-guide__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xhs-entry-guide__hero-badge {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(69, 242, 208, 0.44);
  border-radius: 999px;
  color: var(--xhs-guide-text);
  background: rgba(5, 15, 19, 0.76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.xhs-entry-guide__body {
  padding: 5px 24px 24px;
}

.xhs-entry-guide__overline {
  margin: 0;
  color: var(--xhs-guide-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.xhs-entry-guide__title {
  position: relative;
  margin: 9px 0 28px;
  padding-bottom: 17px;
  color: var(--xhs-guide-text);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.25;
}

.xhs-entry-guide__title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--xhs-guide-cyan), rgba(69, 242, 208, 0));
  content: "";
}

.xhs-entry-guide__steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xhs-entry-guide__steps::before {
  position: absolute;
  top: 21px;
  bottom: 22px;
  left: 19px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(69, 242, 208, 0.65),
    rgba(69, 242, 208, 0.12) 82%,
    rgba(245, 189, 67, 0.46)
  );
  content: "";
}

.xhs-entry-guide__step {
  position: relative;
  min-width: 0;
  padding-left: 54px;
}

.xhs-entry-guide__step + .xhs-entry-guide__step {
  margin-top: 30px;
}

.xhs-entry-guide__step-number {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(69, 242, 208, 0.62);
  border-radius: 50%;
  color: var(--xhs-guide-cyan);
  background: var(--xhs-guide-bg);
  box-shadow: 0 0 0 6px var(--xhs-guide-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.xhs-entry-guide__step--fallback .xhs-entry-guide__step-number {
  border-color: rgba(245, 189, 67, 0.72);
  color: var(--xhs-guide-gold);
}

.xhs-entry-guide__eyebrow {
  margin: 0 0 7px;
  color: var(--xhs-guide-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.xhs-entry-guide__step h4 {
  margin: 0;
  color: var(--xhs-guide-text);
  font-size: 20px;
  line-height: 1.28;
}

.xhs-entry-guide__copy {
  margin: 8px 0 0;
  color: var(--xhs-guide-muted);
  font-size: 13px;
  line-height: 1.7;
}

.xhs-entry-guide__keyword-card {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid rgba(69, 242, 208, 0.27);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(69, 242, 208, 0.1), transparent 62%),
    var(--xhs-guide-surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.xhs-entry-guide__keyword-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label button"
    "keyword button"
    "status status";
  gap: 4px 12px;
  align-items: center;
}

.xhs-entry-guide__keyword-card > span {
  grid-area: label;
  color: #789094;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.xhs-entry-guide__keyword-card strong {
  grid-area: keyword;
  min-width: 0;
  color: var(--xhs-guide-text);
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.xhs-entry-guide__keyword-card button {
  grid-area: button;
  min-width: 112px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(69, 242, 208, 0.66);
  border-radius: 10px;
  color: #001b15;
  background: linear-gradient(135deg, var(--xhs-guide-cyan-deep), var(--xhs-guide-cyan));
  box-shadow: 0 9px 23px rgba(20, 200, 168, 0.18);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.xhs-entry-guide__keyword-card button[data-copy-state="success"] {
  border-color: rgba(245, 189, 67, 0.82);
  background: linear-gradient(135deg, #e7a629, #ffd874);
}

.xhs-entry-guide__keyword-card button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.xhs-entry-guide__keyword-card small {
  grid-area: status;
  min-height: 17px;
  margin-top: 3px;
  color: var(--xhs-guide-cyan);
  font-size: 10px;
  line-height: 1.55;
}

.xhs-entry-guide__crop {
  position: relative;
  margin: 15px 0 0;
  overflow: hidden;
  border: 1px solid rgba(69, 242, 208, 0.2);
  border-radius: 13px;
  background: #fff;
}

.xhs-entry-guide__crop--search {
  aspect-ratio: 1.02;
}

.xhs-entry-guide__crop--work {
  aspect-ratio: 1;
  border-color: rgba(245, 189, 67, 0.28);
}

.xhs-entry-guide__crop img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

.xhs-entry-guide__crop--search img {
  top: -60%;
  left: -22.5%;
  width: 145%;
}

.xhs-entry-guide__crop--work img {
  top: -34%;
  left: -22%;
  width: 144%;
}

.xhs-entry-guide__crop figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #e8f7f5;
  background: rgba(4, 13, 17, 0.78);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.xhs-entry-guide__notice {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid rgba(245, 189, 67, 0.34);
}

.xhs-entry-guide__notice > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 189, 67, 0.65);
  border-radius: 50%;
  color: var(--xhs-guide-gold);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.xhs-entry-guide__notice p {
  margin: 0;
  color: var(--xhs-guide-muted);
  font-size: 11px;
  line-height: 1.7;
}

.xhs-entry-guide__footer {
  margin-top: 20px;
}

.xhs-entry-guide__footer img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(69, 242, 208, 0.14);
  border-radius: 11px;
}

.xhs-entry-guide__footer p {
  margin: 9px 0 0;
  color: #698084;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.xhs-checkin-guide-heading {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto 16px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(69, 242, 208, 0.3);
  background:
    linear-gradient(100deg, rgba(69, 242, 208, 0.13), transparent 58%),
    rgba(3, 17, 23, 0.88);
}

.xhs-checkin-guide-heading::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent-strong);
  content: "";
}

.xhs-checkin-guide-heading span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.xhs-checkin-guide-heading h3 {
  margin: 5px 0 0;
  color: #eff8f7;
  font-size: 19px;
  line-height: 1.35;
}

.xhs-checkin-guide-heading p {
  margin: 6px 0 0;
  color: #94aaaf;
  font-size: 12px;
  line-height: 1.65;
}

.tutorial-steps--checkin {
  width: min(100%, 560px);
  margin-right: auto;
  margin-left: auto;
}

.tutorial-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tutorial-step {
  padding: 14px;
  border: 1px solid rgba(129, 185, 202, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 240, 168, 0.07), transparent 42%),
    rgba(1, 12, 17, 0.74);
}

.tutorial-step[hidden],
[data-xhs-first-day-only][hidden] {
  display: none;
}

.tutorial-step--first-day {
  border-color: rgba(21, 255, 192, 0.28);
}

.tutorial-step-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tutorial-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(21, 255, 192, 0.62);
  color: var(--accent-strong);
  background: rgba(0, 240, 168, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tutorial-step h3 {
  margin: 0;
  color: #eff8f7;
  font-size: 17px;
  line-height: 1.4;
}

.tutorial-step-heading p {
  margin: 5px 0 0;
  color: #9fb4b9;
  font-size: 13px;
  line-height: 1.7;
}

.tutorial-step-heading .tutorial-step-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 7px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 210, 92, 0.42);
  color: #ffe49a;
  background: rgba(255, 196, 46, 0.1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tutorial-keyword,
.tutorial-tip {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(21, 255, 192, 0.26);
  background: rgba(0, 240, 168, 0.07);
}

.tutorial-keyword span,
.tutorial-tip span {
  color: #819aa0;
  font-size: 11px;
  line-height: 1.5;
}

.tutorial-keyword strong,
.tutorial-tip strong {
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1.45;
}

.tutorial-step figure {
  margin: 14px 0 0;
}

.tutorial-step img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(179, 215, 220, 0.16);
  background: #fff;
}

.tutorial-step figcaption {
  margin-top: 7px;
  color: #718a91;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.tutorial-privacy {
  margin: 16px 2px 0;
  color: #6f888e;
  font-size: 11px;
  line-height: 1.7;
}

.tutorial-dialog .dialog-confirm {
  flex: 0 0 auto;
  margin-top: 16px;
}

.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;
}

@media (max-width: 480px) {
  .uid-query-controls {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 1199px) {
  .test-console {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
  }

  .test-console__panel {
    width: 100%;
    max-height: min(74dvh, 580px);
  }
}

@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) {
  .task-benefit,
  .task-status {
    font-size: 13px;
  }

  .task-note {
    font-size: 12px;
  }

  .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;
  }

  .uid-query-panel {
    gap: 14px;
    margin-top: 16px;
    padding: 18px 16px;
  }

  .uid-query-controls input,
  .uid-query-controls button {
    min-height: 54px;
  }

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

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

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

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

  .reward-track-compact {
    margin-right: -1px;
    margin-left: -1px;
    padding: 15px 12px;
  }

  .reward-track-compact__header {
    align-items: flex-start;
  }

  .reward-track-compact__header > p {
    max-width: 92px;
    text-align: right;
  }

  .reward-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(126px, 44vw);
    gap: 9px;
    padding: 7px 3px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 3px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(0, 240, 168, 0.42) rgba(5, 25, 32, 0.5);
    scrollbar-width: thin;
  }

  .reward-track-compact__actions {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  }

  .summary-metric {
    min-width: 0;
    min-height: 94px;
    padding: 13px 14px;
  }

  .summary-metric__value strong {
    font-size: 38px;
  }

  .reward-total {
    padding-left: 16px;
  }

  .reward-total .summary-metric__value strong {
    font-size: 30px;
  }

  .arrival-estimate .summary-metric__value strong {
    font-size: 40px;
  }

  .arrival-estimate {
    border-top: 1px solid rgba(123, 182, 194, 0.2);
    border-left: 0;
  }

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

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

  .result-dialog[data-layout="journey"] {
    width: min(calc(100% - 16px), 760px);
    max-height: calc(100dvh - 16px);
  }

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

  .dialog-card[data-variant="journey"] {
    max-height: calc(100dvh - 18px);
    padding: 25px 14px 14px;
  }

  .dialog-card[data-variant="journey"] h2 {
    font-size: clamp(24px, 7.5vw, 31px);
  }

  .reward-journey {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .reward-journey__status {
    padding: 7px 9px;
  }

  .reward-journey__intro {
    margin: 9px 0 5px;
    font-size: 12px;
  }

  .reward-track--dialog {
    flex: 0 0 auto;
    margin-right: -3px;
    margin-left: -3px;
  }

  .reward-track--dialog .reward-day-card {
    min-height: 158px;
  }

  .reward-current-notice {
    margin-top: 8px;
    padding: 10px;
  }

  .reward-current-notice > span {
    padding-right: 9px;
  }

  .reward-journey__actions {
    position: sticky;
    bottom: -1px;
    z-index: 3;
    grid-template-columns: 1fr;
    padding-top: 8px;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(6, 21, 28, 0), #06151c 18%);
  }

  .reward-journey__upload,
  .reward-journey__later {
    min-height: 52px;
  }

  .dialog-reward-presentation {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 11px;
    margin-top: 15px;
    padding: 8px 10px 8px 8px;
  }

  .dialog-reward-icon {
    width: 64px;
    height: 64px;
  }

  .dialog-reward-presentation--wangge {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .dialog-reward-icon--wangge {
    width: 108px;
    height: 58px;
  }

  .dialog-reward {
    font-size: clamp(25px, 8vw, 36px);
  }

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

  .tutorial-dialog {
    width: min(calc(100% - 16px), 720px);
    max-height: calc(100dvh - 16px);
  }

  .tutorial-dialog .dialog-card {
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
    padding: 26px 14px 14px;
  }

  .tutorial-content {
    margin-top: 14px;
    padding-right: 4px;
  }

  .tutorial-intro {
    font-size: 13px;
  }

  .xhs-entry-guide {
    border-radius: 14px;
  }

  .xhs-entry-guide__hero-badge {
    top: 12px;
    left: 12px;
  }

  .xhs-entry-guide__body {
    padding: 5px 18px 20px;
  }

  .xhs-entry-guide__title {
    margin-bottom: 24px;
  }

  .xhs-entry-guide__step {
    padding-left: 49px;
  }

  .xhs-entry-guide__step h4 {
    font-size: 18px;
  }

  .xhs-entry-guide__keyword-card {
    padding: 12px;
  }

  .xhs-checkin-guide-heading {
    padding: 15px 16px;
  }

  .tutorial-steps {
    gap: 14px;
  }

  .tutorial-step {
    padding: 10px;
  }

  .tutorial-step-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .tutorial-step-number {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .tutorial-step h3 {
    font-size: 15px;
  }

  .tutorial-step-heading p {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .xhs-entry-guide__body {
    padding-right: 15px;
    padding-left: 15px;
  }

  .xhs-entry-guide__keyword-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "keyword"
      "button"
      "status";
    gap: 5px;
  }

  .xhs-entry-guide__keyword-card button {
    width: 100%;
    margin-top: 5px;
  }

  .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;
  }

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

  .summary-metric {
    width: 100%;
    min-height: 90px;
    padding: 12px 13px;
  }

  .reward-total {
    padding-left: 13px;
  }

  .reward-total .summary-metric__value strong {
    font-size: 30px;
  }

  .arrival-estimate .summary-metric__value strong {
    font-size: 36px;
  }

  .summary-metric__value {
    gap: 6px;
  }

  .summary-metric__label,
  .summary-metric__value span {
    font-size: 10px;
  }

  .reward-bonus-line {
    font-size: 10px;
  }

  .reward-track {
    grid-auto-columns: minmax(122px, 50vw);
  }

  .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;
  }

  .task-card--unlock-reveal {
    animation: none;
  }

  .task-unlock-toast--visible,
  .task-unlock-toast--leaving {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .reward-day-card {
    transition: none;
  }

  .test-console__launcher,
  .test-console__panel {
    scroll-behavior: auto;
    transition: none;
  }

}
