:root {
  --pink: #fe2c55;
  --cyan: #25f4ee;
  --black: #161823;
  --gray: #74777f;
  --light: #f6f7f9;
  --white: #ffffff;
  --green: #12805c;
  --btn-disabled: #d8d8dc;
  --text-muted: #888888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--light);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 22px;
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

.logo-wrapper {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-img {
  height: 28px;
  width: auto;
  object-contain: fit;
  display: inline-block;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo .shop {
  color: var(--pink);
}

.icon-box {
  width: 85px;
  height: 85px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -5px -5px 0 var(--cyan),
               5px 5px 0 var(--pink);
  transition: transform 0.3s ease;
}

.icon-box:hover {
  transform: scale(1.04);
}

.icon-box svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--black);
}

.subtitle {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.loading-area {
  background: #f8f8fa;
  padding: 22px 18px;
  border-radius: 16px;
  margin-bottom: 22px;
}

.loading-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--black);
}

.progress-container {
  height: 12px;
  background: #e6e6eb;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--pink)
  );
  transition: width 0.1s linear;
}

.percentage {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
}

.loading-description {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

.success {
  display: none;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
  animation: fadeIn 0.5s ease;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 19px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  background: var(--btn-disabled);
  color: var(--text-muted);
  pointer-events: none;
  cursor: not-allowed;
  transition: all 0.3s ease;
  user-select: none;
}

.button.active {
  background: var(--pink);
  color: white;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.35);
  animation: pulse 1.7s infinite;
}

.button.active:hover {
  background: #e91d49;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(254, 44, 85, 0.45);
}

.button.active:active {
  transform: translateY(0);
}

.footer {
  margin-top: 24px;
  color: #999999;
  font-size: 11px;
  line-height: 1.6;
}

.confetti {
  position: fixed;
  width: 9px;
  height: 13px;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall var(--duration) ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform:
      translate(var(--x), var(--y))
      rotate(var(--rotation))
      scale(0.6);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(254, 44, 85, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .container {
    padding: 28px 20px;
    border-radius: 18px;
  }

  h1 {
    font-size: 23px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.active {
    animation: none;
  }

  .confetti {
    display: none;
  }
}
