/* Cashybara Ski — original Amusnet Spine overlay */

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

.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 .waiting-text,
.graph-container.has-aviator-anim .progress-container {
  display: none !important;
}

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

.cb-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.cb-mountains {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: auto 145%;
  background-position: 0 12%;
}

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

.cb-wait {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  z-index: 70;
  pointer-events: none;
  text-align: center;
  width: min(640px, 92%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

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

.cb-gondola {
  position: relative;
  width: 108px;
  height: 86px;
  margin: 0 auto 0.45rem;
  filter: drop-shadow(0 8px 10px rgba(20, 60, 110, 0.28));
}

.cb-cabin {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cb-count {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #163a6b;
  letter-spacing: 0.02em;
}

.cb-banner {
  display: inline-block;
  min-width: min(520px, 88%);
  padding: 0.55rem 1.4rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(36, 92, 168, 0.92) 0%, rgba(24, 64, 128, 0.9) 100%);
  color: #fff;
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(0.78rem, 2vw, 1.05rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(20, 50, 100, 0.28);
}

.cb-mult {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 72;
  pointer-events: none;
  font-family: Inter, "Arial Black", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.92;
  color: #4eb3ff;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(20, 70, 140, 0.18), 0 0 22px rgba(90, 170, 255, 0.45);
  opacity: 0;
}

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

.cb-mult.is-hot {
  color: #e31b1b;
  text-shadow: 0 6px 0 rgba(90, 10, 10, 0.18), 0 0 22px rgba(255, 60, 60, 0.4);
}

.cb-crash {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -10%) scale(0.94);
  z-index: 73;
  pointer-events: none;
  text-align: center;
  width: min(640px, 86%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.cb-crash.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.cb-crash div {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(1.05rem, 3vw, 1.85rem);
  line-height: 1.15;
  color: #163a6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 #fff, 0 8px 16px rgba(255, 255, 255, 0.55);
}

.cb-crash div:last-child {
  margin-top: 0.2rem;
  font-size: clamp(0.9rem, 2.4vw, 1.35rem);
  color: #245a96;
}

.game-container.has-cashy-theme {
  background: #0e2740;
  position: relative;
}

.game-container.has-cashy-theme .history-bar {
  background: transparent;
  backdrop-filter: none;
  border: none;
  justify-content: flex-start;
}

.game-container.has-cashy-theme .history-item {
  background: #16325a !important;
  border: none !important;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
}

.game-container.has-cashy-theme .history-blue,
.game-container.has-cashy-theme .history-purple { background: #16325a !important; color: #fff !important; }
.game-container.has-cashy-theme .history-pink,
.game-container.has-cashy-theme .history-emerald,
.game-container.has-cashy-theme .history-yellow,
.game-container.has-cashy-theme .history-red,
.game-container.has-cashy-theme .history-orange { background: #1d6b45 !important; color: #fff !important; }

.game-container.has-cashy-theme .game-main {
  background: transparent;
  border: none;
  backdrop-filter: none;
}

@media (min-width: 1024px) {
  .game-container.has-cashy-theme {
    grid-template-areas:
      "main controls"
      "main sidebar";
    grid-template-rows: 1fr auto;
  }
  .game-container.has-cashy-theme .history-bar {
    position: absolute;
    top: 0.85rem;
    left: 1.1rem;
    right: calc(380px + 2.1rem);
    z-index: 90;
    pointer-events: none;
    padding: 0.35rem 0.75rem;
  }
  .game-container.has-cashy-theme .history-bar * {
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .cb-mult {
    top: 16%;
    -webkit-text-stroke: 6px #fff;
  }
  .cb-wait { top: 10%; }
  .cb-crash { top: 62%; }
}
