/* ═══════════════════════════════════════════════════════
   99 天纪念页 · Captain Crystal
   夜幕星空 × 玫瑰花瓣 × 玻璃质感
   ═══════════════════════════════════════════════════════ */

/* ---------- reset & base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  /* palette */
  --sky-deep  : #0b0e1a;
  --sky-mid   : #151b33;
  --sky-glow  : #1f2849;
  --rose-soft : #f5a0b8;
  --rose-warm : #e8738e;
  --rose-deep : #c94e6e;
  --gold-warm : #f0c878;
  --gold-mist : #ffe8b8;
  --lilac     : #c5a0e8;
  --glass-bg  : rgba(255,255,255,0.06);
  --glass-bdr : rgba(255,255,255,0.12);
  --glass-hi  : rgba(255,255,255,0.18);
  --text      : #f0e8f0;
  --text-muted: rgba(240,232,240,0.55);
  /* font */
  --f-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --f-sans   : "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --f-mono   : "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* dimen */
  --radius   : 22px;
  --radius-sm: 14px;
}

html{
  scroll-behavior:smooth;
  font-size:16px;
}

body.day99{
  font-family:var(--f-sans);
  color:var(--text);
  line-height:1.7;
  overflow-x:hidden;
  min-height:100vh;
  /* deep night sky */
  background:
    radial-gradient(ellipse 120% 90% at 20% 10%, rgba(60,40,100,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 85% 15%, rgba(40,30,80,0.35) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(80,30,50,0.25) 0%, transparent 55%),
    linear-gradient(175deg, var(--sky-deep) 0%, var(--sky-mid) 45%, var(--sky-glow) 100%);
  background-color:var(--sky-deep);
  background-attachment:scroll;
}

/* --------- scroll-bar --------- */
body.day99::-webkit-scrollbar{width:6px}
body.day99::-webkit-scrollbar-track{background:var(--sky-deep)}
body.day99::-webkit-scrollbar-thumb{background:rgba(245,160,184,0.35);border-radius:3px}

/* ---------- canvas for stars & particles ---------- */
#stars-canvas{
  position:fixed;inset:0;z-index:0;
  pointer-events:none;
}

/* ---------- wrapper ---------- */
.day99-wrap{
  position:relative;z-index:1;
  display:flex;flex-direction:column;align-items:center;
  width:100%;max-width:100vw;
}

/* ════════ HERO section ════════ */
.hero99{
  position:relative;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:100vh;min-height:100dvh;
  padding:3rem 1.5rem;
  text-align:center;
  overflow:hidden;
}

/* giant 99 background watermark */
.hero99__watermark{
  position:absolute;
  font-family:var(--f-display);
  font-size:clamp(18rem,40vw,32rem);
  font-weight:700;
  line-height:1;
  color:transparent;
  background:linear-gradient(170deg,rgba(245,160,184,0.08),rgba(200,160,240,0.06));
  -webkit-background-clip:text;
  background-clip:text;
  user-select:none;pointer-events:none;
  z-index:0;
  animation:watermark-breathe 8s ease-in-out infinite;
}

@keyframes watermark-breathe{
  0%,100%{opacity:.7;transform:scale(1)}
  50%{opacity:1;transform:scale(1.03)}
}

/* date ribbon */
.hero99__date{
  position:relative;z-index:1;
  font-family:var(--f-mono);
  font-size:clamp(.85rem,2vw,1rem);
  letter-spacing:.22em;
  color:var(--gold-warm);
  margin-bottom:1rem;
  opacity:1;
  animation:fadeUp .8s ease .3s both;
}

.hero99__title{
  position:relative;z-index:1;
  font-family:var(--f-display);
  font-size:clamp(2.8rem,8vw,5.5rem);
  font-weight:400;
  line-height:1.15;
  letter-spacing:.06em;
  color:#fff;
  text-shadow:0 0 60px rgba(245,160,184,.35), 0 4px 0 rgba(0,0,0,.15);
  margin-bottom:.5rem;
  opacity:1;
  animation:fadeUp .9s ease .5s both;
}

