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

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

.cr {
  position: relative;
  width: min(100%, 300px);
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cr__panel {
  position: relative;
  width: 100%;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 16px;
  background: #fff7e6;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.cr__panel.is-dark {
  background: #17141a;
}

.cr__label {
  margin: 0;
  font: 700 13px/1 -apple-system, "Segoe UI", sans-serif;
  color: #17141a;
}

.cr__panel.is-dark .cr__label {
  color: #fff7e6;
}

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

.cr__sw {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #2f6df6;
}

.cr__sw:nth-child(2) {
  background: #c93000;
}

.cr__sw:nth-child(3) {
  background: #17141a;
}

.cr__panel.is-dark .cr__sw:nth-child(3) {
  background: #fff7e6;
}

.cr__toggle {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #17141a;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cr__toggle:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.cr__toggleDot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff7e6;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
@media (max-width: 340px) {
  .cr {
    height: 150px;
    gap: 8px;
  }
  .cr__panel {
    height: 108px;
    padding: 12px;
    gap: 8px;
  }
  .cr__sw {
    width: 26px;
    height: 26px;
  }
  .cr__toggle {
    width: 32px;
    height: 32px;
  }
  .cr__toggleDot {
    width: 12px;
    height: 12px;
  }
}
