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

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

.pricem {
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: clamp(280px, 88vw, 404px);
  padding-top: 12px;
}

.pricem__plan {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 0;
  padding: 12px 8px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 3px solid #241f26;
  box-shadow: 0 6px 0 #241f26;
  text-align: center;
}

.pricem__plan--best {
  padding-top: 40px;
  overflow: hidden;
  animation: bestFloat 2s ease-out infinite;
}

.pricem__plan--best::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32px;
  border-bottom: 3px solid #241f26;
  background-color: #cec29c;
  background-image: radial-gradient(circle at 11px 16px, #241f26 0 3px, transparent 3.5px);
  background-size: 22px 22px;
}

.pricem__badge {
  position: absolute;
  z-index: 1;
  top: -14px;
  left: 50%;
  margin-left: -24px;
  width: 48px;
  padding: 4px 0;
  border-radius: 999px;
  background: #d5aea9;
  border: 3px solid #241f26;
  color: #241f26;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  animation: badgePulse 2s ease-out infinite;
  animation-delay: -1s;
}

.pricem__tier {
  margin: 0;
  color: #5d5560;
  font-weight: 700;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1;
  font-family: inherit;
}

.pricem__price {
  margin: 8px 0 0;
  color: #241f26;
  font-weight: 800;
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1;
  font-family: inherit;
}

.pricem__per {
  margin: 4px 0 0;
  color: #5d5560;
  font-weight: 500;
  font-size: clamp(10px, 2.4vw, 11px);
  line-height: 1;
  font-family: inherit;
}

@keyframes bestFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .pricem {
    width: 248px;
    gap: 8px;
  }
  .pricem__plan {
    padding: 8px 4px;
  }
  .pricem__plan--best {
    padding-top: 32px;
  }
  .pricem__plan--best::before {
    height: 26px;
  }
  .pricem__badge {
    width: 40px;
    margin-left: -20px;
    top: -12px;
    font-size: 10px;
  }
  .pricem__price {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pricem__plan--best, .pricem__badge {
    animation: none !important;
    transform: none;
  }
}
