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

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

.swa {
  width: min(100%, 280px);
}

.swa__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swa__row {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transform-origin: top center;
}
.swa__row.is-deleted {
  animation-name: swaRowOut;
  animation-duration: 300ms;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes swaRowOut {
  to {
    opacity: 0;
    transform: scaleY(0);
  }
}
.swa__actions {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: rgba(194, 54, 26, 0.18);
}

.swa__actionBtn {
  box-sizing: border-box;
  width: 72px;
  border: 0;
  background: transparent;
  color: #c2361a;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.swa__actionBtn:focus-visible {
  outline: 2px solid #c2361a;
  outline-offset: -2px;
}

.swa__content {
  --swipe-x: 0px;
  box-sizing: border-box;
  position: relative;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  transform: translateX(var(--swipe-x));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: pan-y;
}
.swa__content.is-dragging {
  transition: none;
}
.swa__content:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .swa__content {
    padding: 8px;
    font-size: 11px;
  }
  .swa__actionBtn {
    width: 60px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .swa__content {
    transition: none;
  }
  .swa__row.is-deleted {
    animation: none;
    opacity: 0;
  }
}
