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

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

.cb {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 420px);
  height: clamp(156px, 52vw, 236px);
  overflow: hidden;
  border: 1px solid rgba(23, 20, 26, 0.1);
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.04);
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.cb__page {
  position: absolute;
  inset: 0;
}

.cb__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 20, 26, 0.08);
}

.cb__brand {
  width: 44px;
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.24);
}

.cb__nav {
  width: 28px;
  height: 6px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.12);
}

.cb__nav:first-of-type {
  margin-left: auto;
}

.cb__lines {
  display: grid;
  gap: 8px;
  padding: 16px 12px;
}

.cb__line {
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.12);
}

.cb__line--head {
  height: 12px;
  width: 62%;
  background: rgba(23, 20, 26, 0.2);
}

.cb__line--short {
  width: 48%;
}

.cb__chip {
  position: absolute;
  top: 32px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.1);
  color: #2f6df6;
  font-size: clamp(9px, 2.6vw, 11px);
  font-weight: 700;
  line-height: 1.2;
}

.cb__chip[hidden] {
  display: none;
}

.cb__chip-k::after {
  content: ":";
}

.cb__banner {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(23, 20, 26, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 20, 26, 0.1);
  transform: translateY(0);
  opacity: 1;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cb__banner.is-out {
  transform: translateY(calc(100% + 8px));
  opacity: 0;
}

.cb__ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.12);
  color: #2f6df6;
}

.cb__text {
  flex: 1 1 128px;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cb__title {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cb__desc {
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.35;
  color: rgba(23, 20, 26, 0.72);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cb__acts {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.cb__btn {
  border: 1px solid rgba(23, 20, 26, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 220ms ease-out, transform 220ms ease-out;
}

.cb__btn--ok {
  border-color: transparent;
  background: #0a4fe8;
  color: #fff7e6;
}

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

.cb__btn--ok:hover, .cb__btn--ok:focus-visible {
  background: rgba(47, 109, 246, 0.84);
}

.cb__btn:active {
  transform: translateY(1px);
}

.cb.is-demo .cb__banner {
  animation: cb-slide 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes cb-slide {
  0% {
    transform: translateY(calc(100% + 8px));
    opacity: 0;
  }
  22%, 72% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100% + 8px));
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .cb__lines {
    padding: 12px 12px;
    gap: 4px;
  }
  .cb__banner {
    gap: 8px;
    padding: 8px;
  }
  .cb__ic {
    width: 24px;
    height: 24px;
  }
  .cb__acts {
    width: 100%;
  }
  .cb__btn {
    flex: 1 1 auto;
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb.is-demo .cb__banner {
    animation: none !important;
    transform: translateY(0);
    opacity: 1;
  }
  .cb__banner, .cb__btn {
    transition: none;
  }
}
