/* Premium / regal splash — rays, sparkles, slow-spin monogram */
#vs-splash {
  --gold: #d4af37;
  --gold-soft: #f3e0a0;
  --gold-mid: #c9a227;
  --ink: #120e06;
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: var(--gold-soft);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s ease;
  -webkit-user-select: none;
  user-select: none;
}

#vs-splash.is-done {
  opacity: 0;
  pointer-events: none;
}

#vs-splash .vs-splash-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(24px, 4vh, 48px) 24px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 60% 28% at 50% 0%, rgba(255, 230, 150, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 55% 35% at 50% 22%, rgba(212, 175, 55, 0.12) 0%, transparent 72%),
    radial-gradient(ellipse 80% 42% at 50% 100%, rgba(201, 162, 39, 0.38) 0%, transparent 70%),
    radial-gradient(ellipse 50% 22% at 50% 100%, rgba(255, 236, 170, 0.2) 0%, transparent 60%),
    #050300;
}

/* Top spotlight bloom */
#vs-splash .vs-splash-glow-top {
  position: absolute;
  top: -8%;
  left: 50%;
  width: min(90vw, 520px);
  height: 38vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 55% at 50% 0%,
    rgba(255, 248, 210, 0.55) 0%,
    rgba(232, 199, 106, 0.22) 35%,
    transparent 72%
  );
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: vsSplashGlowPulse 4.5s ease-in-out infinite;
}

/* Bottom golden horizon */
#vs-splash .vs-splash-glow-bottom {
  position: absolute;
  bottom: -6%;
  left: 50%;
  width: 120%;
  height: 42vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 55% 45% at 50% 100%,
    rgba(255, 236, 170, 0.42) 0%,
    rgba(201, 162, 39, 0.28) 28%,
    rgba(120, 80, 20, 0.12) 55%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
  animation: vsSplashGlowPulse 5.5s ease-in-out 0.6s infinite;
}

/* God rays from top center — centered without translateX (safe with reduced-motion) */
#vs-splash .vs-splash-rays {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 95vh;
  margin: 0 auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: vsSplashFade 0.5s ease 0.05s forwards;
  overflow: hidden;
}

#vs-splash .vs-splash-rays::before,
#vs-splash .vs-splash-rays::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 160vmin;
  height: 100%;
  margin-left: -80vmin; /* center without transform */
  transform-origin: 50% 0%;
  pointer-events: none;
}

#vs-splash .vs-splash-rays::before {
  background: repeating-conic-gradient(
    from -8deg at 50% 0%,
    rgba(255, 244, 200, 0) 0deg,
    rgba(255, 244, 200, 0.07) 1.1deg,
    rgba(255, 248, 220, 0.18) 1.8deg,
    rgba(255, 244, 200, 0.05) 2.6deg,
    rgba(255, 244, 200, 0) 4.2deg,
    rgba(255, 244, 200, 0) 7.5deg
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 78%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

#vs-splash .vs-splash-rays::after {
  background: repeating-conic-gradient(
    from 14deg at 50% 0%,
    rgba(255, 236, 170, 0) 0deg,
    rgba(232, 199, 106, 0.12) 0.9deg,
    rgba(255, 248, 220, 0) 2.2deg,
    rgba(255, 248, 220, 0) 6deg
  );
  -webkit-mask-image: linear-gradient(180deg, #000 8%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 8%, transparent 70%);
  mix-blend-mode: screen;
  animation: vsSplashRaysDrift 18s linear infinite;
  opacity: 0.85;
}

/* Bottom sparkles / sele */
#vs-splash .vs-splash-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#vs-splash .vs-splash-spark {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff8dc 0%,
    #f0d78c 35%,
    rgba(212, 175, 55, 0.55) 60%,
    transparent 72%
  );
  box-shadow: 0 0 6px rgba(255, 236, 170, 0.65);
  animation-name: vsSplashSparkTwinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: opacity, transform;
}

#vs-splash .vs-splash-logo-wrap {
  position: relative;
  z-index: 2;
  width: min(42vw, 280px);
  max-width: 320px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  perspective-origin: 50% 50%;
  opacity: 0;
  transform: scale(0.94) translateY(8px);
  animation: vsSplashLogoIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

/* Soft aura behind rotating mark */
#vs-splash .vs-splash-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 236, 170, 0.28) 0%,
    rgba(212, 175, 55, 0.12) 42%,
    transparent 68%
  );
  filter: blur(8px);
  z-index: -1;
  animation: vsSplashGlowPulse 3.8s ease-in-out infinite;
  pointer-events: none;
}

#vs-splash .vs-splash-logo-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: auto;
  background: transparent !important;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
  filter: drop-shadow(0 0 18px rgba(255, 236, 170, 0.35))
    drop-shadow(0 0 42px rgba(212, 175, 55, 0.4));
  /* Full 3D yaw — one slow turn so RV stays readable */
  animation: vsSplashSpin3d 16s linear infinite;
}

#vs-splash .vs-splash-copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(22px, 3.5vh, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 520px);
}

