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

.lq {
  --bg: #241f2b;
  --glow: rgba(110, 200, 255, .34);
  --sheen: rgba(196, 240, 255, .16);
  --wall: rgba(110, 200, 255, .35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.lq__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #fff7e6;
}

.lq__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #6ec8ff;
}

.lq__field {
  position: relative;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.14);
  cursor: grab;
  touch-action: none;
}

.lq__field:focus-visible {
  outline: 2px solid #6ec8ff;
  outline-offset: 2px;
}

.lq__field:active {
  cursor: grabbing;
}

.lq__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.lq__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;
}

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

.lq__badgeUnit {
  font-weight: 700;
}

.lq__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lq__dial {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 12px;
  color: #fff7e6;
}

.lq__dial input[type=range] {
  flex: 1 1 auto;
  accent-color: #6ec8ff;
}

.lq__reset {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 12px;
  background: #6ec8ff;
  color: #17141a;
  cursor: pointer;
}

.lq__reset:active {
  transform: translateY(1px);
}

@media (max-width: 340px) {
  .lq {
    gap: 4px;
  }
  .lq__field {
    height: 114px;
  }
  .lq__badge {
    font-size: 10px;
    padding: 0 4px;
  }
  .lq__badgeNum {
    font-size: 11px;
  }
  .lq__bar {
    gap: 8px;
  }
  .lq__dial {
    font-size: 11px;
  }
  .lq__reset {
    font-size: 11px;
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lq.is-still .lq__field {
    cursor: default !important;
  }
  .lq.is-still .lq__badge {
    opacity: 0.92 !important;
  }
}
