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

.lu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(240px, 84vw);
  background: #0a4fe8;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.lu__fields {
  display: flex;
  gap: 8px;
}

.lu__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0;
}

.lu__cap {
  color: #fff7e6;
  font-size: 11px;
  font-weight: 500;
}

.lu__cm,
.lu__in {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 4px 8px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

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

.lu__rulers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lu__ruler {
  position: relative;
  height: 14px;
}

.lu__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(to right, rgba(255, 247, 230, 0.5) 0 1px, transparent 1px 12%), rgba(255, 247, 230, 0.16);
}

.lu__marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: box-shadow 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.lu__readout {
  margin: 0;
  color: #fff7e6;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 340px) {
  .lu {
    padding: 12px;
    gap: 4px;
    width: min(220px, 84vw);
  }
  .lu__fields {
    gap: 4px;
  }
  .lu__cap {
    font-size: 10px;
  }
  .lu__cm, .lu__in {
    font-size: 11px;
  }
  .lu__rulers {
    gap: 4px;
  }
  .lu__ruler {
    height: 12px;
  }
  .lu__marker {
    width: 10px;
    height: 10px;
    margin-top: -5px;
  }
  .lu__readout {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lu__marker {
    transition: none;
  }
}
