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

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

.pricecrayon {
  display: flex;
  align-items: center;
  gap: 12px;
  width: clamp(240px, 86vw, 360px);
}

.pricecrayon__card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  background: #dff0fc;
}

.pricecrayon__card:first-child {
  background: #e2f5e2;
}

.pricecrayon__card:last-child {
  background: #dff0fc;
}

.pricecrayon__card--main {
  background: #fff3cc;
  border: 3px solid #33261c;
  transform: scale(1.1);
  z-index: 1;
}

.pricecrayon__name {
  margin: 0;
  color: #33261c;
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
}

.pricecrayon__price-wrap {
  position: relative;
  display: inline-flex;
}

.pricecrayon__price {
  margin: 0;
  position: relative;
  z-index: 1;
  color: #33261c;
  font-weight: 700;
  font-size: clamp(12px, 3vw, 14px);
  padding: 4px 4px;
}

.pricecrayon__note {
  margin: 0;
  color: rgba(51, 38, 28, 0.72);
  font-weight: 500;
  font-size: 10px;
}

.pricecrayon__ring {
  position: absolute;
  inset: -6px -10px;
  width: calc(100% + 20px);
  height: calc(100% + 12px);
  pointer-events: none;
  filter: url(#rough5);
}

.pricecrayon__ring-path {
  fill: none;
  stroke: #dbb6b7;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 190;
  animation: ringDraw 2s ease-out infinite;
}

.pricecrayon__star {
  position: absolute;
  color: #d1c5a2;
  font-size: 14px;
  line-height: 1;
  animation: starTwinkle 2s ease-out infinite;
}

.pricecrayon__star--a {
  top: -6px;
  left: 2px;
  animation-delay: 0ms;
}

.pricecrayon__star--b {
  top: 4px;
  right: -4px;
  animation-delay: 520ms;
}

@keyframes ringDraw {
  0% {
    stroke-dashoffset: 190;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -190;
  }
}
@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .pricecrayon {
    gap: 4px;
  }
  .pricecrayon__card {
    padding: 8px 4px;
  }
  .pricecrayon__card--main {
    transform: scale(1.05);
  }
  .pricecrayon__note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pricecrayon__ring-path, .pricecrayon__star {
    animation: none !important;
  }
  .pricecrayon__ring-path {
    stroke-dashoffset: 0;
  }
  .pricecrayon__star {
    opacity: 1;
    transform: none;
  }
}
