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

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.board {
  display: flex;
  gap: 12px;
}

.square {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to right, #ffffff 0%, hsl(var(--hue), 100%, 50%) 100%);
}

.squareMarker {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.hueStrip {
  position: relative;
  width: 18px;
  height: 140px;
  border-radius: 999px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: linear-gradient(to bottom, hsl(0, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%), hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(0, 100%, 50%));
}

.hueMarker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 8px;
  border-radius: 4px;
  border: 2px solid #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.readout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff7e6;
}
.readout.is-ink {
  color: #17141a;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.hex {
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 340px) {
  .square {
    width: 108px;
    height: 108px;
  }
  .hueStrip {
    height: 108px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .squareMarker,
  .hueMarker {
    transition: none;
  }
}
