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

.cal {
  position: relative;
  width: min(304px, 88vw);
  color: #17141a;
}

.cal__head {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(23, 20, 26, 0.7);
}

.cal__grid, .cal__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal__dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
  padding-bottom: 4px;
}

.cal__days {
  position: relative;
  margin-top: 4px;
}

.cal__row {
  position: relative;
}

.cal__day {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-family: inherit;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: #17141a;
  position: relative;
  z-index: 1;
  transition: background-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
  -webkit-tap-highlight-color: transparent;
}

.cal__day:focus-visible {
  outline: 2px solid #ff9ebb;
  outline-offset: 2px;
}

.cal__day.is-range {
  background: rgba(255, 158, 187, 0.18);
}

.cal__day.is-edge {
  background: #ff9ebb;
  color: #17141a;
  font-weight: 700;
  transform: scale(1.06);
}

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