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

.bar {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.bar__hint {
  margin: 0;
  padding: 0 8px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

.bar__viewport {
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
}

.bar__track {
  display: flex;
  width: max-content;
  animation-name: bar-scroll;
  animation-duration: var(--dur, 8s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.bar__set {
  display: flex;
  flex: 0 0 auto;
}

.bar__logo {
  flex: 0 0 auto;
  display: inline-block;
  width: 40px;
  height: 24px;
  margin-right: 20px;
  background: rgba(23, 20, 26, 0.5);
}

.bar__logo--circle {
  border-radius: 999px;
}

.bar__logo--square {
  border-radius: 4px;
}

.bar__logo--triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 24px solid rgba(23, 20, 26, 0.5);
  background: none;
}

.bar__logo--hexagon {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.bar__logo--diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.bar__logo--pill {
  border-radius: 999px;
  width: 46px;
}

@keyframes bar-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.bar__meta {
  margin: 0;
}

.bar__chip {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
}

@media (max-width: 340px) {
  .bar {
    max-width: 300px;
    gap: 8px;
  }
  .bar__hint {
    font-size: 9px;
  }
  .bar__logo {
    width: 32px;
    height: 20px;
    margin-right: 16px;
  }
  .bar__logo--triangle {
    border-left-width: 16px;
    border-right-width: 16px;
    border-bottom-width: 20px;
  }
  .bar__chip {
    font-size: 10px;
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar__track {
    animation-play-state: paused;
  }
}
