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

.ld {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}

.ld__hint {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #17141a;
  text-align: center;
}

.ld__field {
  position: relative;
  height: 208px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  perspective: clamp(320px, 70vw, 480px);
}

.ld__field:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.c3__orbit {
  position: relative;
  width: 10px;
  height: 10px;
  transform-style: preserve-3d;
}

.c3__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border-style: solid;
  border-color: #0a4fe8;
  transform-style: preserve-3d;
  will-change: transform;
}

.c3__ring--0 {
  width: 168px;
  height: 168px;
  margin: -84px 0 0 -84px;
  border-width: 3px;
  opacity: 1;
}

.c3__ring--1 {
  width: 138px;
  height: 138px;
  margin: -69px 0 0 -69px;
  border-width: 3px;
  opacity: 0.82;
  border-color: rgb(23.137254902%, 44.1568627451%, 90.8235294118%);
}

.c3__ring--2 {
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-width: 3px;
  opacity: 0.64;
  border-color: rgb(40.431372549%, 56.0156862745%, 90.6823529412%);
}

.c3__ring--3 {
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-width: 3px;
  opacity: 0.48;
  border-color: rgb(55.8039215686%, 66.5568627451%, 90.5568627451%);
}

.ld__badge {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.78);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
}

.ld__badgeNum {
  font-size: 13px;
  color: #ffd23f;
}

.ld__badgeUnit {
  font-weight: 700;
}

@media (max-width: 340px) {
  .ld {
    gap: 4px;
  }
  .ld__field {
    height: 124px;
  }
  .c3__ring--0 {
    width: 108px;
    height: 108px;
    margin: -54px 0 0 -54px;
  }
  .c3__ring--1 {
    width: 90px;
    height: 90px;
    margin: -45px 0 0 -45px;
  }
  .c3__ring--2 {
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
  }
  .c3__ring--3 {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }
  .ld__badge {
    font-size: 10px;
    padding: 0 4px;
  }
  .ld__badgeNum {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ld.is-still .ld__field {
    cursor: default !important;
  }
  .ld.is-still .ld__badge {
    opacity: 0.92 !important;
  }
}
