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

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

.lc {
  box-sizing: border-box;
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.lc__map {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 12/5;
  background: repeating-linear-gradient(90deg, #fffdf7 0 8px, transparent 8px 28px), repeating-linear-gradient(0deg, #fffdf7 0 6px, transparent 6px 28px), radial-gradient(circle at 8% 76%, #c9e0bd 0 28px, transparent 28px), linear-gradient(118deg, transparent 0 82%, #bcd9ea 82% 94%, transparent 94%), #efe9dc;
}

.lc__map::before,
.lc__map::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: #e2dac9;
}

.lc__map::before {
  left: 24%;
  top: 14%;
  width: 13%;
  height: 30%;
}

.lc__map::after {
  left: 68%;
  top: 56%;
  width: 15%;
  height: 30%;
}

.lc__ring {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  height: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(47, 109, 246, 0.75);
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.18);
}

.lc__cross {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: block;
  color: rgba(23, 20, 26, 0.5);
  transform: translate(-50%, -50%);
}

.lc__dot {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #fff7e6;
  border-radius: 50%;
  background: #2f6df6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translate(-50%, -50%);
}

.lc__bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc__btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 220ms ease-out;
}

.lc__btn:hover {
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.lc__btn:active {
  transform: scale(0.96);
}

.lc__btn:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.lc__read {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 16px;
  overflow: hidden;
}

.lc__say,
.lc__cut {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.66);
  white-space: nowrap;
}

.lc__cut {
  opacity: 0;
}

.lc.is-demo .lc__say {
  opacity: 0;
}

.lc.is-demo .lc__ring,
.lc.is-scanning .lc__ring {
  animation-name: lc-scan;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-delay: 0ms;
}

.lc.is-demo .lc__ring--2,
.lc.is-scanning .lc__ring--2 {
  animation-delay: -667ms;
}

.lc.is-demo .lc__ring--3,
.lc.is-scanning .lc__ring--3 {
  animation-delay: -1334ms;
}

.lc.is-demo .lc__dot,
.lc.is-locked .lc__dot {
  animation-name: lc-pulse;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-delay: 0ms;
}

.lc.is-demo .lc__cut {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.lc.is-demo .lc__cut--a {
  animation-name: lc-say-a;
}

.lc.is-demo .lc__cut--b {
  animation-name: lc-say-b;
}

@keyframes lc-scan {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
  }
  14% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.04);
  }
}
@keyframes lc-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  30% {
    transform: translate(-50%, -50%) scale(1.45);
  }
  60% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes lc-say-a {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes lc-say-b {
  0% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 360px) {
  .lc {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lc.is-demo .lc__ring,
  .lc.is-scanning .lc__ring,
  .lc.is-demo .lc__dot,
  .lc.is-locked .lc__dot,
  .lc.is-demo .lc__cut {
    animation: none !important;
  }
  .lc.is-demo .lc__say {
    opacity: 1;
  }
  .lc__ring--1 {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.55);
  }
  .lc__btn {
    transition: none;
  }
}
