/* ================================================
   TNT 寶來娛樂城 - 全域樣式
   ================================================ */

/* ===== CSS Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Design Tokens ===== */
:root {
  /* 品牌色彩 */
  --color-primary: #3DBEC4;
  --color-primary-dark: #2a9ba0;
  --color-primary-light: #5fd4da;
  --color-secondary: #FFD700;
  --color-secondary-dark: #e6c200;
  --color-accent: #FF6B35;
  --color-accent-light: #ff8a5c;

  /* 背景色 */
  --color-dark: #1A1A2E;
  --color-dark-light: #252542;
  --color-dark-lighter: #2d2d4a;
  --color-light: #FFFFFF;
  --color-light-gray: #f5f5f7;
  --color-gray: #a0a0a0;

  /* 漸層 */
  --gradient-primary: linear-gradient(135deg, #3DBEC4 0%, #2a9ba0 100%);
  --gradient-hero: linear-gradient(180deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.9) 100%);
  --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);

  /* 間距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
  --spacing-2xl: 120px;

  /* 容器 */
  --container-max: 1200px;
  --container-padding: 16px;

  /* 圓角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* 陰影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(61, 190, 196, 0.3);

  /* 動畫 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 字體 */
  --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
  --font-size-5xl: 48px;

  /* Header 高度 */
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Section Titles ===== */
.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-xs);
  color: var(--color-dark);
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--color-gray);
  margin-bottom: var(--spacing-lg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  gap: 8px;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-light);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--color-light);
  border: 2px solid var(--color-light);
}

.btn--secondary:hover {
  background: var(--color-light);
  color: var(--color-dark);
}

.btn--outline {
  background: transparent;
  color: #2DA2A7;
  border: 2px solid #2DA2A7;
}

.btn--outline:hover {
  background: #2DA2A7;
  color: var(--color-light);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--font-size-lg);
}

/* ================================================
   01. HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--spacing-md);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 8px 16px;
  color: #2DA2A7;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: #238a8e;
}

.nav__item--has-dropdown>.nav__link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-primary-dark);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.nav__item--has-dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--color-light);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.nav__dropdown a:hover {
  background: var(--color-primary);
  color: var(--color-light);
}

.header__actions {
  display: none;
  gap: var(--spacing-sm);
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2DA2A7;
  transition: all var(--transition-base);
  margin: 3px 0;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.header__nav.mobile-open {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--color-dark);
  padding: var(--spacing-md);
  overflow-y: auto;
}

.header__nav.mobile-open .nav__list {
  flex-direction: column;
  gap: 0;
}

.header__nav.mobile-open .nav__link {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--color-dark-lighter);
}

.header__nav.mobile-open .nav__dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: var(--color-dark-lighter);
  border-radius: 0;
  display: none;
}

.header__nav.mobile-open .nav__item--has-dropdown.open .nav__dropdown {
  display: block;
}

/* ================================================
   02. HERO
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  width: 100%;
  display: block;
}

.hero__bg img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ================================================
   03. PROMOTIONS - COVERFLOW CAROUSEL
   ================================================ */
.promotions {
  padding: var(--spacing-lg) 0;
  background: var(--color-light-gray);
  position: relative;
  overflow: hidden;
}

.promotions .container {
  position: relative;
  z-index: 1;
}

/* Background character decoration */
.promotions__bg-character {
  position: absolute;
  bottom: 0;
  left: -30px;
  width: 250px;
  height: auto;
  opacity: 1.0;
  z-index: 0;
  pointer-events: none;
  filter: none;
}

/* Coverflow Carousel Container */
.promo-carousel {
  position: relative;
  perspective: 1200px;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-md) 0;
}

/* Carousel Track - holds all cards */
.promo-carousel__track {
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Base Card Styling */
.promo-card {
  position: absolute;
  width: 240px;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Special Promo Card */
.promo-card--special {
  position: absolute;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  cursor: pointer;
  padding: var(--spacing-md) var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 240px;
  transform-style: preserve-3d;
}

/* Spotlight effect - only on center card */
.promo-card--special::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(61, 190, 196, 0.4) 0%, transparent 100%);
  transition: all 0.8s ease;
  pointer-events: none;
  opacity: 0;
}

.promo-card--special[data-position="0"]:hover::before {
  top: 0;
  opacity: 1;
}

/* Center Position (Focal Point) */
.promo-card[data-position="0"] {
  transform: translateX(0) translateY(0) scale(1.0);
  opacity: 1.0;
  z-index: 10;
  pointer-events: auto;
}

/* Center card hover effects */
.promo-card--special[data-position="0"]:hover {
  transform: translateX(0) translateY(-8px) scale(1.02) rotateX(2deg) rotateY(-3deg);
  box-shadow:
    0 20px 60px rgba(61, 190, 196, 0.3),
    0 0 0 1px rgba(61, 190, 196, 0.1);
}

/* Left Position */
.promo-card[data-position="-1"] {
  transform: translateX(-280px) translateY(-40px) scale(0.82);
  opacity: 0.85;
  z-index: 5;
  pointer-events: none;
  filter: blur(0.5px);
}

/* Right Position */
.promo-card[data-position="1"] {
  transform: translateX(280px) translateY(-40px) scale(0.82);
  opacity: 0.85;
  z-index: 5;
  pointer-events: none;
  filter: blur(0.5px);
}

