:root {
  --bg-start: #7f1bff;
  --bg-mid: #4d2bff;
  --bg-end: #3c39ff;
  --button-start: #ff9bc0;
  --button-mid: #ff5a84;
  --button-end: #ff5d63;
  --button-shadow: rgba(255, 79, 118, 0.34);
  --packet-start: #ff7d4f;
  --packet-end: #e6272b;
  --packet-tab: #f8c54d;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.68);
  --footer-text: rgba(255, 255, 255, 0.56);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
}

body {
  background: #f3f0ff;
  color: #fff;
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(181, 97, 255, 0.42), transparent 28%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 43%, var(--bg-end) 100%);
  padding: 44px 22px 30px;
}

.hero {
  width: 100%;
  max-width: 331px;
  margin: 96px auto 0;
  text-align: center;
}

.actions {
  margin-top: 0;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--button-start) 0%, var(--button-mid) 47%, var(--button-end) 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.46),
    0 12px 26px var(--button-shadow);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cta-button.is-disabled {
  opacity: 0.86;
  pointer-events: auto;
}

.cta-button.is-loading .button-icon {
  display: none;
}

.button-loading {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  animation: button-spin 0.9s linear infinite;
}

.cta-button.is-loading .button-loading {
  display: inline-block;
}

.button-icon {
  position: relative;
  width: 18px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 4px;
}

.button-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 0;
  border-bottom: 6px solid rgba(255, 255, 255, 0.95);
}

.button-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 2px;
  width: 2px;
  height: 5px;
  background: rgba(255, 255, 255, 0.95);
}

.campaign-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 331px;
  margin: 42px auto 0;
  min-height: 0;
}

.packets {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 268px;
  height: 184px;
  margin: 0 auto;
  pointer-events: none;
}

.packet {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, var(--packet-start) 0%, var(--packet-end) 100%);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(151, 23, 12, 0.32);
}

.packet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffeb94 0%, #ffd967 45%, #dd9d12 100%);
  box-shadow: 0 0 0 2px rgba(203, 107, 21, 0.45);
}

.packet::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 12px;
  height: 2px;
  background: rgba(255, 226, 142, 0.74);
  border-radius: 999px;
}

.packet-xs {
  width: 20px;
  height: 30px;
}

.packet-sm {
  width: 36px;
  height: 52px;
}

.packet-md {
  width: 52px;
  height: 74px;
}

.packet-lg {
  width: 70px;
  height: 96px;
}

.packet-left-top {
  top: 18px;
  left: 8px;
  transform: rotate(-20deg);
}

.packet-right-top {
  top: 12px;
  right: 6px;
  transform: rotate(12deg);
}

.packet-left-bottom {
  top: 92px;
  left: 54px;
  transform: rotate(-16deg);
}

.packet-right-center {
  top: 72px;
  right: 58px;
  transform: rotate(16deg);
}

.packet-right-bottom {
  top: 96px;
  right: 22px;
  transform: rotate(18deg);
}

.packet-far-right-bottom {
  top: 104px;
  left: 118px;
  transform: rotate(12deg);
}

.campaign {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 242px;
  margin: 0 auto;
  padding: 18px 0 0;
  text-align: center;
}

.campaign-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.campaign-copy {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.campaign-highlight {
  display: inline-block;
  margin: 0 2px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #ffd85e;
  text-shadow: 0 2px 8px rgba(128, 70, 0, 0.24);
}

.footer {
  width: 100%;
  max-width: 331px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 12px;
  color: var(--footer-text);
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .page {
    min-height: 100vh;
  }
}
