/* Basketball SPIN stage overlay */

.graph-container.has-aviator-anim {
  position: relative;
  overflow: hidden;
  background: #120a08 !important;
  border-color: rgba(255, 120, 40, 0.18);
}

.graph-container.has-aviator-anim #orbital-scene {
  opacity: 0 !important;
  pointer-events: none !important;
}

.graph-container.has-aviator-anim .graph-overlay {
  position: absolute !important;
  inset: 0;
  z-index: 50;
}

.graph-container.has-aviator-anim .graph-overlay > * {
  pointer-events: auto;
}

.spin-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: #0a0706;
}

.spin-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) saturate(1.05);
}

.spin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.spin-mult {
  position: absolute;
  right: 1.15rem;
  top: 0.85rem;
  z-index: 70;
  pointer-events: none;
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ff2d2d;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 40, 40, 0.45);
  opacity: 0;
  transition: color 0.2s ease, opacity 0.15s ease;
}

.spin-mult.is-high {
  color: #7ad7ff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 18px rgba(80, 190, 255, 0.5);
}

.spin-mult.is-crash {
  color: #ff2d2d !important;
}

.graph-container.has-aviator-anim #multiplier-container {
  display: none !important;
}

.graph-container.has-aviator-anim #waiting-state {
  background: transparent !important;
  justify-content: flex-start;
  padding-top: 14%;
  gap: 0.55rem;
  z-index: 55;
}

.graph-container.has-aviator-anim #countdown-display {
  display: none;
}

.graph-container.has-aviator-anim #waiting-state .waiting-text {
  opacity: 0;
}

.graph-container.has-aviator-anim #waiting-state .progress-container {
  opacity: 0;
}

.spin-loader {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 65;
  width: min(56%, 320px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.spin-loader.is-on {
  opacity: 1;
}

.spin-loader-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  margin-bottom: 0.55rem;
}

.spin-loader-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.spin-loader-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a1a, #ffb347);
}

.graph-container.has-aviator-anim #crashed-text {
  display: none;
}

@media (max-width: 812px) {
  .spin-mult {
    right: 0.7rem;
    top: 0.55rem;
    font-size: 2.1rem;
  }
}
