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

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

.kd__head {
  text-align: center;
  margin-bottom: 4px;
}

.kd__label {
  font-size: 11px;
  font-weight: 700;
  color: #17141a;
}

.kd__weekday, .kd__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

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

.kd__cell {
  display: grid;
  place-items: center;
  height: 19px;
  font-size: 10px;
  color: #17141a;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  will-change: transform;
}

.kd__cell--out {
  visibility: hidden;
}

.kd__cell--invalid {
  color: rgba(23, 20, 26, 0.38);
  cursor: not-allowed;
}

.kd__cell--selected {
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
}

.kd__banner {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #ffe0d8;
  color: #c2361a;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.kd__banner--show {
  opacity: 1;
}

@media (max-width: 340px) {
  .kd {
    max-width: 190px;
  }
  .kd__cell {
    height: 16px;
    font-size: 9px;
  }
  .kd__weekday span {
    font-size: 8px;
    padding-bottom: 0;
  }
  .kd__banner {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kd__cell {
    transform: none !important;
  }
  .kd__banner {
    transition: none;
  }
}
