/* ═══════════════ 月下花 · 夜里的花园和植物标本 ═══════════════
   材质：月光（银蓝的光束、柔光晕）、植物图鉴的细线、压花的米色薄纸和纸胶带、标本标签（米白卡纸、细框、打字机一样的等宽字）
   颜色：月光银蓝 #cfd8ff、花瓣的颜色（每个月一种，从 core/bloom.js 来，用 --c 传进来）、叶子的露水绿 #8fe3c0、纸 #efe6d2
   选择器都挂在这颗星球自己的屏幕类上（.screen-bloom / .screen-bl-garden）或 .bl* / .blg* / .bld* 前缀上 */
:root {
  --bl-moon: #cfd8ff;
  --bl-paper: #efe6d2;
  --bl-ink: #3a2c1c;
  --bl-dew: #8fe3c0;
  --bl-holo: linear-gradient(100deg, #cfd8ff 0%, #ffd6e8 34%, #fff4dc 56%, #b8f0d4 78%, #cfd8ff 100%);
}

/* 主按钮：月光 → 花瓣 → 露水 */
:is(.screen-bloom, .screen-bl-garden) .btn-holo,
body[data-planet='bloom'] .screen-dossier .d-actions .btn-holo {
  background: var(--bl-holo); background-size: 300% 100%; color: #141a3a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 12px 40px -10px rgba(207, 216, 255, 0.55), 0 0 60px -14px rgba(255, 214, 232, 0.55);
}

/* 小月亮（字标、月相按钮、生日的月亮条、档案）：暗面 + 亮面 */
:is(.screen-bloom, .screen-bl-garden, .screen-dossier, #bl-how-modal) svg .dk { fill: #141a3a; stroke: rgba(207, 216, 255, 0.28); stroke-width: 0.8; }
:is(.screen-bloom, .screen-bl-garden, .screen-dossier, #bl-how-modal) svg .lt { fill: #f4f2ff; }

/* ═══════════════ 星球首页 ═══════════════ */
.screen-bloom { flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 74px) 16px calc(var(--safe-b) + 66px); text-align: center; overflow: hidden; }
.bl-inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 760px; }
/* 眉标：一张挂着细线的标本标签 */
.bl-kicker { gap: 0; margin-bottom: 14px; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bl-kicker span {
  position: relative; padding: 5px 12px 5px 30px; border-radius: 2px; background: var(--bl-paper); color: var(--bl-ink);
  font: 700 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(58, 44, 28, 0.18);
  transform: rotate(-1.5deg);
}
.bl-kicker span::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #0e1230; box-shadow: inset 0 0 0 1.5px rgba(58, 44, 28, 0.5); }
.bl-kicker span::after { content: ''; position: absolute; left: -26px; top: 50%; width: 30px; border-top: 1px dashed rgba(207, 216, 255, 0.5); transform: rotate(-12deg); transform-origin: right center; }
.blk-leaf { display: grid; place-items: center; width: 20px; height: 20px; margin-right: 18px; }
.blk-leaf svg { width: 18px; height: 18px; fill: rgba(143, 227, 192, 0.35); stroke: var(--bl-dew); stroke-width: 1.2; }
.blk-leaf .v { fill: none; }

/* 主视觉：一轮月亮，下面一朵跟着月光开合的花 */
.bl-hero { position: relative; display: flex; flex-direction: column; align-items: center; }
.blh-frame {
  --w: clamp(130px, min(38vw, 20.5vh), 230px);
  display: block; width: var(--w); padding: 0; border: 0; border-radius: 22px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.blh-frame:focus-visible { outline: 2px solid var(--bl-moon); outline-offset: 6px; }
.blh-cv { display: block; width: 100%; aspect-ratio: 4 / 5; }
.blh-cap { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 34px; margin: 2px 0 0; }
.blh-cap b { font: 800 13px/1.2 var(--f-display); letter-spacing: 0.02em; color: #fff; }
.blh-cap span { font: 700 10.5px/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* 字标：MOONBLOOM，两个 O 是月亮，后两个 O 是花；字母像花茎一样从底下长出来 */
.bl-title { margin: 10px 0 0; cursor: pointer; user-select: none; -webkit-user-select: none; }
.blt-word { display: inline-flex; align-items: flex-end; font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, min(10.2vw, 9.6vh), 92px); line-height: 1; letter-spacing: -0.01em; }
.blt-word > b {
  display: inline-block; font-weight: 900; color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #e6ecff 45%, #b9c6f5 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 14px rgba(207, 216, 255, 0.35));
}
.blt-word > b:nth-child(n + 5) { background: linear-gradient(180deg, #fff6fa 0%, #ffd6e8 55%, #c7f2dc 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 14px rgba(255, 214, 232, 0.35)); }
.blt-word .o { display: inline-grid; place-items: center; width: 0.8em; height: 0.8em; margin: 0 0.02em 0.06em; background: none; filter: none; }
.blt-word .o svg { width: 100%; height: 100%; overflow: visible; }
.blt-word .is-moon svg { filter: drop-shadow(0 0 10px rgba(207, 216, 255, 0.55)); }
.blt-word .is-bloom .pt { fill: #ffd6e8; stroke: rgba(255, 255, 255, 0.6); stroke-width: 0.5; transform: scale(calc(0.35 + var(--k, 0) * 0.65)) rotate(calc((1 - var(--k, 0)) * -30deg)); transition: transform 0.5s var(--ease); }
.blt-word .is-bloom:last-of-type .pt { fill: #ffe3ef; }
.blt-word .is-bloom .eye { fill: #ffd56a; }
.blt-word .is-bloom svg { filter: drop-shadow(0 0 10px rgba(255, 214, 232, 0.45)); }
.screen-bloom .landing-cn { margin-top: 12px; }
.screen-bloom .landing-sub { max-width: 540px; }
.screen-bloom .landing-steps { --step: var(--bl-moon); --step-rgb: 207, 216, 255; --step-arrow: rgba(255, 214, 232, 0.7); }

/* ═══════════════ 夜里的花园 ═══════════════ */
.screen-bl-garden { flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 62px) 16px calc(var(--safe-b) + 22px); overflow: hidden; }
.blg-head { display: flex; justify-content: center; width: 100%; min-height: 18px; }
.blg-k { font: 700 10.5px/1.4 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.blg-sky { position: relative; flex: none; width: 100%; max-width: 560px; height: clamp(270px, 44vh, 470px); transition: height 0.5s var(--ease); }
.screen-bl-garden[data-step='guess'] .blg-sky { height: clamp(170px, 27vh, 300px); }
.screen-bl-garden[data-step='wind'] .blg-sky { height: clamp(230px, 36vh, 400px); }
.blg-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.blg-read { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0; pointer-events: none; text-align: center; }
.blg-read b { font: 800 clamp(16px, 4.6vw, 20px)/1.2 var(--f-display); color: #fff; text-shadow: 0 0 18px rgba(207, 216, 255, 0.5); }
.blg-read span { font: 700 10.5px/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.screen-bl-garden:is([data-step='bud'], [data-step='bloom'], [data-step='bloomed'], [data-step='press'], [data-step='pressed']) .blg-read { opacity: 0.85; }
/* 压好以后月份写在标本标签上，读数只留一行，不压在纸底下 */
.screen-bl-garden[data-step='pressed'] .blg-read span { display: none; }
/* 花苞：一个看不见的大按钮，外面一圈慢慢呼吸的月光圈，邀请你碰它 */
.blg-bud { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.blg-bud::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(207, 216, 255, 0.6); box-shadow: 0 0 24px rgba(207, 216, 255, 0.35); animation: blg-bud 2.4s ease-in-out infinite; }
.blg-bud:focus-visible { outline: 2px solid var(--bl-moon); outline-offset: -10px; }
@keyframes blg-bud { 50% { transform: scale(1.18); opacity: 0.4; } }
/* 标本标签 */
.blg-label {
  position: absolute; right: max(4%, calc(50% - 200px)); bottom: 6%; display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 7px 11px 8px;
  background: #fbf7ec; color: var(--bl-ink); text-align: left; transform: rotate(-3deg);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8), inset 0 0 0 3px #fbf7ec, inset 0 0 0 4px rgba(58, 44, 28, 0.35);
}
.blg-label small { font: 700 9px/1.3 var(--f-mono); letter-spacing: 0.14em; opacity: 0.7; }
.blg-label b { font: 900 15px/1.15 var(--f-display); }
.blg-label span { font-size: 11px; line-height: 1.3; opacity: 0.75; }

.blg-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 560px; }
/* 先猜：八个月相 */
.blg-guess { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; text-align: center; }
.blg-step { margin: 0; font: 700 10.5px/1.3 var(--f-mono); letter-spacing: 0.16em; color: var(--bl-moon); }
.blg-h { margin: 0; font: 800 clamp(19px, 5.2vw, 26px)/1.25 var(--f-display); text-wrap: balance; }
.blg-h em { font-style: normal; color: var(--bl-moon); text-shadow: 0 0 18px rgba(207, 216, 255, 0.5); }
.blg-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.blg-ph {
  display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 70px; padding: 9px 4px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: 11.5px; line-height: 1.2; cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.blg-ph svg { width: 26px; height: 26px; }
.blg-ph:hover { border-color: rgba(207, 216, 255, 0.4); }
.blg-ph[aria-checked='true'] { border-color: var(--bl-moon); color: #fff; box-shadow: 0 0 0 1px var(--bl-moon) inset, 0 0 24px -6px rgba(207, 216, 255, 0.7); transform: translateY(-2px); }
.blg-go { min-width: 240px; min-height: 58px; }

/* 倒回去：生日的月亮条、提示、星盘 */
.blg-wind { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.blg-strip { display: flex; gap: 6px; width: 100%; min-height: 40px; margin: 0; padding: 2px 4px; overflow-x: auto; list-style: none; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
.blg-strip::-webkit-scrollbar { display: none; }
.blg-strip li { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.blg-strip svg { width: 18px; height: 18px; }
.blg-strip small { font: 700 9px/1 var(--f-mono); color: var(--ink-3); }
.blg-strip li.is-match svg { border-radius: 50%; box-shadow: 0 0 0 1.5px #ffd56a, 0 0 12px rgba(255, 213, 106, 0.6); }
.blg-strip li.is-born svg { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(207, 216, 255, 0.9)); }
.blg-strip li.is-born small { color: var(--bl-moon); }
.blg-hint { min-height: 20px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); text-align: center; text-wrap: balance; }
.blg-hint b { color: #fff; }
.blg-hint.is-solo { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bl-moon); }
.blg-dial { position: relative; width: clamp(140px, 19vh, 176px); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; }
.blg-dial:focus-visible { outline: 2px solid var(--bl-moon); outline-offset: 4px; }
.blg-dial.is-on { cursor: grabbing; }
.blg-dial svg { width: 100%; height: 100%; overflow: visible; }
.blg-dial .ring { fill: rgba(16, 20, 48, 0.72); stroke: rgba(207, 216, 255, 0.3); stroke-width: 1; }
.blg-dial .ticks { stroke: rgba(207, 216, 255, 0.4); stroke-width: 1; stroke-linecap: round; }
.blg-dial .knob circle { fill: #f4f2ff; filter: drop-shadow(0 0 6px rgba(207, 216, 255, 0.9)); }
.blg-dial .arrow { stroke: rgba(255, 214, 232, 0.55); stroke-width: 1.4; stroke-linecap: round; }
.blg-dial.is-on .ring { stroke: rgba(207, 216, 255, 0.7); filter: drop-shadow(0 0 14px rgba(207, 216, 255, 0.45)); }
.blg-skip { font-size: 13px; }

/* 揭晓后的两行：出生月相、生日花 */
.blg-cap { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.blg-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); text-align: left; }
.blg-row .blg-ico { display: grid; place-items: center; width: 26px; height: 26px; }
.blg-row .blg-ico svg { width: 24px; height: 24px; }
.blg-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--c) 60%); box-shadow: 0 0 12px var(--c); }
.blg-row small { flex-basis: calc(100% - 40px); order: -1; margin-left: 36px; font: 700 9.5px/1.2 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.blg-row b { font: 800 16px/1.2 var(--f-display); color: #fff; }
.blg-row em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.blg-vs { margin-left: auto; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); }
.blg-vs.is-hit { border-color: #ffd56a; color: #ffe9a8; box-shadow: 0 0 14px -4px rgba(255, 213, 106, 0.7); }
.blg-acts { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.blg-acts .btn-holo { min-width: 260px; min-height: 58px; }
.blg-acts2 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }
.blg-open { min-width: 160px; }

/* 压进书里：两页米色的纸从两边合上，再打开 */
.blg-book { position: fixed; inset: 0; z-index: 60; display: none; pointer-events: none; }
.screen-bl-garden.is-pressing .blg-book { display: block; }
.bk-page { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--bl-paper); background-image: linear-gradient(90deg, rgba(120, 96, 60, 0.18), rgba(255, 255, 255, 0.12) 30%, rgba(120, 96, 60, 0.06)); }
.bk-page.l { left: 0; transform-origin: left center; animation: bk-close 1.1s var(--ease) both; }
.bk-page.r { right: 0; transform-origin: right center; animation: bk-close 1.1s var(--ease) both; background-image: linear-gradient(270deg, rgba(120, 96, 60, 0.18), rgba(255, 255, 255, 0.12) 30%, rgba(120, 96, 60, 0.06)); }
@keyframes bk-close { 0% { transform: scaleX(0); } 45%, 60% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* 怎么玩：一排八个月相 */
.bl-how-row { display: flex; justify-content: center; gap: 8px; margin: 0 0 14px; }
.bl-how-row svg { width: 22px; height: 22px; }

/* ═══════════════ 档案 ═══════════════ */
.bld-spec { position: relative; width: min(100%, 340px); margin: 4px auto 0; }
.bld-cv { display: block; width: 100%; aspect-ratio: 4 / 5; }
.bld-tag {
  position: absolute; right: 4%; bottom: 8%; display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 7px 11px 8px; text-align: left;
  background: #fbf7ec; color: var(--bl-ink); transform: rotate(-3deg);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8), inset 0 0 0 3px #fbf7ec, inset 0 0 0 4px rgba(58, 44, 28, 0.35);
}
.bld-tag small { font: 700 9px/1.3 var(--f-mono); letter-spacing: 0.14em; opacity: 0.7; }
.bld-tag b { font: 900 16px/1.15 var(--f-display); }
.bld-tag span { font-size: 11.5px; line-height: 1.3; opacity: 0.75; }
.bld-pair { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.bld-big svg { display: block; width: 64px; height: 64px; filter: drop-shadow(0 0 16px rgba(207, 216, 255, 0.55)); }
.bld-pair p { margin: 0 0 8px; }
.bld-vibe { font: 700 11px/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bl-moon); }
.bld-lore, .bld-fact { font-size: 13px; color: var(--ink-3); }
.bld-mean { display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.bld-mean small { font: 700 9.5px/1.2 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.bld-mean b { font: 800 16px/1.3 var(--f-display); }
.bld-mgrid { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 16px; align-items: center; }
.bld-ring { width: 100%; height: auto; }
.bld-mtext p { margin: 0 0 8px; }
.bld-vs { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.bld-vs b { color: #fff; }
.bld-sync { font: 800 18px/1.3 var(--f-display); color: var(--bl-moon); }
.bld-none { color: var(--ink-3); }
.bld-strip { display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.bld-strip li { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 26px; }
.bld-strip svg { width: 20px; height: 20px; }
.bld-strip small { font: 700 9px/1 var(--f-mono); color: var(--ink-3); }
.bld-strip li.is-match svg { border-radius: 50%; box-shadow: 0 0 0 1.5px #ffd56a, 0 0 12px rgba(255, 213, 106, 0.6); }
.bld-strip li.is-born svg { filter: drop-shadow(0 0 8px rgba(207, 216, 255, 0.9)); }
.bld-ret { color: var(--bl-moon); }
.bld-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bld-list small { font: 700 10px/1.2 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.bld-list p { margin: 3px 0 0; }
/* 宽屏时档案是 6 列（app.css），没写跨几列的分区只占 1 列，会被挤成一条窄缝 */
@media (min-width: 760px) {
  .bld-moon, .bld-flower, .bld-mirror, .bld-years, .bld-gift { grid-column: span 6; }
  .bld-pair p, .bld-mtext p, .bld-years p { max-width: 68ch; }
}
@media (min-width: 1000px) {
  .bld-moon, .bld-flower { grid-column: span 3; }
  .bld-mirror { grid-column: span 4; }
  .bld-gift { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bld-mgrid { grid-template-columns: 1fr; }
  .bld-ring { max-width: 170px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .blg-bud::after { animation: none; }
  .blg-sky { transition: none; }
  .screen-bl-garden.is-pressing .blg-book { display: none; }
  .blt-word .is-bloom .pt { transition: none; }
}
