/* Sandstorm Effect for Australia Edition */

.sandstorm-container {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
  /* Feather the box so it reads as drifting dust, not a rectangle. */
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}

.sandstorm-container.sandstorm-haze::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(196, 148, 78, 0) 0%,
    rgba(196, 148, 78, 0.18) 45%,
    rgba(196, 148, 78, 0.18) 55%,
    rgba(196, 148, 78, 0) 100%);
  animation: sandstorm-haze-sweep 2.6s linear infinite;
}

@keyframes sandstorm-haze-sweep {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}

.sand-particle {
  position: absolute;
  top: 0;
  left: -60px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(224, 190, 130, 0) 0%,
    rgba(230, 200, 145, 0.95) 45%,
    rgba(230, 200, 145, 0.95) 55%,
    rgba(224, 190, 130, 0) 100%);
  filter: blur(0.15px);
  animation: sandblow linear infinite;
}

@keyframes sandblow {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(var(--travel, 300px)) translateY(var(--drift, 10px));
    opacity: 0;
  }
}
