/* Deep Rush — bathyscaphe dive overlay */

.graph-container.has-aviator-anim {
  position: relative;
  overflow: hidden;
  background: #06323c !important;
  border-color: rgba(40, 180, 190, 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(.sk-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 #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;
}

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

.sk-water {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(140, 230, 240, 0.28) 0%, transparent 44%),
    linear-gradient(180deg, rgba(6, 70, 82, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.sk-beam {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 42%;
  height: 70%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(200, 245, 255, 0.28) 0%,
    rgba(80, 180, 200, 0.12) 36%,
    transparent 100%
  );
  clip-path: polygon(38% 0, 62% 0, 92% 100%, 8% 100%);
  filter: blur(1px);
}

.sk-stage.is-waiting {
  background: #0d6a78;
}

.sk-stage.is-waiting .sk-beam {
  opacity: 0;
}

.sk-stage.is-waiting .sk-water {
  opacity: 0.9;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(160, 235, 245, 0.38) 0%, transparent 55%),
    linear-gradient(180deg, #17a0b0 0%, #0c5c68 55%, #0a454e 100%);
}

.sk-stage.is-flying .sk-beam {
  opacity: 0.18;
}

.sk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

.sk-hud {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  text-align: center;
}

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

.sk-hud.is-crash {
  opacity: 0;
}

.sk-mult {
  font-family: Teko, "Arial Narrow", Impact, sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffe14a;
  text-shadow:
    0 0 12px rgba(255, 210, 40, 0.7),
    0 2px 0 rgba(40, 20, 0, 0.45);
  line-height: 1;
  white-space: nowrap;
}

.sk-stage.is-lurk .sk-mult {
  color: #ff7a28;
  text-shadow: 0 0 14px rgba(255, 90, 20, 0.85);
}

.sk-wait {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%);
  width: min(32%, 200px);
  height: min(32%, 200px);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
}

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

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

.sk-loader-track,
.sk-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));
}

.sk-loader-track {
  background: conic-gradient(
    from 0deg,
    rgba(120, 230, 240, 0.16),
    rgba(255, 210, 70, 0.38),
    rgba(120, 230, 240, 0.16)
  );
}

.sk-loader-arc {
  background: conic-gradient(
    from -90deg,
    #fff4c8 0deg,
    #ffe14a 40deg,
    rgba(90, 220, 230, 0.12) 90deg,
    transparent 110deg,
    transparent 360deg
  );
  filter: drop-shadow(0 0 10px #7ad7e0);
  animation: sk-loader-spin 1.15s linear infinite;
}

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

.sk-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Teko, "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 5.8rem);
  line-height: 1;
  color: #f4fbff;
  text-shadow: 0 0 18px rgba(90, 220, 230, 0.85);
}

.sk-gauge {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 72px;
  height: min(58%, 280px);
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(70, 48, 22, 0.55), rgba(28, 18, 8, 0.62));
  border: 1px solid rgba(210, 160, 70, 0.35);
  border-radius: 8px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.sk-gauge.is-on {
  opacity: 1;
}

.sk-gauge-ptr {
  position: absolute;
  left: -10px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #f0d48a 0%, #b8862a 62%, #5a3a10 100%);
  box-shadow: 0 0 8px rgba(220, 170, 60, 0.7);
}

.sk-gauge-ptr::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  border: 4px solid transparent;
  border-left-color: #e8c56a;
}

.sk-gauge-vals {
  position: absolute;
  inset: 10px 6px 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: #d8c49a;
  font-family: Teko, "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sk-g-b {
  color: #ffe14a;
  font-size: 18px;
  text-shadow: 0 0 8px rgba(255, 210, 40, 0.6);
}

@media (max-width: 720px) {
  .sk-gauge {
    width: 58px;
    right: 4px;
  }

  .sk-gauge-vals {
    font-size: 12px;
  }

  .sk-g-b {
    font-size: 14px;
  }
}
