@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
html, body {
  margin: 0;
  overflow: hidden;
}

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

.tt {
  box-sizing: border-box;
  width: min(312px, 92vw);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow: hidden;
}

.tt__bar {
  display: grid;
  padding: 8px 12px 0;
}

.tt__tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 8px 8px 0 0;
  background: #ecead9;
  font-size: 10px;
  line-height: 1.4;
}

.tt__ring {
  --p: 0;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #17141a;
  font-size: 12px;
  background: conic-gradient(from -90deg, #2f6df6 calc(var(--p) * 360deg), rgba(23, 20, 26, 0.18) 0);
}

.tt__ring svg {
  position: relative;
  width: 12px;
  height: 12px;
  color: #fff7e6;
}

.tt__titles {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  height: 14px;
  white-space: nowrap;
  overflow: hidden;
}

.tt__t {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  color: #17141a;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt__t--0 {
  display: block;
}

.tt.is-demo .tt__t {
  display: block;
}

.tt__x {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.25);
}

.tt__view {
  box-sizing: border-box;
  height: 148px;
  margin: 0 12px 12px;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}
.tt__view::-webkit-scrollbar {
  display: none;
}
.tt__view:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.tt__pad {
  display: grid;
  gap: 8px;
  padding: 8px 4px 84px;
}

.tt__lede {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.tt__line {
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
}

.tt__pad .tt__line:nth-child(3) {
  width: 92%;
}

.tt__pad .tt__line:nth-child(4) {
  width: 80%;
}

.tt__pad .tt__line:nth-child(5) {
  width: 88%;
}

.tt__pad .tt__line:nth-child(6) {
  width: 64%;
}

.tt__pad .tt__line:nth-child(7) {
  width: 84%;
}

.tt__tail {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.72);
}

@keyframes tt-fill {
  0% {
    --p: 0;
  }
  86%, 88% {
    --p: 1;
  }
  90%, 100% {
    --p: 0;
  }
}
@keyframes tt-t0 {
  0%, 24% {
    opacity: 1;
  }
  25%, 88% {
    opacity: 0;
  }
  89%, 100% {
    opacity: 1;
  }
}
@keyframes tt-t1 {
  0%, 24% {
    opacity: 0;
  }
  25%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
@keyframes tt-t2 {
  0%, 49% {
    opacity: 0;
  }
  50%, 79% {
    opacity: 1;
  }
  80%, 100% {
    opacity: 0;
  }
}
@keyframes tt-t3 {
  0%, 79% {
    opacity: 0;
  }
  80%, 88% {
    opacity: 1;
  }
  89%, 100% {
    opacity: 0;
  }
}
.tt.is-demo .tt__ring {
  animation-name: tt-fill;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.tt.is-demo .tt__t--0 {
  animation-name: tt-t0;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.tt.is-demo .tt__t--1 {
  animation-name: tt-t1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.tt.is-demo .tt__t--2 {
  animation-name: tt-t2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.tt.is-demo .tt__t--3 {
  animation-name: tt-t3;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .tt__view {
    height: 124px;
  }
  .tt__tab {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tt.is-demo .tt__ring,
  .tt.is-demo .tt__t {
    animation: none !important;
  }
  .tt.is-demo .tt__ring {
    --p: .5 !important;
  }
  .tt.is-demo .tt__t--0 {
    opacity: 1 !important;
  }
  .tt.is-demo .tt__t--1,
  .tt.is-demo .tt__t--2,
  .tt.is-demo .tt__t--3 {
    opacity: 0 !important;
  }
}
