/* ============ base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  color: #f5f0ff;
  background: linear-gradient(180deg, #0b1026 0%, #1b2347 45%, #2d2a5e 75%, #4a3b78 100%);
  overflow-x: hidden;
}

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

::selection { background: #ffd66b; color: #1b2347; }

/* ============ starry sky ============ */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#stars { position: absolute; inset: 0; }

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  will-change: opacity, transform;
}

.moon {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e0, #ffe9a8 60%, #f5cf7a);
  box-shadow: 0 0 60px 18px rgba(255, 230, 160, 0.35);
}

.cloud {
  position: absolute;
  width: 220px;
  height: 60px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
  will-change: transform;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 90px; height: 90px; top: -45px; left: 35px; }
.cloud::after { width: 60px; height: 60px; top: -28px; left: 120px; }
.cloud-a { top: 18%; left: -240px; }
.cloud-b { top: 42%; left: -280px; transform: scale(0.7); }
.cloud-c { top: 70%; left: -200px; transform: scale(1.2); }

.shooting-star {
  position: absolute;
  top: 12%;
  left: 80%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8);
  opacity: 0;
}
.shooting-star::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), transparent);
  transform: translateX(-120px) rotate(0deg);
  transform-origin: right center;
}

/* ============ hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 20px 10vh;
  position: relative;
}

.hero-kicker {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.4em;
  color: #ffd66b;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(160, 140, 255, 0.6), 0 6px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 0.05em;
}
.hero-title .char { display: inline-block; will-change: transform; }

.hero-sub {
  margin-top: 14px;
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #cfc4ff;
}

.hero-photo {
  margin-top: 40px;
  will-change: transform;
}
.hero-photo img {
  width: clamp(180px, 30vw, 280px);
  height: auto;
  border-radius: 24px;
  border: 5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 214, 107, 0.25);
}
.hero-photo figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #ffd66b;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(245, 240, 255, 0.7);
}
.scroll-star { color: #ffd66b; font-size: 1.2rem; will-change: transform; }

/* ============ marquee ============ */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px dashed rgba(255, 214, 107, 0.35);
  border-bottom: 1px dashed rgba(255, 214, 107, 0.35);
  background: rgba(255, 214, 107, 0.05);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: #ffd66b;
  padding-right: 12px;
}

/* ============ sections ============ */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #fff;
  text-shadow: 0 0 24px rgba(160, 140, 255, 0.55);
  margin-bottom: 36px;
}

.intro { padding: 12vh 20px; text-align: center; }
.intro-text {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 2.2;
  color: #e8e2ff;
}

/* ============ featured deck (stack of polaroids) ============ */
.deck-section { padding: 8vh 20px 10vh; max-width: 1100px; margin: 0 auto; text-align: center; }

.deck-hint {
  color: rgba(232, 226, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 30px;
}

.deck {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: var(--deck-h, 340px);
  --card-w: 210px;
}

.polaroid {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-w, 210px);
  background: #fdfbf7;
  padding: 10px 10px 12px;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  will-change: transform;
}
.polaroid img {
  width: 100%;
  height: calc(var(--card-w, 210px) * 1.15);
  object-fit: cover;
  border-radius: 3px;
  pointer-events: none;
}
.polaroid figcaption {
  font-family: "Ma Shan Zheng", cursive;
  color: #4a4038;
  font-size: 1.05rem;
  padding-top: 8px;
  pointer-events: none;
}

.deck-close {
  margin-top: 26px;
  font-family: inherit;
  font-size: 1rem;
  color: #ffd66b;
  background: rgba(255, 214, 107, 0.1);
  border: 1px dashed rgba(255, 214, 107, 0.5);
  border-radius: 999px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.3s;
}
.deck-close:hover { background: rgba(255, 214, 107, 0.22); }

/* ============ gallery ============ */
.gallery { padding: 8vh 20px 12vh; max-width: 1200px; margin: 0 auto; }

.masonry {
  columns: 3 300px;
  column-gap: 20px;
}

.card {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  will-change: transform;
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(255, 214, 107, 0.7); }
.card img { width: 100%; height: auto; }
.card figcaption {
  padding: 12px 16px;
  font-size: 1rem;
  color: #ffd66b;
}

/* ============ footer ============ */
.footer {
  text-align: center;
  padding: 8vh 20px 10vh;
}
.footer-stars { color: #ffd66b; font-size: 1.4rem; margin-bottom: 14px; letter-spacing: 0.6em; }
.footer p { font-size: 1.2rem; color: #e8e2ff; }
.footer-small { margin-top: 10px; font-size: 0.9rem !important; color: rgba(232, 226, 255, 0.55) !important; }

/* ============ lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(8, 10, 26, 0.92);
  backdrop-filter: blur(6px);
  visibility: hidden;
  opacity: 0;
  cursor: zoom-out;
  padding: 4vh 4vw;
}
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox p { color: #ffd66b; font-size: 1.1rem; }

@media (max-width: 600px) {
  .moon { width: 60px; height: 60px; }
  .deck { --card-w: 150px; height: var(--deck-h, 250px); }
}