.hero99__title em{
  font-style:normal;
  background:linear-gradient(135deg,var(--rose-soft),var(--gold-warm));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero99__subtitle{
  position:relative;z-index:1;
  font-family:var(--f-display);
  font-size:clamp(1.1rem,3vw,1.6rem);
  color:var(--rose-soft);
  opacity:.85;
  margin-bottom:2rem;
  opacity:1;
  animation:fadeUp .9s ease .7s both;
}

/* avatars */
.hero99__avatars{
  position:relative;z-index:1;
  display:flex;align-items:center;gap:1.2rem;
  margin-bottom:2.5rem;
  opacity:1;
  animation:fadeUp .8s ease .9s both;
}

.hero99__avatar{
  width:72px;height:72px;
  border-radius:50%;
  border:3px solid rgba(245,160,184,.55);
  box-shadow:0 0 28px rgba(245,160,184,.3),0 8px 24px rgba(0,0,0,.3);
  object-fit:cover;
  transition:transform .3s ease, box-shadow .3s ease;
}

.hero99__avatar:hover{
  transform:scale(1.12);
  box-shadow:0 0 40px rgba(245,160,184,.5),0 12px 32px rgba(0,0,0,.3);
}

.hero99__heart{
  font-size:2rem;
  color:var(--rose-warm);
  filter:drop-shadow(0 0 12px rgba(232,115,142,.6));
  animation:heart-pulse 1.6s ease-in-out infinite;
}

@keyframes heart-pulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.2)}
}

/* countdown */
.hero99__countdown{
  position:relative;z-index:1;
  display:flex;gap:clamp(.5rem,2vw,1rem);
  margin-bottom:1.5rem;
  opacity:1;
  animation:fadeUp .8s ease 1.1s both;
}

.countdown-unit{
  display:flex;flex-direction:column;align-items:center;
  background:var(--glass-bg);
  border:1px solid var(--glass-bdr);
  border-radius:var(--radius-sm);
  padding:.8rem 1rem;
  min-width:clamp(60px,12vw,82px);
  backdrop-filter:blur(16px);
  box-shadow:0 8px 32px rgba(0,0,0,.25);
}

.countdown-unit__num{
  font-family:var(--f-mono);
  font-size:clamp(1.6rem,4vw,2.4rem);
  font-weight:700;
  color:#fff;
  line-height:1.1;
  text-shadow:0 0 18px rgba(245,160,184,.4);
}

.countdown-unit__label{
  font-size:.72rem;
  color:var(--text-muted);
  letter-spacing:.12em;
  margin-top:.25rem;
}

.hero99__countdown-note{
  position:relative;z-index:1;
  font-size:.88rem;
  color:var(--text-muted);
  margin-bottom:1rem;
  opacity:1;
  animation:fadeUp .7s ease 1.3s both;
}

/* scroll hint */
.hero99__scroll{
  position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);
  z-index:1;
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  color:var(--text-muted);font-size:.78rem;
  animation:scroll-bob 2.5s ease-in-out infinite;
}

.hero99__scroll svg{
  width:20px;height:20px;
  stroke:var(--rose-soft);
  stroke-width:2;
  fill:none;
}

@keyframes scroll-bob{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(8px)}
}

/* ════════ glass section card ════════ */
.section99{
  width:100%;
  max-width:820px;
  margin:0 auto;
  padding:0 1.25rem;
}

.glass-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-bdr);
  border-radius:var(--radius);
  padding:clamp(1.5rem,4vw,2.5rem);
  backdrop-filter:blur(20px);
  box-shadow:0 16px 60px rgba(0,0,0,.3);
  margin-bottom:3rem;
  position:relative;
  overflow:hidden;
  /* scroll reveal */
  opacity:1;
  transform:none;
  transition:opacity .8s ease, transform .8s ease;
}

.glass-card.is-visible{
  opacity:1;
  transform:translateY(0);
}

.glass-card::before{
  content:"";
  position:absolute;
  top:-1px;left:-1px;right:-1px;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--rose-soft),var(--gold-warm),transparent);
  opacity:.6;
}

