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

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

.wrap {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modeLabel {
  color: #fff7e6;
  font-size: 10px;
  font-weight: 700;
}

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

.panelWrap {
  position: relative;
  width: 190px;
}

.panel {
  margin: 0;
  padding: 8px;
  list-style: none;
  width: 100%;
  height: 130px;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.08);
  overscroll-behavior: auto;
}

@supports (overscroll-behavior: contain) {
  .wrap:not(.force-fallback) .panel {
    overscroll-behavior: contain;
  }
}
.force-fallback .panel {
  overscroll-behavior: auto;
}

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

.pullCap {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 6px;
  border-radius: 999px;
  background: #c93000;
  transform-origin: center bottom;
  transform: scaleY(0);
  transition: transform 140ms ease-out;
}

@media (max-width: 340px) {
  .wrap {
    width: 208px;
  }
  .panelWrap {
    width: 168px;
  }
  .panel {
    height: 112px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pullCap {
    transition: none;
  }
  .simToggle {
    transition: none;
  }
}
