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

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

.cx {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cx__tabs {
  position: relative;
  display: flex;
  gap: 4px;
  background: rgba(23, 20, 26, 0.08);
  border-radius: 12px;
  padding: 4px;
}

.cx__tab {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #17141a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.cx__tab[aria-selected=true] {
  color: #fff7e6;
}

.cx__ind {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 8px;
  background: #17141a;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), width 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}

.cx__panel {
  height: 128px;
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.06);
}

.cx__section {
  padding: 8px;
}

.cx__h {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cx__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.cx__ch {
  border: none;
  background: rgba(23, 20, 26, 0.08);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  padding: 8px 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cx__ch:hover, .cx__ch:focus-visible {
  background: rgba(23, 20, 26, 0.18);
}

.cx__ch:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 1px;
}

.cx__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 340px) {
  .cx {
    width: 100%;
  }
  .cx__panel {
    height: 112px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx__ind {
    transition: none;
  }
}