/* Hidden cards (outside visible range) */
.promo-card[data-position="hidden"] {
  transform: scale(0.5) translateY(-60px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* Card Tag Styling */
.promo-card__tag {
  display: inline-block;
  padding: 8px 18px;
  color: var(--color-light);
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Tag colors by promo type */
.promo-card[data-modal="first-deposit"] .promo-card__tag {
  background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
  color: #2C3E50;
}

.promo-card[data-modal="second-deposit"] .promo-card__tag {
  background: linear-gradient(135deg, #6DD5FA 0%, #2980B9 100%);
}

.promo-card[data-modal="referral"] .promo-card__tag {
  background: linear-gradient(135deg, #A8EDEA 0%, #667EEA 100%);
}

.promo-card[data-modal="usdt"] .promo-card__tag {
  background: linear-gradient(135deg, #6BCF7F 0%, #26D07C 100%);
}

.promo-card[data-modal="weekly-deposit"] .promo-card__tag {
  background: linear-gradient(135deg, #FF9A56 0%, #FF6B6B 100%);
}

.promo-card[data-modal="daily-mission"] .promo-card__tag {
  background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
}

/* Card Title */
.promo-card--special .promo-card__title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #2DA2A7 0%, #238a8e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* 3D depth on center card hover */
.promo-card--special[data-position="0"]:hover .promo-card__tag {
  transform: translateZ(30px) translateY(-2px);
}

.promo-card--special[data-position="0"]:hover .promo-card__title {
  transform: translateZ(20px);
}

/* Mascot Image */
.promo-card__mascot {
  width: 100%;
  max-width: 140px;
  height: auto;
  margin-top: auto;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.promo-card--special[data-position="0"]:hover .promo-card__mascot {
  transform: translateY(-15px) translateZ(40px) scale(1.05);
}

/* Larger mascots for specific cards */
.promo-card[data-modal="referral"] .promo-card__mascot,
.promo-card[data-modal="usdt"] .promo-card__mascot,
.promo-card[data-modal="weekly-deposit"] .promo-card__mascot,
.promo-card[data-modal="daily-mission"] .promo-card__mascot {
  max-width: 160px;
}

/* Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-light);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
  background: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(61, 190, 196, 0.4);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav--prev {
  left: 20px;
}

.carousel-nav--next {
  right: 20px;
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
}

/* Carousel Indicators (Dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: var(--spacing-lg);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-gray);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  opacity: 0.5;
}

.indicator:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

.indicator.active {
  background: var(--color-primary);
  opacity: 1;
  width: 32px;
  border-radius: 6px;
}

/* Entrance Animation */
@keyframes carouselFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-carousel.animate-in {
  animation: carouselFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Responsive: Tablet */
@media (min-width: 768px) {
  .promo-carousel {
    min-height: 400px;
  }

  .promo-carousel__track {
    height: 370px;
  }

  .promo-card {
    width: 280px;
    min-height: 260px;
  }

  .promo-card[data-position="-1"] {
    transform: translateX(-320px) translateY(-40px) scale(0.82);
  }

  .promo-card[data-position="1"] {
    transform: translateX(320px) translateY(-40px) scale(0.82);
  }

  .promo-card__mascot {
    max-width: 160px;
  }

  .promo-card[data-modal="referral"] .promo-card__mascot,
  .promo-card[data-modal="usdt"] .promo-card__mascot,
  .promo-card[data-modal="weekly-deposit"] .promo-card__mascot,
  .promo-card[data-modal="daily-mission"] .promo-card__mascot {
    max-width: 180px;
  }

  .promotions__bg-character {
    width: 320px;
    opacity: 1.0;
  }
}

/* Responsive: Desktop */
@media (min-width: 1024px) {
  .promo-carousel {
    min-height: 450px;
  }

  .promo-carousel__track {
    height: 420px;
  }

  .promo-card {
    width: 340px;
    min-height: 280px;
  }

  .promo-card--special {
    min-height: 280px;
  }

  .promo-card[data-position="-1"] {
    transform: translateX(-420px) translateY(-40px) scale(0.82);
  }

  .promo-card[data-position="1"] {
    transform: translateX(420px) translateY(-40px) scale(0.82);
  }

  .promo-card__mascot {
    max-width: 180px;
  }

  .promo-card[data-modal="referral"] .promo-card__mascot,
  .promo-card[data-modal="usdt"] .promo-card__mascot,
  .promo-card[data-modal="weekly-deposit"] .promo-card__mascot,
  .promo-card[data-modal="daily-mission"] .promo-card__mascot {
    max-width: 200px;
  }

  .promotions__bg-character {
    width: 380px;
    opacity: 1.0;
  }

  .carousel-nav {
    width: 56px;
    height: 56px;
  }

  .carousel-nav--prev {
    left: 40px;
  }

  .carousel-nav--next {
    right: 40px;
  }
}

/* Mobile: Hide side cards, show only center */
@media (max-width: 767px) {
  .promo-carousel {
    min-height: 330px;
  }

  .promo-carousel__track {
    height: 300px;
  }

  .promo-card[data-position="-1"],
  .promo-card[data-position="1"] {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
  }

  .carousel-nav {
    display: none;
  }

  .promo-card {
    width: 280px;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .promo-card,
  .promo-card--special,
  .promo-card--special:hover,
  .carousel-nav,
  .indicator {
    transition: opacity 0.3s ease;
  }

  .promo-card[data-position="0"] {
    transform: none !important;
  }

  .promo-card[data-position="-1"],
  .promo-card[data-position="1"],
  .promo-card[data-position="hidden"] {
    transform: none !important;
    opacity: 0;
  }

  .promo-card--special:hover::before {
    opacity: 0;
  }
}






/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal__container {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: var(--color-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.4s ease;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  color: var(--color-dark);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 2;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__banner {
  width: 100%;
  overflow: hidden;
}

.modal__banner img {
  width: 100%;
  height: auto;
  display: block;
}


.modal__content {
  padding: var(--spacing-xl) var(--spacing-lg);
  overflow-y: auto;
  max-height: 90vh;
}

.modal__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
  padding-right: var(--spacing-xl);
}

.modal__time {
  background: linear-gradient(135deg, rgba(61, 190, 196, 0.1) 0%, rgba(61, 190, 196, 0.05) 100%);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.modal__time p {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  margin-bottom: 6px;
}

.modal__time p:last-child {
  margin-bottom: 0;
}

.modal__time strong {
  color: var(--color-primary);
  font-weight: 700;
}

.modal__section {
  margin-bottom: var(--spacing-lg);
}

.modal__section h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

.modal__section p {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.modal__section ul {
  list-style: none;
  padding: 0;
}

.modal__section li {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
  padding-left: 20px;
  position: relative;
}

.modal__section li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.modal__table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
}

.modal__table th,
.modal__table td {
  padding: var(--spacing-sm);
  text-align: left;
  border: 1px solid var(--color-light-gray);
}

.modal__table th {
  background: linear-gradient(135deg, rgba(61, 190, 196, 0.1) 0%, rgba(61, 190, 196, 0.05) 100%);
  color: var(--color-primary);
  font-weight: 700;
}

.modal__table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.modal__actions {
  margin-top: var(--spacing-xl);
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-light-gray);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================================================
   04. GAME CATEGORIES
   ================================================ */
/* ================================================
   04. GAME CATEGORIES - EXPLOSION EFFECT
   ================================================ */
.game-categories {
  padding: var(--spacing-xl) 0;
  background: var(--color-dark);
  position: relative;
}

.game-categories .container {
  position: relative;
}

.game-categories .section__title,
.game-categories .section__subtitle {
  color: var(--color-light);
}

.game-categories .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
}

/* 3D Heptagon Prism Scene */
.prism-scene {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  margin: var(--spacing-sm) 0 var(--spacing-xl) 0; /* 縮小上邊距，靠近標題 */
  user-select: none; /* 禁止選取文字 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 10; /* 確保卡片在前面 */
}

/* Prism Wrapper */
.prism-wrapper {
  position: relative;
  width: 600px;
  height: 500px;
  transform-style: preserve-3d;
}

/* The Heptagon Prism */
.prism {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-5deg) rotateY(0deg); /* 從-15deg改為-5deg，往上調整 */
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: grab;
}

.prism:active {
  cursor: grabbing;
}

/* Prism Face Base */
.prism-face {
  position: absolute;
  width: 350px;
  height: 500px;
  left: 50%;
  top: 50%;
  margin-left: -175px;
  margin-top: -250px;
  border: 3px solid rgba(61, 190, 196, 0.6);
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl) var(--spacing-lg);
  backface-visibility: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
  box-shadow:
    0 0 60px rgba(61, 190, 196, 0.3),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
  user-select: none; /* 禁止選取文字 */
  -webkit-user-drag: none; /* 禁止拖曳圖片 */
}

.prism-face:hover {
  border-color: rgba(61, 190, 196, 1);
  box-shadow:
    0 0 100px rgba(61, 190, 196, 0.6),
    inset 0 0 80px rgba(255, 255, 255, 0.2);
  /* 移除 translateZ 避免抖動 */
}

/* Calculate heptagon positions - 7 sides, 360/7 = 51.43° apart */
/* Radius from center to each face */
.prism-face[data-index="0"] {
  transform: rotateY(0deg) translateZ(400px);
}

.prism-face[data-index="1"] {
  transform: rotateY(51.43deg) translateZ(400px);
}

.prism-face[data-index="2"] {
  transform: rotateY(102.86deg) translateZ(400px);
}

.prism-face[data-index="3"] {
  transform: rotateY(154.29deg) translateZ(400px);
}

.prism-face[data-index="4"] {
  transform: rotateY(205.71deg) translateZ(400px);
}

.prism-face[data-index="5"] {
  transform: rotateY(257.14deg) translateZ(400px);
}

.prism-face[data-index="6"] {
  transform: rotateY(308.57deg) translateZ(400px);
}

/* Face Pattern Background */
.prism-face__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-size: 20px 20px;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.prism-face:hover .prism-face__pattern {
  opacity: 0.25;
}

/* Pattern Textures by Category */
.prism-face[data-category="sports"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.prism-face[data-category="sports"] .prism-face__pattern {
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
}

.prism-face[data-category="live"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.prism-face[data-category="live"] .prism-face__pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 15px 15px;
}

.prism-face[data-category="slots"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.prism-face[data-category="slots"] .prism-face__pattern {
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1)),
    linear-gradient(150deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1));
  background-size: 20px 35px;
}

.prism-face[data-category="lottery"] {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.prism-face[data-category="lottery"] .prism-face__pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.15) 2px, transparent 2px);
  background-size: 25px 25px;
}

.prism-face[data-category="fishing"] {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.prism-face[data-category="fishing"] .prism-face__pattern {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px);
}

.prism-face[data-category="poker"] {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.prism-face[data-category="poker"] .prism-face__pattern {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 10px, transparent 10px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 10px, transparent 10px, transparent 20px);
}

.prism-face[data-category="esports"] {
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
}

.prism-face[data-category="esports"] .prism-face__pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 2px, transparent 2px);
  background-size: 20px 20px;
}

/* Brands Display Area (above prism) */
.prism-brands-display {
  position: absolute;
  top: 50px; /* 從120px改為50px，縮小與提示的間距 */
  left: 0;
  right: 0;
  height: 0;
  overflow: visible; /* 改為visible讓hover效果完整顯示 */
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.prism-brands-display.active {
  height: 160px; /* 增加高度容納更大的Logo和名稱 */
  opacity: 1;
}

.prism-brands-container {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-xl);
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--spacing-md);
  flex-wrap: nowrap; /* 強制單行不換行 */
  overflow-x: auto; /* 如果太多則可以橫向滾動 */
  max-width: 100%;
}

.brand-logo-item {
  flex-shrink: 0; /* 不要壓縮 */
  background: transparent; /* 透明背景 */
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-20px);
  animation: brandSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  text-decoration: none;
}

.brand-logo-item:hover {
  transform: translateY(-8px) scale(1.08);
}

.brand-logo-item__image {
  width: 130px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  transition: filter 0.3s ease;
}

.brand-logo-item:hover .brand-logo-item__image {
  filter: drop-shadow(0 10px 24px rgba(61, 190, 196, 0.7));
}

.brand-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo-item__name {
  font-size: var(--font-size-sm);
  color: var(--color-light);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  margin-top: 4px;
}

@keyframes brandSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prism Wrapper - moves down when brands are shown */
.prism-wrapper {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.prism-wrapper.shifted {
  transform: translateY(130px); /* 縮小下移距離，因為整體空間減少 */
}

/* Face Header */
.prism-face__header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.prism-face__title {
  font-size: 42px;
  font-weight: 900;
  color: var(--color-light);
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  margin-bottom: var(--spacing-sm);
  transition: text-shadow 0.3s ease;
  user-select: none; /* 禁止選取文字 */
  pointer-events: none; /* 禁止互動 */
}

.prism-face:hover .prism-face__title {
  text-shadow: 0 6px 30px rgba(0,0,0,0.8);
  /* 移除 scale 避免抖動 */
}

.prism-face__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: var(--color-light);
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  user-select: none; /* 禁止選取文字 */
  pointer-events: none; /* 禁止互動 */
}

/* Face Minion */
.prism-face__minion {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: bottom;
  margin-top: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  position: relative;
  pointer-events: none; /* 禁止圖片互動 */
  user-select: none; /* 禁止選取 */
  -webkit-user-drag: none; /* 禁止拖曳 */
}

.prism-face:hover .prism-face__minion {
  transform: translateY(-20px) scale(1.1); /* 減少hover效果避免抖動 */
}

/* Prism Controls - Left and Right Buttons */
.prism-control--left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(61, 190, 196, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 10;
}

.prism-control--right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(61, 190, 196, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 10;
}

.prism-control--left.lifted,
.prism-control--right.lifted {
  transform: translateY(-50%) translateY(-15px);
}

.prism-control--left:hover,
.prism-control--right:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 10px 30px rgba(61, 190, 196, 0.6);
}

.prism-control--left.lifted:hover,
.prism-control--right.lifted:hover {
  transform: translateY(-50%) translateY(-15px) scale(1.15);
}

.prism-control--left:active,
.prism-control--right:active {
  transform: translateY(-50%) scale(0.95);
}

.prism-control--left svg,
.prism-control--right svg {
  width: 28px;
  height: 28px;
}

.prism-control-hint {
  position: absolute;
  left: 50%;
  top: 5px; /* 從20px改為5px，往上移動 */
  transform: translateX(-50%);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding: var(--spacing-xs);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 1px;
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.prism-control-hint.lifted {
  transform: translateX(-50%) translateY(-15px);
}

/* Minion Crowd Decoration - positioned within game-categories section */
.game-categories .minion-crowd-decoration {
  position: absolute;
  left: 0;      /* 貼齊左邊 */
  right: 0;     /* 貼齊右邊 */
  bottom: -50px; /* 往下移動50px，部分埋入區塊下方 */
  width: 100% !important; /* 全寬 */
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 0; /* 在卡片後面 */
  opacity: 0.3; /* 30% 透明度（更透明） */
  object-fit: cover; /* 覆蓋整個寬度 */
  object-position: center bottom; /* 從底部中心對齊 */
}

/* Brand Explosion Area (keep same) */
.brand-explosion {
  position: relative;
  min-height: 400px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.brand-explosion.active {
  opacity: 1;
  pointer-events: auto;
}

.brand-explosion__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.brand-explosion__back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 190, 196, 0.2);
  border: 2px solid var(--color-primary);
  color: var(--color-light);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-explosion__back:hover {
  background: var(--color-primary);
  transform: translateX(-5px);
}

.brand-explosion__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-light);
}

