.rodeo-anim-root {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  background: #000;
  font-family: Inter, "Segoe UI", sans-serif;
}

.rodeo-anim-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.rodeo-anim-mult {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rodeo-anim-mult span {
  display: inline-block;
  padding: 0.12em 0.32em;
  border-radius: 0.28em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.rodeo-anim-root.is-flying .rodeo-anim-mult,
.rodeo-anim-root.is-crashed .rodeo-anim-mult {
  opacity: 1;
}

.rodeo-anim-root.is-crashed .rodeo-anim-mult span {
  background: #6f1a7f;
  text-shadow: none;
  animation: rodeoMultPop 0.25s ease-out;
}

@keyframes rodeoMultPop {
  from { transform: scale(0.85); }
  to { transform: scale(1); }
}

.rodeo-anim-waiting {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rodeo-anim-root.is-waiting .rodeo-anim-waiting,
.rodeo-anim-root:not(.is-ready) .rodeo-anim-waiting {
  opacity: 1;
}

.rodeo-anim-waiting-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.rodeo-anim-waiting-text {
  position: relative;
  font-weight: 700;
  font-size: clamp(1.25rem, 5.2vw, 3rem);
  line-height: 1.1;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.rodeo-anim-bull {
  position: relative;
  display: block;
  width: clamp(70px, 22%, 160px);
  height: auto;
  aspect-ratio: 172 / 173;
  overflow: visible;
}

.rodeo-anim-bull-level {
  transition: y 0.1s linear;
}

/* Hide the legacy orbital scene / Aviator overlays when the rodeo scene is active */
.graph-container.has-rodeo-anim .orbital-scene {
  display: none !important;
}

.graph-container.has-rodeo-anim #multiplier-container,
.graph-container.has-rodeo-anim #waiting-state,
.graph-container.has-rodeo-anim #game-state {
  opacity: 0 !important;
  pointer-events: none !important;
}
