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

.tt {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tt__panel {
  width: min(340px, 84vw);
  background: #231f28;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: 12px 0 8px;
  overflow: hidden;
}

.tt__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
}

.tt__pulse {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #3ddc97;
}

.tt__pulse svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tt__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(11px, 3vw, 13px);
  color: #fff7e6;
}

.tt__hint {
  margin-left: auto;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  color: #9a93a6;
}

.tt__tape {
  overflow: hidden;
  padding: 8px 0;
  border-top: 1px solid rgba(154, 147, 166, 0.24);
  border-bottom: 1px solid rgba(154, 147, 166, 0.24);
}

.tt__tape:focus-visible {
  outline: 2px solid #3ddc97;
  outline-offset: -2px;
}

.tt__track {
  display: flex;
  width: max-content;
  animation-name: ttSlide;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.tt__half {
  display: flex;
}

.tt__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 24px;
}

.tt__sym {
  margin-right: 8px;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  color: #9a93a6;
  letter-spacing: 0.04em;
}

.tt__price {
  margin-right: 8px;
  font-weight: 800;
  font-size: clamp(11px, 3.2vw, 14px);
  line-height: 1.5;
  color: #fff7e6;
  font-variant-numeric: tabular-nums;
}

.tt__chg {
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 11px);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.tt__chg.is-up {
  color: #3ddc97;
}

.tt__chg.is-down {
  color: #ff7a5e;
}

@keyframes ttSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tt__tape:hover .tt__track,
.tt:focus-within .tt__track {
  animation-play-state: paused;
}

.tt.is-demo .tt__track {
  animation-duration: 2s;
}

@media (max-width: 340px) {
  .tt__panel {
    padding: 8px 0 4px;
  }
  .tt__head {
    padding: 0 8px 8px;
  }
  .tt__tape {
    padding: 4px 0;
  }
  .tt__item {
    margin-right: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tt__track,
  .tt.is-demo .tt__track {
    animation: none !important;
    transform: translateX(0) !important;
  }
}
