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

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

.marqm {
  box-sizing: border-box;
  width: clamp(272px, 90vw, 416px);
}

.marqm__viewport {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  border: 3px solid #241f26;
  box-shadow: 0 6px 0 #241f26;
}

.marqm__track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 16px 0;
  animation: trackFlow 2s linear infinite;
}

.marqm__tok {
  margin-right: 16px;
}

.marqm__tok--dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d5aea9;
  border: 3px solid #241f26;
}

.marqm__tok--squig {
  width: 44px;
  height: 12px;
  background: conic-gradient(from 315deg at 50% 100%, #cec29c 0 90deg, transparent 90deg 360deg) 0 0/12px 12px repeat-x;
  border-top: 3px solid #241f26;
}

.marqm__tok--cross {
  position: relative;
  width: 22px;
  height: 22px;
}

.marqm__tok--cross::before,
.marqm__tok--cross::after {
  content: "";
  position: absolute;
  background: #82adc2;
  border: 2px solid #241f26;
  border-radius: 4px;
}

.marqm__tok--cross::before {
  left: 50%;
  top: 0;
  width: 8px;
  height: 100%;
  transform: translateX(-50%);
}

.marqm__tok--cross::after {
  top: 50%;
  left: 0;
  height: 8px;
  width: 100%;
  transform: translateY(-50%);
}

.marqm__tok--half {
  width: 26px;
  height: 14px;
  border-radius: 999px 999px 0 0;
  background: #71b9ab;
  border: 3px solid #241f26;
}

.marqm__tok--tri {
  width: 24px;
  height: 22px;
  background: #ebd6db;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.marqm__hint {
  margin: 12px 0 0;
  color: #5d5560;
  font-weight: 600;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1;
  font-family: inherit;
  text-align: center;
}

@keyframes trackFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .marqm {
    width: 240px;
  }
  .marqm__track {
    padding: 12px 0;
  }
  .marqm__tok {
    margin-right: 12px;
  }
  .marqm__tok--dot {
    width: 18px;
    height: 18px;
  }
  .marqm__tok--squig {
    width: 36px;
  }
  .marqm__tok--cross {
    width: 18px;
    height: 18px;
  }
  .marqm__tok--half {
    width: 22px;
    height: 12px;
  }
  .marqm__tok--tri {
    width: 20px;
    height: 18px;
  }
  .marqm__hint {
    margin-top: 8px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marqm__track {
    animation: none !important;
    transform: none;
  }
}
