:root {
  --page-bg: #1d2088;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--page-bg);
}

body {
  min-height: 100svh;
  overscroll-behavior: none;
  transition: background-color 180ms linear;
}

.stage {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.boostbear {
  position: absolute;
  left: 50%;
  bottom: -1.5svh;
  display: block;
  width: auto;
  height: min(94svh, 1040px);
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.boostbear.is-ready {
  opacity: 1;
  animation: boostbear-pop 900ms cubic-bezier(.22, .78, .24, 1) both;
}

@keyframes boostbear-pop {
  0% {
    transform: translate(-50%, 118svh);
  }
  88% {
    transform: translate(-50%, -4px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: #222;
  font: 14px/1.5 system-ui, sans-serif;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .boostbear.is-ready {
    animation: none;
    transform: translateX(-50%);
  }
}
