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

.ks {
  --c1: #4d659d;
  --c2: #9d4d54;
  --grid: rgba(23, 20, 26, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

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

.ks__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.ks__field {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: clamp(176px, 46vw, 232px);
  height: clamp(176px, 46vw, 232px);
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.05);
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.16);
  cursor: crosshair;
  touch-action: none;
}

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

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

.ks__side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.ks__lab {
  font-weight: 600;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.82);
}

.ks__val {
  font-weight: 800;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1;
  color: #17141a;
  font-variant-numeric: tabular-nums;
}

.ks__slider {
  width: 100%;
  margin: 0;
  accent-color: #17141a;
}

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

.ks__meta {
  margin: 0;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.82);
}

.ks__meta b {
  font-weight: 700;
  color: #17141a;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.ks__degUnit {
  color: rgba(23, 20, 26, 0.72);
}

.ks__metaUnit {
  color: rgba(23, 20, 26, 0.72);
}

@media (max-width: 340px) {
  .ks {
    gap: 4px;
  }
  .ks__field {
    width: 132px;
    height: 132px;
  }
  .ks__val {
    font-size: 20px;
  }
  .ks__side {
    gap: 4px;
  }
  .ks__meta {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ks.is-still .ks__field {
    cursor: default !important;
  }
  .ks.is-still .ks__slider {
    pointer-events: none !important;
  }
}
