/* ==========================================================================
   Vora Market: Halloween layer
   Colours are forced here too, so the theme looks right even if the store's
   saved theme-editor colours are still the old blue ones.
   ========================================================================== */
html:root {
  --cl-accent: #ff7411;
  --cl-accent-rgb: 255, 116, 17;
  --cl-background-primary: #14091f;
  --cl-background-primary-rgb: 20, 9, 31;
  --cl-background-secondary: #1f102b;
  --cl-background-secondary-rgb: 31, 16, 43;
  --cl-border: #ffa86b24;
  --cl-border-rgb: 255, 168, 107;
  --cl-snow: 255, 150, 60;            /* the falling "snow" becomes drifting embers */
  --vmh-orange: #ff7411;
  --vmh-amber: #ffb22e;
  --vmh-purple: #8b3dff;
}

/* Slightly warmer, spookier page glow */
html.vmh-on body {
  background-image:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(139, 61, 255, .14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 10% 30%, rgba(255, 116, 17, .06), transparent 70%);
  background-attachment: fixed;
}
html.vmh-on ::selection { background: rgba(255, 116, 17, .45); color: #fff; }

/* ---------- Hero scene ---------- */
.vmh-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.voramarket-hero-section > .voramarket-hero-container { position: relative; z-index: 2; }

.vmh-moon {
  position: absolute;
  top: calc(70px + 4%);
  right: 9%;
  width: clamp(240px, 30vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .55), transparent 32%),
    radial-gradient(circle at 64% 38%, rgba(214, 160, 90, .38) 0 7%, transparent 8%),
    radial-gradient(circle at 40% 64%, rgba(214, 160, 90, .32) 0 9%, transparent 10%),
    radial-gradient(circle at 70% 72%, rgba(214, 160, 90, .26) 0 5%, transparent 6%),
    radial-gradient(circle at 24% 48%, rgba(214, 160, 90, .22) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 50%, #ffe9b8, #ffd27a 60%, #f0a645);
  box-shadow: 0 0 80px 10px rgba(255, 170, 70, .35), 0 0 240px 60px rgba(255, 116, 17, .18);
  opacity: .82;
  animation: vmh-moon 9s ease-in-out infinite;
}
@keyframes vmh-moon { 50% { box-shadow: 0 0 100px 16px rgba(255, 170, 70, .42), 0 0 260px 80px rgba(255, 116, 17, .22); } }

.vmh-graves {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: clamp(110px, 15vw, 190px);
}
.vmh-pumpkin-glow { animation: vmh-flicker 2.2s infinite; }
.vmh-pumpkin-glow.b { animation-delay: .7s; animation-duration: 2.8s; }
@keyframes vmh-flicker { 0%, 100% { opacity: 1; } 20% { opacity: .75; } 22% { opacity: 1; } 55% { opacity: .85; } 60% { opacity: .65; } 63% { opacity: 1; } }

.vmh-fog { position: absolute; left: -20%; right: -20%; bottom: 0; height: 42%; }
.vmh-fog i {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 45% at 20% 85%, rgba(190, 160, 230, .13), transparent 70%),
    radial-gradient(ellipse 25% 40% at 55% 95%, rgba(190, 160, 230, .11), transparent 70%),
    radial-gradient(ellipse 30% 45% at 85% 88%, rgba(190, 160, 230, .12), transparent 70%);
  filter: blur(6px);
  animation: vmh-fog 26s linear infinite alternate;
}
.vmh-fog i + i { animation-duration: 34s; animation-direction: alternate-reverse; opacity: .8; transform: translateX(8%); }
@keyframes vmh-fog { from { transform: translateX(-7%); } to { transform: translateX(7%); } }

.vmh-web { position: absolute; top: 62px; left: -6px; width: clamp(150px, 16vw, 240px); opacity: .5; }
.vmh-web--r { left: auto; right: -6px; transform: scaleX(-1); width: clamp(110px, 11vw, 170px); opacity: .35; }
.vmh-spider { position: absolute; top: 62px; left: clamp(96px, 10vw, 150px); transform-origin: top center; animation: vmh-dangle 5s ease-in-out infinite; }
.vmh-spider::before { content: ""; display: block; width: 1px; height: var(--len, 150px); margin: 0 auto; background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .4)); animation: vmh-thread 7s ease-in-out infinite; }
.vmh-spider svg { display: block; width: 28px; margin-top: -2px; }
@keyframes vmh-dangle { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
@keyframes vmh-thread { 0%, 100% { height: var(--len, 150px); } 50% { height: calc(var(--len, 150px) + 34px); } }

/* Goo drip instead of the snow cap on the Browse button */
.voramarket-hero-buttons .vmh-drip {
  position: absolute; top: -3px; left: 3px; right: 3px; z-index: 3;
  width: calc(100% - 6px); height: 20px; max-width: none;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  border-radius: 8px 8px 0 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}

/* ---------- Bats ---------- */
.vmh-bats { position: fixed; inset: 0; z-index: 1019; overflow: hidden; pointer-events: none; }
.vmh-bat { position: absolute; left: 0; width: var(--w, 38px); color: #0b0412; opacity: .9; animation: vmh-fly var(--t, 9s) linear forwards; }
.vmh-bat > span { display: block; animation: vmh-bob 1.1s ease-in-out infinite; }
.vmh-bat svg { display: block; width: 100%; filter: drop-shadow(0 0 6px rgba(255, 140, 50, .35)); }
.vmh-bat .w { transform-origin: 50% 40%; animation: vmh-flap .22s ease-in-out infinite alternate; }
@keyframes vmh-fly { from { transform: translateX(var(--from, -80px)); } to { transform: translateX(var(--to, 110vw)); } }
@keyframes vmh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes vmh-flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

/* ---------- Little touches ---------- */
html.vmh-on .voramarket-hero-highlight {
  background: linear-gradient(90deg, #ff6a00, #ffb22e 55%, #ff7411);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(255, 116, 17, .35));
}
html.vmh-on .vm-ann__item[data-vora-open-spin] { cursor: pointer; }
html.vmh-on .vm-ann__item[data-vora-open-spin] .vm-ann__text { text-decoration: underline; text-decoration-color: rgba(255, 178, 46, .6); text-underline-offset: 3px; }

@media (max-width: 991px) {
  .vmh-moon { top: 78px; right: -36px; width: 150px; opacity: .7; }
  .vmh-web--r { display: none; }
}
@media (max-width: 600px) {
  .vmh-spider { display: none; }
  .vmh-web { width: 120px; top: 56px; }
  .vmh-bat { --w: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .vmh-moon, .vmh-fog i, .vmh-spider, .vmh-spider::before, .vmh-pumpkin-glow { animation: none !important; }
  .vmh-bats { display: none; }
}
