/* Premium global preloader */
html.yb-preloader-lock,
body.yb-preloader-active {
  overflow: hidden;
}

body.yb-preloader-active {
  background: #2a120c;
}

.yb-site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 50% 42%, rgba(180, 122, 56, 0.18), transparent 28%),
    radial-gradient(circle at 30% 80%, rgba(91, 20, 15, 0.32), transparent 38%),
    linear-gradient(135deg, #2a120c 0%, #3a1411 50%, #1c0c08 100%);
  color: #fff8ec;
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 520ms ease;
  contain: layout paint style;
}

.yb-site-preloader.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.yb-site-preloader__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(72vw, 260px);
  text-align: center;
  transform: translateZ(0) scale(1);
  transition: transform 520ms ease, opacity 520ms ease;
}

.yb-site-preloader.is-hiding .yb-site-preloader__inner {
  opacity: 0;
  transform: translateY(-4px) scale(0.975);
}

.yb-site-preloader__logo {
  display: block;
  width: clamp(150px, 24vw, 230px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.yb-site-preloader__steam {
  position: relative;
  width: 74px;
  height: 28px;
  margin-top: -4px;
  opacity: 0.72;
}

.yb-site-preloader__steam span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 247, 225, 0), rgba(255, 247, 225, 0.68), rgba(255, 247, 225, 0));
  transform-origin: bottom center;
  animation: yb-preloader-steam 1.9s ease-in-out infinite;
}

.yb-site-preloader__steam span:nth-child(1) {
  margin-left: -18px;
  animation-delay: -0.45s;
}

.yb-site-preloader__steam span:nth-child(2) {
  height: 30px;
  animation-delay: -0.15s;
}

.yb-site-preloader__steam span:nth-child(3) {
  margin-left: 18px;
  animation-delay: -0.72s;
}

.yb-site-preloader__line {
  position: relative;
  width: min(100%, 220px);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.18);
}

.yb-site-preloader__line span {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(216, 168, 91, 0), rgba(216, 168, 91, 0.94), rgba(255, 248, 236, 0.86));
  animation: yb-preloader-line 1.18s ease-in-out infinite;
}

@keyframes yb-preloader-steam {
  0% { opacity: 0; transform: translate3d(0, 8px, 0) scaleY(0.68); }
  45% { opacity: 0.82; }
  100% { opacity: 0; transform: translate3d(0, -12px, 0) scaleY(1.08); }
}

@keyframes yb-preloader-line {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(235%); }
}

@media (max-width: 767px) {
  .yb-site-preloader__inner {
    width: min(76vw, 220px);
    gap: 14px;
  }

  .yb-site-preloader__logo {
    width: clamp(132px, 45vw, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-site-preloader,
  .yb-site-preloader__inner {
    transition: opacity 260ms ease, visibility 260ms ease;
  }

  .yb-site-preloader__steam,
  .yb-site-preloader__line span {
    animation: none !important;
  }

  .yb-site-preloader__steam {
    opacity: 0.28;
  }
}

/* Build 8.8 brand logo source refinement */
.yb-site-preloader__logo {
  width: clamp(168px, 25vw, 250px);
  filter: none;
}

@media (max-width: 767px) {
  .yb-site-preloader__logo {
    width: clamp(144px, 48vw, 205px);
  }
}
