.atmosphere-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#webgl.atmosphere-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: auto;
}

html.perf-standard #webgl.atmosphere-canvas,
html.perf-lite #webgl.atmosphere-canvas {
  display: block !important;
}

body[data-atmosphere="home"] .page {
  background:
    radial-gradient(ellipse at 28% 82%, rgba(96, 112, 148, 0.13), transparent 34%),
    linear-gradient(180deg, #02040a 0%, #050913 46%, #020306 100%);
}

body[data-atmosphere="home"].atmosphere-fallback .page {
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.08) 0 42%, rgba(5, 11, 20, 0.64) 43%, rgba(1, 3, 7, 0.98) 100%),
    radial-gradient(ellipse at 30% 82%, rgba(135, 151, 190, 0.22), transparent 34%),
    #02040a;
}

body[data-atmosphere="flow"] .page::after,
body[data-atmosphere="legal"] .page::after {
  opacity: 0.58;
}

body[data-atmosphere]:not([data-atmosphere="home"]) .morph-btn__canvas,
body[data-atmosphere]:not([data-atmosphere="home"]) #cardFx {
  display: none !important;
}

body[data-atmosphere]:not([data-atmosphere="home"]) .morph-btn::after {
  opacity: 1;
}

html.perf-high body[data-atmosphere]:not([data-atmosphere="home"]) .cta-orbit::after {
  border-color: rgba(216, 174, 103, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(244, 238, 226, 0.055),
    0 0 22px rgba(216, 174, 103, 0.16);
}

html.perf-high body[data-atmosphere]:not([data-atmosphere="home"]) .cta-orbit:hover::after,
html.perf-high body[data-atmosphere]:not([data-atmosphere="home"]) .cta-orbit.is-active::after,
html.perf-high body[data-atmosphere]:not([data-atmosphere="home"]) .cta-orbit.is-ready::after {
  border-color: rgba(216, 174, 103, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(244, 238, 226, 0.08),
    0 0 26px rgba(216, 174, 103, 0.24);
}

.page-content,
.site-footer {
  position: relative;
}

.boot-veil {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%, rgba(18, 26, 45, 0.84), rgba(2, 4, 9, 0.97) 68%);
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

html.boot-waiting .boot-veil {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.boot-veil__brand {
  position: relative;
  z-index: 1;
  color: rgba(244, 238, 226, 0.92);
  font-family: "Forum", "Forum Fallback", Georgia, serif;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(216, 174, 103, 0.26);
  animation: bootBrandPulse 1.5s ease-in-out infinite;
}

.boot-veil::before {
  content: "";
  position: absolute;
  inset: -8%;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(244, 241, 232, 0.74) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 18%, rgba(220, 229, 255, 0.62) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 76%, rgba(244, 241, 232, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 68%, rgba(220, 229, 255, 0.42) 0 1px, transparent 1.5px);
  background-size: 180px 160px, 230px 210px, 260px 220px, 320px 280px;
  animation: bootStarsDrift 4s ease-in-out infinite alternate;
}

@keyframes bootBrandPulse {
  50% { opacity: 0.66; transform: scale(0.985); }
}

@keyframes bootStarsDrift {
  to { transform: translate3d(0.8%, -0.6%, 0); opacity: 0.66; }
}

html.boot-ready .boot-veil { display: none; }

@media (prefers-reduced-motion: reduce) {
  .boot-veil__brand,
  .boot-veil::before,
  .page--form #submitBtn.validation-pulse,
  .checkout-pay-btn.activation-pulse {
    animation: none;
  }
}
