html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.sc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 424px;
}

.sc__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sc__flameBox {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.sc__halo {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 230, 0.75);
  opacity: 0;
}

.sc__flame {
  width: 48px;
  height: 48px;
  color: #fff7e6;
  transform-origin: 50% 50%;
}

.sc__flame--s1 {
  width: 30px;
  height: 30px;
}

.sc__flame--s2 {
  width: 38px;
  height: 38px;
}

.sc__flame--s3 {
  width: 48px;
  height: 48px;
}

.sc__flame--s4 {
  width: 56px;
  height: 56px;
}

.sc__flame--s0 {
  color: rgba(255, 247, 230, 0.38);
}

.sc__read {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.sc__num {
  font-weight: 800;
  font-size: clamp(34px, 11vw, 48px);
  line-height: 1;
  color: #fff7e6;
}

.sc__unit {
  font-weight: 800;
  font-size: clamp(13px, 3.6vw, 16px);
  color: #17141a;
}

.sc__best {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(23, 20, 26, 0.28);
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 11px);
  line-height: 1.2;
  color: #fff7e6;
}

.sc__week {
  display: flex;
  gap: 8px;
  margin: 0;
}

.sc__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff7e6;
}

.sc__say {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  color: #17141a;
}

.sc__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.sc__go, .sc__cut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(10px, 2.6vw, 11px);
  line-height: 1.6;
}

.sc__go {
  border: 0;
  background: #fff7e6;
  color: #17141a;
}

.sc__cut {
  border: 2px solid rgba(23, 20, 26, 0.45);
  background: transparent;
  color: #17141a;
}

.sc__go:focus-visible, .sc__cut:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.sc.is-demo .sc__dot {
  animation-name: scDot;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes scDot {
  0% {
    transform: scale(0.35);
    opacity: 0.35;
  }
  9% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1);
    opacity: 1;
  }
  78% {
    transform: scale(0.35);
    opacity: 0.35;
  }
  100% {
    transform: scale(0.35);
    opacity: 0.35;
  }
}
.sc.is-demo .sc__flame {
  animation-name: scFlame;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes scFlame {
  0% {
    transform: scale(0.62);
    opacity: 1;
  }
  26% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.16);
    opacity: 1;
  }
  78% {
    transform: scale(0.62);
    opacity: 0.4;
  }
  88% {
    transform: scale(0.62);
    opacity: 1;
  }
  100% {
    transform: scale(0.62);
    opacity: 1;
  }
}
.sc.is-demo .sc__halo {
  animation-name: scHalo;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes scHalo {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  30% {
    transform: scale(0.78);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.18;
  }
  88% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .sc {
    gap: 8px;
  }
  .sc__flameBox {
    width: 52px;
    height: 52px;
  }
  .sc__halo {
    width: 52px;
    height: 52px;
  }
  .sc__flame, .sc__flame--s3 {
    width: 32px;
    height: 32px;
  }
  .sc__dot {
    width: 10px;
    height: 10px;
  }
  .sc__week {
    gap: 4px;
  }
  .sc__top {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sc.is-demo .sc__dot,
  .sc.is-demo .sc__flame,
  .sc.is-demo .sc__halo {
    animation: none !important;
  }
  .sc.is-demo .sc__dot {
    transform: none !important;
    opacity: 1 !important;
  }
  .sc.is-demo .sc__flame {
    transform: none !important;
    opacity: 1 !important;
  }
  .sc.is-demo .sc__halo {
    opacity: 0 !important;
  }
}
