html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ar__preview {
  height: 96px;
  display: grid;
  place-items: center;
  width: 100%;
}

.ar__box {
  aspect-ratio: 1/1;
  height: 100%;
  max-width: 90%;
  border-radius: 8px;
  background: rgba(255, 77, 31, 0.16);
  border: 2px solid #ff4d1f;
  transition: aspect-ratio 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.ar__chip {
  position: relative;
}

.ar__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ar__chip span {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 20, 26, 0.18);
  font-size: 12px;
  font-weight: 700;
  color: #17141a;
  cursor: pointer;
  transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ar__radio:checked ~ span {
  background: #ff4d1f;
  border-color: #ff4d1f;
  color: #fff;
  transform: scale(1.05);
}

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

@media (prefers-reduced-motion: reduce) {
  .ar__box, .ar__chip span {
    transition: none;
  }
}
