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

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

.ps__chips {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.ps__chip {
  flex: 1 1 auto;
  border: none;
  border-radius: 999px;
  padding: 4px 4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff7e6;
  background: rgba(255, 247, 230, 0.16);
  cursor: pointer;
  transition: background-color 220ms ease-out;
}

.ps__chip--active {
  background: #0a4fe8;
}

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

.ps__label {
  font-size: 11px;
  font-weight: 700;
  color: #fff7e6;
}

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

.ps__weekday span {
  font-size: 9px;
  text-align: center;
  color: rgba(255, 247, 230, 0.72);
  padding-bottom: 4px;
}

.ps__cell {
  display: grid;
  place-items: center;
  height: 18px;
  font-size: 10px;
  color: #fff7e6;
  border-radius: 4px;
  border: none;
  background: transparent;
  transition: background-color 300ms ease-out, transform 300ms ease-out;
}

.ps__cell--out {
  visibility: hidden;
}

.ps__cell--on {
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  transform: scale(1.05);
}

@media (max-width: 340px) {
  .ps {
    max-width: 190px;
  }
  .ps__chip {
    font-size: 8px;
    padding: 4px 0;
  }
  .ps__cell {
    height: 15px;
    font-size: 9px;
  }
  .ps__weekday span {
    font-size: 8px;
    padding-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ps__cell, .ps__chip {
    transition: none;
  }
}
