body {
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(to top, #1a1f3a 0%, #3a2d6b 40%, #7a5bd6 100%);
  font-family: monospace;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  opacity: 0.2;
  animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle {
  0%,100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.gallery {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 30px;
  z-index: 3;
}
.gallery img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
  transition: transform .3s ease;
}
.gallery img:hover {
  transform: scale(1.1);
}
.grass {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 115px;
  background:
    linear-gradient(to top, #145a32 0%, #1e8449 40%, #27ae60 100%);
}
.grass::before {
  content: "";
  position: absolute;
  top: -25px;
  width: 100%;
  height: 25px;
  background:
    repeating-linear-gradient(
      90deg,
      #27ae60 0px,
      #27ae60 8px,
      #2ecc71 8px,
      #2ecc71 16px
    );
}
.tree {
  position: absolute;
  bottom: 140px;
  right: 15%;
  width: 110px;
  height: 160px;
}
.trunk {
  position: absolute;
  bottom: 0;
  left: 40px;
  width: 30px;
  height: 80px;
  background: #4e2d14;
}
.leaves {
  position: absolute;
  bottom: 70px;
  width: 110px;
  height: 100px;
  background: #0c612f;
  border-radius: 10px;
  box-shadow:
    inset 0 -15px #158144,
    inset 0 15px #0f9246;
}
.lamb {
  position: absolute;
  bottom: 130px;
  left: 72%;
  width: 96px;
  image-rendering: none;
  z-index: 4;
  animation: breathe 3s infinite ease-in-out;
}
@keyframes breathe {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}
.sleep {
  position: absolute;
  left: 72.3%;
  bottom: 170px;
  color: rgb(255, 0, 0);
  font-size: 14px;
  animation: floatZ 2s infinite ease-in-out;
  z-index: 10;
  pointer-events: none;
}
.z1 { animation-delay: 0s; }
.z2 { animation-delay: 0.4s; }
.z3 { animation-delay: 0.8s; }
@keyframes floatZ {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}
.back-btn {
  position: fixed;
  bottom: 20px;
  left: 70%;
  transform: translateX(-50%);
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #bd0707;
  color: #ff0000;
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 3px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  border-radius: 1px;
  transition: 0.25s ease;
  z-index: 999;
}
.back-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) scale(1.08);
}
.toyblock-title {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  display: flex;
  gap: 14px;
  z-index: 20;
  animation: toy-glitch 2.8s infinite steps(2, end);
}
.toyblock-title span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  font-size: 40px;
  font-weight: 900;
  font-family: monospace;
  color: #043c4d;
  border: 4px solid #043c4d;
  border-radius: 6px;
  box-shadow:
    0 4px 0 rgba(255,255,255,0.4),
    0 8px 12px rgba(0,0,0,0.4);
  transform: rotateX(6deg) rotateY(-4deg);
}
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 900;
}
.img-zoom-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  width: 420px;
  height: 420px;
  background: #111;
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 901;
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-zoom-box img {
  width: 95%;
  height: 95%;
  object-fit: contain;
  image-rendering: pixelated;
}
.img-zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.img-zoom-box.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
@keyframes block-wave {
  0%   { transform: translateY(0) rotateX(6deg) rotateY(-4deg); }
  25%  { transform: translateY(-12px) rotateX(6deg) rotateY(-4deg); }
  50%  { transform: translateY(0) rotateX(6deg) rotateY(-4deg); }
  75%  { transform: translateY(12px) rotateX(6deg) rotateY(-4deg); }
  100% { transform: translateY(0) rotateX(6deg) rotateY(-4deg); }
}
.toyblock-title span {
  animation: block-wave 2.4s infinite ease-in-out;
}
.toyblock-title span:nth-child(1) { animation-delay: 0s; }
.toyblock-title span:nth-child(2) { animation-delay: 0.15s; }
.toyblock-title span:nth-child(3) { animation-delay: 0.30s; }
.toyblock-title span:nth-child(4) { animation-delay: 0.45s; }
.toyblock-title span:nth-child(5) { animation-delay: 0.60s; }
.toyblock-title span:nth-child(6) { animation-delay: 0.75s; }
.toyblock-title span:nth-child(7) { animation-delay: 0.90s; }
@keyframes block-jump {
  0%   { transform: translateY(0) rotateX(6deg) rotateY(-4deg); }
  30%  { transform: translateY(-22px) rotateX(6deg) rotateY(-4deg); }
  60%  { transform: translateY(4px) rotateX(6deg) rotateY(-4deg); }
  100% { transform: translateY(0) rotateX(6deg) rotateY(-4deg); }
}
.toyblock-title span:hover {
  animation: block-jump 0.35s ease-out;
}
.pixel-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.rain-drop {
  position: absolute;
  width: 3px;
  height: 16px;
  background: #9ecaff;
  image-rendering: pixelated;
  opacity: 0.9;
  transform-origin: top center;
  animation: rainFall 0.45s linear forwards;
}
@keyframes rainFall {
  0% {
    opacity: 1;
    transform: translateY(-10vh);
  }
  100% {
    opacity: 0;
    transform: translateY(120vh);
  }
}
.rain-splashes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}
.splash {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #9ecaff;
  image-rendering: pixelated;
  opacity: 1;
  animation: splashPop 0.25s linear forwards;
}
@keyframes splashPop {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(4px, -6px) scale(0.4); }
}
.grass-object {
  position: absolute;
  bottom: -120px;
  left: 1vw;
  z-index: 4;
  pointer-events: none;
}
.grass-object img {
  width: auto;
  height: 500px;
  image-rendering: none;
}
.chimney-smoke {
  position: absolute;
  bottom: 380px;
  left: 7vw;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 5;
}
.smoke-puff {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
  image-rendering: pixelated;
  opacity: 0;
  animation: smokeRise 2.5s linear forwards;
}
@keyframes smokeRise {
  0% {
    opacity: 0.4;
    transform: translate(0, 0) scale(1);
  }
  40% {
    opacity: 0.8;
    transform: translate(10px, -40px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(30px, -140px) scale(1.6);
  }
}
.shopify-buy-frame--toggle {
  position:fixed !important;
  top:3rem !important;
  right:1.9rem !important;
  bottom:auto !important;
  left:auto !important;
  z-index:999999 !important;
}

/* ============================
   ORIGINAL DESKTOP (UNCHANGED)
   ============================ */

body {
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(to top, #1a1f3a 0%, #3a2d6b 40%, #7a5bd6 100%);
  font-family: monospace;
}

/* Stars */
.star, .stars {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  opacity: 0.2;
  animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle {
  0%,100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* Gallery (desktop) */
.gallery {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 30px;
  z-index: 3;
}
.gallery img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
  transition: transform .3s ease;
}
.gallery img:hover {
  transform: scale(1.1);
}

/* Grass */
.grass {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 115px;
  background: linear-gradient(to top, #145a32 0%, #1e8449 40%, #27ae60 100%);
}
.grass::before {
  content: "";
  position: absolute;
  top: -25px;
  width: 100%;
  height: 25px;
  background: repeating-linear-gradient(
    90deg,
    #27ae60 0px,
    #27ae60 8px,
    #2ecc71 8px,
    #2ecc71 16px
  );
}

/* Tree */
.tree {
  position: absolute;
  bottom: 140px;
  right: 15%;
  width: 110px;
  height: 160px;
}
.trunk {
  position: absolute;
  bottom: 0;
  left: 40px;
  width: 30px;
  height: 80px;
  background: #4e2d14;
}
.leaves {
  position: absolute;
  bottom: 70px;
  width: 110px;
  height: 100px;
  background: #0c612f;
  border-radius: 10px;
  box-shadow:
    inset 0 -15px #158144,
    inset 0 15px #0f9246;
}

/* Lamb */
.lamb {
  position: absolute;
  bottom: 130px;
  left: 72%;
  width: 96px;
  image-rendering: none;
  z-index: 4;
  animation: breathe 3s infinite ease-in-out;
}
@keyframes breathe {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* ZZZ */
.sleep {
  position: absolute;
  left: 72.3%;
  bottom: 170px;
  color: rgb(255, 0, 0);
  font-size: 14px;
  animation: floatZ 2s infinite ease-in-out;
  z-index: 10;
  pointer-events: none;
}
.z1 { animation-delay: 0s; }
.z2 { animation-delay: 0.4s; }
.z3 { animation-delay: 0.8s; }
@keyframes floatZ {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

/* Back button */
.back-btn {
  position: fixed;
  bottom: 20px;
  left: 70%;
  transform: translateX(-50%);
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #bd0707;
  color: #ff0000;
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 3px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  border-radius: 1px;
  transition: 0.25s ease;
  z-index: 999;
}
.back-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) scale(1.08);
}

/* Title blocks */
.toyblock-title {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  display: flex;
  gap: 14px;
  z-index: 20;
  animation: toy-glitch 2.8s infinite steps(2, end);
}
.toyblock-title span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  font-size: 40px;
  font-weight: 900;
  font-family: monospace;
  color: #043c4d;
  border: 4px solid #043c4d;
  border-radius: 6px;
  box-shadow:
    0 4px 0 rgba(255,255,255,0.4),
    0 8px 12px rgba(0,0,0,0.4);
  transform: rotateX(6deg) rotateY(-4deg);
  animation: block-wave 2.4s infinite ease-in-out;
}
@keyframes block-wave {
  0%   { transform: translateY(0) rotateX(6deg) rotateY(-4deg); }
  25%  { transform: translateY(-12px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(12px); }
  100% { transform: translateY(0); }
}
.toyblock-title span:hover {
  animation: block-jump 0.35s ease-out;
}
@keyframes block-jump {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-22px); }
  60%  { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

/* Pixel rain */
.pixel-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.rain-drop {
  position: absolute;
  width: 3px;
  height: 16px;
  background: #9ecaff;
  image-rendering: pixelated;
  opacity: 0.9;
  transform-origin: top center;
  animation: rainFall 0.45s linear forwards;
}
@keyframes rainFall {
  0% { opacity: 1; transform: translateY(-10vh); }
  100% { opacity: 0; transform: translateY(120vh); }
}

/* Splashes */
.rain-splashes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}
.splash {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #9ecaff;
  image-rendering: pixelated;
  opacity: 1;
  animation: splashPop 0.25s linear forwards;
}
@keyframes splashPop {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(4px, -6px) scale(0.4); }
}

/* House */
.grass-object {
  position: absolute;
  bottom: -120px;
  left: 1vw;
  z-index: 4;
  pointer-events: none;
}
.grass-object img {
  width: auto;
  height: 500px;
  image-rendering: none;
}

/* Smoke */
.chimney-smoke {
  position: absolute;
  bottom: 380px;
  left: 5vw;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 5;
}

/* Zoom overlay */
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 900;
}
.img-zoom-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  width: 420px;
  height: 420px;
  background: #111;
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 901;
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-zoom-box img {
  width: 95%;
  height: 95%;
  object-fit: contain;
  image-rendering: pixelated;
}
.img-zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.img-zoom-box.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Cart toggle (your HTML uses #cart-toggle) */
#cart-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999999;
}

/* ============================================================
   MOBILE SHRINK MODE — ONLY BELOW 700px
   ============================================================ */
@media (max-width: 700px) {

  /* Shrink title */
  .toyblock-title {
    top: 8%;
    gap: 5px;
  }
  .toyblock-title span {
    width: 30px;
    height: 30px;
    font-size: 18px;
    border-width: 2px;
  }

  /* Upside-down L gallery */
  .gallery {
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 150px 150px;
    grid-template-rows: 150px 150px;
    gap: 20px;
  }
  .gallery img {
    width: 150px;
    height: 150px;
  }
  .gallery img:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  /* Shrink house */
  .grass-object img {
    height: 350px;
  }

  /* Shrink smoke */
  .chimney-smoke {
    width: 140px;
    height: 140px;
    bottom: 300px;
  }

  /* Shrink lamb */
  .lamb {
    width: 70px;
    bottom: 120px;
  }
  .sleep {
    font-size: 10px;
    bottom: 150px;
  }

  /* Shrink tree */
  .tree {
    width: 70px;
    height: 110px;
    bottom: 120px;
    right: 12%;
  }

  /* Cart visible */
  #cart-toggle {
    top: 1rem;
    right: 1rem;
  }

  .back-btn {
    left: 75%;
    font-size: 10px !important;
    padding: 8px 16px !important;
    border-width: 1px !important;
    bottom: 45px !important;
  }
}
