/* NITRO X track overlay */

.graph-container.has-aviator-anim {
  position: relative;
  overflow: hidden;
  background: #065797 !important;
  border-color: rgba(1, 204, 235, 0.22);
}

.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: #065797;
}

.spin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.spin-mult {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  z-index: 70;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

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

.spin-mult-val {
  font-family: Inter, Ubuntu, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.spin-mult-over {
  display: none;
  margin-top: 0.2rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  color: #ff3b4a;
}

.spin-mult.is-crash .spin-mult-val {
  color: #ff3b4a !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,
.graph-container.has-aviator-anim #waiting-state .waiting-text,
.graph-container.has-aviator-anim #waiting-state .progress-container,
.graph-container.has-aviator-anim #crashed-text {
  display: none;
}

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

.spin-loader {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  z-index: 65;
  width: min(58%, 340px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  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 0 40px #069df3, 0 2px 10px #069df3;
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.spin-loader-title span {
  display: block;
}

.spin-loader-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 87, 151, 0.55), rgba(1, 204, 235, 0.35));
  overflow: hidden;
  width: 100%;
  padding: 2px;
}

.spin-loader-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #afc2ff;
}

.spin-logo {
  margin-top: 2.6rem;
  width: min(42vw, 220px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

@media (max-width: 812px) {
  .spin-mult-val {
    font-size: 2.2rem;
  }
  .spin-logo {
    width: 150px;
  }
}