/* Shared regal metallic gold fill + shimmer */
#vs-splash .vs-gold-text {
  background-image: linear-gradient(
    110deg,
    #8b6914 0%,
    #c9a227 18%,
    #fff8dc 32%,
    #d4af37 48%,
    #b8860b 58%,
    #ffe9a8 72%,
    #c9a227 88%,
    #8b6914 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 248, 220, 0.35))
    drop-shadow(0 2px 2px rgba(80, 50, 0, 0.55))
    drop-shadow(0 0 26px rgba(212, 175, 55, 0.45));
  animation: vsSplashShimmer 5.5s ease-in-out infinite;
}

#vs-splash .vs-splash-restaurant {
  margin: 0;
  font-family: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  opacity: 0;
  transform: translateX(-48px);
  animation:
    vsSplashFromLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards,
    vsSplashShimmer 5.5s ease-in-out 1.0s infinite;
}

#vs-splash .vs-splash-rule {
  width: min(42vw, 180px);
  height: 1px;
  margin: 16px 0 12px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #8b6914 18%,
    #f5e6a8 50%,
    #8b6914 82%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.35);
  animation: vsSplashRule 0.3s ease 0.55s forwards;
  position: relative;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

#vs-splash .vs-splash-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #fff8dc, #d4af37 45%, #8b6914);
  box-shadow: 0 0 14px rgba(243, 224, 160, 0.95);
}

#vs-splash .vs-splash-valentina {
  margin: 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 64px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.05;
  opacity: 0;
  transform: translateX(48px);
  animation:
    vsSplashFromRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards,
    vsSplashShimmer 5.5s ease-in-out 1.2s infinite;
}

#vs-splash .vs-splash-pofta {
  margin: 20px 0 0;
  font-family: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: 0.06em;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(24px);
  animation:
    vsSplashFromBottom 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards,
    vsSplashShimmer 5.5s ease-in-out 1.5s infinite;
}

#vs-splash .vs-splash-enter {
  z-index: 3;
  margin-top: clamp(28px, 4.5vh, 48px);
  appearance: none;
  border: 1px solid rgba(255, 232, 170, 0.55);
  background: linear-gradient(180deg, #fff1c2 0%, #e8c76a 28%, #c9a227 58%, #8b6914 100%);
  color: #1a1205;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 15px 48px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: vsSplashFromBottom 0.4s ease 1.4s forwards;
  box-shadow:
    0 10px 30px rgba(139, 105, 20, 0.4),
    0 0 24px rgba(255, 236, 170, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(80, 50, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.35);
}

#vs-splash .vs-splash-enter:hover,
#vs-splash .vs-splash-enter:focus-visible {
  transform: translateY(0) scale(1.03);
  filter: brightness(1.06);
  box-shadow: 0 12px 34px rgba(201, 162, 39, 0.45), 0 0 28px rgba(255, 236, 170, 0.35);
  outline: none;
}

#vs-splash .vs-splash-enter:active {
  transform: scale(0.98);
}

html.vs-splash-lock,
html.vs-splash-lock body {
  overflow: hidden !important;
}

@keyframes vsSplashLogoIn {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes vsSplashFromLeft {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes vsSplashFromRight {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes vsSplashFromBottom {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vsSplashRule {
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes vsSplashFade {
  to { opacity: 1; }
}
@keyframes vsSplashSpin3d {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes vsSplashShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes vsSplashGlowPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@keyframes vsSplashRaysDrift {
  from { transform: rotate(0deg); }
  to { transform: rotate(6deg); }
}
@keyframes vsSplashSparkTwinkle {
  0%, 100% {
    opacity: var(--spark-min, 0.25);
    transform: translate3d(0, 0, 0) scale(var(--spark-scale, 1));
  }
  50% {
    opacity: var(--spark-max, 1);
    transform: translate3d(0, -10px, 0) scale(calc(var(--spark-scale, 1) * 1.25));
  }
}

@media (max-width: 640px) {
  #vs-splash .vs-splash-logo-wrap {
    width: min(56vw, 220px);
  }
}

/* Large / ultrawide monitors — fill the stage better */
@media (min-width: 1200px) {
  #vs-splash .vs-splash-logo-wrap {
    width: min(26vw, 340px);
    max-width: 340px;
  }
  #vs-splash .vs-splash-restaurant {
    font-size: clamp(40px, 3.2vw, 58px);
  }
  #vs-splash .vs-splash-valentina {
    font-size: clamp(48px, 4vw, 72px);
  }
  #vs-splash .vs-splash-pofta {
    font-size: clamp(30px, 2.2vw, 42px);
  }
}

@media (min-width: 1800px) {
  #vs-splash .vs-splash-logo-wrap {
    width: min(22vw, 400px);
    max-width: 400px;
  }
}

/*
 * Keep full choreography even when Windows reduces motion
 * (user wants left/right/bottom entrances + stars + rays).
 */
@media (prefers-reduced-motion: reduce) {
  #vs-splash .vs-splash-rays {
    opacity: 1 !important;
  }
  #vs-splash .vs-splash-logo-img {
    animation: vsSplashSpin3d 16s linear infinite !important;
  }
  #vs-splash .vs-splash-rays::after {
    animation: vsSplashRaysDrift 18s linear infinite !important;
  }
}
