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

.wrap {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modeLabel {
  color: #fff7e6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.simToggle {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.14);
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease-out, transform 140ms ease-out;
}
.simToggle:hover {
  background: rgba(255, 247, 230, 0.22);
}
.simToggle:active {
  transform: scale(0.96);
}
.simToggle[aria-pressed=true] {
  background: #c93000;
}
.simToggle:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.body {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.itemList {
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  width: 220px;
  height: 116px;
  overflow-y: scroll;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.06);
}
.itemList::-webkit-scrollbar {
  width: 10px;
}
.itemList::-webkit-scrollbar-track {
  background: transparent;
}
.itemList::-webkit-scrollbar-thumb {
  background: #2f6df6;
  border-radius: 999px;
}

@supports (scrollbar-width: thin) {
  .itemList:not(.force-fallback) {
    scrollbar-width: thin;
    scrollbar-color: #5b8cf8 transparent;
  }
}
.force-fallback .itemList {
  scrollbar-width: auto;
  scrollbar-color: unset;
}

.itemList li {
  padding: 4px 0;
  color: #fff7e6;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 247, 230, 0.1);
}
.itemList li:last-child {
  border-bottom: none;
}

.track {
  position: relative;
  width: 6px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.1);
}

.trackDot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: #5b8cf8;
  transform: translateY(0);
}

.force-fallback .trackDot {
  background: #c93000;
}

@media (max-width: 340px) {
  .wrap {
    width: 210px;
  }
  .itemList {
    width: 174px;
    height: 96px;
    font-size: 11px;
  }
  .modeLabel {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trackDot {
    transition: none;
  }
  .simToggle {
    transition: none;
  }
}