.section99__eyebrow{
  font-family:var(--f-mono);
  font-size:.78rem;
  letter-spacing:.18em;
  color:var(--gold-warm);
  margin-bottom:.5rem;
}

.section99__title{
  font-family:var(--f-display);
  font-size:clamp(1.5rem,4vw,2rem);
  color:#fff;
  margin-bottom:1rem;
  letter-spacing:.04em;
}

.section99__text{
  color:rgba(240,232,240,.78);
  font-size:.98rem;
  line-height:1.85;
  margin-bottom:.75rem;
}

.section99__text:last-child{
  margin-bottom:0;
}

/* ════════ TIMELINE ════════ */
.timeline99{
  list-style:none;
  padding:0;
  position:relative;
  margin:1.5rem 0 0;
}

.timeline99::before{
  content:"";
  position:absolute;
  left:18px;top:0;bottom:0;
  width:2px;
  background:linear-gradient(180deg,var(--rose-soft),var(--lilac),var(--gold-warm));
  opacity:.45;
  border-radius:1px;
}

.timeline99 li{
  position:relative;
  padding-left:52px;
  margin-bottom:1.75rem;
}

.timeline99 li::before{
  content:"";
  position:absolute;
  left:12px;top:6px;
  width:14px;height:14px;
  border-radius:50%;
  background:var(--rose-warm);
  box-shadow:0 0 16px rgba(232,115,142,.5);
  border:2px solid var(--sky-deep);
}

.timeline99__date{
  font-family:var(--f-mono);
  font-size:.78rem;
  color:var(--gold-warm);
  letter-spacing:.06em;
}

.timeline99__event{
  font-family:var(--f-display);
  font-size:1.08rem;
  color:#fff;
  margin:.15rem 0;
}

.timeline99__note{
  font-size:.85rem;
  color:var(--text-muted);
  line-height:1.6;
}

/* ════════ NUMBER 99 showcase ════════ */
.num99-showcase{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(1rem,3vw,2rem);
  margin:1.5rem 0;
}

.num99-big{
  font-family:var(--f-display);
  font-size:clamp(5rem,15vw,9rem);
  font-weight:400;
  line-height:1;
  background:linear-gradient(135deg,var(--rose-soft),var(--gold-warm),var(--lilac));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 30px rgba(245,160,184,.35));
  animation:num99-glow 4s ease-in-out infinite alternate;
}

@keyframes num99-glow{
  0%{filter:drop-shadow(0 0 30px rgba(245,160,184,.25))}
  100%{filter:drop-shadow(0 0 50px rgba(245,160,184,.5))}
}

.num99-unit{
  font-family:var(--f-display);
  font-size:clamp(1.5rem,4vw,2.2rem);
  color:var(--rose-soft);
  opacity:.85;
}

/* ════════ LETTER / message ════════ */
.letter99{
  position:relative;
  background:linear-gradient(145deg,rgba(30,20,45,.6),rgba(20,15,35,.8));
  border:1px solid rgba(200,160,240,.18);
  border-radius:var(--radius);
  padding:clamp(1.8rem,5vw,3rem);
  margin:1rem 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 20px 60px rgba(0,0,0,.35);
}

.letter99::before{
  content:"「";
  position:absolute;top:.8rem;left:1rem;
  font-family:var(--f-display);
  font-size:3rem;
  color:rgba(245,160,184,.2);
  line-height:1;
}

.letter99::after{
  content:"」";
  position:absolute;bottom:.8rem;right:1rem;
  font-family:var(--f-display);
  font-size:3rem;
  color:rgba(245,160,184,.2);
  line-height:1;
}

.letter99 p{
  position:relative;
  font-size:1.02rem;
  line-height:2;
  color:rgba(240,232,240,.88);
  margin-bottom:.75rem;
  text-indent:2em;
}

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

.letter99__sign{
  text-align:right;
  font-family:var(--f-display);
  font-size:1.1rem;
  color:var(--rose-soft);
  margin-top:1.5rem;
  text-indent:0 !important;
}

/* ════════ STATS grid ════════ */
.stats99{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:1rem;
  margin:1.5rem 0;
}

