/* Rocketon overlay */
.graph-container.has-aviator-anim {
  background: #02040a !important;
}

.graph-container.has-aviator-anim #orbital-scene,
.graph-container.has-aviator-anim #game-svg {
  display: none !important;
}

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

.graph-container.has-aviator-anim #waiting-state,
.graph-container.has-aviator-anim #countdown-display,
.graph-container.has-aviator-anim #progress-bar,
.graph-container.has-aviator-anim #crashed-text {
  visibility: hidden !important;
  opacity: 0 !important;
}

.aviator-anim-root {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.aviator-anim-root canvas,
.aviator-anim-root video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aviator-anim-root video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.aviator-anim-root video.is-on {
  opacity: 1;
}

.aviator-anim-root canvas {
  z-index: 2;
}

.aviator-anim-logo {
  position: absolute;
  left: 2%;
  top: 2%;
  height: min(12%, 56px);
  width: auto;
  max-width: 44%;
  object-fit: contain;
  z-index: 6;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.aviator-anim-hud {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.aviator-anim-box {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  min-width: 28%;
  padding: 10px 28px;
  border-radius: 16px;
  background: rgba(18, 18, 22, 0.78);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 6.5vw, 58px);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.aviator-anim-box.is-closed {
  font-size: clamp(16px, 2.6vw, 24px);
  letter-spacing: 0.04em;
  padding: 12px 22px;
}

.aviator-anim-box.is-crash {
  background: rgba(72, 12, 16, 0.82);
  box-shadow: inset 0 0 0 2px #c62828;
  color: #fff;
}
