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

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

.tr {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr__hint {
  margin: 0;
  padding: 0 4px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: #17141a;
}

.tr__list {
  margin: 0;
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.tr__row {
  display: grid;
  grid-template-columns: 16px 40px 16px 1fr 32px;
  align-items: center;
  gap: 8px;
}

.tr__rank {
  font-weight: 700;
  font-size: 12px;
  color: #17141a;
}

.tr__q {
  font-weight: 500;
  font-size: 12px;
  color: #17141a;
}

.tr__delta {
  display: inline-flex;
}

.tr__delta_ic {
  width: 12px;
  height: 12px;
  color: #0a4fe8;
}

.tr__track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.12);
  overflow: hidden;
}

.tr__bar {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: #0a4fe8;
  transform-origin: left center;
  transform: scaleX(0);
  transition-property: transform;
  transition-duration: 600ms;
  transition-timing-function: ease-out;
  transition-delay: calc(var(--i) * 90ms);
}

.is-demo .tr__bar {
  transform: scaleX(var(--ratio));
}

.tr__count {
  text-align: right;
  font-weight: 700;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.72);
}

@media (max-width: 340px) {
  .tr {
    max-width: 260px;
  }
  .tr__row {
    grid-template-columns: 14px 34px 14px 1fr 28px;
  }
  .tr__list {
    max-height: 108px;
    overflow-y: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tr__bar {
    transition: none;
    transform: scaleX(var(--ratio));
  }
}
