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

.lgd {
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 8px 12px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 16px;
  background: #17141a;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.lgd__h {
  position: relative;
  min-height: 15px;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lgd__h-a, .lgd__h-b {
  position: absolute;
  inset: 0;
  line-height: 1.4;
}

.lgd__h-a {
  color: rgba(255, 255, 255, 0.56);
}

.lgd__h-b {
  color: #4cd4a6;
  opacity: 0;
}

.lgd.is-gone .lgd__h-a {
  opacity: 0;
}

.lgd.is-gone .lgd__h-b {
  opacity: 1;
}

.lgd__field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.lgd__lab {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.3;
}

.lgd__in {
  box-sizing: border-box;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 8px;
  background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.3;
}

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

.lgd__guard {
  position: relative;
  height: 46px;
  margin-top: 8px;
}

.lgd__idle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0 8px;
  border: 1px dashed rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1.4;
}

.lgd__sheet {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  box-sizing: border-box;
  padding: 0 8px;
  pointer-events: none;
}

.lgd.is-open .lgd__sheet {
  pointer-events: auto;
}

.lgd.is-open .lgd__idle {
  opacity: 0;
}

.lgd__skin {
  position: absolute;
  inset: 0;
  border: 1px solid #c2361a;
  border-radius: 8px;
  background: rgb(29.137254902%, 11.8431372549%, 10.1960784314%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lgd.is-open .lgd__skin {
  transform: scaleY(1);
}

.lgd__msg, .lgd__acts {
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lgd.is-open .lgd__msg, .lgd.is-open .lgd__acts {
  opacity: 1;
  transform: translateY(0);
}

.lgd__msg {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #ffe0d8;
  font-size: 10px;
  line-height: 1.3;
}

.lgd__ico {
  display: inline-flex;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.lgd__acts {
  display: flex;
  gap: 4px;
}

.lgd__go, .lgd__stay {
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 12px;
  background: transparent;
  color: #fff7e6;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.lgd__go {
  border-color: #c2361a;
  background: #c2361a;
}

.lgd__go, .lgd__stay {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.lgd__go:focus-visible, .lgd__stay:focus-visible {
  outline-color: #fff7e6;
}

.lgd__foot {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.lgd__back, .lgd__next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 999px;
  background: transparent;
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.lgd__next {
  border-color: #0a4fe8;
  background: #0a4fe8;
}

.lgd__back:focus-visible, .lgd__next:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.lgd__arrow {
  display: inline-flex;
  width: 12px;
  height: 12px;
}

@keyframes lgd-press {
  0%, 8% {
    transform: translateY(0);
  }
  13% {
    transform: translateY(2px);
  }
  19%, 100% {
    transform: translateY(0);
  }
}
@keyframes lgd-skin {
  0%, 16.8% {
    transform: scaleY(0);
  }
  20.8%, 70.9% {
    transform: scaleY(1);
  }
  87.5%, 100% {
    transform: scaleY(0);
  }
}
@keyframes lgd-fade {
  0%, 16.9% {
    opacity: 0;
  }
  17%, 70.9% {
    opacity: 1;
  }
  71%, 100% {
    opacity: 0;
  }
}
@keyframes lgd-rise {
  0%, 17% {
    transform: translateY(6px);
  }
  29.2%, 70.9% {
    transform: translateY(0);
  }
  71%, 100% {
    transform: translateY(6px);
  }
}
@keyframes lgd-idle {
  0%, 16.9% {
    opacity: 1;
  }
  17%, 87.3% {
    opacity: 0;
  }
  87.4%, 100% {
    opacity: 1;
  }
}
@keyframes lgd-ring {
  0%, 16.9% {
    outline-color: transparent;
  }
  17%, 70.9% {
    outline-color: #fff7e6;
  }
  71%, 100% {
    outline-color: transparent;
  }
}
.lgd.is-demo .lgd__back {
  animation-name: lgd-press;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.lgd.is-demo .lgd__skin {
  animation-name: lgd-skin;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.lgd.is-demo .lgd__msg, .lgd.is-demo .lgd__acts {
  animation-name: lgd-fade, lgd-rise;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.lgd.is-demo .lgd__idle {
  animation-name: lgd-idle;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.lgd.is-demo .lgd__go {
  animation-name: lgd-ring;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .lgd {
    padding: 4px 8px;
    font-size: 11px;
  }
  .lgd__field {
    gap: 4px;
  }
  .lgd__in {
    height: 22px;
  }
  .lgd__guard {
    height: 42px;
    margin-top: 4px;
  }
  .lgd__foot {
    margin-top: 4px;
  }
  .lgd__back, .lgd__next {
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lgd.is-demo .lgd__back,
  .lgd.is-demo .lgd__skin,
  .lgd.is-demo .lgd__msg,
  .lgd.is-demo .lgd__acts,
  .lgd.is-demo .lgd__idle,
  .lgd.is-demo .lgd__go {
    animation: none !important;
  }
  .lgd.is-demo .lgd__skin {
    transform: scaleY(1) !important;
  }
  .lgd.is-demo .lgd__msg,
  .lgd.is-demo .lgd__acts {
    opacity: 1 !important;
    transform: none !important;
  }
  .lgd.is-demo .lgd__idle {
    opacity: 0 !important;
  }
  .lgd.is-demo .lgd__go {
    outline-color: #fff7e6 !important;
  }
}
