/* ==========================================================================
   VEGALTAiR · 11.04「二十一岁」生日章 —— 样式
   结构/逻辑见 birthday.js。卡片沿用各主题的玻璃质感；信封和信纸是「实物」，三个主题都一样。
   ========================================================================== */
.bday-stage { display: none; }
body.bday .bday-stage {
  display: flex;
  align-items: center; text-align: center;
  gap: clamp(26px, 4.5vh, 46px);
}
.bday-stage .section-heading { margin-bottom: 0; }
.bday-stage .section-heading h2 { margin-left: auto; margin-right: auto; }
.bday-stage .section-heading p { margin: 0 auto; max-width: 560px; }
.bday-stage > div { width: 100%; display: flex; flex-direction: column; align-items: center; }
.bday-stage.is-swapping > * { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }

/* ---------- 全屏彩纸画布 ---------- */
.bday-fx {
  position: fixed; inset: 0; z-index: 65;
  width: 100%; height: 100%;   /* 不用 100vh：iOS 地址栏在时 100vh 比 innerHeight 高，彩纸会被拉长 */
  pointer-events: none;
}

/* ---------- 通用玻璃卡 ---------- */
.bday-clock,
.bday-cake-card,
.bday-count {
  position: relative;
  width: min(600px, 100%);
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow);
}
body.daylight .bday-clock,
body.daylight .bday-cake-card,
body.daylight .bday-count {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14), 0 18px 46px rgba(0, 0, 0, 0.32);
}
body.night .bday-clock,
body.night .bday-cake-card,
body.night .bday-count {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---------- 两地时钟 ---------- */
.bday-clock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px 14px;
  padding: 20px clamp(18px, 3.4vw, 30px) 18px;
}
.bc-side { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.bc-label { font-size: 11px; letter-spacing: 2.5px; color: var(--ink-faint); }
.bc-time {
  font-family: 'Instrument Serif', var(--font-display);
  font-size: clamp(19px, 3.2vw, 25px);
  font-weight: 400; letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.bc-note { font-style: normal; font-size: 11.5px; letter-spacing: 1px; color: var(--ink-dim); min-height: 1.4em; }
.bc-mid {
  font-size: 18px; color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 227, 176, 0.6);
}
.bc-bar {
  grid-column: 1 / -1;
  height: 3px; margin-top: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.bc-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ffe3b0, #ffc9d8 55%, #ff9ec7);
  box-shadow: 0 0 12px rgba(255, 201, 216, 0.7);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s linear;
}
.bc-cap { grid-column: 1 / -1; font-size: 12.5px; letter-spacing: 1px; color: var(--ink-dim); line-height: 1.8; }
.bc-next {
  grid-column: 1 / -1; justify-self: center;
  margin-top: 4px; padding: 5px 14px; border-radius: 99px;
  font-size: 12px; letter-spacing: 1px; line-height: 1.6;
  color: var(--gold); border: 1px solid rgba(255, 227, 176, 0.32);
  font-variant-numeric: tabular-nums;
}
.bc-next:empty { display: none; }
body:not(.daylight):not(.night) .bc-bar { background: var(--line); }

/* ---------- 零点前：倒计时 + 封着的信 ---------- */
.bday-teaser { gap: clamp(22px, 4vh, 36px); }
.bday-count { padding: 24px 22px 20px; }
.bdc-label { display: block; font-size: 12px; letter-spacing: 5px; color: var(--ink-faint); }
.bdc-digits {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  margin-top: 10px;
  font-family: 'Instrument Serif', var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bdc-digits b { font-weight: 400; font-size: clamp(54px, 11vw, 92px); line-height: 1; min-width: 1.15em; }
.bdc-digits i { font-style: normal; font-size: clamp(36px, 7vw, 60px); opacity: 0.45; transform: translateY(-0.08em); }
.bdc-days { font-family: var(--font-body); font-size: 15px; letter-spacing: 2px; margin-right: 10px; color: var(--ink-dim); }
.bdc-days:empty { display: none; }
.bdc-units {
  display: flex; justify-content: center; gap: clamp(46px, 11vw, 92px);
  margin-top: 6px;
  font-size: 11px; letter-spacing: 3px; color: var(--ink-faint);
}
.bday-stage.is-final .bdc-digits b:last-of-type { animation: bdayBeat 1s ease-in-out infinite; }
@keyframes bdayBeat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); text-shadow: 0 0 26px rgba(255, 227, 176, 0.9); } }

/* ---------- 信封 ---------- */
.bday-env-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bday-env {
  position: relative;
  width: min(380px, 84vw);
  height: calc(min(380px, 84vw) / 1.6);   /* 不只靠 aspect-ratio：iOS 14 不支持，会塌成 0 高 */
  aspect-ratio: 1.6 / 1;
  border-radius: 10px;
  perspective: 900px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.32));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}
