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);
}

.react {
  border: 0;
  padding: 0;
  margin: 0;
}
.react__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.react__row {
  display: flex;
  gap: clamp(8px, 2.6vw, 14px);
}
.react__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.react__emoji {
  position: relative;
  font-size: clamp(24px, 6.6vw, 30px);
  display: inline-block;
  opacity: 0.7;
  transform: scale(1);
  cursor: pointer;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.react__fx {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
}
.react__spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #fff7e6;
  clip-path: path("M6 11 1 6.5C-.5 5 .0 2.5 2 2 3.5 1.5 5 2.5 6 4 7 2.5 8.5 1.5 10 2 12 2.5 12.5 5 11 6.5Z");
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.react:has(.react__input:checked) .react__emoji {
  opacity: 0.4;
  transform: scale(0.9);
}
.react__input:checked + .react__emoji {
  opacity: 1;
  transform: scale(1.3);
}
.react.is-demo .react__emoji {
  animation: react-cycle 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

@keyframes react-cycle {
  0%, 87.5%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  12.5% {
    opacity: 1;
    transform: scale(1.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .react__emoji {
    transition: opacity 1ms;
  }
  .react.is-demo .react__emoji {
    animation: none !important;
  }
  .react__spark {
    display: none;
  }
}