.stat99{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-sm);
  padding:1.2rem 1rem;
  text-align:center;
  transition:transform .3s ease, box-shadow .3s ease;
}

.stat99:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(0,0,0,.3);
}

.stat99__num{
  display:block;
  font-family:var(--f-mono);
  font-size:clamp(1.8rem,5vw,2.4rem);
  font-weight:700;
  color:#fff;
  text-shadow:0 0 20px rgba(245,160,184,.3);
  line-height:1.2;
}

.stat99__label{
  display:block;
  font-size:.78rem;
  color:var(--text-muted);
  margin-top:.3rem;
  letter-spacing:.06em;
}

/* ════════ quote strip ════════ */
.quote99{
  text-align:center;
  padding:2rem 1rem;
  margin:1rem 0 2rem;
}

.quote99__text{
  font-family:var(--f-display);
  font-size:clamp(1.15rem,3vw,1.5rem);
  color:var(--rose-soft);
  line-height:1.7;
  opacity:.9;
}

.quote99__text::before{content:"「"}
.quote99__text::after{content:"」"}

/* ════════ heart click zone ════════ */
.click-heart-zone{
  text-align:center;
  padding:2rem 0;
  cursor:pointer;
  user-select:none;
}

.click-heart-zone__btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:80px;height:80px;
  border-radius:50%;
  background:linear-gradient(145deg,rgba(245,160,184,.2),rgba(200,160,240,.15));
  border:1px solid rgba(245,160,184,.3);
  font-size:2.4rem;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:0 0 30px rgba(245,160,184,.2);
  animation:heart-glow 3s ease-in-out infinite;
}

@keyframes heart-glow{
  0%,100%{box-shadow:0 0 30px rgba(245,160,184,.2)}
  50%{box-shadow:0 0 50px rgba(245,160,184,.4)}
}

.click-heart-zone__btn:hover{
  transform:scale(1.1);
}

.click-heart-zone__btn:active{
  transform:scale(.95);
}

.click-heart-zone__hint{
  display:block;
  font-size:.82rem;
  color:var(--text-muted);
  margin-top:.75rem;
}

/* floating burst hearts */
.burst-heart{
  position:fixed;
  pointer-events:none;
  z-index:999;
  font-size:1.6rem;
  animation:burst-fly 1.2s ease-out forwards;
}

@keyframes burst-fly{
  0%{opacity:1;transform:translate(0,0) scale(1) rotate(0deg)}
  100%{opacity:0;transform:translate(var(--bx),var(--by)) scale(.4) rotate(var(--br))}
}

/* ════════ FOOTER ════════ */
.footer99{
  text-align:center;
  padding:3rem 1rem 4rem;
  color:var(--text-muted);
  font-size:.82rem;
  line-height:1.8;
}

.footer99__logo{
  font-family:var(--f-mono);
  font-size:.78rem;
  color:var(--rose-soft);
  letter-spacing:.12em;
  margin-bottom:.5rem;
  opacity:.7;
}

.footer99__back{
  display:inline-block;
  margin-top:1rem;
  padding:.45rem 1.2rem;
  border:1px solid rgba(245,160,184,.3);
  border-radius:999px;
  color:var(--rose-soft);
  text-decoration:none;
  font-size:.85rem;
  transition:background .25s ease,color .25s ease;
}

.footer99__back:hover{
  background:rgba(245,160,184,.15);
  color:#fff;
}

/* ════════ animations ════════ */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(24px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

/* ════════ responsive ════════ */
@media(max-width:600px){
  .hero99{padding:2rem 1rem}
  .hero99__countdown{gap:.4rem;flex-wrap:wrap;justify-content:center}
  .countdown-unit{padding:.6rem .7rem;min-width:55px}
  .num99-showcase{flex-direction:column;gap:.5rem}
  .stats99{grid-template-columns:repeat(2,1fr)}
  .letter99{padding:1.5rem 1.2rem}
  .timeline99 li{padding-left:42px}
}

/* ════════ reduced motion ════════ */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  html{scroll-behavior:auto}
  #stars-canvas{display:none}
}
