/* ═══════════════════════════════════════════
SCSB 新戶寵粉計劃 — style.css
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --pink: #ff1774;
  --pink-hot: #ff3a89;
  --pink-bg: #fff3f6;
  --pink-b: #ffd8e1;
  --pink-sh: #ffb2c4;
  --purple: #7236ff;
  --purple-d: #5711fa;
  --red: #ff1736;
  --dark: #373737;
  --mid: #535353;
  --gray: #666;
  --cream: rgb(255, 249, 213);
  --font-family-sans-serif:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace:
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}
html {
  scroll-behavior: smooth;
  background-color: #e1cefe;
  /* overflow-x: clip; */
}
body {
  font-family: var(--font-family-sans-serif);
  color: #333;
  min-height: 100vh;
  background-color: #e1cefe;
  /* 背景改由 CSS 斷點決定：不再用 JS 於載入當下判斷，
     視窗縮放/裝置轉向會自動載對的圖 */
  background-image: url("../images/image_welcome/Mobile/MOBILE_bg1.webp");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
}
@media (min-width: 768px) {
  body {
    background-image: url("../images/image_welcome/Mobile/MOBILE_bg2.webp");
  }
}
@media (min-width: 1025px) {
  body {
    background-image: url("../images/image_welcome/Desktop/WEB_bg2.webp");
  }
}
/* .page-wrapper 不設任何 overflow/contain，避免影響內部 fixed/backdrop-filter/定位元素
橫向超出改由個別裝飾元素自己處理 */
.page-wrapper {
  position: relative;
  /* 只裁橫向：clip 祖先包住 sticky nav 在 iOS WebKit
     會出現捲動中區塊消失的已知問題，縱向必須保持 visible */
  overflow-x: clip;
  overflow-y: visible;
}

/* streak 裝飾色塊限制在自身範圍內，不造成橫向白邊 */
.streak-1,
.streak-2,
.bg-blob-1,
.bg-blob-2 {
  pointer-events: none;
  max-width: 100vw;
}

/* ══ NAV ══ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* background: rgba(255, 255, 255, 0.86);
backdrop-filter: blur(16px); */
  background: rgba(255, 255, 255, 0.96);
  /* backdrop-filter: blur(4px); */
  border-bottom: 1px solid rgba(255, 200, 220, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
}
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.nav-logo-fb {
  font-size: 16px;
  font-weight: 800;
  color: #c00;
  display: none;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #5d5d5d;
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
  gap: 10px;
}
.nav-links a:hover {
  background: linear-gradient(274.65deg, #d7baff 0.95%, #ffacc3 99.05%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}
.nav-links a.active {
  background: linear-gradient(274.65deg, #d7baff 0.95%, #ffacc3 99.05%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* 桌機：選單列維持橫向，滿版裝飾隱藏 */
.nav-mobile-panel {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
.nav-mobile-bg,
.nav-mobile-close,
.nav-mobile-title {
  display: none;
}
.nav-mobile-title {
  margin: 0;
  font-size: inherit;
}

.nav-burger {
  display: none;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--pink-sh) 0%, #ff9eb8 100%);
  box-shadow: 0 2px 14px rgba(255, 23, 116, 0.22);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.25s ease;
}
.nav-burger:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 18px rgba(255, 23, 116, 0.3);
}
.nav-burger:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.nav-burger.is-open {
  background: linear-gradient(155deg, var(--pink) 0%, var(--pink-hot) 100%);
  box-shadow: 0 3px 16px rgba(255, 23, 116, 0.35);
}
.nav-burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease,
    width 0.22s ease;
  transform-origin: center;
}
.nav-burger.is-open .nav-burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-burger.is-open .nav-burger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-burger.is-open .nav-burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ══ FLOATING SPHERES ══ */
.floating-btns {
  position: fixed;
  right: 24px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
  /* max-width: calc(100vw - 24px); */
}
.float-btn {
  will-change: transform;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-sans-serif);
  font-size: clamp(20px, 1.4vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  position: relative;
  background: radial-gradient(
    circle at 36% 30%,
    rgba(255, 158, 203, 0.98) 0%,
    rgba(218, 145, 255, 0.93) 36%,
    rgba(160, 176, 255, 0.88) 68%,
    rgba(186, 216, 255, 0.85) 100%
  );

  box-shadow:
    inset 2px 3px 7px rgba(255, 255, 255, 0.7),
    inset -2px -2px 6px rgba(165, 125, 240, 0.25),
    0 8px 24px rgba(195, 115, 200, 0.3);
  animation: floatBob 3s ease-in-out infinite;
  transition:
    transform 0.18s,
    box-shadow 0.2s;
}
.float-btn::before {
  content: "";
  position: absolute;
  top: 5%;
  left: auto;
  right: 8%;
  width: 18%;
  height: 20%;
  background: rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}
.float-btn:nth-child(2) {
  animation-delay: -1.5s;
}
.float-btn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow:
    inset 2px 3px 9px rgba(255, 255, 255, 0.78),
    inset -2px -2px 8px rgba(155, 115, 235, 0.32),
    0 16px 32px rgba(195, 90, 195, 0.44);
}
.float-btn.is-active {
  background: radial-gradient(
    circle at 36% 30%,
    rgba(255, 158, 203, 0.98) 0%,
    rgba(218, 145, 255, 0.93) 36%,
    rgba(160, 176, 255, 0.88) 68%,
    rgba(186, 216, 255, 0.85) 100%
  );
}
.float-btn span {
  position: relative;
  z-index: 1;
}
@keyframes floatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ══════════════════════════════════════
HERO [1] Desktop row / Mobile column-reverse
══════════════════════════════════════ */
.hero {
  position: relative;
  /*overflow: hidden;*/
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  gap: 40px;
  padding: 30px 0 50px;
  width: 100%;
  box-sizing: border-box;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.bg-blob-1 {
  width: 560px;
  height: 560px;
  top: -240px;
  left: -230px;
  background: radial-gradient(
    circle,
    rgba(255, 58, 137, 0.22) 0%,
    transparent 68%
  );
}
.bg-blob-2 {
  width: 900px;
  height: 900px;
  top: -70px;
  left: -190px;
  background: radial-gradient(
    circle,
    rgba(148, 88, 255, 0.14) 0%,
    transparent 62%
  );
}
.streak {
  position: absolute;
  pointer-events: none;
  border-radius: 60px;
  overflow: hidden;
  z-index: 1;
}
.streak-1 {
  width: 400px;
  height: 880px;
  top: -170px;
  right: 140px;
  background: linear-gradient(
    165deg,
    rgba(255, 200, 224, 0.52),
    rgba(218, 200, 255, 0.22)
  );
  transform: rotate(15.4deg);
  animation: streakDrift1 5s ease-in-out infinite;
}
.streak-2 {
  width: 360px;
  height: 840px;
  top: -60px;
  left: 80px;
  background: linear-gradient(
    -20deg,
    rgba(255, 210, 232, 0.48),
    rgba(200, 218, 255, 0.18)
  );
  transform: rotate(-19.5deg);
  animation: streakDrift2 6s ease-in-out infinite;
  animation-delay: -2.5s;
}
.streak::after {
  /* content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(
100deg,
transparent 15%,
rgba(255, 255, 255, 0) 30%,
rgba(255, 255, 255, 0.65) 48%,
rgba(255, 255, 255, 0.8) 50%,
rgba(255, 255, 255, 0.65) 52%,
rgba(255, 255, 255, 0) 70%,
transparent 85%
);
background-size: 250% 100%;
animation: lightBeam 3.2s ease-in-out infinite; */
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 60%;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 10%,
    rgba(255, 255, 255, 0.65) 48%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.65) 52%,
    rgba(255, 255, 255, 0) 70%,
    transparent 90%
  );
  animation: lightBeam 3.2s ease-in-out infinite;
  will-change: transform;
}
.streak-2::after {
  animation-delay: -1.6s;
  animation-duration: 4s;
}

