:root {
  --ink: #15202b;
  --muted: #5f6f7d;
  --paper: #ffffff;
  --surface: #f6f8fb;
  --line: #dbe3ea;
  --orange: #ff6200;
  --orange-dark: #bd4800;
  --teal: #007c89;
  --green: #1e8e5a;
  --warning: #fff1df;
  --shadow: 0 16px 42px rgba(21, 32, 43, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

body.is-modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topbar.has-toggle {
  box-shadow: 0 10px 30px rgba(21, 32, 43, 0.1);
}

.topbar.is-collapsed {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  pointer-events: none;
}

.topbar-toggle {
  position: absolute;
  top: 8px;
  right: max(18px, calc((100vw - 1240px) / 2));
  z-index: 2;
  display: none;
  width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 98, 0, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--orange-dark);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.12);
}

.topbar.has-toggle .topbar-toggle {
  display: inline-flex;
}

.topbar-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.topbar-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 0.9fr);
  gap: 24px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 18px;
  align-items: center;
  max-height: 260px;
  overflow: hidden;
  transition: max-height 190ms ease, opacity 160ms ease, padding 190ms ease, transform 190ms ease;
}

.topbar.is-collapsed .topbar-inner {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.topbar-home-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  background: #fff;
  color: var(--orange-dark);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.topbar-home-link:hover {
  border-color: rgba(255, 98, 0, 0.42);
}

.brand-block h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
  transition: font-size 180ms ease;
}

.brand-tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 900;
}

.kicker,
.panel-label,
.side-label,
.step-eyebrow {
  margin: 0 0 7px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf6;
  transition: padding 180ms ease;
}

.deadline-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
  transition: gap 180ms ease;
}

.countdown-unit {
  display: grid;
  min-height: 74px;
  align-content: center;
  border: 1px solid rgba(255, 98, 0, 0.22);
  border-radius: 8px;
  padding: 8px 6px;
  background: #fff;
  text-align: center;
  transition: min-height 180ms ease, padding 180ms ease;
}

