html.gagaai-intro-active,
body.gagaai-intro-active {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  animation: gagaai-intro-emergency-unlock 1ms step-end 35s forwards;
}

.gagaai-intro-frame {
  position: fixed;
  z-index: 2147480000;
  inset: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  border: 0;
  opacity: 1;
  background: #0b0c0e;
  color-scheme: light;
  transition: opacity 180ms linear;
  touch-action: none;
  animation: gagaai-intro-emergency-hide 1ms step-end 35s forwards;
}

.gagaai-intro-frame.is-handing-off {
  opacity: 0;
  pointer-events: none;
}

.gagaai-intro-skip {
  position: fixed;
  z-index: 2147480001;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  min-width: 64px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  background: rgb(11 12 14 / 58%);
  color: #fff;
  font:
    600 14px/1 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: gagaai-intro-emergency-hide 1ms step-end 35s forwards;
}

.gagaai-intro-skip:hover {
  background: rgb(11 12 14 / 76%);
}

.gagaai-intro-skip:focus-visible {
  outline: 3px solid #268cff;
  outline-offset: 3px;
}

.gagaai-intro-skip.is-handing-off {
  opacity: 0;
  pointer-events: none;
}

@keyframes gagaai-intro-emergency-hide {
  to {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes gagaai-intro-emergency-unlock {
  to {
    overflow: auto;
    overscroll-behavior: auto;
  }
}

#app[inert] {
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .gagaai-intro-frame,
  .gagaai-intro-skip {
    transition-duration: 1ms;
  }
}