/* ══ GPU COMPOSITING
持續動畫元素加 will-change，讓瀏覽器預備獨立 layer。
注意：.float-btn / .floating-btns 不加，fixed 定位元素的祖先
加了 will-change: transform 會建立新 containing block 導致定位跑掉。 */
/* .roulette,
.abc-btn,
.new-box-bubble,
.carousel-bubble,
.streak-1,
.streak-2 {
will-change: transform;
}
.streak::after {
will-change: background-position, opacity;
} */

.roulette {
  will-change: transform;
}

/* @keyframes lightBeam {
0% {
background-position: -60% 0;
opacity: 0;
}
15% {
opacity: 1;
}
85% {
opacity: 1;
}
100% {
background-position: 160% 0;
opacity: 0;
}
} */
@keyframes lightBeam {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(280%);
    opacity: 0;
  }
}
@keyframes streakDrift1 {
  0%,
  100% {
    opacity: 0.22;
    transform: rotate(15.4deg) translateX(0);
  }
  50% {
    opacity: 0.38;
    transform: rotate(15.4deg) translateX(20px);
  }
}
@keyframes streakDrift2 {
  0%,
  100% {
    opacity: 0.2;
    transform: rotate(-19.5deg) translateX(0);
  }
  50% {
    opacity: 0.34;
    transform: rotate(-19.5deg) translateX(-18px);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content .hero-title-picture {
  display: block;
  margin: 0;
  width: clamp(320px, 48vw, 620px);
}
.hero-title-img {
  display: block;
  width: 100%;
  height: auto;
}
.roulette-wrap {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: clamp(220px, 32vw, 440px);
  height: clamp(220px, 32vw, 440px);
  /* 陰影放在「不旋轉」的外層：視覺相同、
     不用每一幀跟著輪盤重算，光影方向也不會跟著轉 */
  filter: drop-shadow(0 8px 32px rgba(255, 58, 137, 0.22));
}
.roulette {
  width: 100%;
  height: 100%;
  animation: spin 12s linear infinite;
}
.roulette-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ══ PAGE CONTENT ══ */
.page-content {
  padding: 0 64px 0px;
  width: 100%;
  box-sizing: border-box;
  max-width: 1328px;
  margin-left: auto;
  margin-right: auto;
}
.content-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.connector,
.connector2 {
  --line-h: 120px;
  --line-shift-up: 0px;
  --line-w: 8px;
  display: flex;
  justify-content: center;
  gap: 60%;
  max-width: 1200px;
  margin: 0 auto;
  height: calc(var(--line-h) - var(--line-shift-up));
}
.connector2 {
  --line-h: 160px;
  --line-shift-up: 0px;
}
.connector {
  --line-h: 100px;
  --line-shift-up: 30px;
}
.connector::before,
.connector::after {
  content: "";
  display: block;
  width: var(--line-w);
  height: var(--line-h);
  transform: translateY(calc(var(--line-shift-up) * -1));
  background: linear-gradient(180deg, rgba(226, 215, 255, 0) 0%, #c0a7ff 100%);
}

.connector2::before,
.connector2::after {
  content: "";
  display: block;
  width: var(--line-w);
  height: var(--line-h);
  transform: translateY(calc(var(--line-shift-up) * -1));
  background: #ffd8e1;
}

/* ══════════════════════════════════════
[4] GLOWING BORDER WRAPPER TECHNIQUE
Structure:
.box-glow-wrap ← rotating conic border (background)
.box-inner ← white card on top, covers interior
This means the conic ONLY shows at the border gap.
══════════════════════════════════════ */
@property --ba {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Outer wrapper: the animated conic gradient IS the background.
The inner card sits inside with a small inset, revealing only the border ring. */
.box-glow-wrap {
  border-radius: 30px;
  /* padding: 3px; border thickness */
  /* background: conic-gradient(
from var(--ba, 0deg),
rgba(255, 255, 255, 0) 0%,
rgba(195, 125, 255, 0) 7%,
rgba(195, 125, 255, 0.92) 14%,
rgba(255, 75, 170, 0.92) 22%,
rgba(255, 190, 225, 0.5) 30%,
rgba(255, 255, 255, 0) 42%,
rgba(255, 255, 255, 0) 58%,
rgba(255, 170, 205, 0.55) 66%,
rgba(155, 95, 255, 0.92) 74%,
rgba(205, 140, 255, 0.92) 82%,
rgba(195, 125, 255, 0) 91%,
rgba(255, 255, 255, 0) 100%
); */
  /* animation: borderSpin 3.5s linear infinite; */
}
@keyframes borderSpin {
  to {
    --ba: 360deg;
  }
}

/* Inner card: full white background, sits on the conic ring */
.box-inner {
  border-radius: 56px;
  /* backdrop-filter: blur(14px); */
  width: 100%;
  height: 100%;
}

/* Specific sizing/padding for member vs new */
.member-box .box-inner {
  --member-border-size: 8px;
  --member-corner-radius: 56px;
  --member-title-gap: clamp(180px, 34vw, 360px);
  position: relative;
  padding: 30px 52px 38px;
  text-align: center;
  border: 0;
  border-radius: var(--member-corner-radius);
  backdrop-filter: none;
  overflow: visible;
}
.member-box .box-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: var(--member-border-size) solid #c0a7ff;
  border-radius: var(--member-corner-radius);
  clip-path: polygon(
    0 0,
    calc(50% - var(--member-title-gap) / 2) 0,
    calc(50% - var(--member-title-gap) / 2) var(--member-border-size),
    calc(50% + var(--member-title-gap) / 2) var(--member-border-size),
    calc(50% + var(--member-title-gap) / 2) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.member-box {
  margin-bottom: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
  animation: none;
}
.member-box.box-glow-wrap {
  background: transparent;
  padding: 0;
  animation: none;
}

.sec-title-purple {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: max-content;
  max-width: calc(var(--member-title-gap) - 20px);
  /* padding: 0 6px; */
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  color: var(--purple);
  line-height: 1.2;
  z-index: 5;
  text-align: center;
  white-space: nowrap;
}
.single-badge-purple {
  margin-top: 16px;
  display: inline-block;
  padding: 9px 28px;
  border-radius: 999px;
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 800;
  font-style: italic;
  font-family: var(--font-family-sans-serif);
  color: var(--purple-d);
  background:
    radial-gradient(
      circle at 20% 18%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0) 44%
    ),
    linear-gradient(
      92.31deg,
      rgba(255, 255, 255, 0.68) 0.55%,
      #ffffff 32.88%,
      #ffffff 52.38%,
      #ffffff 99.45%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 16px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 8px 18px rgba(255, 255, 255, 0.3),
    0 0 50px rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  --icon-size: 60px;
  --icon-left: -26px;
  --icon-top: -20px;
  position: relative;
}
.single-badge-purple::before {
  content: "";
  position: absolute;
  left: var(--icon-left);
  top: var(--icon-top);
  width: var(--icon-size);
  height: var(--icon-size);
  background: url("../images/image_welcome/start.svg") center / contain
    no-repeat;
  pointer-events: none;
}
.sec-desc {
  font-size: clamp(20px, 1.4vw, 24px);
  color: #000000;
  line-height: 1.9;
  padding: 16px;
}

.line-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 400;
  color: #ffffff;
  background: rgba(146, 105, 245, 1);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.line-btn:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.876),
    0 0 25px rgb(255, 255, 255),
    0 0 5px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.new-box {
  position: relative;
}
.new-box-bubble {
  position: absolute;
  top: -80px;
  right: 10%;
  width: clamp(120px, 9vw, 200px);
  height: auto;
  pointer-events: none;
  z-index: 4;
  animation: floatBob 3s ease-in-out infinite;
}
@media (max-width: 640px) {
  .new-box-bubble {
    top: -28px;
    right: 4%;
    width: clamp(56px, 14vw, 88px);
  }
}

.new-box .box-inner {
  --new-border-size: 8px;
  --new-corner-radius: 56px;
  --new-title-gap: clamp(180px, 34vw, 360px);
  position: relative;
  padding: 30px 52px 38px;
  text-align: center;
  border: 0;
  border-radius: var(--new-corner-radius);
  overflow: visible;
  /* margin-top: 50px; */
}

.new-box .box-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: var(--new-border-size) solid #ffd8e1;
  border-radius: var(--new-corner-radius);
  clip-path: polygon(
    0 0,
    calc(50% - var(--new-title-gap) / 2) 0,
    calc(50% - var(--new-title-gap) / 2) var(--new-border-size),
    calc(50% + var(--new-title-gap) / 2) var(--new-border-size),
    calc(50% + var(--new-title-gap) / 2) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}
.new-box-header {
  text-align: center;
  margin-bottom: 36px;
}
@keyframes connectorGlow {
  0%,
  100% {
    box-shadow:
      0 0 6px rgba(255, 255, 255, 0.9),
      0 0 14px rgba(255, 255, 255, 0.6),
      0 0 24px rgba(192, 167, 255, 0.45);
  }
  50% {
    box-shadow:
      0 0 10px rgba(255, 255, 255, 1),
      0 0 22px rgba(255, 255, 255, 0.85),
      0 0 36px rgba(192, 167, 255, 0.65);
  }
}
.sec-title-white {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: max-content;
  max-width: calc(var(--third-title-gap) - 20px);
  padding: 9px 32px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  background: linear-gradient(
    101deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgb(255, 255, 255) 33%,
    rgba(255, 227, 234, 0.72) 52%,
    rgb(255, 255, 255) 99%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -10px 16px rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(155, 89, 245, 0.6),
    0 0 50px rgba(155, 89, 245, 0.5);
  border-radius: 999px;
}
.sec-title-pink {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: max-content;
  max-width: calc(var(--new-title-gap) - 20px);
  /* padding: 0 6px; */
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  z-index: 5;
  text-align: center;
  white-space: nowrap;
  color: var(--pink-hot);
  margin-bottom: 24px;
}
.sec-pts-pink {
  margin-top: 16px;
  display: inline-block;
  padding: 16px 20px;
  border-radius: 999px;
  font-size: clamp(14px, 1.6vw, 28px);
  font-weight: 600;
  font-style: italic;
  font-family: var(--font-family-sans-serif);
  background:
    radial-gradient(
      circle at 20% 18%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0) 44%
    ),
    linear-gradient(
      92.31deg,
      rgba(255, 255, 255, 0.68) 0.55%,
      #ffffff 32.88%,
      #ffffff 52.38%,
      #ffffff 99.45%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 16px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 8px 18px rgba(255, 255, 255, 0.3),
    0 0 50px rgba(255, 255, 255, 0.55);
  color: var(--pink-hot);
}

/* ══ ABC SPHERE BUTTONS (手機才顯示) ══ */
.abc-btn-row {
  display: none;
  gap: 20px;
  justify-content: center;
  margin-bottom: 28px;
}
.abc-btn {
  width: clamp(90px, 14vw, 150px);
  height: clamp(90px, 14vw, 150px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at 36% 30%,
    rgba(255, 235, 248, 0.92) 0%,
    rgba(220, 205, 255, 0.78) 38%,
    rgba(195, 215, 255, 0.7) 68%,
    rgba(225, 238, 255, 0.68) 100%
  );
  box-shadow:
    inset 1px 2px 5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 4px rgba(160, 120, 240, 0.18),
    0 4px 14px rgba(190, 110, 195, 0.16);
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    background 0.22s;
  animation: floatBob 3.2s ease-in-out infinite;
}
.abc-btn:nth-child(2) {
  animation-delay: -1.1s;
}
.abc-btn:nth-child(3) {
  animation-delay: -2.2s;
}
.abc-btn::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 14%;
  width: 38%;
  height: 26%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}
.abc-btn.active {
  background: radial-gradient(
    circle at 36% 30%,
    rgba(255, 148, 198, 0.98) 0%,
    rgba(215, 135, 255, 0.93) 38%,
    rgba(155, 168, 255, 0.88) 68%,
    rgba(180, 210, 255, 0.85) 100%
  );
  box-shadow:
    inset 2px 3px 8px rgba(255, 255, 255, 0.68),
    inset -2px -2px 7px rgba(140, 80, 225, 0.35),
    0 8px 24px rgba(200, 70, 185, 0.42);
  transform: scale(1.1) translateY(-5px);
  animation-play-state: paused;
}
.abc-btn:hover:not(.active) {
  transform: scale(1.06) translateY(-3px);
}
.abc-letter {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 2px 2px 0 rgba(255, 130, 170, 0.3);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.abc-sub {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
手機版 任務選擇主區 (.mob-hero) — 預設桌機隱藏
══════════════════════════════════════════════ */
.mob-hero {
  display: none;
}
.mob-hero-letter {
  font-family: var(--font-family-sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(88px, 32vw, 150px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
  text-shadow:
    0 4px 12px rgba(160, 100, 230, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}
.mob-hero-pts {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 800;
  font-style: italic;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(92deg, #ff9fbe 0%, #ff5a8c 100%);
  box-shadow: 0 4px 10px rgba(255, 90, 140, 0.35);
  z-index: 2;
}
.mob-hero-tabs {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 4px 0 32px;
  position: relative; /* 讓下方提示文字以整排為基準置中,而非個別按鈕 */
}
.mob-hero-tab {
  flex: 1;
  padding: 12px 6px;
  border: 0;
  background: transparent;
  font-size: clamp(16px, 4.5vw, 20px);
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s;
}
.mob-hero-tab {
  border-bottom: 2px solid rgb(255, 255, 255);
}
.mob-hero-tab.active {
  color: #535353;
  font-weight: 800;
  border-bottom: 4px solid rgb(255, 255, 255);
}

/* 點選的 tab 下方顯示對應 data-hint */
.mob-hero-tab.active::after {
  content: attr(data-hint);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 15px auto 0;
  color: #e5447e;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: normal;
  text-align: center;
  max-width: 90%;
  pointer-events: none;
}

/* ══ DESKTOP 3-COL ══ */
.abc-layout {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  align-items: start;
  max-width: 1200px;
  margin-bottom: 32px;
}
.plus-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}
.plus-sign {
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 900;
  color: white;
  text-shadow: 5px 5px 0 var(--pink-sh);
  line-height: 1;
}
.task-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.task-col-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desk-abc-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
}
.desk-abc-letter {
  font-size: clamp(52px, 7.5vw, 100px);
  font-weight: 800;
  font-style: italic;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1;
}

/* [5] abc-pts — pink pill, same style as single-badge-purple but smaller & pink */
.abc-pts {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 800;
  font-style: italic;
  font-family: var(--font-family-sans-serif);
  color: var(--pink);
  background: linear-gradient(
    92.31deg,
    rgba(255, 255, 255, 0.5) 0.55%,
    #ffffff 32.88%,
    #ffe3ea 52.38%,
    #ffffff 99.45%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 16px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 -8px 18px rgba(255, 255, 255, 0.3),
    /* 往上 */ 0 -2px 15px rgba(255, 255, 255, 0.55); /* 上方光暈擴散 */
  margin-bottom: 15px;
  margin-top: -15px;
  white-space: nowrap;
  --icon-size: 60px;
  --icon-left: -26px;
  --icon-top: -20px;
  position: relative;
  border-radius: 999px;
}

.abc-pts::before {
  content: "";
  position: absolute;
  left: var(--icon-left);
  top: var(--icon-top);
  width: var(--icon-size);
  height: var(--icon-size);
  background: url("../images/image_welcome/start.svg") center / contain
    no-repeat;
  pointer-events: none;
}

.abc-hint {
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 7px;
  white-space: nowrap;
  min-height: 16px;
}
.abc-col-title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: var(--mid);
  margin-top: 14px;
}

/* ══ TASK CARDS ══ */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  align-items: center;
}

.task-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 4px solid var(--pink-b);
  border-radius: 14px;
  padding: 15px 18px;
  width: 95%;
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  color: #333;
  font-weight: 400;
  box-shadow: 5px 5px 0 var(--pink-sh);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.22s,
    border-color 0.22s,
    color 0.22s;
  line-height: 1.55;
  cursor: pointer;
}
.task-card:hover:not(.selected) {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--pink-sh);
}
.task-card small {
  font-size: 0.7em;
  color: #333333;
  display: block;
}
.note-sm {
  font-size: 0.8em;
  display: inline;
}
.task-card .note-sm {
  color: #333333;
}
.task-text-wrap {
  display: block;
}
/* selected state */
.task-card.selected {
  background: #ffd8e1 !important;
  border-color: var(--red) !important;
  box-shadow: 3px 3px 0 var(--red) !important;
  font-weight: 500 !important;
  color: var(--mid) !important;
  transform: translate(-2px, -2px);
}
.task-card.selected small {
  color: var(--mid);
}
.task-card.task-a {
  font-size: clamp(16px, 1.6vw, 21px);
  padding: 22px 18px;
}

/* Mobile panels */
.mobile-panel {
  display: none;
}

/* ══ CAROUSEL ══ */
.carousel-section {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  /* backdrop-filter: blur(8px); */
  border-radius: 40px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.84);
}
.carousel-bubble {
  position: absolute;
  top: -40px;
  left: -170px;
  width: clamp(200px, 10vw, 300px);
  height: auto;
  pointer-events: none;
  z-index: 3;
  animation: floatBob 3.4s ease-in-out infinite;
}
@media (max-width: 640px) {
  .carousel-bubble {
    top: -24px;
    left: -16px;
    width: clamp(56px, 14vw, 88px);
  }
}
.carousel-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 16px;
}
.carousel-hint .carousel-label {
  margin-bottom: 0;
}
.carousel-points {
  width: 25px;
  height: 25px;
}
.carousel-label {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 18px;
  text-align: center;
}
.carousel-label em {
  font-style: normal;
  color: var(--pink);
}

.carousel-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* pointer-events: none; */
}

/* .carousel-img > * {
pointer-events: none;
} */

.c-arr {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ff99aa;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.c-arr svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* 圖片顯示區 */
.img-area {
  width: 100%;
  /*height: 450px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 200px;
  /*padding-left: 8px;
padding-right: 8px;*/
  box-shadow:
    inset 2px 0 4px rgba(129, 129, 129, 0.15),
    /* 左 */ inset -2px 0 4px rgba(129, 129, 129, 0.15),
    /* 右 */ inset 0 2px 4px rgba(129, 129, 129, 0.15),
    /* 上 */ inset 0 -2px 4px rgba(129, 129, 129, 0.15); /* 下 */
  /* box-shadow:
2px 0 4px 0 rgba(0, 0, 0, 0.15) inset,
0 4px 4px 0 rgba(0, 0, 0, 0.15) inset; */
}

.img-area img {
  width: 100%;
  height: auto;
  /* object-fit: cover; */
  object-fit: unset;
  display: block;
  transition: opacity 0.25s ease;
  cursor: zoom-in;
}

.img-area img.fade {
  opacity: 0;
}

/* placeholder（尚未選擇 or 沒圖）*/
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #999;
}

/* Skeleton Loading — 亮帶用 transform 位移(合成器處理),
   取代 background-position 動畫(每一幀重繪) */
.img-area.is-loading {
  background: #f0e6f0;
  border-radius: 12px;
  overflow: hidden;
  /* min-height: 200px; */
}
.img-area.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0e6f0 25%, #e8d8f0 50%, #f0e6f0 75%);
  transform: translateX(-100%);
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.placeholder .icon {
  font-size: 48px;
  line-height: 1;
  filter: grayscale(1) opacity(0.4);
}

.placeholder span {
  font-family: var(--font-family-monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 進度點 ── */
.dots {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: 10px 0 14px;
  min-height: 28px;
}

.dot {
  height: 11px;
  margin-top: 8px;
  border-radius: 999px;
  width: 11px;
  background: #ffd0de;
  transition:
    width 0.35s,
    background 0.35s;
}
.dots-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  gap: 10px;
}
.c-arr-bot {
  display: none;
  position: relative;
}
.c-arr-bot::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.dot.active {
  width: 28px;
  background: #ffb2c4;
}

/* ══ FOOTER ══ */
footer {
  /* background: #fff3f6; */
  padding: 52px 64px 36px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
}
.footer-list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  /*gap: 7px;*/
  margin-bottom: 32px;
}
.footer-list li {
  font-size: 14px;
  color: #333333;
  line-height: 1.82;
}
.footer-list a {
  color: var(--purple);
}
.copyright {
  text-align: center;
  font-size: 12px;
  color: #ffffff;
  padding-top: 20px;
  border-top: 1px solid #f0dde5;
}
/*點選放大看圖*/
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  padding: 24px;
  animation: lbFadeIn 0.22s ease;
}
.lightbox.is-open {
  display: flex;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-img {
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: lbZoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  pointer-events: none;
}
@keyframes lbZoomIn {
  from {
    transform: scale(0.88);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.lightbox-close {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  padding-bottom: 2px;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%) scale(1.1);
}
.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══ RESPONSIVE ══ */
@media (min-width: 1025px) {
  .abc-btn-row {
    display: none !important;
  }
  .desk-abc-label {
    display: flex;
  }
  .mobile-panel {
    display: none !important;
  }
  .task-col {
    display: flex !important;
  }
  .task-col .task-card {
    width: 100%;
    max-width: 280px;
  }
  .task-col .abc-pts {
    font-size: 30px;
    max-width: 300px;
    white-space: nowrap;
  }
  .new-box .box-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .new-box .box-inner .abc-layout {
    display: grid;
    grid-template-columns: 1fr 52px 1fr 52px 1fr;
    align-items: start;
    width: calc(100% + 104px);
    max-width: 1200px;
    margin: 0 auto 32px;
    position: relative;
    left: -52px;
  }
}

@media (max-width: 1024px) {
  /* 桌機裝飾色塊造成水平超寬，手機/平板隱藏 */
  .bg-blob-1,
  .bg-blob-2,
  .streak-1,
  .streak-2 {
    display: none;
  }
  /* [1] Mobile hero: title on top, roulette below */
  .hero {
    padding: 40px 28px 52px;
    /*flex-direction: column;*/
    align-items: center;
    min-height: auto;
    gap: 24px;
  }
  .hero-content {
    max-width: 100%;
    flex: none;
    text-align: center;
  }
  .hero-content .hero-title-picture {
    display: inline-block;
    max-width: min(500px, 88vw);
    vertical-align: top;
  }
  .hero-content .hero-title-img {
    display: block;
    width: 120%;
    height: auto;
    max-width: none;
    left: -15%;
    object-fit: cover;
    position: relative;
  }
  .roulette-wrap {
    position: relative;
    transform: none;
    flex: none;
    width: clamp(300px, 80vw, 400px);
    height: clamp(300px, 80vw, 400px);
  }
  .page-content {
    padding: 0 28px 0px;
  }
  footer {
    padding: 44px 28px 32px;
  }
  .abc-layout {
    display: none;
  }
  .desk-abc-label {
    display: none;
  }
  .abc-btn-row {
    display: none;
  }
  .mob-hero {
    display: block;
  }

  .mobile-panel {
    display: none;
  }
  .mobile-panel.visible {
    display: block;
  }

  .mobile-panel-inner {
    /* backdrop-filter: blur(8px); */
    border-radius: 20px;
    padding: 24px 24px;
  }
  .m-pts {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    color: var(--pink);
    background: linear-gradient(
      101deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgb(255, 255, 255) 33%,
      rgba(255, 227, 234, 0.72) 52%,
      rgb(255, 255, 255) 99%
    );
    box-shadow: 0 2px 18px rgba(255, 23, 116, 0.09);
    margin-bottom: 14px;
    --icon-size: 45px;
    --icon-left: -20px;
    --icon-top: -15px;
    position: relative;
  }
  .single-badge-purple {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    color: var(--purple-d);
    background: linear-gradient(
      92.31deg,
      rgba(255, 255, 255, 0.5) 0.55%,
      #ffffff 32.88%,
      #ffe3ea 52.38%,
      #ffffff 99.45%
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -10px 16px rgba(255, 255, 255, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.5),
      0 -8px 18px rgba(255, 255, 255, 0.3),
      /* 往上 */ 0 -2px 15px rgba(255, 255, 255, 0.55); /* 上方光暈擴散 */
    margin-bottom: 15px;
    white-space: nowrap;
    --icon-size: 45px;
    --icon-left: -20px;
    --icon-top: -15px;
    position: relative;
  }

  .m-pts::before {
    content: "";
    position: absolute;
    left: var(--icon-left);
    top: var(--icon-top);
    width: var(--icon-size);
    height: var(--icon-size);
    background: url("../images/image_welcome/start.svg") center / contain
      no-repeat;
    pointer-events: none;
  }

  .m-hint {
    font-size: 13px;
    color: #bbb;
  }
  .m-title {
    font-size: clamp(14px, 3.5vw, 20px);
    font-weight: 700;
    color: var(--mid);
    margin-bottom: 14px;
  }
  .streak-1,
  .streak-2 {
    display: none;
  }
}

@media (max-width: 767px) {
  nav {
    padding: 0 16px;
    height: 58px;
  }
  /* 滿版選單需蓋過右下角浮動球 (z-index:200) */
  body.nav-menu-open nav {
    z-index: 280;
  }
  body.nav-menu-open .floating-btns {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
  }
  .nav-mobile-panel {
    flex: none;
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px)) 24px
      max(28px, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.4s ease;
  }
  body.nav-menu-open .nav-mobile-panel {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }
  .nav-mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffdde1 0%, #f3e3f8 42%, #e2d1f9 100%);
  }
  .nav-mobile-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }
  /* 左上：較大肥皂泡，虹彩高光 */
  .nav-mobile-bubble--tl {
    width: min(72vw, 300px);
    height: min(72vw, 300px);
    left: -20%;
    top: -12%;
    opacity: 0.92;
    background:
      radial-gradient(
        circle at 28% 26%,
        rgba(255, 255, 255, 0.98) 0%,
        transparent 28%
      ),
      radial-gradient(
        circle at 78% 22%,
        rgba(186, 240, 255, 0.55) 0%,
        transparent 32%
      ),
      radial-gradient(
        circle at 20% 72%,
        rgba(255, 210, 140, 0.45) 0%,
        transparent 35%
      ),
      radial-gradient(
        circle at 72% 78%,
        rgba(255, 150, 220, 0.42) 0%,
        transparent 38%
      ),
      radial-gradient(
        circle at 48% 52%,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(240, 230, 255, 0.12) 45%,
        transparent 68%
      );
    box-shadow:
      inset -12px -18px 34px rgba(255, 255, 255, 0.65),
      inset 10px 14px 28px rgba(180, 160, 255, 0.14);
  }
  /* 右下：較小泡泡 */
  .nav-mobile-bubble--br {
    width: min(42vw, 190px);
    height: min(42vw, 190px);
    right: -10%;
    bottom: 6%;
    opacity: 0.9;
    background:
      radial-gradient(
        circle at 32% 30%,
        rgba(255, 255, 255, 0.95) 0%,
        transparent 30%
      ),
      radial-gradient(
        circle at 65% 70%,
        rgba(140, 220, 255, 0.5) 0%,
        transparent 40%
      ),
      radial-gradient(
        circle at 48% 48%,
        rgba(255, 200, 240, 0.35) 0%,
        transparent 55%
      ),
      radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(230, 220, 255, 0.1) 50%,
        transparent 72%
      );
    box-shadow:
      inset -8px -12px 26px rgba(255, 255, 255, 0.55),
      inset 6px 8px 20px rgba(170, 150, 255, 0.12);
  }
  /* 半透明青藍關閉 + 白色光暈（設計稿） */
  .nav-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* top: max(14px, env(safe-area-inset-top, 0px));
    right: max(16px, env(safe-area-inset-right, 0px)); */
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    /* margin: 0 auto 24px; */
    border: 1px solid rgba(255, 255, 255, 0.207);
    border-radius: 50%;
    cursor: pointer;

    background: linear-gradient(
      210deg,
      rgb(188, 236, 255) 0%,
      rgba(190, 233, 255, 0.945) 45%,
      rgb(215, 244, 255) 80%,
      rgba(206, 239, 255, 0.725) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* box-shadow: 0px 4px 16px 0px #FFC3CF; */

    box-shadow:
      0 0 26px rgba(255, 255, 255, 0.85),
      0 3px 12px rgba(239, 28, 91, 0.566);
    -webkit-tap-highlight-color: transparent;
    transition:
      transform 0.2s ease,
      background 0.2s ease;
  }

  .nav-mobile-close-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
  }
  .nav-mobile-close-icon::before,
  .nav-mobile-close-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    /* box-shadow: 0 0 6px rgba(255, 255, 255, 0.9); */
  }
  .nav-mobile-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .nav-mobile-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  /* 標題：設計稿 SVG */
  .nav-mobile-title {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 0 clamp(28px, 7vh, 32px);
    padding: 0 16px;
    text-align: center;
    line-height: 0;
  }
  .nav-mobile-title-img {
    width: min(88vw, 300px);
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: top;
    object-fit: contain;
  }
  .nav-links {
    position: relative;
    z-index: 1;
    /* 固定欄寬：底下每個 a 都是同一寬度 */
    width: min(82vw, 300px);
    max-width: 300px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    list-style: none;
    flex: 0 1 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: none;
    overflow: visible;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
  }
  body.nav-menu-open .nav-links {
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links.open {
    padding: 0;
  }
  .nav-mobile-panel .nav-links li {
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
  }
  .nav-mobile-panel .nav-links a {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 16px;
    font-size: 22px;
    font-weight: 500;
    color: #4a4a4a;
    background: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 8px 10px #b696ff;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      color 0.2s ease;
  }
  .nav-mobile-panel .nav-links a:hover {
    background: #fff;
    color: #e11d74;
    box-shadow: 0 14px 32px rgba(150, 100, 255, 0.28);
  }
  .nav-mobile-panel .nav-links a.active {
    background: #fff;
    color: #e11d74;
    font-weight: 700;
    box-shadow: 0 8px 10px rgba(245, 29, 137, 0.605);
  }
  .nav-burger {
    display: flex;
  }
  body.nav-menu-open .nav-burger {
    opacity: 0;
    pointer-events: none;
  }
  body.nav-menu-open {
    overflow: hidden;
    touch-action: none;
  }
  .hero {
    padding: 32px 16px 44px;
    flex-direction: column;
  }
  .page-content {
    padding: 0 16px 0px;
  }
  .member-box .box-inner,
  .new-box .box-inner {
    padding: 28px 18px;
  }

  .connector2 {
    --line-h: 80px;
    --line-shift-up: 0px;
  }

  #prevBtn,
  #nextBtn {
    display: none;
  }
  .c-arr-bot {
    display: flex;
    width: 32px;
    height: 32px;
  }
  .dots-row {
    gap: 16px;
    padding-top: 8px;
  }
  /* 說明文字和按鈕在手機降為 Body 等級 */
  .sec-desc {
    font-size: 16px;
    align-items: center;
    margin-top: 20px;
  }
  .line-btn {
    font-size: 16px;
  }
  .carousel-section {
    padding: 18px 14px;
  }
  footer {
    padding: 36px 20px 28px;
  }
  .floating-btns {
    right: 0;
    padding-right: 12px;
    bottom: 80px;
    gap: 10px;
  }
  .float-btn {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }

  .c-arr {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .abc-btn {
    width: 80px;
    height: 80px;
  }
  .abc-letter {
    font-size: 32px;
  }
  .hero-content .hero-title-img {
    display: block;
    width: 130%;
    height: auto;
    max-width: none;
    left: -15%;
    object-fit: cover;
    position: relative;
  }
  .img-area {
    min-height: 100px;
  }

  .carousel-img {
    gap: 4px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }
  .carousel-img .c-arr {
    display: none;
  }
  .dots-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
}