/* Brand Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  perspective: 1000px;
}

.brand-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 2px solid rgba(61, 190, 196, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  opacity: 0;
  transform: scale(0.5) rotate(45deg);
  text-decoration: none;
}

.brand-card.exploded {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.brand-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(61, 190, 196, 0.2) 0%, rgba(61, 190, 196, 0.1) 100%);
  box-shadow: 0 15px 40px rgba(61, 190, 196, 0.4);
}

.brand-card__logo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.brand-card:hover .brand-card__logo {
  transform: scale(1.1);
}

.brand-card__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-light);
  text-align: center;
  margin-bottom: var(--spacing-xs);
}

.brand-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: var(--color-light);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(61, 190, 196, 0.4);
}

.brand-card__btn:hover {
  background: var(--color-primary-dark);
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(61, 190, 196, 0.6);
}

.brand-card__btn svg {
  width: 16px;
  height: 16px;
}

/* Particle Canvas */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
  .prism-scene {
    min-height: 600px;
  }

  .prism-wrapper {
    width: 500px;
    height: 400px;
  }

  .prism-face {
    width: 280px;
    height: 400px;
    margin-left: -140px;
    margin-top: -200px;
    padding: var(--spacing-lg);
  }

  .prism-face[data-index="0"] { transform: rotateY(0deg) translateZ(320px); }
  .prism-face[data-index="1"] { transform: rotateY(51.43deg) translateZ(320px); }
  .prism-face[data-index="2"] { transform: rotateY(102.86deg) translateZ(320px); }
  .prism-face[data-index="3"] { transform: rotateY(154.29deg) translateZ(320px); }
  .prism-face[data-index="4"] { transform: rotateY(205.71deg) translateZ(320px); }
  .prism-face[data-index="5"] { transform: rotateY(257.14deg) translateZ(320px); }
  .prism-face[data-index="6"] { transform: rotateY(308.57deg) translateZ(320px); }

  .prism-face__title {
    font-size: 32px;
  }

  .prism-face__minion {
    max-height: 220px;
  }

  .prism-brands-display {
    top: 40px;
  }

  .prism-brands-display.active {
    height: 140px;
  }

  .prism-brands-container {
    gap: var(--spacing-lg);
  }

  .brand-logo-item__image {
    width: 110px;
    height: 85px;
  }

  .brand-logo-item__name {
    font-size: 12px;
  }

  .prism-wrapper.shifted {
    transform: translateY(120px);
  }

  .prism-control--left,
  .prism-control--right {
    width: 55px;
    height: 55px;
  }

  .prism-control--left svg,
  .prism-control--right svg {
    width: 24px;
    height: 24px;
  }

  .prism-control-hint {
    font-size: 13px;
    top: 5px;
  }

  .game-categories .minion-crowd-decoration {
    width: 100% !important; /* 全寬 */
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .prism-scene {
    min-height: 500px;
    perspective: 1200px;
  }

  .prism-wrapper {
    width: 350px;
    height: 350px;
  }

  .prism-face {
    width: 220px;
    height: 350px;
    margin-left: -110px;
    margin-top: -175px;
    padding: var(--spacing-md);
  }

  .prism-face[data-index="0"] { transform: rotateY(0deg) translateZ(250px); }
  .prism-face[data-index="1"] { transform: rotateY(51.43deg) translateZ(250px); }
  .prism-face[data-index="2"] { transform: rotateY(102.86deg) translateZ(250px); }
  .prism-face[data-index="3"] { transform: rotateY(154.29deg) translateZ(250px); }
  .prism-face[data-index="4"] { transform: rotateY(205.71deg) translateZ(250px); }
  .prism-face[data-index="5"] { transform: rotateY(257.14deg) translateZ(250px); }
  .prism-face[data-index="6"] { transform: rotateY(308.57deg) translateZ(250px); }

  .prism-face__title {
    font-size: 26px;
  }

  .prism-face__badge {
    font-size: var(--font-size-xs);
    padding: 6px 14px;
  }

  .prism-face__minion {
    max-height: 160px;
  }

  .prism-brands-display {
    top: 35px;
  }

  .prism-brands-display.active {
    height: 120px;
  }

  .prism-brands-container {
    gap: var(--spacing-md);
  }

  .brand-logo-item__image {
    width: 90px;
    height: 70px;
  }

  .brand-logo-item__name {
    font-size: 11px;
  }

  .prism-wrapper.shifted {
    transform: translateY(110px);
  }

  .prism-control--left,
  .prism-control--right {
    width: 50px;
    height: 50px;
  }

  .prism-control--left {
    left: 10px;
  }

  .prism-control--right {
    right: 10px;
  }

  .prism-control--left svg,
  .prism-control--right svg {
    width: 22px;
    height: 22px;
  }

  .prism-control-hint {
    font-size: 11px;
    padding: 4px 8px;
    top: 5px;
  }

  .game-categories .minion-crowd-decoration {
    width: 100% !important; /* 全寬 */
  }

  /* W-Timeline Mobile */
  .steps-w-timeline {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) 0;
  }

  .step-w-item {
    grid-row: auto !important;
    grid-column: 1 !important;
  }

  .step-w-arrow {
    display: none;
  }

  .step-w-image {
    width: 800px;
  }

  .step-w-number {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }

  .step-card__title {
    font-size: var(--font-size-lg);
  }

  .step-card__subtitle {
    font-size: var(--font-size-xs);
  }

  .step-card__details li {
    font-size: var(--font-size-xs);
  }

  /* Minion Phone - Mobile */
  .steps .minion-phone-decoration {
    width: 900px !important; /* 300px * 3 = 900px (大200%, 即300%) */
    right: 0 !important;
    bottom: 0 !important;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .brand-card {
    padding: var(--spacing-md);
  }

  .brand-card__logo {
    height: 80px;
  }
}

