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

.cs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 424px;
}

.cs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cs__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 800;
  font-size: clamp(12px, 3.2vw, 14px);
  color: #17141a;
}

.cs__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #17141a;
}

.cs__say {
  margin: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(23, 20, 26, 0.14);
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.2;
  color: #17141a;
}

.cs__days {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.cs__cell {
  position: relative;
  width: 100%;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.78);
}

.cs__n {
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1;
}

.cs__cell.is-on {
  background: rgba(23, 20, 26, 0.16);
  color: #17141a;
}

.cs__cell.is-on .cs__n {
  font-weight: 800;
}

.cs__cell.is-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cs__cell.is-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

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

.cs__stamp {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  color: #17141a;
  opacity: 0;
  transform: rotate(-12deg) scale(0.5);
}

.cs__cell.is-on .cs__stamp {
  opacity: 0.95;
  transform: rotate(-12deg) scale(1);
}

.cs.is-demo .cs__cell .cs__stamp {
  animation-name: csStamp;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 18ms);
}

@keyframes csStamp {
  0% {
    opacity: 0;
    transform: rotate(-42deg) scale(0.3);
  }
  12% {
    opacity: 0.95;
    transform: rotate(-12deg) scale(1);
  }
  76% {
    opacity: 0.95;
    transform: rotate(-12deg) scale(1);
  }
  86% {
    opacity: 0;
    transform: rotate(-42deg) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: rotate(-42deg) scale(0.3);
  }
}
.cs.is-demo .cs__cell {
  animation-name: csBand;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 18ms);
}

@keyframes csBand {
  0% {
    background-color: transparent;
  }
  12% {
    background-color: rgba(23, 20, 26, 0.16);
  }
  86% {
    background-color: transparent;
  }
  100% {
    background-color: transparent;
  }
}
@media (max-width: 340px) {
  .cs {
    gap: 8px;
  }
  .cs__cell {
    height: 22px;
  }
  .cs__stamp {
    width: 16px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs.is-demo .cs__cell .cs__stamp,
  .cs.is-demo .cs__cell {
    animation: none !important;
  }
}
