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

.panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 220px;
  margin: 0 0 16px;
}

.chip {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transform: scale(0.88);
}
.chip.is-selected {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.check {
  width: 8px;
  height: 14px;
  border-right: 2px solid #fff7e6;
  border-bottom: 2px solid #fff7e6;
  transform: rotate(45deg) translate(-1px, -2px);
  opacity: 0;
}
.is-selected .check {
  opacity: 1;
}
.is-selected.is-ink .check {
  border-color: #17141a;
}

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

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

@media (max-width: 340px) {
  .panel {
    max-width: 168px;
    gap: 8px;
  }
  .chip {
    width: 36px;
    height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chip,
  .check {
    transition: none;
  }
}
