* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #14cc67;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  font-family: sans-serif;
}
.spiral {
  position: relative;
  width: 600px;
  height: 600px;
  transform-style: preserve-3d;
  animation: spinSpiral 18s linear infinite;
}
.step {
  position: absolute;
  width: 260px;
  height: 80px;
  left: 50%;
  top: 50%;
  transform-origin: left center;
  border-radius: 6px;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.9;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(
      from 0deg,
      #ffdd55,
      #ff4b6e,
      #4be3ff,
      #7bff7b,
      #ffdd55
    );
  filter: blur(2px) saturate(1.4);
  animation: hue 6s linear infinite;
}
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#000 2px, transparent 2px),
    linear-gradient(90deg, #000 2px, transparent 2px);
  background-size: 40px 40px;
  mix-blend-mode: multiply;
  opacity: 0.4;
}
@keyframes spinSpiral {
  0%   { transform: rotateX(60deg) rotateZ(0deg) translateZ(-200px); }
  100% { transform: rotateX(660deg) rotateZ(360deg) translateZ(-200px); }
}
@keyframes hue {
  0%   { filter: hue-rotate(0deg) blur(2px) saturate(1.4); }
  100% { filter: hue-rotate(360deg) blur(2px) saturate(1.4); }
}
#wizard-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.rain-wizard {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  will-change: transform;
}
@keyframes fall {
  0% {
    transform: translateY(-120px) translateX(0px) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) translateX(var(--drift)) rotate(360deg);
  }
}
@keyframes wobble {
  0%   { rotate: -8deg; }
  100% { rotate: 8deg; }
}
.shopify-buy-frame--toggle {
  position:fixed !important;
  top:3rem !important;
  right:1.9rem !important;
  bottom:auto !important;
  left:auto !important;
  z-index:999999 !important;
}
.back-to-main {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  width: auto;
  padding: 0;
  border: none;
  z-index: 9999;
}
.back-to-main a {
  font-size: 1rem;
  color: #00ffee;
  text-decoration: none;
  text-shadow: 0 0 4px #00ffeeaa;
  transition: color 0.3s ease;
  font-family: 'Share Tech Mono', monospace;
}
.back-to-main a:hover {
  color: #ff00ff;
}
#contact-trigger {
  position: fixed;
  bottom: 500px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Share Tech Mono', monospace;
  color: #00ffee;
  text-shadow: 0 0 6px #00ffeeaa;
  cursor: pointer;
  z-index: 9999;
  transition: 0.3s;
  font-size: 3.5rem;

}
#contact-trigger:hover {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ffcc;
}
#contact-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.contact-box {
  width: 320px;
  padding: 20px;
  background: #000;
  border: 2px solid #00ffee;
  box-shadow: 0 0 20px #00ffeeaa;
  border-radius: 8px;
  animation: glitchPop 0.4s steps(2) forwards;
  font-family: 'Share Tech Mono', monospace;
}
.contact-box h2 {
  color: #00ffee;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #00ffeeaa;
}
.contact-box label {
  color: #fff;
  font-size: 0.8rem;
  margin-top: 10px;
  display: block;
}
.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  background: #111;
  border: 1px solid #00ffee55;
  color: #00ffee;
  outline: none;
  border-radius: 4px;
}
.contact-box textarea {
  height: 70px;
  resize: none;
}
#submit-contact {
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: #00ffee;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  transition: 0.2s;
}
#submit-contact:hover {
  background: #ff00ff;
  color: #fff;
}
#close-contact {
  margin-top: 10px;
  text-align: center;
  color: #ff00ff;
  cursor: pointer;
  font-size: 0.8rem;
}
@keyframes glitchPop {
  0% { transform: scale(0.8) skewX(10deg); opacity: 0; }
  50% { transform: scale(1.05) skewX(-10deg); }
  100% { transform: scale(1) skewX(0deg); opacity: 1; }
}
#about-trigger {
  position: fixed;
  bottom: 430px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Share Tech Mono', monospace;
  color: #00ffee;
  text-shadow: 0 0 6px #00ffeeaa;
  cursor: pointer;
  z-index: 9999;
  transition: 0.3s;
  font-size: 2.8rem;
}
#about-trigger:hover {
  color: #ff00ff;
  border-color: #ff00ff88;
  text-shadow: 0 0 8px #ff00ffcc;
  transform: scale(1.05);
}
#about-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.about-box {
  width: 340px;
  padding: 20px;
  background: #ffffff;
  border: 2px solid #ff00ff;
  box-shadow: 0 0 20px #ff00ffaa;
  border-radius: 8px;
  animation: glitchPop 0.4s steps(2) forwards;
  font-family: 'Share Tech Mono', monospace;
}
#close-about {
  margin-top: 14px;
  text-align: center;
  color: #00ffee;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Share Tech Mono', monospace;
  text-shadow: 0 0 6px #00ffeeaa;
  transition: 0.25s ease;
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #00ffee55;
  border-radius: 4px;
}
#close-about:hover {
  color: #ff00ff;
  border-color: #ff00ff88;
  text-shadow: 0 0 8px #ff00ffcc;
  transform: scale(1.05);
}
/* ============================
   MOBILE VIEWPORT STABILIZER
   ============================ */
@media (max-width: 700px) {

  /* Lock the viewport height */
  html, body {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  /* Prevent layout jumps from fixed elements */
  body {
    position: fixed !important;
    inset: 0 !important;
  }
}
@media (max-width: 700px) {
  html, body {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
}