/* ================================================
   05. STEPS
   ================================================ */
.steps {
  padding: var(--spacing-md) 0;   /* Mobile: 24px */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  overflow: hidden;                /* Mobile: Prevent overflow */
  position: relative;
  z-index: 1;
}

.steps .section__title,
.steps .section__subtitle {
  color: var(--color-light);
}

.steps .section__subtitle {
  opacity: 0.9;
  margin-bottom: var(--spacing-lg);
}

/* Minion with Phone Background Decoration - Mobile-First */
.steps .minion-phone-decoration {
  position: absolute !important;
  right: 0 !important;            /* Mobile: No overflow */
  bottom: 0 !important;
  left: auto !important;
  top: auto !important;
  width: 400px !important;        /* Mobile: Drastically reduced from 1500px */
  height: auto;
  opacity: 0.2;                   /* Mobile: More transparent */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 0;
  transform: none !important;
}

/* ========== Zigzag Timeline Layout (Mobile-First) ========== */

/* Timeline Container */
.steps-zigzag-timeline {
  position: relative;
  padding: var(--spacing-lg) 0;   /* Mobile: 48px vertical */
  max-width: 100%;
  margin: 0 auto;
  z-index: 2;
}

/* Vertical Connector Line (Mobile & Tablet Only) */
.timeline-connector {
  display: block;                 /* Visible on mobile */
  position: absolute;
  left: 28px;                     /* Align with step numbers */
  top: 80px;
  bottom: 80px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(255, 215, 0, 0.3) 0%,
    rgba(255, 215, 0, 0.6) 50%,
    rgba(255, 215, 0, 0.3) 100%
  );
  z-index: 0;
}

