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

.stage {
  position: relative;
  overflow: hidden;
}

.cdbd__page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(220px, 66vw);
  transform-origin: center;
  will-change: transform, filter;
}

.cdbd__bar {
  height: 18px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.8);
  width: 60%;
}

.cdbd__card {
  height: 46px;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.14);
}

.cdbd__toggle {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  background: #17141a;
  color: #ffd23f;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  align-self: flex-start;
}

.cdbd__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(70%, 230px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #17141a;
  color: #fff7e6;
  transform: translateX(100%);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.cdbd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
}

.cdbd__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cdbd__list li {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.1);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 340px) {
  .cdbd__page {
    width: min(180px, 62vw);
  }
  .cdbd__card {
    height: 36px;
  }
  .cdbd__panel {
    width: min(76%, 190px);
    padding: 12px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cdbd__page, .cdbd__panel {
    transition: none !important;
  }
}
