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

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

.pb {
  box-sizing: border-box;
  width: min(404px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.pb__box {
  position: relative;
  overflow: hidden;
  height: 76px;
}

.pb__toast {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pb__toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

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

.pb__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.pb__ic {
  display: inline-flex;
  flex: 0 0 auto;
  color: #2f6df6;
}

.pb__ic svg {
  display: block;
}

.pb__txt {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.pb__msg {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb__sub {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(23, 20, 26, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb__hold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  opacity: 0;
}

.pb__hold svg {
  display: block;
}

.pb__holdtxt {
  font-size: 10px;
  line-height: 18px;
  font-weight: 700;
}

.pb__toast.is-hold .pb__hold {
  opacity: 1;
}

.pb__x {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  cursor: pointer;
}

.pb__x svg {
  display: block;
}

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

.pb__track {
  display: block;
  height: 4px;
  background: rgba(23, 20, 26, 0.1);
}

.pb__fill {
  display: block;
  height: 100%;
  background: #2f6df6;
  transform-origin: left center;
  transform: scaleX(1);
}

.pb__toast.is-on .pb__fill {
  animation-name: pb-drain;
  animation-duration: 4200ms;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.pb__toast.is-hold .pb__fill {
  animation-play-state: paused;
}

@keyframes pb-drain {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
.pb__go {
  box-sizing: border-box;
  align-self: center;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
}

.pb__go:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.pb.is-demo .pb__toast {
  opacity: 1;
  transition: none;
  animation-name: pb-card;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes pb-card {
  0%, 74% {
    transform: scale(1);
  }
  79% {
    transform: scale(0.955);
  }
  86% {
    transform: scale(1);
  }
  90%, 100% {
    transform: scale(1);
  }
}
.pb.is-demo .pb__fill {
  animation-name: pb-loop;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes pb-loop {
  0%, 6% {
    transform: scaleX(1);
  }
  34% {
    transform: scaleX(0.62);
  }
  51% {
    transform: scaleX(0.62);
  }
  74% {
    transform: scaleX(0);
  }
  86% {
    transform: scaleX(0);
  }
  90%, 100% {
    transform: scaleX(1);
  }
}
.pb.is-demo .pb__hold {
  animation-name: pb-hold;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes pb-hold {
  0%, 34% {
    opacity: 0;
  }
  35%, 51% {
    opacity: 1;
  }
  52%, 100% {
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .pb {
    gap: 8px;
  }
  .pb__box {
    height: 64px;
  }
  .pb__row {
    gap: 8px;
    padding: 8px 12px;
  }
  .pb__msg {
    font-size: 12px;
    line-height: 16px;
  }
  .pb__sub {
    font-size: 10px;
    line-height: 14px;
  }
  .pb__go {
    padding: 4px 12px;
    font-size: 11px;
    line-height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pb.is-demo .pb__toast,
  .pb.is-demo .pb__fill,
  .pb.is-demo .pb__hold,
  .pb__toast.is-on .pb__fill {
    animation: none !important;
  }
  .pb.is-demo .pb__toast {
    opacity: 1;
    transform: none;
  }
  .pb__toast {
    transition: none;
  }
}