/* Zigzag Item Container */
.step-zigzag-item {
  position: relative;
  display: flex;
  flex-direction: column;         /* Mobile: Vertical stack */
  align-items: flex-start;
  margin-bottom: var(--spacing-xl); /* 80px gap between steps */
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  z-index: 1;
}

/* Stagger animation for each step */
.step-zigzag-item[data-step="1"] { animation-delay: 0.1s; }
.step-zigzag-item[data-step="2"] { animation-delay: 0.2s; }
.step-zigzag-item[data-step="3"] { animation-delay: 0.3s; }
.step-zigzag-item[data-step="4"] { animation-delay: 0.4s; }
.step-zigzag-item[data-step="5"] { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Number Badge */
.step-zigzag-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #FFC700 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);  /* 20px */
  font-weight: 700;
  color: var(--color-dark);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.5);
  position: relative;
  z-index: 2;
  margin-bottom: var(--spacing-sm); /* 12px */
  flex-shrink: 0;
}

/* Content Wrapper */
.step-zigzag-content {
  display: flex;
  flex-direction: column;          /* Mobile: Stack image and text vertically */
  gap: var(--spacing-md);          /* 24px */
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);      /* 24px */
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.step-zigzag-item:hover .step-zigzag-content {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
  transform: translateY(-4px);
}

