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

.ma-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(280px, 82vw);
}

.ma-row {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: height 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ma-row__actions {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  width: 198px;
}

.ma-row__action {
  flex: 1 0 66px;
  border: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), background-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ma-row__action--fav {
  background: #17141a;
}

.ma-row__action--fav.is-on {
  background: #ffd23f;
  color: #17141a;
}

.ma-row__action--archive {
  background: #2f6df6;
}

.ma-row__action--del {
  background: #c2361a;
}

.ma-row__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
  cursor: grab;
  touch-action: pan-y;
}

.ma-row__content:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.ma-row:focus-within .ma-row__action {
  opacity: 1;
  transform: translateY(0);
}

.ma-row__title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #17141a;
}

.ma-row__desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(23, 20, 26, 0.6);
}

.ma-row.is-demo .ma-row__content {
  animation: ma-content-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.ma-row.is-demo .ma-row__action {
  animation: ma-action-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.ma-row.is-demo .ma-row__action--fav {
  animation-delay: 0ms;
}

.ma-row.is-demo .ma-row__action--archive {
  animation-delay: 80ms;
}

.ma-row.is-demo .ma-row__action--del {
  animation-delay: 160ms;
}

@keyframes ma-content-loop {
  0%, 15% {
    transform: translateX(0);
  }
  50%, 70% {
    transform: translateX(-198px);
  }
  95%, 100% {
    transform: translateX(0);
  }
}
@keyframes ma-action-loop {
  0%, 15% {
    opacity: 0;
    transform: translateY(8px);
  }
  50%, 70% {
    opacity: 1;
    transform: translateY(0);
  }
  95%, 100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ma-row__content, .ma-row__action, .ma-row {
    transition: none;
  }
  .ma-row.is-demo .ma-row__content {
    animation: none;
    transform: translateX(-198px);
  }
  .ma-row.is-demo .ma-row__action {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
}
