.gb-hero {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  outline: none;
  background: #000;
  color: inherit;
  cursor: crosshair;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gb-hero__fallback,
.gb-hero__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.gb-hero__fallback {
  display: grid;
  place-items: center;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.gb-hero__fallback svg {
  width: 76%;
  height: 76%;
  overflow: visible;
  transform: perspective(900px) rotateX(-4deg) rotateY(-8deg);
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.72));
}

.gb-hero__canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.gb-hero.is-webgl-ready .gb-hero__canvas {
  opacity: 1;
}

.gb-hero.is-webgl-ready .gb-hero__fallback {
  opacity: 0;
}

.gb-hero.is-fallback.is-flashing .gb-hero__fallback svg {
  animation: gb-hero-fallback-flash 850ms cubic-bezier(0.18, 0.72, 0.2, 1);
}

.gb-hero:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 8px;
}

@keyframes gb-hero-fallback-flash {
  0% { filter: brightness(1) drop-shadow(0 22px 46px rgba(0, 0, 0, 0.72)); }
  18% { filter: brightness(2.2) sepia(0.55) saturate(4) drop-shadow(0 0 42px rgba(255, 52, 12, 0.78)); }
  100% { filter: brightness(1) drop-shadow(0 22px 46px rgba(0, 0, 0, 0.72)); }
}

@media (prefers-reduced-motion: reduce) {
  .gb-hero__fallback,
  .gb-hero__canvas {
    transition: none;
  }

  .gb-hero.is-fallback.is-flashing .gb-hero__fallback svg {
    animation: none;
    filter: brightness(1.35) sepia(0.35) saturate(1.8) drop-shadow(0 0 24px rgba(255, 52, 12, 0.42));
  }
}

@media (forced-colors: active) {
  .gb-hero {
    border: 1px solid ButtonText;
    background: Canvas;
  }
}