/* Image Wrapper */
.step-zigzag-image-wrapper {
  width: 100%;
  max-width: 280px;                /* Mobile: Constrain image size */
  margin: 0 auto;                  /* Center on mobile */
  flex-shrink: 0;
}

.step-zigzag-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.step-zigzag-item:hover .step-zigzag-image {
  transform: scale(1.05);
}

/* Text Content */
.step-zigzag-text {
  flex: 1;
  color: var(--color-light);
}

.step-zigzag-header {
  display: flex;
  flex-direction: column;          /* Mobile: Stack title and time */
  gap: 4px;
  margin-bottom: var(--spacing-sm);
}

.step-zigzag-title {
  font-size: var(--font-size-xl);  /* Mobile: 20px */
  font-weight: 700;
  color: var(--color-light);
}

.step-zigzag-time {
  font-size: var(--font-size-sm);  /* 14px */
  color: var(--color-secondary);
  font-weight: 600;
}

.step-zigzag-desc {
  font-size: var(--font-size-base); /* 16px */
  color: var(--color-light);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.step-zigzag-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-zigzag-details li {
  font-size: var(--font-size-sm);  /* 14px */
  color: var(--color-light);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
  opacity: 0.85;
}

.step-zigzag-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: var(--font-size-base);
}

/* CTA Button Section */
.steps-cta {
  text-align: center;
  margin-top: var(--spacing-xl);   /* 80px */
  position: relative;
  z-index: 2;
}

.steps-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   LEGACY STYLES REMOVED (2025-02-17)
   Old flip-card, W-shape, and zigzag timeline styles removed
   Now using compact carousel layout (see lines 3901+)
   ======================================== */

/* ================================================
   06. HOT EVENTS
   ================================================ */
.events {
  padding: var(--spacing-xl) 0;
  background: var(--color-light);
  position: relative;
  z-index: 2; /* 確保在小小兵背景圖之上 */
}

.events__wrapper {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--spacing-sm);
}

.event-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-card__img {
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.event-card:hover .event-card__img img {
  transform: scale(1.05);
}

.event-card__content {
  padding: var(--spacing-md);
}

.event-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary);
  color: var(--color-light);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xs);
}

.event-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-dark);
}

.event-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

/* ================================================
   07. APP DOWNLOAD
   ================================================ */
.app-download {
  padding: var(--spacing-xl) 0;
  background: var(--color-dark);
}

.app-download__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
}

.app-download__content {
  text-align: center;
}

.app-download .section__title {
  color: var(--color-light);
}

.app-download__desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.app-download__features {
  text-align: left;
  margin-bottom: var(--spacing-md);
  color: var(--color-light);
}

.app-download__features li {
  padding: 8px 0;
  font-size: var(--font-size-base);
}

.app-download__buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--color-dark-light);
  border-radius: var(--radius-md);
  color: var(--color-light);
  transition: all var(--transition-base);
  border: 1px solid var(--color-dark-lighter);
}

.download-btn:hover {
  background: var(--color-dark-lighter);
  border-color: var(--color-primary);
}

.download-btn svg {
  width: 28px;
  height: 28px;
}

.download-btn span {
  text-align: left;
}

.download-btn small {
  display: block;
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.download-btn strong {
  display: block;
  font-size: var(--font-size-base);
}

.app-download__mockup {
  max-width: 280px;
}

.app-download__mockup img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ================================================
   08. TRUST
   ================================================ */
.trust {
  padding: var(--spacing-xl) 0;
  background: var(--color-light-gray);
  position: relative;
  z-index: 2; /* 確保在小小兵背景圖之上 */
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.trust-card {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(61, 190, 196, 0.1) 0%, rgba(61, 190, 196, 0.2) 100%);
  border-radius: var(--radius-full);
  color: var(--color-primary);
}

.trust-card__icon svg {
  width: 32px;
  height: 32px;
}

/* Custom style for image icon (no background) */
.trust-card__icon--image {
  background: none;
  border-radius: 0;
  width: 150px;
  height: 150px;
}

/* Wider container for horizontal images */
.trust-card__icon--wide {
  width: 200px;
  height: 150px;
}

.trust-card__minion {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-dark);
}

.trust-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  line-height: 1.7;
}

/* ================================================
   09. STATS
   ================================================ */
.stats {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
}

.stats__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.stats__content {
  text-align: center;
}

.stats .section__title {
  color: var(--color-light);
}

.stats__desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.stats__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars span {
  color: var(--color-secondary);
  font-size: var(--font-size-xl);
}

.stats__rating-text {
  color: var(--color-light);
  font-weight: 600;
}

.stats__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: var(--spacing-lg);
  text-align: center;
  border: 3px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(61, 190, 196, 0.3),
              0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(61, 190, 196, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px rgba(61, 190, 196, 0.4),
              0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(61, 190, 196, 0.2);
  position: relative;
  z-index: 1;
}

