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

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

.stage {
  padding: clamp(4px, 3vw, 16px);
}

.list {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 3vw, 12px);
  width: clamp(240px, 80vw, 360px);
}

.item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: clamp(4px, 2vw, 8px) 12px;
  border: 3px solid #17141a;
  border-radius: 0;
  background: #fff7e6;
  box-shadow: 4px 4px 0 #17141a;
}

.item__badge {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(24px, 7vw, 34px);
  height: clamp(24px, 7vw, 34px);
  border: 3px solid #17141a;
  border-radius: 0;
  font-weight: 900;
  font-size: clamp(10px, 2.6vw, 13px);
}

.item__badge--a {
  background: #0a4fe8;
  color: #fff7e6;
  transform: rotate(-6deg);
  animation: straightenA 2s ease-out infinite;
}

.item__badge--b {
  background: #ffd23f;
  color: #17141a;
  transform: rotate(5deg);
  animation: straightenB 2s ease-out infinite;
  animation-delay: -0.7s;
}

.item__badge--c {
  background: #ff4d1f;
  color: #17141a;
  transform: rotate(-4deg);
  animation: straightenC 2s ease-out infinite;
  animation-delay: -1.4s;
}

.item__label {
  margin: 0;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(12px, 2.8vw, 14px);
}

@keyframes straightenA {
  0%, 60%, 100% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(0deg);
  }
}
@keyframes straightenB {
  0%, 60%, 100% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(0deg);
  }
}
@keyframes straightenC {
  0%, 60%, 100% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .item__badge--a, .item__badge--b, .item__badge--c {
    animation: none !important;
    transform: none;
  }
}
