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

.ft {
  box-sizing: border-box;
  width: min(272px, 88vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.ft__crumbs {
  position: relative;
  box-sizing: border-box;
  height: 22px;
  margin: 0 0 8px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.26);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ft__crumb, .ft__cs {
  font-size: 11px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ft__cstack {
  position: relative;
  display: block;
  width: 100%;
  height: 22px;
}

.ft__cs {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.ft__cs b {
  color: #ffd23f;
  font-weight: 800;
}

.ft__tree {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft__tree:focus-visible {
  outline: none;
}

.ft__tree:focus-visible .ft__item[aria-selected=true] .ft__row {
  outline: 2px solid #17141a;
  outline-offset: -2px;
}

.ft__row {
  box-sizing: border-box;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 1;
}

.ft__ico {
  display: inline-flex;
  flex: 0 0 auto;
  color: #17141a;
}

.ft__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ft__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24px;
  border-left: 3px solid #2f6df6;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ft.is-demo .ft__bar {
  animation-name: hl-bar;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes hl-bar {
  0%, 20% {
    transform: translateY(0);
  }
  28%, 48% {
    transform: translateY(24px);
  }
  56%, 84% {
    transform: translateY(48px);
  }
  96%, 100% {
    transform: translateY(0);
  }
}
.ft.is-demo .ft__cs--1 {
  animation-name: cs-1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes cs-1 {
  0% {
    opacity: 1;
  }
  28% {
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.ft.is-demo .ft__cs--2 {
  animation-name: cs-2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes cs-2 {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  56% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.ft.is-demo .ft__cs--3 {
  animation-name: cs-3;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes cs-3 {
  0% {
    opacity: 0;
  }
  56% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .ft__row {
    height: 22px;
    font-size: 11px;
  }
  .ft__bar {
    height: 22px;
  }
  @keyframes hl-bar {
    0%, 20% {
      transform: translateY(0);
    }
    28%, 48% {
      transform: translateY(22px);
    }
    56%, 84% {
      transform: translateY(44px);
    }
    96%, 100% {
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft.is-demo .ft__bar, .ft.is-demo .ft__cs {
    animation: none !important;
  }
  .ft.is-demo .ft__cs--1 {
    opacity: 1;
  }
  .ft__bar {
    transition: none;
  }
}
