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

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

.lr {
  display: grid;
  place-items: center;
  width: 100%;
}

.lr__frame {
  box-sizing: border-box;
  width: clamp(152px, 42vw, 192px);
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 2px solid rgba(23, 20, 26, 0.18);
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.lr__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.2;
  color: #17141a;
}

.lr__body {
  padding-bottom: clamp(20px, 7vw, 36px);
}

.lr__group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(0);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lr.is-low .lr__group {
  transform: translateY(clamp(20px, 7vw, 36px));
}

.lr__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(24px, 8vw, 36px);
  padding: 4px 8px;
  cursor: pointer;
  border: 2px solid #17141a;
  border-radius: 12px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
}

.lr__btn:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.lr__label {
  font-weight: 800;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.1;
}

.lr.is-low .lr__label {
  font-size: clamp(13px, 3.8vw, 16px);
}

.lr__foot {
  display: flex;
  justify-content: flex-end;
}

.lr__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  cursor: pointer;
  border-width: 2px;
  border-style: solid;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.2;
  border-color: rgba(23, 20, 26, 0.24);
  background: #ffffff;
  color: #17141a;
}

.lr__toggle[aria-pressed=true] {
  border-color: #17141a;
  background: #17141a;
  color: #fff7e6;
}

.lr__toggle:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.lr__ico {
  width: clamp(14px, 4vw, 18px);
  height: clamp(14px, 4vw, 18px);
  flex: 0 0 auto;
}

.lr.is-demo .lr__group {
  animation-name: lrDrop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes lrDrop {
  0%, 8% {
    transform: translateY(0);
  }
  44%, 68% {
    transform: translateY(clamp(20px, 7vw, 36px));
  }
  88%, 100% {
    transform: translateY(0);
  }
}
.lr.is-demo .lr__label {
  animation-name: lrLabel;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes lrLabel {
  0% {
    font-size: clamp(11px, 3.2vw, 13px);
  }
  44% {
    font-size: clamp(13px, 3.8vw, 16px);
  }
  68%, 100% {
    font-size: clamp(11px, 3.2vw, 13px);
  }
}
.lr.is-demo .lr__toggle {
  animation-name: lrToggle;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes lrToggle {
  0% {
    border-color: rgba(23, 20, 26, 0.24);
    background: #ffffff;
    color: #17141a;
  }
  44% {
    border-color: #17141a;
    background: #17141a;
    color: #fff7e6;
  }
  68%, 100% {
    border-color: rgba(23, 20, 26, 0.24);
    background: #ffffff;
    color: #17141a;
  }
}
@media (max-width: 340px) {
  .lr__frame {
    gap: 4px;
    padding: 4px;
  }
  .lr__group {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lr.is-demo .lr__group,
  .lr.is-demo .lr__label,
  .lr.is-demo .lr__toggle {
    animation: none !important;
  }
  .lr.is-demo .lr__group {
    transform: translateY(clamp(20px, 7vw, 36px)) !important;
  }
  .lr.is-demo .lr__label {
    font-size: clamp(13px, 3.8vw, 16px) !important;
  }
  .lr.is-demo .lr__toggle {
    border-color: #17141a !important;
    background: #17141a !important;
    color: #fff7e6 !important;
  }
}