.stat-card__label {
  font-size: var(--font-size-base);
  color: var(--color-dark);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ================================================
   10. FAQ
   ================================================ */
.faq {
  padding: var(--spacing-xl) 0;
  background: var(--color-light);
}

/* FAQ Search */
.faq__search {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

.faq__search input {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 30px;
  outline: none;
  transition: all 0.3s ease;
  background: #FFFFFF;
}

.faq__search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(61, 190, 196, 0.1);
}

.faq__search input::placeholder {
  color: #999;
}

/* FAQ Tabs */
.faq__tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.faq__tab {
  padding: 12px 20px;
  background: #F5F5F5;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.faq__tab:hover {
  background: rgba(61, 190, 196, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.faq__tab--active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.faq__tab--active:hover {
  background: var(--color-primary-dark);
}

.faq__count {
  font-size: 13px;
  opacity: 0.8;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-light-gray);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  background: rgba(61, 190, 196, 0.08);
  color: var(--color-primary);
  padding-left: 12px;
  transition: all 0.2s ease;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.faq-item.open {
  background: rgba(61, 190, 196, 0.03);
  border-left: 3px solid var(--color-primary);
}

.faq-item.open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item.open .faq-item__question {
  color: var(--color-primary);
  font-weight: 700;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.open .faq-item__answer {
  max-height: 800px;
  padding-bottom: var(--spacing-md);
}

.faq-item__answer p {
  color: var(--color-gray);
  line-height: 1.8;
  font-size: var(--font-size-sm);
}

/* FAQ - Responsive Design */
@media (max-width: 768px) {
  .faq__list {
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }

  .faq-item__question {
    font-size: 15px;
    padding: 16px 0;
    gap: 12px;
  }

  .faq-item__answer {
    font-size: 14px;
    line-height: 1.7;
  }

  .faq-item__answer p {
    font-size: 14px;
  }

  .faq-item__icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .faq-item__question {
    font-size: 14px;
    padding: 14px 0;
  }

  .faq-item__answer {
    font-size: 13px;
  }

  .faq-item__answer p {
    font-size: 13px;
  }
}

/* ================================================
   15. ABOUT
   ================================================ */
.about {
  padding: var(--spacing-xl) 0;
  background: var(--color-light-gray);
}

.about__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.about__content {
  text-align: center;
}

.about__desc {
  color: var(--color-gray);
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-sm);
  background: var(--color-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.value-item strong {
  font-size: var(--font-size-base);
  color: var(--color-dark);
}

.value-item span {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
}

.about__image {
  margin: 0 auto;
  max-width: 400px;
}

.about__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ================================================
   16. FOOTER
   ================================================ */
.footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer__brand {
  text-align: center;
}

.footer__logo {
  height: 48px;
  margin: 0 auto var(--spacing-sm);
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-dark-lighter);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--color-primary);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.footer__heading {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-light);
}

.footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__column a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer__column a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-dark-lighter);
  text-align: center;
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xs);
}

.footer__disclaimer {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================
   RESPONSIVE - TABLET (768px+)
   ================================================ */
@media (min-width: 768px) {
  :root {
    --spacing-xl: 100px;
  }

  /* Typography */
  .section__title {
    font-size: var(--font-size-4xl);
  }

  .hero__title-main {
    font-size: var(--font-size-5xl);
  }

  /* Header */
  .header__nav {
    display: block;
  }

  .header__actions {
    display: flex;
  }

  .header__hamburger {
    display: none;
  }

  /* Promotions */
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .promotions__bg-character {
    width: 320px;
    opacity: 1.0;
  }

  .promo-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .promo-card__icon {
    width: 80px;
    height: 80px;
  }

  .promo-card__icon svg {
    width: 36px;
    height: 36px;
  }

  /* Categories */
  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }

  .category-card:first-child,
  .category-card:last-child {
    grid-column: span 1;
  }

  /* W-Timeline Tablet/Desktop */
  .steps-w-timeline {
    gap: 12px var(--spacing-lg);
    max-width: 1100px;
  }

  .step-w-image {
    width: 1000px;
  }

  .step-w-number {
    width: 45px;
    height: 45px;
    font-size: var(--font-size-xl);
  }

  /* Minion Phone - Tablet/Desktop */
  .steps .minion-phone-decoration {
    width: 1500px !important; /* 500px * 3 = 1500px (大200%, 即300%) */
    right: 0 !important;
    bottom: 0 !important;
  }

  /* Events */
  .events__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .event-card {
    flex: none;
  }

  /* App Download */
  .app-download__wrapper {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .app-download__content {
    flex: 1;
    text-align: left;
  }

  .app-download .section__title--left {
    text-align: left;
  }

  .app-download__buttons {
    justify-content: flex-start;
  }

  .app-download__mockup {
    flex-shrink: 0;
  }

  /* Trust */
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats */
  .stats__wrapper {
    flex-direction: row;
    align-items: center;
  }

  .stats__content {
    flex: 1;
    text-align: left;
  }

  .stats__rating {
    justify-content: flex-start;
  }

  .stats__cards {
    flex: 1;
    grid-template-columns: repeat(2, 1fr);
  }

  /* News */
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Extra Service */
  .extra-service__wrapper {
    flex-direction: row;
    justify-content: space-between;
  }

  .extra-service__content {
    flex: 1;
    text-align: left;
  }

  /* About */
  .about__wrapper {
    flex-direction: row;
    align-items: center;
  }

  .about__content {
    flex: 1;
    text-align: left;
  }

  .about__values {
    flex-direction: row;
  }

  .about__image {
    flex: 1;
    margin: 0;
  }

  /* Footer */
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__brand {
    text-align: left;
    max-width: 280px;
  }

  .footer__logo {
    margin: 0 0 var(--spacing-sm);
  }

  .footer__social {
    justify-content: flex-start;
  }

  .footer__links {
    grid-template-columns: repeat(4, 1fr);
    flex: 1;
    max-width: 600px;
  }
}

/* ================================================
   RESPONSIVE - DESKTOP (1024px+)
   ================================================ */
@media (min-width: 1024px) {
  :root {
    --spacing-xl: 120px;
  }

  /* Promotions */
  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  .promotions__bg-character {
    width: 380px;
    opacity: 1.0;
  }

  /* Categories */
  .categories__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .category-card {
    aspect-ratio: 3 / 4;
  }

  /* Trust */
  .trust__grid {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  /* Stats */
  .stat-card__number {
    font-size: var(--font-size-3xl);
  }
}

/* ========================================
   COMPACT STEPS CAROUSEL LAYOUT
   Height Reduction: 85-90% vs Previous
   ======================================== */

/* ===== Base Mobile Styles (320px+) ===== */

/* Carousel Wrapper */
.steps-carousel-wrapper {
  position: relative;
  padding: var(--spacing-sm) 0;      /* 16px top/bottom - compact! */
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
}

/* Horizontal Scroll Container */
.steps-carousel {
  display: flex;
  gap: 12px;                         /* Small gap between cards */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth iOS scroll */
  padding: 8px 0 12px;               /* Padding for shadow visibility */
  justify-content: flex-start;       /* Align cards to start for mobile scroll */

  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;             /* Firefox */
  -ms-overflow-style: none;          /* IE/Edge */
}

.steps-carousel::-webkit-scrollbar {
  display: none;                     /* Chrome/Safari/Opera */
}

/* Compact Step Card */
.step-card {
  flex: 0 0 calc(100vw - 48px);      /* Mobile: Full width with container padding */
  max-width: 320px;
  min-height: 360px;                 /* Compact height! */
  scroll-snap-align: center;         /* Center align cards */
  
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 16px;                     /* Compact padding */
  
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  
  opacity: 0;
  animation: fadeInCard 0.5s ease forwards;
}

/* Stagger card animation */
.step-card[data-step="1"] { animation-delay: 0.1s; }
.step-card[data-step="2"] { animation-delay: 0.15s; }
.step-card[data-step="3"] { animation-delay: 0.2s; }
.step-card[data-step="4"] { animation-delay: 0.25s; }
.step-card[data-step="5"] { animation-delay: 0.3s; }

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
  transform: translateY(-4px);
}

/* Compact Number Badge */
.step-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #FFC700 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);    /* 14px - compact */
  font-weight: 700;
  color: var(--color-dark);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  z-index: 3;
}

