/* ===== لودینگ ===== */
#arq-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity 0.5s ease, visibility 0.5s;
}

#arq-loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* تپش قلب کل لوگو (آروم و نرم) */
.logo {
  position: relative;
  width: min(58vw, 300px);
  aspect-ratio: 560/432;
  animation: heartbeat 2.6s ease-in-out infinite;
  will-change: transform, opacity;
}

.logo img {
  position: absolute;
  display: block;
}

.logo .base {
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* کندل‌ها: یکی‌یکی از پایین رشد می‌کنن */
.candle {
  transform-origin: 50% 100%;
  animation: grow 2.6s ease-in-out infinite;
  will-change: transform;
}

.c0 { animation-delay: 0.00s; }
.c1 { animation-delay: 0.28s; }
.c2 { animation-delay: 0.56s; }
.c3 { animation-delay: 0.84s; }

@keyframes grow {
  0%, 100% {
    transform: scaleY(0.12);
    opacity: 0.25;
  }
  40%, 70% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* فلش: نور طلایی از پایین‌چپ به بالا‌راست روی روبان حرکت می‌کنه */
.arrow {
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(48deg, transparent 42%, #000 50%, transparent 58%);
  mask-image: linear-gradient(48deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 320% 320%;
  mask-size: 320% 320%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: sweep 2.6s ease-in-out infinite;
}

@keyframes sweep {
  0% {
    -webkit-mask-position: 0% 100%;
    mask-position: 0% 100%;
  }
  75%, 100% {
    -webkit-mask-position: 100% 0%;
    mask-position: 100% 0%;
  }
}
