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

.mj {
  width: 100%;
  max-width: 230px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  box-sizing: border-box;
}

.mj__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mj__nav {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #17141a;
  font-size: 14px;
  cursor: pointer;
}

.mj__head {
  border: none;
  background: transparent;
  color: #17141a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.mj__weekday {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.mj__weekday span {
  font-size: 9px;
  text-align: center;
  color: rgba(23, 20, 26, 0.72);
}

.mj__viewport {
  overflow: hidden;
}

.mj__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 21px;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mj__cell {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #17141a;
  border-radius: 4px;
}

.mj__cell--out {
  visibility: hidden;
}

.mj__yearGrid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mj--year .mj__weekday,
.mj--year .mj__viewport {
  display: none;
}

.mj--year .mj__yearGrid {
  display: grid;
}

.mj__ycell {
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 4px;
  background: #2f6df6;
  color: #fff7e6;
  font-size: 10px;
  cursor: pointer;
}

.mj__ycell--now {
  background: #0a4fe8;
}

@media (max-width: 340px) {
  .mj {
    max-width: 190px;
  }
  .mj__grid {
    grid-auto-rows: 17px;
  }
  .mj__cell {
    font-size: 10px;
  }
  .mj__ycell {
    height: 21px;
    font-size: 9px;
  }
  .mj__weekday span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mj__grid {
    transition: none;
  }
}
