@charset "UTF-8";
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);
}

.bb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bb__scene {
  position: relative;
  width: min(336px, 86vw);
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #fff6f9;
}

/* 배경을 가로지르는 색 띠 — 배지가 유리임을 증명하는 재료 */
.bb__band {
  position: absolute;
  top: -20px;
  width: 72px;
  height: 176px;
  border-radius: 999px;
}

.bb__band--1 {
  left: -80px;
  background: #ff9ebb;
}

.bb__band--2 {
  left: -80px;
  background: #4cd4a6;
}

.bb__band--3 {
  left: -80px;
  background: #6ec8ff;
}

.bb__dock {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(23, 20, 26, 0.12);
}

.bb__btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(23, 20, 26, 0.62);
  cursor: pointer;
  transition: color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bb__btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bb__btn:hover {
  color: #17141a;
  background: rgba(255, 255, 255, 0.7);
}

.bb__btn:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.bb__cap {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.62);
}

/* 자동 재생 — 띠가 오른쪽 끝까지 갔다가 같은 길로 돌아온다(복귀 텔레포트 없음) */
.is-demo .bb__band {
  animation-name: bb-drift;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.is-demo .bb__band--2 {
  animation-delay: -0.22s;
}

.is-demo .bb__band--3 {
  animation-delay: -0.44s;
}

@keyframes bb-drift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(420px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (max-width: 340px) {
  .bb__scene {
    height: 120px;
  }
  .bb__btn {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-demo .bb__band {
    animation-name: none;
  }
  .bb__btn {
    transition: none;
  }
}
