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

.mk {
  width: min(400px, 88vw);
}

.mk__scroll {
  height: clamp(150px, 62vh, 216px);
  overflow-y: auto;
  scrollbar-width: none;
}
.mk__scroll::-webkit-scrollbar {
  display: none;
}

.mk__spacer {
  height: 30%;
}

.mk__title {
  margin: 0;
  padding: 0 16px;
  text-align: center;
  color: #17141a;
  font: 800 clamp(22px, 5.5vw, 30px)/1.5 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  letter-spacing: -0.01em;
}

.mk__sub {
  margin: 12px 0 0;
  text-align: center;
  color: rgba(23, 20, 26, 0.72);
  font: 600 13px/1.5 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

@supports (animation-timeline: view()) {
  .mk__hl:not(.is-demo) {
    animation: mk-sw linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 60%;
  }
}
@supports not (animation-timeline: view()) {
  .mk__hl:not(.is-demo) {
    background-size: 100% 58%;
  }
}
.mk__hl {
  background: linear-gradient(#2f6df6, #2f6df6) no-repeat 0 62%;
  background-size: 0% 58%;
  border-radius: 4px;
  padding: 0 4px;
}

@keyframes mk-sw {
  from {
    background-size: 0% 58%;
  }
  to {
    background-size: 100% 58%;
  }
}
.mk__hl.is-demo {
  animation: mk-loop 2s ease-out infinite;
}

@keyframes mk-loop {
  0%, 10% {
    background-size: 0% 58%;
  }
  55%, 88% {
    background-size: 100% 58%;
  }
  100% {
    background-size: 0% 58%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mk__hl.is-demo {
    animation: none !important;
    background-size: 100% 58% !important;
  }
  .mk__scroll {
    scroll-behavior: auto;
  }
}