.countdown-value {
  color: var(--orange);
  font-size: clamp(1.55rem, 3.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: font-size 180ms ease;
}

.countdown-unit small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.timer-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timer-status-link {
  display: inline-flex;
  margin-left: 10px;
  color: var(--orange-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.timer-status-link:hover {
  color: var(--orange);
}

.detail-countdown {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 18px;
}

.reward-detail > .detail-countdown {
  width: 100%;
  margin: 0 0 18px;
}

.detail-countdown .countdown-unit {
  min-height: 62px;
}

.detail-countdown .countdown-value {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.timer-actions {
  display: flex;
  gap: 8px;
}

.timer-button,
.complete-button,
.primary-link,
.secondary-link,
.modal-primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.timer-button {
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}

.timer-button-strong {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.flow-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  width: min(1240px, calc(100% - 36px));
  margin: 24px auto 36px;
}

.flow-sidebar {
  position: sticky;
  top: 142px;
  align-self: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 164px);
  overflow: auto;
  padding-right: 2px;
}

.topbar.is-collapsed + .flow-shell .flow-sidebar {
  top: 16px;
  max-height: calc(100vh - 38px);
}

.side-panel,
.flow-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.05);
}

.side-panel {
  padding: 16px;
}

.action-panel {
  border-color: rgba(255, 98, 0, 0.32);
  background: #fff8f1;
}

.warning-panel {
  background: #eff9fb;
  border-color: rgba(0, 124, 137, 0.28);
}

.primary-link,
.secondary-link,
.modal-primary-button {
  width: 100%;
  border: 1px solid var(--orange);
  padding: 10px 14px;
  background: var(--orange);
  color: #fff;
}

.secondary-link {
  width: auto;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 32, 43, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.promo-modal {
  position: relative;
  width: min(100%, 440px);
  border: 1px solid rgba(255, 98, 0, 0.28);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(21, 32, 43, 0.24);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover,
.copy-icon-button:hover {
  border-color: rgba(255, 98, 0, 0.3);
  background: #fff4e8;
  color: var(--orange-dark);
}

.promo-modal h2 {
  padding-right: 34px;
}

.referral-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.referral-code {
  display: flex;
  min-height: 58px;
  align-items: center;
  border: 1px dashed rgba(255, 98, 0, 0.42);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff8f1;
  color: var(--orange-dark);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.copy-icon-button {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.copy-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-icon-button.is-copied {
  border-color: rgba(30, 142, 90, 0.4);
  background: #eaf7ef;
  color: var(--green);
}

.copy-status {
  min-height: 1.6em;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.copy-status.is-success {
  color: var(--green);
  font-weight: 800;
}

.copy-status.is-error {
  color: #b42318;
  font-weight: 800;
}

.modal-primary-button {
  min-height: 48px;
}

.modal-primary-button:disabled {
  border-color: var(--line);
  background: #edf2f6;
  color: #8a98a6;
  cursor: not-allowed;
}

.side-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.inline-copy-code {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 98, 0, 0.34);
  border-radius: 8px;
  margin: 0 3px;
  padding: 2px 8px;
  background: #fff;
  color: var(--orange-dark);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
  vertical-align: baseline;
}

.inline-copy-code:hover,
.inline-copy-code.is-copied {
  background: #fff4e8;
}

.inline-copy-code.is-copied {
  border-color: rgba(30, 142, 90, 0.38);
  color: var(--green);
}

.inline-copy-code svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-copy-status {
  color: var(--green);
  font-weight: 800;
}

.material-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.94rem;
}

.material-list li {
  position: relative;
  padding-left: 20px;
}

.material-list li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.flow-nav {
  display: grid;
  overflow: hidden;
}

.flow-nav a {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.flow-nav a:last-child {
  border-bottom: 0;
}

.flow-nav a.is-done {
  color: var(--green);
}

.flow-main {
  display: grid;
  gap: 18px;
}

.flow-step {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: stretch;
  scroll-margin-top: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.flow-step.is-done {
  border-color: rgba(30, 142, 90, 0.45);
  background: linear-gradient(90deg, rgba(30, 142, 90, 0.07), #fff 42%);
}

.promo-step {
  border-color: rgba(255, 98, 0, 0.38);
  background: linear-gradient(90deg, var(--warning), #fff 48%);
}

.step-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
}

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

.step-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 98, 0, 0.35);
  border-radius: 8px;
  background: #fff4e8;
  color: var(--orange-dark);
  font-weight: 900;
}

.flow-step.is-done .step-number {
  border-color: rgba(30, 142, 90, 0.35);
  background: #eaf7ef;
  color: var(--green);
}

h2,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.step-body p {
  margin: 16px 0 0;
  color: var(--muted);
}

.task-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.flow-note {
  border-left: 4px solid var(--teal);
  padding: 10px 12px;
  background: #edf9fb;
  color: var(--ink) !important;
}

.promo-code {
  display: inline-flex;
  border-radius: 6px;
  padding: 2px 8px;
  background: #fff;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 98, 0, 0.24);
}

.urgent-save {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 2px 8px;
  background: #fff4e8;
  color: var(--orange-dark);
  font-size: 1.22em;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 98, 0, 0.28);
}

.complete-button {
  width: fit-content;
  margin-top: auto;
  border: 1px solid var(--teal);
  padding: 10px 16px;
  background: #fff;
  color: var(--teal);
}

.complete-button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.step-image {
  overflow: hidden;
  min-height: 260px;
  margin: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top left;
}

.missing-image-note {
  display: flex;
  min-height: 260px;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--orange-dark);
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  font-weight: 900;
  text-align: center;
}

.finish-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.finish-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.after-page {
  background: #f6f8fb;
}

.after-header,
.after-shell {
  width: min(1240px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.after-header {
  padding: 48px 0 24px;
}

.after-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.after-header p:not(.kicker) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.after-back-link {
  width: fit-content;
  margin-top: 20px;
}

.after-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.after-step {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.after-step-note {
  grid-template-columns: 1fr;
}

.after-step-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
}

.after-step-body p {
  margin: 16px 0 0;
  color: var(--muted);
}

.after-step-image {
  overflow: hidden;
  min-height: 300px;
  margin: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.after-step-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}

.after-task {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.05);
}

.after-task h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.after-task p {
  margin: 10px 0 0;
  color: var(--muted);
}

.after-inline-link {
  color: var(--orange-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.after-inline-link:hover {
  color: var(--orange);
}

.reward-hero,
.reward-home,
.reward-detail {
  width: min(1240px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.reward-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
  padding: 30px 0 26px;
}

.reward-hero h1,
.reward-detail-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.reward-hero p:not(.kicker) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.promo-step-list {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.05);
  list-style: none;
}

.promo-step-list::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 35px;
  width: 2px;
  background: rgba(255, 98, 0, 0.22);
}

.promo-step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 38px;
}

.promo-step-list span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 98, 0, 0.34);
  border-radius: 999px;
  background: #fff8f1;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.promo-step-list strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.reward-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.reward-hero-actions .primary-link,
.reward-official-link,
.reward-hero-actions .secondary-link {
  width: fit-content;
}

.reward-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.reward-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.05);
}

.reward-card > div {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.reward-card:hover {
  border-color: rgba(255, 98, 0, 0.42);
  box-shadow: 0 18px 42px rgba(21, 32, 43, 0.11);
}

.reward-card-disabled {
  cursor: default;
}

.reward-card-disabled:hover {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.05);
}

.reward-card .step-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.86rem;
}

