.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Image map hot zones — 對應 pc_home_bg.jpg 上的 3 顆按鈕，座標以 viewport 百分比估算 */
.landing__hotzones {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hotzone {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  display: block;
}

/* DEBUG: 加 .show-hotzones 到 body 看 hot zone 範圍 */
body.show-hotzones .hotzone {
  background: rgba(255, 100, 100, 0.3);
  border: 2px dashed rgba(255, 100, 100, 0.8);
}

.hotzone--rules {
  left: 22.2%;
  top: 81.4%;
  width: 10.1%;
  height: 6.9%;
}

.hotzone--start {
  left: 40.3%;
  top: 78.1%;
  width: 17.3%;
  height: 12.1%;
}

.hotzone--pilgrim {
  left: 69.3%;
  top: 81.6%;
  width: 10.6%;
  height: 6.7%;
}

.landing__bg {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 768 / 1343;
  background:
    url('/assets/images/bg/sp/sp_kv_bg.png') top center / 100% auto no-repeat,
    radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.18) 0%, transparent 55%),
    linear-gradient(180deg,
      rgba(244, 162, 97, 0.22) 0%,
      rgba(116, 156, 195, 0.42) 30%,
      rgba(31, 78, 121, 0.6) 60%,
      rgba(10, 25, 41, 0.92) 100%
    );
  background-color: rgba(10, 25, 41, 1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .landing__bg {
    aspect-ratio: 1920 / 920;
    background:
      url('/assets/images/bg/pc/pc_home_bg.jpg') center / 100% 100% no-repeat,
      linear-gradient(180deg, rgba(10, 25, 41, 0.92) 0%, rgba(10, 25, 41, 0.92) 100%);
    background-color: rgba(10, 25, 41, 1);
  }
}

.landing__bg video,
.landing__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing__bg-scene {
  position: absolute;
  inset: 0;
}

.landing__bg-island {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  opacity: 0.85;
}

.landing__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  top: 100%;
  left: var(--x);
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(255, 235, 175, 1) 0%, rgba(212, 175, 55, 0.4) 60%, transparent 100%);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: sparkleFloat var(--dur, 5s) linear var(--d, 0s) infinite;
  opacity: 0;
}

@keyframes sparkleFloat {
  0%   { transform: translateY(0) scale(0.5); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-120vh) scale(1); opacity: 0; }
}

.landing__main {
  position: relative;
  z-index: var(--z-base);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
}

.landing__content {
  width: 100%;
  max-width: var(--container-main);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.landing__title {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 900;
  color: var(--color-paper);
  letter-spacing: 0.12em;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.landing__title-row {
  display: block;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.75),
    0 0 32px rgba(212, 175, 55, 0.3);
}

.landing__title-row--accent {
  color: var(--color-temple-gold);
  font-size: 1.15em;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.8),
    0 0 36px rgba(212, 175, 55, 0.55);
}

.landing__subtitle {
  font-size: var(--fs-h3);
  color: var(--color-mist);
  max-width: 720px;
  line-height: 1.85;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.landing__subtitle .highlight {
  color: var(--color-sunset-light);
  font-weight: 700;
}

.landing__activity-banner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-lg);
  padding: 0.7rem 2.5rem;
  background: rgba(10, 25, 41, 0.5);
  border-top: 1px solid rgba(212, 175, 55, 0.55);
  border-bottom: 1px solid rgba(212, 175, 55, 0.55);
  font-family: var(--font-serif);
  color: var(--color-paper);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.landing__activity-banner::before,
.landing__activity-banner::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-temple-gold);
  font-size: 0.55rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
}

.landing__activity-banner::before { left: 0.85rem; }
.landing__activity-banner::after { right: 0.85rem; }

.landing__activity-label {
  color: var(--color-temple-gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  margin-right: -0.35rem;
}

.landing__activity-range {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-paper);
}

.landing__activity-sep {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  color: transparent;
}

.landing__activity-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

#landing-countdown-label {
  color: var(--color-temple-gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
}

.landing__countdown-time {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-sunset-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(249, 199, 79, 0.45);
}

.landing__countdown-time--ended {
  color: var(--color-text-soft);
  text-shadow: none;
}

@media (max-width: 767px) {
  .landing__activity-banner {
    padding: 0.6rem 1.8rem;
    gap: 0.5rem;
    flex-direction: column;
  }
  .landing__activity-banner::before,
  .landing__activity-banner::after {
    font-size: 0.5rem;
  }
  .landing__activity-banner::before { left: 0.55rem; }
  .landing__activity-banner::after { right: 0.55rem; }
  .landing__activity-sep {
    display: none;
  }
  .landing__activity-label,
  #landing-countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }
  .landing__activity-range {
    font-size: 0.88rem;
  }
  .landing__countdown-time {
    font-size: 0.98rem;
  }
  .landing__activity-countdown {
    gap: 0.45rem;
  }
}

.landing__actions {
  position: relative;
  z-index: var(--z-overlay);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  min-width: 180px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--color-paper);
  background:
    linear-gradient(180deg, rgba(40, 70, 110, 0.95) 0%, rgba(15, 30, 50, 0.95) 100%);
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 150, 0.25),
    inset 0 0 0 1px rgba(212, 175, 55, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.45);
  background-clip: padding-box;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, filter var(--t-fast) ease;
}

.action-btn::before,
.action-btn::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--color-temple-gold);
  pointer-events: none;
}

.action-btn::before {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}

.action-btn::after {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 160, 0.4),
    inset 0 0 0 1px var(--color-temple-gold),
    0 8px 22px rgba(212, 175, 55, 0.35);
  filter: brightness(1.15);
}

.action-btn svg {
  width: 18px;
  height: 18px;
  color: var(--color-temple-gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.action-btn > span {
  white-space: nowrap;
}

.action-btn--cta {
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 160, 0.35),
    inset 0 0 0 1px rgba(212, 175, 55, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(212, 175, 55, 0.18);
}

@media (max-width: 1023px) {
  .landing__top {
    padding: var(--space-sm) calc(var(--space-md) + 56px) var(--space-sm) var(--space-md);
  }
}

@media (max-width: 767px) {
  .landing__top {
    padding: var(--space-sm) calc(var(--space-sm) + 48px) var(--space-sm) var(--space-sm);
    justify-content: center;
    gap: var(--space-xs);
  }

  .co-brand,
  .activity-banner {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }

  .activity-banner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .activity-banner__label,
  .activity-banner__range,
  .countdown-label,
  .countdown-time {
    font-size: 0.8rem;
  }

  .activity-banner__separator {
    display: none;
  }

  .landing__main {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: var(--space-lg) var(--space-sm) var(--space-sm);
  }

  .landing__content {
    gap: var(--space-md);
  }

  .landing__subtitle {
    font-size: var(--fs-body);
  }

  .landing__actions {
    padding: var(--space-md) var(--space-sm) var(--space-lg);
    gap: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
  }

  .action-btn {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .action-btn svg {
    width: 16px;
    height: 16px;
  }
}
