:root {
  color-scheme: light;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f9fafb;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled) {
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

.clone-loading,
.clone-error {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  color: #111827;
  font-family: Poppins, sans-serif;
  text-align: center;
}

.clone-enter {
  animation: clone-enter 260ms ease-out both;
}

.boost-shell {
  box-sizing: border-box;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 28px 20px 36px;
  background: #fff;
  color: #111827;
}

.boost-card {
  display: flex;
  width: 100%;
  max-width: 512px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.boost-progress {
  width: 100%;
  margin-bottom: 2px;
}

.boost-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #6b7280;
  font-size: 12px;
}

.boost-progress-label strong {
  color: #2d9916;
  font-size: 13px;
}

.boost-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.boost-progress-track i {
  display: block;
  width: var(--boost-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ac42b, #26a708);
  animation: boost-progress 900ms cubic-bezier(.22, 1, .36, 1) both;
}

.boost-check {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-top: 3px;
  border-radius: 999px;
  background: #ddffd1;
  box-shadow: 0 0 0 8px rgb(221 255 209 / 45%);
  color: #20a207;
  font-size: 31px;
  font-weight: 700;
  animation: boost-pop 650ms cubic-bezier(.2, 1.5, .4, 1) both;
}

.boost-eyebrow {
  margin: 6px 0 -6px;
  color: #554ab7;
  font-size: 14px;
  font-weight: 700;
}

.boost-title {
  max-width: 470px;
  margin: 0;
  color: #111827;
  font-size: clamp(20px, 5.3vw, 25px);
  font-weight: 700;
  line-height: 1.28;
}

.boost-title span {
  color: #2eaa15;
}

.boost-image {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid #ececf0;
  border-radius: 14px;
  background: #f3f4f6;
  box-shadow: 0 8px 24px rgb(17 24 39 / 10%);
}

.boost-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.boost-text {
  max-width: 450px;
  margin: 2px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.58;
}

.boost-proof {
  width: 100%;
  max-width: 450px;
  padding: 12px 14px;
  border: 1px solid #d7edcf;
  border-radius: 11px;
  background: #f3ffef;
  color: #347325;
  font-size: 13px;
  font-weight: 600;
}

.boost-button {
  width: 100%;
  max-width: 450px;
  min-height: 56px;
  margin-top: 2px;
  padding: 15px 20px;
  border: 0;
  border-bottom: 4px solid #c66f2e;
  border-radius: 12px;
  background: #ffb070;
  box-shadow: 0 6px 15px rgb(210 119 50 / 18%);
  color: #111827;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: transform 150ms ease, filter 150ms ease;
}

.boost-button:hover {
  filter: brightness(1.025);
  transform: translateY(-1px);
}

.boost-button:active {
  border-bottom-width: 2px;
  transform: translateY(2px);
}

@keyframes boost-progress {
  from { width: 0; }
}

@keyframes boost-pop {
  from { opacity: 0; transform: scale(.45) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes clone-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#confetti-container {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow: hidden;
  pointer-events: none;
}

.clone-confetti {
  position: absolute;
  top: -18px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  animation: clone-confetti-fall var(--fall-time) linear var(--fall-delay) forwards;
  transform: translate3d(0, -20px, 0) rotate(0deg);
}

@keyframes clone-confetti-fall {
  to {
    transform: translate3d(var(--drift), 110vh, 0) rotate(820deg);
  }
}

.exit-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(0 0 0 / 68%);
}

.exit-popup-overlay.is-visible {
  display: flex !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .clone-enter,
  .clone-confetti,
  .boost-check,
  .boost-progress-track i,
  .pulse,
  .fade-in {
    animation: none !important;
  }
}
