html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.main-content {
  margin: 0;
  padding: 0;
  overflow: visible !important;
  transform: none !important;
}

/* Hero 脂肪球：僅 scale / filter 呼吸（不寫 transform，避免覆寫 GSAP 的 left/top） */
@keyframes activeFatSafe {
  0%,
  100% {
    scale: 1;
    filter: brightness(100%);
  }

  50% {
    scale: 1.08;
    filter: brightness(110%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero .bubbles-container .fat-globule {
    animation: none !important;
    animation-fill-mode: none !important;
    scale: 1;
    filter: none;
    transform: translateZ(0);
    -webkit-transform: translate3d(0, 0, 0);
  }
}

#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background-color: #ffd54f !important;
}

#hero .layer-liver {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0;
}

#hero .layer-title {
  position: absolute;
  left: 50%;
  top: 20% !important;
  transform: translateX(-50%);
  width: 30vw !important;
  max-width: 500px !important;
  min-width: 300px;
  z-index: 10;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

#hero .bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

#hero .bubbles-container .bubble-wrap {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  line-height: 0;
  transform-origin: center center;
  -webkit-transform-origin: center center;
  pointer-events: none;
}

#hero .bubbles-container .fat-globule {
  opacity: 1 !important;
  animation: activeFatSafe 2.8s infinite ease-in-out !important;
  animation-fill-mode: both !important;
  will-change: transform, filter;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translate3d(0, 0, 0);
}

#hero .bubbles-container > .fat-globule:nth-child(2n) {
  animation-duration: 2.4s !important;
  animation-delay: -1.2s !important;
}

#hero .bubbles-container > .fat-globule:nth-child(3n) {
  animation-duration: 3.2s !important;
  animation-delay: -0.8s !important;
}

#hero .bubbles-container > .fat-globule:nth-child(5n) {
  animation-duration: 2.1s !important;
  animation-delay: -2.5s !important;
}

#hero .bubbles-container > .fat-globule:nth-child(7n) {
  animation-duration: 3.5s !important;
  animation-delay: -0.3s !important;
}

#hero .bubbles-container .bubble-wrap .bubble {
  position: relative;
  left: auto;
  top: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform-origin: center center;
  -webkit-transform-origin: center center;
  will-change: transform;
  opacity: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  #hero .layer-title {
    top: 15% !important;
    width: 90vw !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  #hero .layer-liver {
    object-position: center !important;
  }
}