/* ══════════════════════════════════════════════
TABLET 專屬覆蓋（768px ~ 1024px）
在 max-width:1024px 的基礎上，針對平板做放大微調
══════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {
  /* 平板同mobile */
  .abc-layout {
    display: none;
  }
  .mob-hero {
    display: block;
  }

  /* NAV：平板保留稍大 padding */
  nav {
    padding: 0 32px;
    height: 62px;
    box-sizing: border-box;
  }

  /* ── Burger 顯示（平板也要 hamburger menu）── */
  .nav-burger {
    display: flex;
  }
  body.nav-menu-open .nav-burger {
    opacity: 0;
    pointer-events: none;
  }
  body.nav-menu-open {
    overflow: hidden;
    touch-action: none;
  }
  body.nav-menu-open nav {
    z-index: 280;
  }
  body.nav-menu-open .floating-btns {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
  }

  /* ── Mobile panel：全螢幕展開（同 640px 邏輯）── */
  .nav-mobile-panel {
    flex: none;
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px)) 24px
      max(28px, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.4s ease;
  }
  body.nav-menu-open .nav-mobile-panel {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  /* ── 背景漸層泡泡 ── */
  .nav-mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffdde1 0%, #f3e3f8 42%, #e2d1f9 100%);
  }

  /* ── 關閉按鈕 ── */
  .nav-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* top: max(14px, env(safe-area-inset-top, 0px));
    right: max(16px, env(safe-area-inset-right, 0px)); */
    z-index: 2;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0 auto 32px;
    border: 1px solid rgba(255, 255, 255, 0.207);
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(
      210deg,
      rgb(188, 236, 255) 0%,
      rgba(190, 233, 255, 0.945) 45%,
      rgb(215, 244, 255) 80%,
      rgba(206, 239, 255, 0.725) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
      0 0 26px rgba(255, 255, 255, 0.85),
      0 3px 12px rgba(239, 28, 91, 0.566);
    -webkit-tap-highlight-color: transparent;
    transition:
      transform 0.2s ease,
      background 0.2s ease;
  }
  .nav-mobile-close-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
  }
  .nav-mobile-close-icon::before,
  .nav-mobile-close-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    /* box-shadow: 0 0 6px rgba(255, 255, 255, 0.9); */
  }
  .nav-mobile-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .nav-mobile-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* ── Title SVG ── */
  .nav-mobile-title {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 0 clamp(28px, 7vh, 32px);
    padding: 0 16px;
    text-align: center;
    line-height: 0;
  }

  /* ── Nav links：平板版放大字體 ── */
  .nav-links {
    position: relative;
    z-index: 1;
    width: min(82vw, 380px);
    max-width: 380px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    list-style: none;
    flex: 0 1 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: none;
    overflow: visible;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
  }
  body.nav-menu-open .nav-links {
    visibility: visible;
    pointer-events: auto;
  }
  .nav-mobile-panel .nav-links li {
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
  }
  .nav-mobile-panel .nav-links a {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 28px;
    font-size: 24px;
    font-weight: 500;
    color: #4a4a4a;
    background: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 8px 10px #b696ff;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      color 0.2s ease;
  }
  .nav-mobile-panel .nav-links a:hover {
    background: #fff;
    color: #e11d74;
    box-shadow: 0 14px 32px rgba(150, 100, 255, 0.28);
  }
  .nav-mobile-panel .nav-links a.active {
    background: #fff;
    color: #e11d74;
    font-weight: 700;
    box-shadow: 0 8px 10px rgba(245, 29, 137, 0.605);
  }

  /* HERO：平板給更大內距，roulette 稍大 */
  .hero {
    padding: 48px 40px 60px;
    gap: 32px;
  }
  .roulette-wrap {
    width: clamp(280px, 50vw, 360px);
    height: clamp(280px, 50vw, 360px);
  }
  .hero-content .hero-title-picture {
    max-width: min(460px, 58vw);
  }

  /* PAGE CONTENT：平板側邊距 */
  .page-content {
    padding: 0 40px 0px;
  }
  footer {
    padding: 48px 40px 32px;
  }

  /* CAROUSEL img-area：平板給中等高度 */
  .img-area {
    /* height: 380px;
height: auto;
aspect-ratio: 16/9;
flex: 1; */
    height: auto;
    aspect-ratio: unset;
    flex: none;
    min-height: 180px;
  }

  .carousel-img {
    gap: 4px;
  }

  .c-arr {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  .dots-row {
    gap: 16px;
    padding-top: 8px;
  }

  #prevBtn,
  #nextBtn {
    display: none;
  }
  .c-arr-bot {
    display: flex;
    width: 32px;
    height: 32px;
  }

  /* BOX INNER：平板 padding 稍微縮減 */
  .member-box .box-inner,
  .new-box .box-inner {
    padding: 30px 36px 36px;
  }

  /* MOB-HERO letter：平板字體放大 */
  .mob-hero-letter {
    font-size: clamp(100px, 22vw, 140px);
  }

  /* TASK CARD：平板給更大字 */
  .task-card {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .task-card.task-a {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  /* FLOATING BTNS：平板稍大 */
  .float-btn {
    width: 100px;
    height: 100px;
    font-size: 18px;
    font-weight: 500;
  }
  .floating-btns {
    right: 16px;
    bottom: 90px;
    /* max-width: calc(100vw - 16px); */
  }

  /* M-TITLE：平板大一點 */
  .m-title {
    font-size: clamp(16px, 2.8vw, 22px);
  }

  /* MOBILE PANEL INNER：平板給更大內距 */
  .mobile-panel-inner {
    padding: 28px 32px;
  }

  /* CONNECTOR line 間距：平板縮短 */
  .connector,
  .connector2 {
    gap: 55%;
  }
  .hero-content .hero-title-img {
    display: block;
    width: 120%;
    height: auto;
    max-width: none;
    left: -15%;
    object-fit: cover;
    position: relative;
  }
}

/* ══════════════════════════════════════════════
MOBILE 精細調整（375px ~ 640px）
補充 640px 斷點未覆蓋的細節
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* HERO：小手機再縮緊 */
  .hero {
    padding: 24px 16px 36px;
    gap: 16px;
  }
  .roulette-wrap {
    width: clamp(240px, 78vw, 300px);
    height: clamp(240px, 78vw, 300px);
  }
  .hero-content .hero-title-picture {
    max-width: min(90vw, 340px);
  }

  /* IMG AREA：小手機降低高度避免撐太高 */
  /*.img-area {
height: 260px;
}*/

  /* TASK CARD：小手機字體縮小 */
  .task-card {
    font-size: 16px;
    padding: 13px 14px;
  }

  /* MOB HERO LETTER */
  .mob-hero-letter {
    font-size: clamp(72px, 26vw, 100px);
  }

  /* FOOTER 緊縮 */
  footer {
    padding: 32px 16px 24px;
  }

  /* CAROUSEL SECTION */
  .carousel-section {
    padding: 16px 12px;
  }

  /* BOX INNER */
  .member-box .box-inner,
  .new-box .box-inner {
    padding: 28px 16px 16px;
  }

  /* SEC TITLE：確保不超出畫面 */
  .sec-title-purple,
  .sec-title-pink {
    font-size: clamp(18px, 6vw, 28px);
    white-space: normal;
    text-align: center;
    max-width: 70vw;
  }

  /* CONNECTOR：小手機縮短 line 高度 */
  .connector {
    --line-h: 80px;
  }
  .connector2 {
    --line-h: 120px;
  }
  .hero-content .hero-title-img {
    display: block;
    width: 120%;
    height: auto;
    max-width: none;
    left: -15%;
    object-fit: cover;
    position: relative;
  }
}
/* 手機：背景圖片 */
@media (min-width: 768px) and (max-width: 1366px) {
  body {
    /* background-image: url("../images/image_welcome/Mobile/MOBILE_bg2.svg"); */
    background-size: 100% auto;
    background-position: top center;
  }
  /* 桌機裝飾色塊造成水平超寬，平板隱藏 */
  .bg-blob-1,
  .bg-blob-2,
  .streak-1,
  .streak-2 {
    display: none;
  }
}

@media (max-width: 767px) {
  body {
    /* background-image: url("../images/image_welcome/Mobile/MOBILE_bg1.svg"); */
    background-size: 100% auto;
    background-position: top center;
  }
  /* 桌機裝飾色塊造成水平超寬，手機隱藏 */
  .bg-blob-1,
  .bg-blob-2,
  .streak-1,
  .streak-2 {
    display: none;
  }
  /* floating-btns fixed 元素在 clip 下需明確控制 */
  .floating-btns {
    right: 12px;
    /* right: 0; */
    /* padding-right: 12px; */
  }
  .sec-title-white {
    font-size: clamp(18px, 6.5vw, 24px) !important;
    padding: 6px 18px !important;
    white-space: nowrap;
    max-width: 80vw !important;
  }
}

/* ══ 無障礙:使用者系統設定「減少動態效果」時停用裝飾動畫 ══
   (WCAG 2.3.3 Animation from Interactions / Freego 相容)
   只停動畫,版面與元素完全不變 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .roulette,
  .float-btn,
  .new-box-bubble,
  .carousel-bubble,
  .streak::after,
  .img-area.is-loading::before {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
