/* SSLG birthdays (v104): the full-screen birthday greeting and the FAQ Birthday Corner.
   Uses the portal's own colours (maroon, gold). Solid fills, no blur. */

/* ---------- full-screen greeting ---------- */
.bday-ov{position:fixed;inset:0;z-index:99990;display:grid;place-items:center;padding:clamp(.5rem,2vw,1.2rem);overflow:hidden;background:radial-gradient(120% 90% at 50% -10%,#8b1523 0,#3a0a13 55%,#14040a 100%);color:#fff4e0;animation:bdayFade .5s ease both}
.bday-ov canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.bday-balloon{position:absolute;left:var(--x,50%);bottom:-120px;width:34px;height:42px;border-radius:50% 50% 48% 48%;opacity:.9;z-index:0;pointer-events:none;animation:bdayRise var(--d,12s) linear var(--l,0s) infinite}
.bday-balloon::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:60px;background:rgba(255,255,255,.55)}
.bday-box{position:relative;z-index:1;width:min(660px,100%);max-height:calc(100dvh - 2 * clamp(.5rem,2vw,1.2rem));overflow:auto;overscroll-behavior:contain;text-align:center;padding:clamp(1rem,3vw,2rem) clamp(1rem,4vw,2.3rem);border-radius:26px;border:2px solid #facc15;background:#2a0910;box-shadow:0 30px 80px -20px rgba(0,0,0,.8),0 0 0 6px #4a2a08;animation:bdayPop .6s cubic-bezier(.2,.9,.3,1.15) both}
.bday-badge{display:inline-block;padding:.35rem .9rem;border-radius:999px;background:#facc15;color:#2a0a10;font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.bday-photo{width:clamp(96px,22vw,124px);aspect-ratio:1/1;margin:.9rem auto .8rem;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#5c0e1a;border:4px solid #facc15;box-shadow:0 0 0 6px #4a2a08;animation:bdayPulse 2.4s ease-in-out infinite}
.bday-photo img{width:100%;height:100%;object-fit:cover;display:block}
.bday-photo b{font-size:clamp(2rem,6vw,3rem);color:#fde68a}
.bday-title{margin:.1rem 0 .4rem;font-size:clamp(1.35rem,4vw,2.05rem);line-height:1.2;color:#fff}
.bday-chip{display:inline-block;padding:.3rem .85rem;border-radius:999px;background:#4a2a08;border:1px solid #8f6a16;color:#fde68a;font-weight:700;font-size:.86rem}
.bday-msg{margin:.8rem 0 .3rem;text-align:left}
.bday-msg p{margin:0 0 .65rem;font-size:clamp(.92rem,2.2vw,1.02rem);line-height:1.62;color:#f6e7d8}
.bday-sign{margin:.4rem 0 1rem;font-weight:800;font-size:clamp(1rem,2.6vw,1.2rem);color:#fde68a}
.bday-ctrls{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
.bday-btn{font:inherit;font-weight:700;font-size:.95rem;padding:.6rem 1.1rem;border-radius:10px;cursor:pointer;background:#3a0f1b;color:#fff4e0;border:1px solid #8f6a16}
.bday-btn:hover{border-color:#facc15}
.bday-btn.main{background:#facc15;color:#2a0a10;border-color:#facc15}
.bday-btn.main:hover{background:#fde047}
.bday-btn:focus-visible{outline:3px solid #fde68a;outline-offset:2px}
@media (max-height:700px){
  .bday-photo{width:88px;margin:.5rem auto .5rem}
  .bday-msg p{font-size:.9rem;line-height:1.5}
  .bday-box{padding:.9rem 1.1rem}
}

/* ---------- FAQ: Birthday Corner ---------- */
.bday-corner{display:grid;gap:1rem;margin-top:1.4rem}
.bday-head .eyebrow{margin:0}
.bday-head h2{margin:.2rem 0 .3rem}
.bday-grid{display:grid;gap:1rem;grid-template-columns:1fr 1fr}
@media (max-width:760px){.bday-grid{grid-template-columns:1fr}}
.bday-card{display:flex;flex-direction:column;gap:.6rem}
.bday-title-row{margin:0;font-size:1.12rem}
.bday-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.bday-item{display:flex;align-items:center;gap:.7rem;padding:.55rem .65rem;border-radius:12px;background:#2e0910;border:1px solid #6e2433}
.bday-item.is-today{border-color:#facc15;background:#4a2a08}
.bday-av{flex:0 0 46px;width:46px;height:46px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#4a0d1c;border:2px solid #8f6a16}
.bday-av img{width:100%;height:100%;object-fit:cover;display:block}
.bday-av b{color:#fde68a;font-size:1.1rem}
.bday-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.bday-txt b{overflow-wrap:anywhere}
.bday-count{flex:none;font-size:.78rem;font-weight:800;letter-spacing:.03em;white-space:nowrap;padding:.28rem .7rem;border-radius:999px;background:#3a0f1b;color:#fde68a;border:1px solid #8f6a16}
.bday-count.is-today{background:#facc15;color:#2a0a10;border-color:#facc15}
.bday-empty{margin:0}

/* ---------- motion ---------- */
@keyframes bdayFade{from{opacity:0}to{opacity:1}}
@keyframes bdayPop{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:none}}
@keyframes bdayPulse{0%,100%{box-shadow:0 0 0 6px #4a2a08}50%{box-shadow:0 0 0 14px rgba(74,42,8,.25)}}
@keyframes bdayRise{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-125vh) rotate(4deg)}}
@media (prefers-reduced-motion:reduce){
  .bday-ov,.bday-box,.bday-photo,.bday-balloon{animation:none!important}
}
