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

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

.ctrlcandy {
  box-sizing: border-box;
  width: clamp(260px, 84vw, 340px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ctrlcandy__btn {
  align-self: flex-start;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #55395e;
  padding: 12px 24px;
  font-weight: 700;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255, 185, 207, 0.65);
  animation: candyPress 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ctrlcandy__btn:focus-visible {
  outline: 3px solid #55395e;
  outline-offset: 2px;
}

.ctrlcandy__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ctrlcandy__label {
  color: rgba(85, 57, 94, 0.78);
  font-weight: 600;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1;
}

.ctrlcandy__input {
  box-sizing: border-box;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #55395e;
  padding: 12px 16px;
  font-weight: 500;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1;
  box-shadow: 0 6px 14px rgba(181, 232, 210, 0.8);
  animation: ringPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ctrlcandy__input::placeholder {
  color: rgba(85, 57, 94, 0.45);
}

@keyframes candyPress {
  0%, 55%, 100% {
    transform: translateY(0) scaleY(1);
    box-shadow: 0 8px 18px rgba(255, 185, 207, 0.65);
  }
  65% {
    transform: translateY(4px) scaleY(0.95);
    box-shadow: 0 2px 6px rgba(255, 185, 207, 0.5);
  }
  82% {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 185, 207, 0.7);
  }
}
@keyframes ringPulse {
  0%, 100% {
    box-shadow: 0 6px 14px rgba(181, 232, 210, 0.8);
  }
  50% {
    box-shadow: 0 6px 14px rgba(181, 232, 210, 0.8), 0 0 0 5px rgba(181, 232, 210, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ctrlcandy__btn, .ctrlcandy__input {
    animation: none !important;
    transform: none;
  }
}
