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

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

.lp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lp__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp__main {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 247, 230, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  cursor: pointer;
  touch-action: none;
}

.lp__mainCh {
  font-size: 26px;
  line-height: 1;
  display: inline-block;
}

.lp__mainCh--pop {
  animation: lpPop 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.lp__ring {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -10px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.28);
  overflow: hidden;
}

.lp__ringFill {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff7e6;
  transform: scaleX(0);
  transform-origin: left center;
}

.lp__fan {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 8px;
  width: 0;
  height: 0;
  list-style: none;
}

.lp__variant {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: pointer;
  opacity: 0;
  transform: rotate(calc((var(--i) - 2) * 20deg)) translateY(0) rotate(calc((var(--i) - 2) * -20deg)) scale(0.5);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease-out, box-shadow 220ms ease-out;
  transition-delay: calc(var(--i) * 18ms);
}

.lp__fan--open .lp__variant {
  opacity: 1;
  transform: rotate(calc((var(--i) - 2) * 20deg)) translateY(-58px) rotate(calc((var(--i) - 2) * -20deg)) scale(1);
}

.lp__variant--hover {
  box-shadow: 0 0 0 3px #fff7e6, 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: rotate(calc((var(--i) - 2) * 20deg)) translateY(-64px) rotate(calc((var(--i) - 2) * -20deg)) scale(1.25) !important;
}

.lp__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@keyframes lpPop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .lp__main {
    width: 48px;
    height: 48px;
  }
  .lp__mainCh {
    font-size: 22px;
  }
  .lp__variant {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    font-size: 15px;
  }
  .lp__fan--open .lp__variant {
    transform: rotate(calc((var(--i) - 2) * 20deg)) translateY(-46px) rotate(calc((var(--i) - 2) * -20deg)) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp__mainCh--pop {
    animation: none;
  }
  .lp__ringFill {
    transition: none;
  }
  .lp__variant {
    transition: none;
    transition-delay: 0ms;
  }
}