/* Compact Image Container */
.step-card__image-container {
  width: 100%;
  height: 120px;                     /* Reduced from 280px! */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.step-card__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.step-card:hover .step-card__image {
  transform: scale(1.08);
}

/* Card Content */
.step-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--color-light);
}

/* Header with Title and Time */
.step-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.step-card__title {
  font-size: var(--font-size-lg);    /* 18px */
  font-weight: 700;
  color: var(--color-light);
  flex: 1;
}

.step-card__time {
  font-size: var(--font-size-xs);    /* 12px */
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(255, 215, 0, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Description */
.step-card__desc {
  font-size: var(--font-size-sm);    /* 14px */
  color: var(--color-light);
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 10px;
  
  /* Line clamp for compact display */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compact Details List */
.step-card__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-card__details li {
  font-size: var(--font-size-xs);    /* 12px - compact */
  color: var(--color-light);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
  opacity: 0.75;
  
  /* Line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.step-card__details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: var(--font-size-sm);
}

/* Scroll Indicators (Dots) */
.steps-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  width: 24px;
  background: var(--color-secondary);
}

/* CTA Button */
.steps-cta {
  text-align: center;
  margin-top: var(--spacing-md);     /* 24px - reduced from 80px */
  position: relative;
  z-index: 2;
}

.steps-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Responsive Breakpoints ===== */

/* 375px+ (Small Phones) */
@media (min-width: 375px) {
  .step-card {
    flex: 0 0 calc(100vw - 48px);
    max-width: 340px;
    min-height: 370px;
  }
  
  .step-card__image-container {
    height: 130px;
  }
  
  .step-card__title {
    font-size: var(--font-size-xl);  /* 20px */
  }
}

/* 480px+ (Large Phones) */
@media (min-width: 480px) {
  .step-card {
    flex: 0 0 320px;
    max-width: 360px;
    min-height: 380px;
  }
  
  .step-card__badge {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-base); /* 16px */
  }
  
  .step-card__image-container {
    height: 140px;
  }
  
  .step-card__desc {
    -webkit-line-clamp: 3;           /* Show more lines */
  }
}

/* 768px+ (Tablets) - Show 2.5 cards */
@media (min-width: 768px) {
  .steps-carousel {
    padding: 12px 0 16px;
    gap: 16px;
    justify-content: flex-start;
  }
  
  .step-card {
    flex: 0 0 calc((100% - 48px) / 2.5); /* Show 2.5 cards */
    max-width: 380px;
    min-height: 400px;
  }
  
  .step-card__badge {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);  /* 18px */
  }
  
  .step-card__image-container {
    height: 160px;
  }
  
  .step-card__title {
    font-size: var(--font-size-xl);  /* 20px */
  }
  
  .step-card__desc {
    font-size: var(--font-size-base); /* 16px */
  }
  
  .step-card__details li {
    font-size: var(--font-size-sm);   /* 14px */
  }
  
  /* Hide indicators on tablet+ */
  .steps-indicators {
    display: none;
  }
}

/* 1024px+ (Desktop) - Grid Layout, All Visible */
@media (min-width: 1024px) {
  .steps-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    overflow: visible;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
    justify-content: center;
  }
  
  .step-card {
    flex: unset;
    max-width: none;
    min-height: 420px;
  }
  
  .step-card__badge {
    width: 44px;
    height: 44px;
    font-size: var(--font-size-xl);  /* 20px */
    top: 16px;
    left: 16px;
  }
  
  .step-card__image-container {
    height: 180px;
  }
  
  .step-card__title {
    font-size: var(--font-size-2xl); /* 24px */
  }
  
  .step-card__desc {
    -webkit-line-clamp: 2;
  }
  
  .steps-cta {
    margin-top: var(--spacing-lg);   /* 48px */
  }
}

/* 1200px+ (Large Desktop) - More space */
@media (min-width: 1200px) {
  .steps-carousel {
    gap: 24px;
  }
  
  .step-card {
    min-height: 440px;
    padding: 20px;
  }
  
  .step-card__image-container {
    height: 200px;
  }
  
  .step-card__desc {
    -webkit-line-clamp: 3;
  }
  
  .step-card__details li {
    -webkit-line-clamp: 2;
  }
}
