/* 獨立生日測試版：不改原有卡片或清單樣式。 */
.hero-member-row { display:flex; align-items:center; gap:8px; min-width:0; margin-bottom:16px; }
.hero-member-row .hero-sub { margin:0; min-width:0; font-size:clamp(11.5px,3.1vw,12px); }
.birthday-entry { flex:0 0 44px; width:44px; height:44px; padding:0; border:0; background:transparent; font-size:18px; line-height:1; }
.birthday-entry[hidden] { display:none; }
body.birthday-open { position:fixed; left:0; right:0; width:100%; overflow:hidden; }
.birthday-dialog { width:min(560px,calc(100% - 28px)); max-width:none; max-height:calc(100dvh - 28px); margin:auto; padding:14px; border:1px solid var(--line); border-radius:20px; color:var(--ink); background:var(--bg); overflow:auto; overscroll-behavior:contain; }
.birthday-dialog::backdrop { background:rgb(32 51 72 / .48); }
.birthday-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.birthday-toolbar p { margin:0; color:var(--muted); font-size:12px; }
.birthday-close { flex:0 0 auto; min-width:44px; min-height:44px; }
.birthday-card { position:relative; perspective:1400px; height:min(620px,calc(100dvh - 170px)); min-height:180px; border-radius:14px; background:#fff; }
.birthday-cover { position:absolute; inset:0; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; padding:24px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(145deg,var(--pale),#fff 58%,var(--pink)); color:var(--ink); transform-origin:left center; backface-visibility:hidden; transition:transform 850ms cubic-bezier(.2,.6,.2,1),opacity 650ms; z-index:1; }
.birthday-cover strong { font-family:var(--font-body); font-size:clamp(29px,7vw,42px); line-height:1.25; font-weight:600; }
.birthday-cover small { font-size:11px; letter-spacing:.12em; line-height:1.6; }
.birthday-cover span { color:var(--action); font-size:13px; }
.birthday-card.is-flipped .birthday-cover { transform:rotateY(-175deg); opacity:0; pointer-events:none; }
.birthday-inside { height:100%; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:24px; border:1px solid var(--line); border-radius:14px; background:#fff; opacity:0; transition:opacity 350ms 200ms; overflow-wrap:anywhere; line-height:1.9; font-size:15px; }
.birthday-card.is-flipped .birthday-inside { opacity:1; }
.birthday-inside h2 { font-size:24px; margin:0 0 20px; color:var(--action); }
.birthday-inside p { margin:0 0 20px; }
.birthday-inside p:last-child { margin-bottom:0; }
.birthday-notice { font-size:12px; color:var(--muted); margin:10px 0 0; }
.birthday-notice:empty { display:none; }
@media(max-width:700px) { .birthday-inside { padding:20px 18px; } }
@media(prefers-reduced-motion:reduce) { .birthday-cover,.birthday-inside { transition:none; } .birthday-card { perspective:none; } }
