/* w11.cool —— 柔和 3D 太空玩具：天空渐变 × 软胶卡片 × 圆滚滚的字 */
:root {
  --sky-1: #cfdcff;
  --sky-2: #e7ebff;
  --sky-3: #fdeef3;

  --ink: #27304f;
  --ink-2: #56608a;
  --ink-3: #868db0;
  --ink-4: #a9afcb;

  --card: #ffffff;
  --card-soft: #f6f7ff;
  --edge: #e3e7f8;            /* 软胶卡片底部的那一圈厚度 */
  --line: #dfe3f6;

  --blue: #4f62f5;
  --blue-hi: #7385ff;
  --blue-edge: #3443c9;
  --mint: #4fc7ad;
  --sun: #ffc24a;
  --coral: #ff8e7e;
  --lilac: #a597ff;
  --pink: #ff8fb4;
  --navy: #1c2459;

  --peach: #fff3ea;
  --peach-edge: #f6dcc6;
  --peach-ink: #7a5640;

  --round: "Nunito", "Noto Sans SC", sans-serif;
  --lift: 0 -4px 0 var(--edge) inset, 0 20px 40px -18px #3a4a9a59;
  --lift-sm: 0 -3px 0 var(--edge) inset, 0 12px 26px -14px #3a4a9a55;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--round);
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
  background: var(--sky-2);
  background-image:
    radial-gradient(60vmax 40vmax at 12% -6%, #c2d3ff 0%, transparent 70%),
    radial-gradient(50vmax 36vmax at 96% 8%, #e3d9ff 0%, transparent 70%),
    radial-gradient(70vmax 50vmax at 50% 108%, #ffe3ec 0%, transparent 70%),
    linear-gradient(180deg, var(--sky-1), var(--sky-2) 45%, var(--sky-3));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* 远处的小星点 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 78% 14%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 88% 46%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 6% 64%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 34% 86%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 64% 72%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 46% 8%, #fff 50%, transparent 52%);
  opacity: .9;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-edge); }
.mono { font-variant-numeric: tabular-nums; }

/* ---- 软胶小球（图标、序号、logo 都用它） ---- */
.orb {
  display: inline-block; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff9 0 12%, transparent 13%),
              radial-gradient(circle at 40% 35%, var(--c1, #8fa0ff), var(--c2, #4f62f5) 70%, var(--c3, #3443c9));
  box-shadow: inset 0 -5px 8px #0002, 0 6px 12px -6px var(--c2, #4f62f5);
}
.orb-sun   { --c1: #ffe39a; --c2: #ffbd3d; --c3: #e6941c; }
.orb-moon  { --c1: #f3f1ff; --c2: #c9c2f4; --c3: #9f95da; }
.orb-dawn  { --c1: #ffd0c4; --c2: #ff8e7e; --c3: #e8675a; }
.orb-heart { --c1: #ffd0e0; --c2: #ff8fb4; --c3: #e5658f; }
.orb-air   { --c1: #c4f3e8; --c2: #4fc7ad; --c3: #2c9e86; }
.orb-blue  { --c1: #b8c2ff; --c2: #4f62f5; --c3: #3443c9; }

/* ---- 顶栏 ---- */
.top {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 960px; width: 100%; margin: 0 auto; padding: 26px 24px 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 19px; letter-spacing: .01em; color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff9 0 14%, transparent 15%),
              radial-gradient(circle at 40% 35%, #9fe6d0, #6aa8ff 62%, #4f62f5);
  box-shadow: inset 0 -3px 5px #0002;
}
.nav-btn {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  background: var(--card); border-radius: 999px; padding: 9px 18px 11px;
  box-shadow: var(--lift-sm);
  transition: transform .2s, box-shadow .2s;
}
.nav-btn:hover { color: var(--ink); transform: translateY(-2px); }
.nav-btn:active { transform: translateY(1px); box-shadow: 0 -1px 0 var(--edge) inset, 0 6px 14px -10px #3a4a9a55; }

/* ---- 版心 ---- */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px 90px; }
.wrap-md { max-width: 700px; }
.wrap-sm { max-width: 640px; }

/* ---- 玩具按钮：底下有一圈“厚度”，按下去会陷进去 ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer; font-family: inherit;
  border-radius: 999px; padding: 14px 28px 16px;
  font-size: 15px; font-weight: 800; letter-spacing: .02em;
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.btn-primary {
  color: #fff; background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  box-shadow: 0 -5px 0 var(--blue-edge) inset, 0 16px 30px -12px #4f62f5aa;
  text-shadow: 0 1px 0 #0002;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 -2px 0 var(--blue-edge) inset, 0 8px 16px -10px #4f62f5aa; }
.btn-ghost { color: var(--ink-2); background: var(--card); box-shadow: var(--lift-sm); }
.btn-ghost:hover { color: var(--ink); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(2px); }
.btn-row { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn small { font-size: 12.5px; font-weight: 700; opacity: .8; }

/* ---- 小标签 ---- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 6px; border-radius: 999px;
  background: #ffffffb3; color: var(--ink-2);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 0 0 1px #fff inset, 0 6px 16px -10px #3a4a9a66;
  backdrop-filter: blur(6px);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px #4fc7ad33; }

/* ---- 首页 · 星球 ---- */
.hero { text-align: center; padding-top: 28px; }
.planet { position: relative; width: 340px; height: 340px; margin: 0 auto 10px; cursor: default; }
.planet-body { position: absolute; inset: 0; animation: breathe 6s ease-in-out infinite; }
.planet-cv { display: block; width: 100%; height: 100%; }
/* 没有 WebGL 时的软胶球 */
.planet.no-gl .planet-body::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff8 0 10%, transparent 11%),
              radial-gradient(circle at 40% 35%, #b9f0dc, #74b4ff 60%, #4f62f5);
  box-shadow: inset 0 -18px 30px #2a3a9a33, 0 30px 60px -20px #4f62f566;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

.big-line { margin: 18px 0 8px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.big-line .num {
  font-size: clamp(84px, 17vw, 156px); font-weight: 900; letter-spacing: -.02em; line-height: .9;
  font-variant-numeric: tabular-nums; color: var(--ink);
  text-shadow: 0 2px 0 #fff, 0 18px 40px #4f62f533;
}
.big-line .unit {
  margin-bottom: .55em; padding: 4px 14px 6px; border-radius: 14px;
  font-size: clamp(17px, 2.6vw, 22px); font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  box-shadow: 0 -3px 0 var(--blue-edge) inset; transform: rotate(-4deg);
}
.sub { color: var(--ink-2); font-size: 16px; font-weight: 600; }
.sub-dim { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }

/* ---- 首页 · 成长数据 ---- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin-top: 72px;
}
.stat {
  position: relative; background: var(--card); border-radius: 26px;
  padding: 20px 22px 24px; box-shadow: var(--lift);
  transition: transform .25s;
}
.stat:hover { transform: translateY(-3px) rotate(-.4deg); }
.stat-head { display: flex; align-items: center; gap: 10px; }
.stat-label { font-size: 13px; color: var(--ink-3); font-weight: 800; letter-spacing: .08em; }
.stat-num {
  font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; margin-top: 14px; line-height: 1.1;
}
.stat-num .unit { font-size: 14px; color: var(--ink-3); font-weight: 800; }
.stat-note { font-size: 13px; color: var(--ink-3); margin-top: 6px; font-weight: 600; }

/* ---- 首页 · 入口 ---- */
.capsule { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.capsule-card { padding: 18px 30px 21px; font-size: 16px; flex-wrap: wrap; justify-content: center; }
.capsule-card .orb { width: 26px; height: 26px; --c1: #fff; --c2: #ffd36b; --c3: #f0a32a; }
.sky-entry { font-size: 14px; padding: 11px 22px 13px; }

.site-foot { margin-top: 90px; text-align: center; color: var(--ink-4); font-size: 12.5px; font-weight: 600; }
.site-foot .love { margin-top: 8px; color: var(--ink-3); }

/* ---- 页头（信箱 / 星空 / 合影） ---- */
.page-head { text-align: center; padding-top: 52px; }
.page-head h1 { margin-top: 14px; font-weight: 900; font-size: clamp(32px, 6vw, 44px); letter-spacing: .01em; line-height: 1.2; }
.page-head .intro { margin: 14px auto 0; color: var(--ink-2); max-width: 31em; font-size: 15.5px; font-weight: 600; }
.countdown {
  margin: 26px auto 0; width: fit-content; display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 999px; padding: 9px 22px 11px;
  color: var(--ink-2); font-size: 14px; font-weight: 700; box-shadow: var(--lift-sm);
}
.countdown .num { font-variant-numeric: tabular-nums; font-weight: 900; color: var(--blue); font-size: 17px; }

/* ---- 信箱 ---- */
.letter-list { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
.envelope {
  display: flex; align-items: center; gap: 16px; position: relative;
  background: var(--peach); border-radius: 26px; padding: 20px 22px 22px;
  color: inherit; box-shadow: 0 -4px 0 var(--peach-edge) inset, 0 20px 40px -20px #b0704a55;
  transition: transform .25s;
}
.envelope::before {
  content: ""; position: absolute; inset: 8px 8px 11px; pointer-events: none;
  border: 2px dashed #f0c9a8; border-radius: 19px;
}
.envelope .no {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff;
  background: radial-gradient(circle at 34% 28%, #fff7 0 12%, transparent 13%),
              radial-gradient(circle at 40% 35%, #8fa0ff, var(--blue) 70%, var(--blue-edge));
  box-shadow: inset 0 -5px 8px #0002, 0 8px 14px -6px #4f62f5;
  text-shadow: 0 1px 0 #0003;
}
.envelope .meta { position: relative; display: flex; flex-direction: column; gap: 1px; }
.envelope .meta strong { font-size: 16px; font-weight: 800; color: #4b3426; }
.envelope .meta span { font-size: 13px; color: var(--peach-ink); font-weight: 600; }
.envelope .lock {
  position: relative; margin-left: auto; flex: none;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; background: #fff; box-shadow: 0 -3px 0 #f1dccb inset, 0 6px 12px -8px #b0704a;
}
a.envelope:hover { transform: translateY(-3px); color: inherit; }
div.envelope { cursor: default; -webkit-tap-highlight-color: transparent; }

.list-hint { text-align: center; color: var(--ink-3); font-size: 13.5px; margin-top: 40px; font-weight: 600; }
.back-line { text-align: center; margin-top: 30px; }
.back { font-size: 14px; font-weight: 800; }

/* ---- 单封信 ---- */
.letter-paper {
  position: relative; background: var(--card); border-radius: 30px;
  padding: clamp(30px, 6vw, 54px); margin-top: 48px;
  box-shadow: var(--lift); line-height: 1.95;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, #eef1fb 33px 34px);
  background-position: 0 clamp(96px, 14vw, 128px);
}
.letter-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--blue); letter-spacing: .06em;
  background: #eef0ff; border-radius: 999px; padding: 3px 12px 4px;
}
.letter-paper h1 { margin: 14px 0 22px; font-size: 26px; font-weight: 900; }
.letter-paper h2 { margin: 1.4em 0 .5em; font-size: 19px; font-weight: 800; }
.letter-paper h3, .letter-paper h4 { margin: 1.4em 0 .5em; font-size: 16px; font-weight: 800; }
.letter-paper p, .letter-paper li { font-size: 16px; font-weight: 500; }
.letter-paper p { margin: 0 0 1em; }
.letter-paper p:last-child { margin-bottom: 0; }
.letter-paper blockquote { border-left: 4px solid #c9d1ff; padding-left: 1em; color: var(--ink-2); margin: 0 0 1em; }
.letter-paper ul { padding-left: 1.4em; margin: 0 0 1em; }

/* ---- 404 ---- */
.page-center { display: flex; flex-direction: column; min-height: 100vh; }
.main-center { flex: 1; display: grid; place-items: center; padding: 40px 24px 80px; }
.lost { text-align: center; }
.lost-visual { position: relative; width: 170px; height: 170px; margin: 0 auto 34px; }
.lost-visual .track {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed #a8b2e8; animation: ringFade 6s ease-in-out infinite;
}
.lost-visual .stray {
  position: absolute; top: -10px; right: -16px; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff9 0 12%, transparent 13%),
              radial-gradient(circle at 40% 35%, #b9f0dc, #4fc7ad 65%, #2c9e86);
  box-shadow: inset 0 -4px 7px #0002, 0 12px 20px -8px #2c9e86aa;
  animation: drift 5s ease-in-out infinite;
}
.lost-visual .core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff9 0 12%, transparent 13%),
              radial-gradient(circle at 40% 35%, #ffe39a, #ffbd3d 65%, #e6941c);
  box-shadow: inset 0 -5px 8px #0002, 0 0 0 10px #ffc24a1f, 0 0 40px #ffc24a66;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -14px) rotate(8deg); }
}
@keyframes ringFade { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.lost h1 {
  font-weight: 900; font-size: clamp(80px, 16vw, 130px);
  letter-spacing: -.02em; line-height: 1; color: var(--ink);
  text-shadow: 0 2px 0 #fff, 0 18px 40px #4f62f533;
}
.lost .lost-text { margin-top: 18px; color: var(--ink-2); font-size: 16px; font-weight: 700; }
.lost .lost-text-dim { margin-top: 4px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }

/* ---- 生日彩蛋（4-8 由 main.js 给 body 加 .birthday） ---- */
.birthday-view { display: none; }
body.birthday .birthday-view { display: block; }
body.birthday .hero,
body.birthday .stats,
body.birthday .capsule,
body.birthday .footnote { display: none; }
body.birthday .site-foot { margin-top: 100px; }

.cheer { text-align: center; padding-top: 28px; }
.planet-gold .cake {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px;
  filter: drop-shadow(0 8px 10px #b0702a55); pointer-events: none;
  animation: breathe 5s ease-in-out infinite;
}
.age-line .num { font-size: clamp(72px, 13vw, 128px); }
.age-line .unit { background: linear-gradient(180deg, #ffd36b, #f0a32a); box-shadow: 0 -3px 0 #c7801a inset; }
.wish { margin-top: 22px; color: var(--ink-3); font-size: 14.5px; font-weight: 700; }

.confetti-layer { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.confetti-layer span {
  position: absolute; top: 0; width: 10px; height: 14px; border-radius: 3px;
  animation: confetti 7s linear infinite;
}
@keyframes confetti {
  0% { transform: translateY(-8vh) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(108vh) rotate(340deg); opacity: .9; }
}
.confetti-layer span:nth-child(1) { left: 8%;  background: var(--blue);  animation-duration: 7s;   animation-delay: .2s; }
.confetti-layer span:nth-child(2) { left: 18%; background: var(--sun);   animation-duration: 8.5s; animation-delay: 1.4s; width: 9px; height: 9px; border-radius: 50%; }
.confetti-layer span:nth-child(3) { left: 29%; background: var(--coral); animation-duration: 7.8s; animation-delay: 2.6s; }
.confetti-layer span:nth-child(4) { left: 41%; background: var(--mint);  animation-duration: 9s;   animation-delay: .9s; width: 8px; height: 8px; border-radius: 50%; }
.confetti-layer span:nth-child(5) { left: 52%; background: var(--pink);  animation-duration: 7.2s; animation-delay: 3.4s; }
.confetti-layer span:nth-child(6) { left: 63%; background: var(--lilac); animation-duration: 8.2s; animation-delay: 1.8s; width: 9px; height: 9px; border-radius: 50%; }
.confetti-layer span:nth-child(7) { left: 74%; background: var(--sun);   animation-duration: 7.6s; animation-delay: 4.2s; }
.confetti-layer span:nth-child(8) { left: 84%; background: var(--blue);  animation-duration: 8.8s; animation-delay: .5s; width: 8px; height: 8px; border-radius: 50%; }
.confetti-layer span:nth-child(9) { left: 93%; background: var(--coral); animation-duration: 7.4s; animation-delay: 2.1s; }

/* ---- 那一刻的天空（/sky/） ---- */
.sky > * { animation: fadeUp .9s ease both; }
.sky > *:nth-child(2) { animation-delay: .1s; }
.sky > *:nth-child(3) { animation-delay: .18s; }
.sky > *:nth-child(4) { animation-delay: .26s; }
.sky > *:nth-child(5) { animation-delay: .32s; }
.sky > *:nth-child(6) { animation-delay: .38s; }
.sky > *:nth-child(7) { animation-delay: .44s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sky-sec { margin-top: 64px; }
.sec-label {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--ink-3); font-weight: 800; letter-spacing: .14em; margin-bottom: 18px;
}
.sec-label::before, .sec-label::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--line); }

/* 日食：金色太阳 + 一枚深色月亮缓缓横穿，全遮时只剩日冕 */
.eclipse-stage { text-align: center; padding-top: 44px; overflow: hidden; }
.eclipse { position: relative; width: 160px; height: 160px; margin: 0 auto 22px; }
.eclipse .glow {
  position: absolute; inset: -50px; border-radius: 50%;
  background: radial-gradient(circle, #ffd36ba0, #ffd36b33 48%, transparent 72%);
}
.eclipse .sun {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff9 0 10%, transparent 11%),
              radial-gradient(circle at 40% 35%, #ffe8a8, #ffc24a 62%, #f09a26);
  box-shadow: inset 0 -12px 22px #c9701a44;
}
.eclipse .moon {
  position: absolute; inset: -2px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3b4583, var(--navy) 70%);
  box-shadow: inset 0 -8px 14px #0005;
  animation: eclipsePass 32s ease-in-out infinite;
}
@keyframes eclipsePass {
  0% { transform: translateX(-210%); }
  46% { transform: translateX(-5%); }
  54% { transform: translateX(5%); }
  100% { transform: translateX(210%); }
}
.eclipse-cap { font-size: 14px; color: var(--ink-2); font-weight: 700; }

.sky-stats { margin-top: 0; }
.stat-word { font-size: 20px; font-weight: 900; color: var(--ink); margin-top: 14px; line-height: 1.35; }

/* 八字三柱 */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.pillar { background: var(--card); border-radius: 26px; padding: 22px 14px 20px; text-align: center; box-shadow: var(--lift); }
.p-label { display: block; font-size: 13px; color: var(--ink-3); font-weight: 800; letter-spacing: .1em; }
.p-chars {
  display: block; margin: 12px 0 10px;
  font-size: 44px; font-weight: 700; line-height: 1.25; color: var(--ink);
}
.p-chars .branch { color: var(--blue); }
.p-note { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pillar-secret { background: var(--peach); position: relative; box-shadow: 0 -4px 0 var(--peach-edge) inset, 0 20px 40px -20px #b0704a55; }
.pillar-secret::before {
  content: ""; position: absolute; inset: 8px 8px 11px; pointer-events: none;
  border: 2px dashed #f0c9a8; border-radius: 19px;
}
.pillar-secret .p-label, .pillar-secret .p-note { color: var(--peach-ink); }
.p-dots { display: flex; flex-direction: column; gap: 9px; align-items: center; margin: 14px 0 12px; }
.p-dots span { width: 42px; height: 42px; border-radius: 50%; border: 2px dashed #e9b892; }
.pillars-cap { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* 西方占星 */
.zodiac {
  display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap;
  background: var(--card); border-radius: 26px; padding: 32px 28px; box-shadow: var(--lift);
}
.zodiac svg { flex: none; }
.zodiac-text { max-width: 24em; }
.z-main { font-size: 16px; color: var(--ink); font-weight: 700; }
.z-sub { margin-top: 8px; font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* 那一夜：深夜蓝的卡片（Minnie 住在这里） */
.night {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, #2c3680, var(--navy) 60%, #141a45);
  border-radius: 30px; padding: clamp(30px, 6vw, 50px);
  box-shadow: 0 -5px 0 #0f1438 inset, 0 24px 50px -20px #1c2459aa;
  line-height: 1.95;
}
.night p { position: relative; color: #d8dcff; font-size: 15.5px; font-weight: 600; margin-bottom: 1em; }
.night .night-end { color: #fff; margin-bottom: 0; }
.night .star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fffbe6; animation: twinkle 4s ease-in-out infinite alternate;
}
.night .star:nth-child(1) { top: 12%; left: 8%; }
.night .star:nth-child(2) { top: 22%; left: 86%; animation-delay: 1.2s; }
.night .star:nth-child(3) { top: 55%; left: 93%; width: 2px; height: 2px; animation-delay: 2.4s; }
.night .star:nth-child(4) { top: 78%; left: 5%; width: 2px; height: 2px; animation-delay: .6s; }
.night .star:nth-child(5) { top: 8%; left: 55%; width: 2px; height: 2px; animation-delay: 3s; }
.night .star:nth-child(6) { top: 88%; left: 72%; animation-delay: 1.8s; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .95; } }

.sky .site-foot { margin-top: 80px; }
.sky .back-line { margin-top: 14px; }

/* ---- 藏起来的朋友（/friends/，角色与动画在 friends.js） ---- */
.ff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; margin-top: 48px;
}
.ff-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border-radius: 28px; padding: 12px 12px 22px;
  border: 0; font: inherit; color: inherit; cursor: pointer;
  box-shadow: var(--lift); transition: transform .25s;
}
button.ff-card:hover { transform: translateY(-3px); }
button.ff-card:active { transform: translateY(1px); }
.ff-ghost { cursor: default; }
.ff-stage {
  position: relative; overflow: hidden; display: block;
  width: 100%; height: 240px; border-radius: 20px;
}
.ff-stage .ff-actor.ff-in-stage { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ff-card-zerd .ff-stage { background: radial-gradient(110% 90% at 50% 15%, #5aa6ea, #2a62b8); }
.ff-card-minnie .ff-stage { background: radial-gradient(120% 120% at 50% 0%, #2c3680, var(--navy) 70%); }
.ff-card-max .ff-stage { background: linear-gradient(#a6e3f7 0 58%, #f4dca3 58%); }
.ff-card-max .ff-actor.ff-in-stage { top: 54%; }
.ff-card-jessica .ff-stage { background: radial-gradient(100% 90% at 50% 20%, #fff, #ffeede); }
.ff-card-jessica .ff-actor.ff-in-stage { top: 52%; }
.ff-ghost .ff-stage { background: var(--card-soft); }
.ff-ghost .ff-cv { filter: brightness(0) opacity(.09); }
.ff-name { margin-top: 16px; font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: .04em; }
.ff-about { margin-top: 4px; max-width: 19em; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ff-ghost .ff-name { color: var(--ink-4); }
.friends .list-hint { color: var(--blue); font-weight: 800; }

@media (max-width: 520px) {
  .planet { width: 290px; height: 290px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px 16px 20px; border-radius: 22px; }
  .stat-num { font-size: 25px; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .confetti-layer { display: none; }
}
