html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ms {
  position: relative;
  width: 100%;
  max-width: 230px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.ms__viewport {
  position: relative;
  width: 200px;
  height: 168px;
  transition: width 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ms__viewport--narrow {
  width: 92px;
}

.ms__field {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 4px 8px;
  border: none;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ms__fieldLabel {
  font-size: 8px;
  opacity: 0.68;
}

.ms__fieldValue {
  font-size: 10px;
  font-weight: 700;
}

.ms__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: scaleY(0);
  transform-origin: bottom center;
  opacity: 0;
  pointer-events: none;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease-out;
}

.ms__panel.ms--open.ms__panel--popover {
  transform: scale(0.6, 0.46);
  opacity: 1;
  pointer-events: auto;
}

.ms__panel.ms--open.ms__panel--sheet {
  transform: scale(1, 1);
  opacity: 1;
  pointer-events: auto;
}

.ms__panelHead {
  font-size: 9px;
  font-weight: 700;
  color: #17141a;
  text-align: center;
  margin-bottom: 4px;
}

.ms__strip {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.ms__day {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 9px;
  color: #17141a;
  border-radius: 4px;
}

.ms__day--today {
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
}

.ms__toggle {
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  color: #17141a;
  background: #fff7e6;
  cursor: pointer;
}

@media (max-width: 340px) {
  .ms {
    max-width: 170px;
  }
  .ms__viewport {
    width: 150px;
    height: 140px;
  }
  .ms__viewport--narrow {
    width: 76px;
  }
  .ms__day {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms__panel, .ms__viewport {
    transition: none;
  }
}