.bday-env:hover { transform: translateY(-4px) rotate(-0.6deg); }
.bday-env > span { position: absolute; display: block; }
.env-back {
  inset: 0; border-radius: 10px;
  background: linear-gradient(160deg, #f6ede2, #ecdcc9);
}
.env-paper {
  left: 7%; right: 7%; top: 9%; height: 82%;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffdf8, #fbf3e7);
  box-shadow: 0 2px 10px rgba(80, 50, 30, 0.12);
  display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 13%;
  color: #6b4b45;
  transition: transform 0.9s cubic-bezier(0.3, 0.9, 0.25, 1) 0.35s;
}
.env-paper em { font-style: normal; font-family: var(--font-display); font-size: 17px; letter-spacing: 3px; }
.env-paper small { margin-top: 6px; font-size: 10px; letter-spacing: 3px; color: #b0867d; }
.env-pocket {
  inset: 0; border-radius: 10px;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #f4e9db, #eadbc6);
  box-shadow: inset 0 -1px 0 rgba(120, 80, 50, 0.08);
}
.env-pocket::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom right, transparent 49.5%, rgba(120, 80, 50, 0.07) 50%, transparent 51%),
              linear-gradient(to bottom left, transparent 49.5%, rgba(120, 80, 50, 0.07) 50%, transparent 51%);
}
.env-flap {
  left: 0; right: 0; top: 0; height: 60%;
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #efe2d1, #e3d0b9);
  border-radius: 10px 10px 0 0;
  transition: transform 0.65s cubic-bezier(0.5, 0, 0.3, 1) 0.15s, z-index 0s 0.45s;
  z-index: 3;
}
.env-seal {
  left: 50%; top: 60%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%;
  display: grid !important; place-items: center;
  background: radial-gradient(circle at 35% 30%, #d4677f, #a63c57 60%, #7f2a41);
  box-shadow: 0 4px 10px rgba(80, 20, 35, 0.45), inset 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
  z-index: 4;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.env-seal::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px dashed rgba(255, 220, 228, 0.45);
}
.env-seal b {
  font-family: 'Instrument Serif', var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 21px; letter-spacing: 1px;
  color: #ffe6ec;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.bday-env.is-locked .env-seal { animation: bdaySealBreath 3.2s ease-in-out infinite; }
@keyframes bdaySealBreath { 0%, 100% { box-shadow: 0 4px 10px rgba(80, 20, 35, 0.45), 0 0 0 0 rgba(255, 210, 225, 0); } 50% { box-shadow: 0 4px 10px rgba(80, 20, 35, 0.45), 0 0 0 9px rgba(255, 210, 225, 0.16); } }
.bday-env.is-nudge { animation: bdayNudge 0.5s ease; }
@keyframes bdayNudge { 20% { transform: rotate(-3deg); } 45% { transform: rotate(2.4deg); } 70% { transform: rotate(-1.4deg); } 100% { transform: none; } }
.bday-env.is-glow .env-seal { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255, 227, 176, 0.35), 0 0 46px 14px rgba(255, 227, 176, 0.75); }
.bday-env.is-open .env-seal { transform: scale(1.5); opacity: 0; }
.bday-env.is-open .env-flap { transform: rotateX(180deg); z-index: 0; }
.bday-env.is-open .env-paper { transform: translateY(-46%); }
.bday-env-hint { font-size: 12.5px; letter-spacing: 2px; color: var(--ink-dim); }
.bday-letter { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bday-letter.is-in, .bday-letter.is-letter { opacity: 1; transform: none; }
.bday-letter:empty { display: none !important; }

/* ---------- 蛋糕卡 ---------- */
.bday-cake-card {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(22px, 4vw, 34px) clamp(18px, 4vw, 34px) clamp(24px, 4vw, 32px);
  overflow: hidden;
}
.bday-cake {
  position: relative;
  width: min(330px, 78vw);
  height: min(330px, 78vw);
  aspect-ratio: 1 / 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.bday-cake:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 20px; }
.bday-cake-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bday-glow {
  position: absolute; left: 50%; top: 24%;
  width: 120%; height: 120%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.55) 0%, rgba(255, 190, 120, 0.22) 30%, rgba(255, 180, 120, 0) 62%);
  animation: bdayGlow 2.6s ease-in-out infinite;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
@keyframes bdayGlow { 0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
.bday-sparkles path { animation: bdayTwinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bday-sparkles path:nth-child(2) { animation-delay: -0.6s; }
.bday-sparkles path:nth-child(3) { animation-delay: -1.3s; }
.bday-sparkles path:nth-child(4) { animation-delay: -1.9s; }
@keyframes bdayTwinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }

/* 火苗：外焰 + 内焰，两组错相闪烁；--lean 跟着吹气倾斜 */
.bday-flame {
  position: absolute;
  width: 7.2%; height: 13%;
  transform: translate(-50%, -96%) rotate(var(--lean, 0deg)) scaleY(var(--gust, 1));
  transform-origin: 50% 100%;
  transition: transform 0.12s linear, opacity 0.3s ease;
  pointer-events: none;
}
.bday-flame::before {
  content: ""; position: absolute; left: 50%; top: 52%;
  width: 520%; height: 330%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 210, 130, 0.5), rgba(255, 170, 90, 0.12) 45%, transparent 70%);
  animation: bdayHalo 1.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.bday-flame i {
  position: absolute; inset: 0;
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 78%, #ffffff 0 14%, #fff2c2 26%, #ffc861 48%, rgba(255, 130, 50, 0.85) 66%, rgba(255, 110, 40, 0) 76%);
  box-shadow: 0 -2px 14px rgba(255, 190, 90, 0.7);
  transform-origin: 50% 100%;
  animation: bdayFlicker 0.16s ease-in-out infinite alternate, bdaySway 2.1s ease-in-out infinite;
  animation-delay: var(--d, 0s), var(--d, 0s);
}
.bday-flame i::after {
  content: ""; position: absolute; left: 34%; right: 34%; bottom: 6%; height: 34%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(120, 170, 255, 0.85), rgba(120, 170, 255, 0) 70%);
}
@keyframes bdayFlicker { from { transform: scale(1, 1) skewX(0.5deg); } to { transform: scale(0.94, 1.07) skewX(-1.2deg); } }
@keyframes bdaySway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2.5deg; } }
@keyframes bdayHalo { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

/* 吹灭：火苗压低熄灭，冒三缕烟 */
.bday-cake-card.is-out .bday-flame { opacity: 0; transform: translate(-50%, -96%) rotate(32deg) scale(0.2, 0.05); transition: transform 0.28s ease-in, opacity 0.32s ease-in; }
.bday-cake-card.is-out .bday-glow { opacity: 0; animation: none; }
.bday-smoke { position: absolute; width: 0; height: 0; pointer-events: none; }
.bday-smoke i {
  position: absolute; left: -7px; top: -14px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 235, 245, 0.55), rgba(235, 235, 245, 0) 70%);
  opacity: 0;
}
.bday-cake-card.is-out .bday-smoke i { animation: bdaySmoke 1.9s ease-out forwards; }
.bday-cake-card.is-out .bday-smoke i:nth-child(2) { animation-delay: 0.18s; --sx: -14px; }
.bday-cake-card.is-out .bday-smoke i:nth-child(3) { animation-delay: 0.38s; --sx: 10px; }
@keyframes bdaySmoke {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--sx, 6px), -110px) scale(3.4); }
}
.bday-cake-card.is-done .bday-smoke i { animation: none; opacity: 0; }

