/* Gofun mobile footer replacement */
/* Hide original Bricks mobile bottom bar */
#brxe-ctcupq { display: none !important; }

.gofun-footer::before,
.gofun-footer::after {
  display: none !important;
  content: "" !important;
}

.gofun-footer { display: none; }

@media (min-width: 1025px) {
  .gofun-footer { display: none !important; }
}

@media (max-width: 1024px) {
  .gofun-footer {
    height: 70px;
    padding-top: 6px;
    background: linear-gradient(
      to top,
      rgba(36, 44, 61, 0.9) 0%,
      rgba(36, 44, 61, 0.88) 40%,
      rgba(36, 44, 61, 0.85) 100%
    );
    border-top: 2px solid #38bdf8bf;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9998;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
    overflow: visible;
  }

  .gofun-footer-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    min-width: 0;
  }

  .gofun-footer img {
    margin: 0;
    width: 50px;
    height: 32px;
    object-fit: contain;
  }

  .gofun-footer-item div {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 6px;
    color: #e2fbff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    max-width: 100%;
  }

  .gofun-footer-item:nth-child(3) {
    position: relative;
  }

  .gofun-footer-item:nth-child(3) img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
    margin: -11px 0;
    animation: uspin 2.5s linear infinite, uglow 2.4s ease-in-out infinite;
    font-weight: 700;
  }

  .gofun-footer-item:nth-child(3) div {
    margin-top: 10px;
  }

  /* Prevent the old floating back-to-top button from overlapping LINE service. */
  #go_top { display: none !important; }
}

@keyframes uspin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes uglow {
  0%, 100% { filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)) drop-shadow(0 0 0 rgba(255,220,120,0)); }
  50% { filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)) drop-shadow(0 0 14px rgba(255,220,120,.85)); }
}

@media (prefers-reduced-motion: reduce) {
  .gofun-footer-item--cta img,
  .tu-line-float,
  .tu-line-pulse,
  .tu-line-float::before,
  .tu-line-float::after { animation: none !important; }
}

/* LINE service floating button */
.tu-line-float {
  position: fixed;
  right: 14px;
  bottom: 96px;
  z-index: 9999;
  width: 87px;
  height: 87px;
  border-radius: 50%;
  background: linear-gradient(145deg,#21d85b,#06a83f);
  box-shadow: 0 0 0 4px rgba(255,255,255,.95),0 0 0 7px rgba(191,145,45,.75),0 10px 24px rgba(0,0,0,.25),0 0 22px rgba(37,211,102,.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  animation: tuLineFloat 1.8s ease-in-out infinite;
}
.tu-line-float img {
  width: 50px;
  height: 50px;
  display: block;
  margin-top: -10px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.18));
}
.tu-line-text {
  color: #fff;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .5px;
  text-shadow: 0 2px 3px rgba(0,0,0,.25);
}
.tu-line-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.65);
  animation: tuLinePulse 1.5s ease-out infinite;
}
.tu-line-float::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,transparent 0deg,rgba(255,225,120,.95) 70deg,transparent 130deg,transparent 360deg);
  animation: tuLineSpin 2.6s linear infinite;
  z-index: -1;
}
.tu-line-float::after {
  content: "詢問";
  position: absolute;
  right: 63px;
  top: 12px;
  white-space: nowrap;
  background: #111;
  color: #ffd978;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  animation: tuLineTag 1.8s ease-in-out infinite;
}
@keyframes tuLineFloat { 0%,100%{transform:translateY(0) scale(1)} 45%{transform:translateY(-6px) scale(1.04)} }
@keyframes tuLinePulse { 0%{transform:scale(.9);opacity:.8} 100%{transform:scale(1.35);opacity:0} }
@keyframes tuLineSpin { to{transform:rotate(360deg)} }
@keyframes tuLineTag { 0%,100%{transform:translateX(0);opacity:1} 50%{transform:translateX(-5px);opacity:.85} }

@media (max-width: 768px) {
  .tu-line-float {
    right: 10px;
    bottom: 87px;
    width: 62px;
    height: 62px;
    box-shadow: 0 0 0 3px rgba(255,255,255,.95),0 0 0 5px rgba(191,145,45,.75),0 8px 18px rgba(0,0,0,.25),0 0 16px rgba(37,211,102,.7);
    animation: tuLineFloat 1.2s ease-in-out infinite;
  }
  .tu-line-float img { width:36px; height:36px; margin-top:-6px; }
  .tu-line-text { font-size:10px; line-height:1; }
  .tu-line-pulse { inset:-5px; }
  .tu-line-float::before { inset:-3px; }
  .tu-line-float::after { content:"詢問"; right:46px; top:6px; font-size:10px; padding:3px 7px; }
}

/* LINE bubble is visible on desktop too. */
@media (min-width: 1025px) {
  .tu-line-float {
    right: 24px;
    bottom: 30px;
  }
}

/* Existing optional World Cup navigation effect kept from supplied snippet. */
.wc-nav-link {
  position:relative; display:inline-flex; align-items:center; gap:6px; padding:10px 18px!important;
  border-radius:999px; font-weight:800; color:#fff!important;
  background:linear-gradient(135deg,#0a4fd4,#1e88ff,#36c8ff);
  box-shadow:0 6px 18px rgba(0,90,255,.28),inset 0 1px 0 rgba(255,255,255,.25);
  overflow:hidden; transition:.25s; animation:wcGlow 1.8s infinite;
}
.wc-nav-link:hover { transform:translateY(-2px) scale(1.05); box-shadow:0 10px 24px rgba(0,90,255,.45),0 0 20px rgba(0,180,255,.6); }
.wc-nav-link::before { content:""; position:absolute; top:0; left:-120%; width:70%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent); transform:skewX(-25deg); animation:wcShine 2.8s infinite; }
.wc-nav-link::after { content:"HOT"; position:absolute; top:-6px; right:-8px; background:#ff2d2d; color:#fff; font-size:10px; font-weight:900; line-height:1; padding:4px 6px; border-radius:20px; animation:wcBadge .9s infinite alternate; }
@keyframes wcGlow { 0%,100%{box-shadow:0 6px 18px rgba(0,90,255,.25),0 0 0 rgba(0,180,255,0)} 50%{box-shadow:0 8px 24px rgba(0,120,255,.5),0 0 18px rgba(0,200,255,.7)} }
@keyframes wcShine { 0%{left:-120%} 40%{left:140%} 100%{left:140%} }
@keyframes wcBadge { from{transform:scale(1)} to{transform:scale(1.15)} }


/* STATIC MIRROR LAZYLOAD FALLBACK */
.bricks-lazy-hidden{opacity:1!important;visibility:visible!important;}

/* ===== Static-site Bricks/Splide fallback ===== */
.splide{visibility:visible !important;}
.brxe-tabs-nested > .tab-content > .tab-pane.brx-open{display:block !important;}
.brxe-tabs-nested > .tab-content > .tab-pane:not(.brx-open){display:none;}
.static-splide-arrows .splide__arrow{z-index:8;}
.static-splide-arrows .splide__arrow:disabled{opacity:.35;cursor:default;}
.static-splide-arrows .splide__arrow svg{fill:none !important;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
