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

.timeout-wrap {
  position: relative;
  width: min(280px, 90vw);
  height: 132px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.timeout-wrap__page {
  position: absolute;
  inset: 0;
  padding: 16px;
  padding-top: 48px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeout-wrap__line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e6e2d8;
}

.timeout-wrap__line--short {
  width: 55%;
}

.timeout-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1.5px solid #e6e2d8;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: translateY(-100%);
}

.timeout-banner__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #2f6df6;
}

.timeout-banner__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
  font-family: inherit;
}

.timeout-banner__count {
  color: #2f6df6;
  font-weight: 700;
}

.timeout-banner__extend {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: none;
  border-radius: 999px;
  background: #2f6df6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.timeout-banner__extend:hover, .timeout-banner__extend:focus-visible {
  background: rgb(3.9360260233%, 31.0508719617%, 90.965934761%);
}

.timeout-banner.is-demo {
  animation: banner-cycle 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes banner-cycle {
  0%, 8% {
    transform: translateY(-100%);
  }
  23%, 77% {
    transform: translateY(0);
  }
  92%, 100% {
    transform: translateY(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .timeout-banner.is-demo {
    animation: none;
    transform: translateY(0);
  }
}
