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

.mf {
  box-sizing: border-box;
  width: min(292px, 92vw);
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.mf__chips {
  display: flex;
  gap: 4px;
  height: 22px;
  margin-bottom: 4px;
  overflow: hidden;
}

.mf__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: #17141a;
  color: #ffd23f;
  font-size: 10px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-14px);
}

.mf__chip.is-live {
  opacity: 1;
  transform: translateY(0);
}

.mf__fic {
  display: inline-flex;
  width: 11px;
  height: 11px;
}

.mf__grid {
  border: 2px solid #17141a;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.mf__row {
  display: grid;
  grid-template-columns: 1fr 68px 56px;
  align-items: center;
  height: 22px;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
}

.mf__row > * {
  padding: 0 8px;
  font-size: 11px;
  line-height: 22px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.mf__row--head {
  background: rgb(92.7215686275%, 92.6274509804%, 92.8156862745%);
}

.mf__row--head > * {
  font-weight: 700;
}

.mf__row--filter {
  height: 24px;
  background: rgb(97.2705882353%, 97.2352941176%, 97.3058823529%);
}

.mf__f {
  position: relative;
  display: block;
  padding: 0 4px;
}

.mf__in {
  box-sizing: border-box;
  width: 100%;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  border-radius: 4px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
}

.mf__in:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -1px;
}

.mf__ghost {
  position: absolute;
  left: 8px;
  top: 0;
  color: #17141a;
  font-size: 10px;
  line-height: 18px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
}

.mf__row--filter .mf__f:last-child {
  padding: 0;
}

.mf__body .mf__row.is-out {
  height: 0;
  opacity: 0;
}

.mf.is-demo .mf__ghost {
  opacity: 1;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.mf.is-demo .mf__ghost--1 {
  animation-name: mf-type1;
  animation-timing-function: steps(1, end);
}

.mf.is-demo .mf__ghost--2 {
  animation-name: mf-type2;
  animation-timing-function: steps(2, end);
}

.mf.is-demo .mf__body .mf__row {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.mf.is-demo .mf__body .mf__row:nth-child(2) {
  animation-name: mf-out2;
}

.mf.is-demo .mf__body .mf__row:nth-child(3) {
  animation-name: mf-out3;
}

.mf.is-demo .mf__body .mf__row:nth-child(4) {
  animation-name: mf-out4;
}

.mf.is-demo .mf__chip {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.mf.is-demo .mf__chip--1 {
  animation-name: mf-chip1;
}

.mf.is-demo .mf__chip--2 {
  animation-name: mf-chip2;
}

@keyframes mf-type1 {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  8% {
    clip-path: inset(0 100% 0 0);
  }
  24% {
    clip-path: inset(0 0 0 0);
  }
  72% {
    clip-path: inset(0 0 0 0);
  }
  74% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes mf-type2 {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  44% {
    clip-path: inset(0 100% 0 0);
  }
  56% {
    clip-path: inset(0 0 0 0);
  }
  72% {
    clip-path: inset(0 0 0 0);
  }
  74% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes mf-out2 {
  0% {
    height: 22px;
    opacity: 1;
  }
  58% {
    height: 0;
    opacity: 0;
  }
  76% {
    height: 22px;
    opacity: 1;
  }
  100% {
    height: 22px;
    opacity: 1;
  }
}
@keyframes mf-out3 {
  0% {
    height: 22px;
    opacity: 1;
  }
  26% {
    height: 0;
    opacity: 0;
  }
  80% {
    height: 22px;
    opacity: 1;
  }
  100% {
    height: 22px;
    opacity: 1;
  }
}
@keyframes mf-out4 {
  0% {
    height: 22px;
    opacity: 1;
  }
  26% {
    height: 0;
    opacity: 0;
  }
  84% {
    height: 22px;
    opacity: 1;
  }
  100% {
    height: 22px;
    opacity: 1;
  }
}
@keyframes mf-chip1 {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  22% {
    opacity: 0;
    transform: translateY(-14px);
  }
  32% {
    opacity: 1;
    transform: translateY(0);
  }
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  82% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes mf-chip2 {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  54% {
    opacity: 0;
    transform: translateY(-14px);
  }
  64% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  78% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@media (max-width: 340px) {
  .mf__row {
    grid-template-columns: 1fr 56px 44px;
  }
  .mf__row > * {
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mf.is-demo .mf__ghost,
  .mf.is-demo .mf__body .mf__row,
  .mf.is-demo .mf__chip {
    animation: none !important;
  }
  .mf.is-demo .mf__ghost {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  .mf.is-demo .mf__body .mf__row:nth-child(2),
  .mf.is-demo .mf__body .mf__row:nth-child(3),
  .mf.is-demo .mf__body .mf__row:nth-child(4) {
    height: 0;
    opacity: 0;
  }
  .mf.is-demo .mf__chip {
    opacity: 1;
    transform: translateY(0);
  }
}
