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

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

.gc__fields {
  display: flex;
  gap: 12px;
  width: 100%;
}

.gc__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gc__field:first-child {
  flex: 1 1 auto;
}

.gc__field:last-child {
  flex: 0 0 auto;
}

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

.gc__dms {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff7e6;
  font-size: 11px;
}

.gc__deg,
.gc__min,
.gc__sec {
  width: 34px;
  border: 0;
  border-radius: 12px;
  padding: 4px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.gc__dec {
  width: 76px;
  border: 0;
  border-radius: 12px;
  padding: 4px 8px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.gc__deg:focus-visible,
.gc__min:focus-visible,
.gc__sec:focus-visible,
.gc__dec:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.gc__scale {
  position: relative;
  height: 16px;
  border-radius: 999px;
}

.gc__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.16);
}

.gc__marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #2f6df6;
  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;
}

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

@media (max-width: 340px) {
  .gc {
    padding: 12px;
    gap: 4px;
    width: min(230px, 88vw);
  }
  .gc__fields {
    gap: 8px;
  }
  .gc__cap {
    font-size: 10px;
  }
  .gc__deg, .gc__min, .gc__sec {
    width: 28px;
    font-size: 11px;
  }
  .gc__dec {
    width: 64px;
    font-size: 11px;
  }
  .gc__scale {
    height: 14px;
  }
  .gc__marker {
    width: 10px;
    height: 10px;
    margin-top: -5px;
  }
  .gc__readout {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gc__marker {
    transition: none;
  }
}