.reward-card h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.14;
}

.reward-card p:not(.step-eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.reward-card-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 14px;
  color: var(--orange-dark);
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reward-card-pending {
  color: var(--muted);
  text-decoration: none;
}

.reward-detail {
  padding: 34px 0;
}

.reward-back {
  width: fit-content;
  margin-bottom: 16px;
}

.reward-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.reward-detail-card p,
.reward-detail-card li {
  color: var(--muted);
}

.reward-detail-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.reward-detail-card .primary-link {
  width: fit-content;
  margin-top: 22px;
}

.is-expired .countdown {
  color: #b42318;
}

.is-warning .countdown {
  color: var(--orange-dark);
}

.is-expired .countdown-value {
  color: #b42318;
}

.is-warning .countdown-value {
  color: var(--orange-dark);
}

.step-image img {
  cursor: zoom-in;
}

.step-image img:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.image-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 32, 43, 0.72);
}

.image-viewer-backdrop[hidden] {
  display: none;
}

.image-viewer-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 1280px);
  max-height: calc(100vh - 36px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 44px 16px 14px;
  background: #fff;
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.34);
}

.image-viewer-close {
  top: 8px;
  right: 8px;
}

.viewer-image {
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-viewer-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 980px) {
  .reward-hero,
  .topbar-inner,
  .flow-shell,
  .flow-step,
  .after-step,
  .finish-panel {
    grid-template-columns: 1fr;
  }

  .flow-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .flow-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-nav a:nth-last-child(2) {
    border-bottom: 0;
  }

  .step-image {
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 0 8px 8px;
  }

  .after-step-image {
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  .flow-shell,
  .footer,
  .after-header,
  .after-shell,
  .detail-countdown,
  .reward-hero,
  .reward-home,
  .reward-detail {
    width: min(100% - 24px, 1240px);
  }

  .topbar-inner {
    padding-top: 12px;
  }

  .countdown-panel {
    grid-template-columns: 1fr;
  }

  .deadline-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-shell {
    margin-top: 14px;
  }

  .flow-nav {
    grid-template-columns: 1fr;
  }

  .flow-nav a:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .step-body {
    padding: 18px;
  }

  .step-heading {
    grid-template-columns: 1fr;
  }

  .complete-button,
  .secondary-link,
  .modal-primary-button {
    width: 100%;
  }

  .promo-modal {
    padding: 20px;
  }

  .referral-code {
    font-size: 1.65rem;
  }

  .image-viewer-backdrop {
    padding: 10px;
  }

  .image-viewer-panel {
    max-height: calc(100vh - 20px);
    padding: 42px 10px 10px;
  }

  .viewer-image {
    max-height: calc(100vh - 118px);
  }

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

  .reward-home {
    grid-template-columns: 1fr;
  }

  .reward-hero-actions,
  .reward-official-link,
  .reward-hero-actions .secondary-link,
  .reward-detail-card .primary-link,
  .reward-back {
    width: 100%;
  }
}
