.countdown-container {
  padding-inline: 20px;
  position: relative;
  z-index: 1;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  max-width: 600px;
  max-height: 165px;
  border-radius: 24px;
  border: 1px solid #866ee9;
  background-image: linear-gradient(
    151deg,
    rgba(217, 217, 217, 0.4) 2.5%,
    rgba(255, 255, 255, 0.1) 48.48%
  );
  padding: 8px;
}

#countdownTimer {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  place-items: center;
}

.time {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -1.44px;
  background: var(--foundation-white);
  text-align: center;
  border-radius: 20px;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  padding: 8px;
  width: 100%;
  border-radius: 50%;
}

.time::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #e830ff 0deg,
    #00bbbc var(--percent),
    transparent var(--percent) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 8px),
    black 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  stroke-linecap: round;
}

.unit {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.36px;
}

.time-color {
  color: var(--foundation-black);
}

.label-short {
    display: inline;
}

.label-full {
  display: none;
}

@media screen and (min-width: 500px) {
  .time {
    padding: 24px;
  }

  .label-short {
    display: none;
}

  .label-full {
    display: inline;
  }
}

@media screen and (min-width: 768px) {
  .time {
    font-size: var(--text-24-48);
    padding: 12px;
  }

  #countdownTimer {
    gap: 48px;
  }

  .countdown-timer {
    margin-top: -80px;
    padding: 24px 80px;
    max-width: 736px;
  }

  .unit {
    font-size: 1rem;
  }
}
