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

.ava {
  --sub-pink: #ff9ebb;
  --sub-mint: #4cd4a6;
  --sub-lilac: #b9a0ff;
  --sub-sky: #6ec8ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ava__preview {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #17141a;
}

.ava__preview span:first-child {
  font-size: 22px;
}

.ava__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ava__item {
  appearance: none;
  border: 2px solid transparent;
  background: rgba(23, 20, 26, 0.06);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

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

.ava__item.is-on {
  border-color: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent);
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .ava__item {
    transition: none;
  }
}
