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

.hm {
  width: min(100%, 432px);
}

.hm__months {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  margin: 0 0 4px;
  color: rgb(22.6666666667%, 19.0196078431%, 12.3725490196%);
  font-size: clamp(7px, 1.8vw, 9px);
  line-height: 1;
  font-weight: 700;
}

.hm__board {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
}

.hm__row {
  display: contents;
}

.hm__cell,
.hm__blank {
  aspect-ratio: 1;
  border-radius: 0;
}

.hm__cell {
  background: rgb(87.262745098%, 71.9215686275%, 22.6745098039%);
  box-shadow: inset 0 0 0 1px #ffd23f;
  transform-origin: center;
}

.hm__cell.lv1 {
  background: rgb(72.7058823529%, 60%, 20.3529411765%);
}

.hm__cell.lv2 {
  background: rgb(56.3294117647%, 46.5882352941%, 17.7411764706%);
}

.hm__cell.lv3 {
  background: rgb(36.3137254902%, 30.1960784314%, 14.5490196078%);
}

.hm__cell.lv4 {
  background: #17141a;
}

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

.hm__cell.is-today {
  outline: 2px solid #17141a;
  outline-offset: 1px;
}

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

.hm__year {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  color: #17141a;
}

.hm__legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: rgb(22.6666666667%, 19.0196078431%, 12.3725490196%);
}

.hm__sw {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgb(72.7058823529%, 60%, 20.3529411765%);
}

.hm__sw--1 {
  background: rgb(72.7058823529%, 60%, 20.3529411765%);
}

.hm__sw--2 {
  background: rgb(56.3294117647%, 46.5882352941%, 17.7411764706%);
}

.hm__sw--3 {
  background: rgb(36.3137254902%, 30.1960784314%, 14.5490196078%);
}

.hm__sw--4 {
  background: #17141a;
}

.hm__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hm.is-demo .hm__cell {
  animation-name: hm-cell;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes hm-cell {
  0%, 4.5% {
    transform: scale(0);
  }
  9%, 52% {
    transform: scale(1);
  }
  56.5%, 100% {
    transform: scale(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm.is-demo .hm__cell {
    animation: none !important;
  }
}