/* 吹灭后：卡片暗一拍，再亮起「生日快乐」 */
.bday-cake-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(5, 5, 12, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.bday-cake-card.is-out::after { opacity: 1; }
.bday-cake-card.is-done::after { opacity: 0; transition-duration: 1.1s; }
.bday-hb {
  position: absolute; left: 0; right: 0; top: 4%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; transform: translateY(12px) scale(0.96);
  transition: opacity 0.8s ease 0.15s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
  pointer-events: none; z-index: 2;
}
.bday-hb b {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 42px); letter-spacing: 8px; font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(255, 200, 120, 0.85), 0 0 2px rgba(0, 0, 0, 0.3);
}
.bday-hb span {
  font-family: 'Instrument Serif', var(--font-display);
  font-style: italic; font-size: 15px; letter-spacing: 2px;
  color: #ffe9c4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.bday-cake-card.is-done .bday-hb { opacity: 1; transform: none; }
.bday-cake-card.is-done .bday-candles { opacity: 0.92; }
.bday-cake-card.is-wishing .bday-cake { animation: bdayHush 0.9s ease; }
@keyframes bdayHush { 40% { filter: brightness(0.8) saturate(0.9); transform: scale(0.985); } }

.bday-cap {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.6vw, 20px); letter-spacing: 3px;
  color: var(--ink);
  position: relative; z-index: 2;
}
.bday-cake-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; position: relative; z-index: 2; }
.bday-cake-actions:empty { display: none; }
.bday-cake-sub { margin-top: 12px; max-width: 380px; font-size: 12.5px; line-height: 1.8; letter-spacing: 0.5px; color: var(--ink-dim); position: relative; z-index: 2; }
.bday-cake-sub:empty { display: none; }
.bday-meter {
  width: min(220px, 60%); height: 3px; margin-top: 12px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.12);
  overflow: hidden; opacity: 0; transition: opacity 0.4s ease;
}
.bday-meter span { display: block; height: 100%; background: linear-gradient(90deg, #ffe3b0, #ff9ec7); transform: scaleX(0); transform-origin: left; }
.bday-cake-card.is-listening .bday-meter { opacity: 1; }

/* ---------- 生日信（实物信纸） ---------- */
.bday-paper {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) clamp(22px, 6vw, 68px) clamp(30px, 5vw, 52px);
  border-radius: 6px;
  text-align: left;
  color: #3f2d31;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(140% 100% at 50% 110%, rgba(240, 214, 190, 0.35), transparent 55%),
    linear-gradient(180deg, #fffcf6, #fbf2e6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  opacity: 0; transform: translateY(40px) rotate(-0.6deg);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  scroll-margin-top: 104px;
}
.bday-paper.is-in { opacity: 1; transform: rotate(-0.25deg); }
.bday-paper::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, #ffe3b0, #ffc9d8 50%, #c9b8ff);
  border-radius: 6px 6px 0 0;
}
.bp-head { text-align: center; margin-bottom: clamp(22px, 4vw, 34px); }
.bp-head span { font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase; color: #b0867d; }
.bp-head h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px); letter-spacing: 3px; line-height: 1.5;
  color: #3b2328;
}
.bp-head p { font-size: 12px; letter-spacing: 2px; color: #9b7f79; }
.bday-paper-body,
.bday-paper-body p {
  font-family: var(--font-display);
  font-size: clamp(15.5px, 1.9vw, 17px);
  line-height: 2.15;
  letter-spacing: 0.4px;
  color: #3f2d31;
}
.bp-foot {
  margin-top: clamp(26px, 4vw, 40px);
  text-align: center;
  font-family: 'Instrument Serif', var(--font-display);
  font-size: 14px; letter-spacing: 8px;
  color: #b0867d;
}
.bp-foot i { font-style: normal; color: #d4677f; padding: 0 4px; }

/* ---------- 信末附言：二十一个愿望（写在信纸上） ---------- */
.bp-wishes {
  margin-top: clamp(30px, 5vw, 44px);
  padding-top: clamp(24px, 4vw, 34px);
  border-top: 1px dashed rgba(176, 134, 125, 0.4);
}
.bw-head { text-align: center; margin-bottom: clamp(16px, 3vw, 24px); }
.bw-head span { font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase; color: #b0867d; }
.bw-head h4 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(19px, 3.2vw, 24px); letter-spacing: 3px;
  color: #3b2328;
}
.bw-head p { font-family: var(--font-display); font-size: 14.5px; line-height: 1.9; color: #7d625d; }
.bw-list { list-style: none; display: flex; flex-direction: column; }
.bw-item {
  display: grid; grid-template-columns: 2.4em 1fr; gap: 12px; align-items: baseline;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(176, 134, 125, 0.16);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s ease calc(var(--i, 0) * 60ms), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 60ms);
}
.bw-item:last-child { border-bottom: none; }
.bw-item.is-in { opacity: 1; transform: none; }
.bw-item b {
  font-family: 'Instrument Serif', Didot, 'Times New Roman', serif;
  font-weight: 400; font-size: 21px; line-height: 1;
  color: #c08a3e;
}
.bw-item p {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 16px); line-height: 1.95;
  color: #3f2d31;
}
.bw-item em {
  display: inline-block; margin-left: 8px;
  font-style: normal; font-family: var(--font-body);
  font-size: 11.5px; letter-spacing: 1px;
  color: #b07a2e;
  padding: 1px 8px; border-radius: 99px;
  background: rgba(240, 201, 138, 0.22);
}
.bw-item.is-done b::after { content: " ✓"; font-size: 14px; }

/* ---------- 开屏（生日当天） ---------- */
body.bday-party .loader-track span { background: linear-gradient(90deg, #ffe3b0, #ffc9d8, #ff9ec7); box-shadow: 0 0 12px rgba(255, 201, 216, 0.6); }
body.bday-party .loader-word { color: #fff3dc; text-shadow: 0 0 34px rgba(255, 210, 150, 0.35); }

/* ---------- 手机 ---------- */
@media (max-width: 560px) {
  .bday-clock { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px 16px; }
  .bc-mid { display: none; }
  .bc-side + .bc-side { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .bc-bar { margin-top: 2px; }
  .bdc-digits b { min-width: 1.05em; }
  .bday-paper { border-radius: 4px; transform: translateY(40px); }
  .bday-paper.is-in { transform: none; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .bday-flame i, .bday-flame::before, .bday-glow, .bday-sparkles path, .bday-env.is-locked .env-seal { animation: none !important; }
  .bday-paper, .bw-item, .bday-letter { transition: none !important; opacity: 1; transform: none; }
}
