/* Galaxsys Crasher stage — dark sketch landscape, orange crack, hole burst */

.graph-container.has-aviator-anim {
  position: relative;
  overflow: hidden;
  background: #050505 !important;
  border-color: rgba(255, 110, 30, 0.28) !important;
}

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

.graph-container.has-aviator-anim > *:not(.cr-stage) {
  position: relative;
  z-index: 5;
}

.graph-container.has-aviator-anim .graph-overlay {
  z-index: 8;
  align-items: flex-end;
  justify-content: center;
}

.graph-container.has-aviator-anim #multiplier-container {
  left: 50% !important;
  right: auto !important;
  top: 42% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  text-align: center;
  opacity: 0 !important;
  pointer-events: none !important;
}

.graph-container.has-aviator-anim .multiplier-display {
  font-size: clamp(2.6rem, 8vw, 5.6rem) !important;
}

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

.graph-container.has-aviator-anim #countdown-display,
.graph-container.has-aviator-anim .waiting-text,
.graph-container.has-aviator-anim .progress-container,
.graph-container.has-aviator-anim #crashed-text,
.graph-container.has-aviator-anim #game-state {
  display: none !important;
}

.cr-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}

.cr-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cr-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4%;
}

.cr-hud.is-wait {
  opacity: 0;
}

.cr-mult {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #f6f3ee;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.4);
  line-height: 1;
}

.cr-hud.is-crash .cr-mult {
  color: #ff7a18;
  text-shadow: 0 0 28px rgba(255, 110, 20, 0.9);
}

.cr-wait {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: min(42%, 280px);
  height: min(42%, 280px);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
}

.cr-wait.is-on {
  opacity: 1;
}

.cr-loader {
  position: absolute;
  inset: 0;
}

.cr-loader-track,
.cr-loader-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 12px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 12px));
}

.cr-loader-track {
  background: conic-gradient(
    from 0deg,
    rgba(255, 140, 40, 0.18),
    rgba(255, 110, 20, 0.4),
    rgba(255, 140, 40, 0.18)
  );
}

.cr-loader-arc {
  background: conic-gradient(
    from -90deg,
    #ffe7b0 0deg,
    #ff9a28 32deg,
    rgba(255, 140, 30, 0.08) 78deg,
    transparent 95deg,
    transparent 360deg
  );
  filter: drop-shadow(0 0 10px #ff8a20);
  animation: cr-loader-spin 1.15s linear infinite;
}

@keyframes cr-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.cr-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 5.4rem);
  line-height: 1;
  color: #fff4e4;
  text-shadow: 0 0 18px rgba(255, 140, 30, 0.85);
}
