@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap");

.graph-container.has-aviator-anim {
  position: relative;
  overflow: hidden;
  background: #d98962 !important;
}

.hx-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #f0b27a 0%, #e08a62 42%, #c46b6a 100%);
}

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

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

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

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

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

.hx-wait {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: min(92%, 560px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

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

.hx-count {
  font-family: Montserrat, Inter, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 3px 0 rgba(40, 18, 12, 0.35), 0 10px 22px rgba(0, 0, 0, 0.35);
}

.hx-wait-text {
  margin-top: 0.35rem;
  font-family: Montserrat, Inter, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.45rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.hx-bar {
  margin: 0.85rem auto 0;
  width: min(78%, 280px);
  height: 8px;
  border-radius: 999px;
  background: rgba(70, 22, 18, 0.55);
  overflow: hidden;
}

.hx-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6c445 0%, #f0a429 100%);
}

.hx-mult {
  position: absolute;
  left: auto;
  right: 6%;
  top: 8%;
  transform: none;
  z-index: 8;
  text-align: right;
  opacity: 0;
  pointer-events: none;
}

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

.hx-flew {
  display: none;
  font-family: Montserrat, Inter, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.15rem;
}

.hx-mult-val {
  font-family: Montserrat, Inter, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 4px 0 rgba(30, 20, 18, 0.28), 0 10px 24px rgba(0, 0, 0, 0.38);
}

.hx-stage.is-crashed .hx-flew {
  display: block;
}

.hx-stage.is-crashed .hx-mult-val {
  color: #e31b1b;
  text-shadow: 0 3px 0 rgba(70, 0, 0, 0.25), 0 8px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 812px) {
  .hx-wait {
    top: 58%;
  }
  .hx-mult {
    top: 6%;
    right: 5%;
  }
}
