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 {
  box-sizing: border-box;
  width: min(240px, 86vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}

.cal__month {
  font-size: 12px;
  font-weight: 800;
}

.cal__nav {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(23, 20, 26, 0.5);
  display: grid;
  place-items: center;
  border-radius: 4px;
  cursor: pointer;
}

.cal__nav:hover {
  background: rgba(23, 20, 26, 0.06);
  color: #17141a;
}

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

.cal__dows {
  margin: 0 0 4px;
}

.cal__dow {
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
}

.cal__day {
  position: relative;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10px;
  color: #17141a;
  border-radius: 4px;
  cursor: pointer;
}

.cal__day:empty {
  visibility: hidden;
}

.cal__day:hover {
  background: rgba(23, 20, 26, 0.06);
}

.cal__day[aria-pressed=true] {
  background: #ff9ebb;
  color: #fff;
  font-weight: 700;
}

.cal__day--today {
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #ff9ebb;
}

.cal__day--event::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff9ebb;
  transform: translateX(-50%);
}

.cal__day[aria-pressed=true].cal__day--event::after {
  background: #fff;
}

.cal__day--today::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid #ff9ebb;
  opacity: 0;
}

.cal__grid.is-demo .cal__day--today::before {
  animation: cal-ping 2s ease-out infinite;
}

@keyframes cal-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .cal {
    width: min(216px, 84vw);
  }
  .cal__day, .cal__dow {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cal__grid.is-demo .cal__day--today::before {
    animation: none !important;
  }
}
