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

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

.mb {
  position: relative;
  box-sizing: border-box;
  width: clamp(272px, 90vw, 420px);
  height: clamp(170px, 62vh, 232px);
  overflow: hidden;
  border: 1px solid rgba(255, 247, 230, 0.12);
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.04);
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.mb__top {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 12px;
  background: rgba(255, 247, 230, 0.06);
}

.mb__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.2);
}

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

.mb__line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.06);
}

.mb__line--title {
  height: 12px;
  width: 56%;
  background: rgba(255, 247, 230, 0.12);
}

.mb__line--short {
  width: 62%;
}

.mb__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 247, 230, 0.22);
  background: rgba(255, 247, 230, 0.14);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mb__bar.is-gone {
  transform: translateY(100%);
}

.mb__cookie {
  display: inline-flex;
  flex: 0 0 auto;
  color: #fff7e6;
}

.mb__text {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(9px, 2.6vw, 12px);
  line-height: 1.3;
  color: rgba(255, 247, 230, 0.88);
}

.mb__ok {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff7e6;
  color: #17141a;
  font-family: inherit;
  font-size: clamp(9px, 2.6vw, 11px);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 220ms ease-out, transform 140ms ease-out;
}

.mb__ok:hover, .mb__ok:focus-visible {
  opacity: 0.86;
}

.mb__ok:active {
  transform: scale(0.97);
}

.mb__x {
  flex: 0 0 auto;
  display: inline-flex;
  border: 0;
  border-radius: 8px;
  padding: 4px;
  background: none;
  color: rgba(255, 247, 230, 0.64);
  cursor: pointer;
  transition: color 220ms ease-out, transform 140ms ease-out;
}

.mb__x:hover, .mb__x:focus-visible {
  color: #fff7e6;
}

.mb__x:active {
  transform: scale(0.97);
}

.mb__xic {
  display: inline-flex;
}

.mb__bar.is-demo {
  animation: mb-up 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes mb-up {
  0%, 100% {
    transform: translateY(100%);
  }
  20%, 82% {
    transform: translateY(0);
  }
}
.mb__bar.is-demo .mb__cookie {
  animation: mb-tilt 2s ease-out infinite;
}

@keyframes mb-tilt {
  0% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(-6deg);
  }
}
@media (max-width: 340px) {
  .mb__lines {
    gap: 8px;
    padding: 12px;
  }
  .mb__bar {
    gap: 4px;
    padding: 0 8px;
  }
  .mb__ok {
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mb__bar.is-demo, .mb__bar.is-demo .mb__cookie {
    animation: none !important;
  }
  .mb__bar.is-demo {
    transform: translateY(0);
  }
  .mb__bar, .mb__ok, .mb__x {
    transition: none;
  }
}
