/* LIZZYLANDIA · el cumple de Lizzy (docs/CUMPLE.md): la cinta de la portada, la píldora «🎂 N d» del
   HUD, la hoja del cumple (cuenta regresiva, regalos por adelantado, quiénes y los tuyos), el interruptor
   «Guardalo para su cumple» de las regalerías, la lista «Lizzy abrió N regalos», la pestaña «🎂 Cumple»
   de la consola de Lizzy y el cartel flotante de la mesa de la plaza. Mismos tokens que lizzy.css y
   cuentas.css (vidrio con el degradé rosa / violeta / dorado). Celular primero; con «reducir
   movimiento» todo queda quieto. */
:root {
  --cake-grad: linear-gradient(135deg, #ffe6a8, #ff9cc9 40%, #c9a6ff 75%, #ffe6a8);
}

/* ---------- portada: «🎂 Faltan N días para el cumple de Lizzy» ---------- */
.portal-live { flex-direction: column; align-items: center; gap: 8px; }
@media (min-width: 861px) { .portal-live { align-items: flex-start; } }
.bday-ribbon {
  position: relative; display: grid; justify-items: center; gap: 2px; margin: 0; max-width: 100%; padding: 8px 18px 9px; border-radius: 18px; text-align: center;
  color: #fff6e0; font-weight: 750; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere;
  border: 1.5px solid transparent; background: linear-gradient(170deg, rgba(86, 32, 74, 0.92), rgba(44, 18, 52, 0.92)) padding-box, var(--cake-grad) border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 22px rgba(246, 216, 150, 0.22);
}
.bday-ribbon .sub { font-size: 12.5px; font-weight: 650; color: var(--pink-2); }
.bday-ribbon.today { color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 30px rgba(255, 135, 189, 0.55); animation: bday-glow 2.6s ease-in-out infinite; }
@media (min-width: 861px) { .bday-ribbon { justify-items: start; text-align: left; } }
@keyframes bday-glow { 50% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 38px rgba(246, 216, 150, 0.7); } }

/* ---------- HUD: «🎂 3 d» (y «🎂 ¡Hoy!») ---------- */
.pill.bday-pill {
  position: relative; cursor: pointer; gap: 6px; color: #fff3d6; flex: none;
  border-color: rgba(246, 216, 150, 0.8); background: linear-gradient(180deg, rgba(92, 40, 72, 0.92), rgba(48, 20, 50, 0.94));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 14px rgba(246, 216, 150, 0.3); transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.pill.bday-pill::after { content: ''; position: absolute; inset: -5px -2px; } /* zona de toque de 44 px */
.pill.bday-pill:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 22px rgba(246, 216, 150, 0.6); }
.pill.bday-pill:active { transform: scale(0.96); }
.pill.bday-pill .n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill.bday-pill .badge { position: absolute; top: -7px; right: -7px; }
.pill.bday-pill.today { color: #3a0f24; border-color: #fff; background: linear-gradient(180deg, #ffe6a8, #ff9cc9); animation: bday-pill 1.8s ease-in-out infinite; }
.pill.bday-pill.today .ico { animation: bday-cake 1.8s ease-in-out infinite; }
@keyframes bday-pill { 50% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 26px rgba(255, 135, 189, 0.85); } }
@keyframes bday-cake { 50% { transform: rotate(-8deg) scale(1.15); } }
@media (max-width: 640px) {
  .hud-top .pill.bday-pill { padding: 3px 9px 3px 7px; gap: 4px; }
  /* sin lugar (muchas monedas y gemas): queda la torta y el número chiquito en la esquina */
  .hud-top.tight .pill.bday-pill { padding: 3px 7px; }
  .hud-top.tight .pill.bday-pill .n {
    position: absolute; right: -6px; bottom: -7px; padding: 1px 5px; border-radius: 999px; font-size: 10px; line-height: 1.3; font-weight: 800;
    color: #3a2408; background: linear-gradient(180deg, #ffe6a8, #e3b763); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  }
  .hud-top.tighter .pill.rank { display: none; }
}
@media (max-width: 360px) { .hud-top .pill.bday-pill:not([hidden]) { display: inline-flex !important; } }

/* ---------- cartel flotante de la mesa y globos con el nombre de cada fan ---------- */
.venue-label.bday-label { color: #fff3d6; border: 1.5px solid transparent; background: linear-gradient(180deg, rgba(92, 40, 72, 0.94), rgba(44, 18, 50, 0.95)) padding-box, var(--cake-grad) border-box; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(246, 216, 150, 0.35); }
.venue-label.bday-label.today { color: #3a0f24; background: linear-gradient(180deg, #fff1c8, #ff9cc9) padding-box, var(--cake-grad) border-box; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 135, 189, 0.8); }
.venue-label.bday-label { transition: opacity 0.3s ease; }
.venue-label.bday-label.bday-hide { opacity: 0; }
.bubble.bday-bubble { white-space: pre-line; text-align: center; font-size: 15px; background: linear-gradient(180deg, #fff9e8, #ffe1ee); border: 1.5px solid #f6d896; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 18px rgba(246, 216, 150, 0.6); }
.bubble.bday-bubble::after { border-top-color: #ffe1ee; }

/* ---------- hoja del cumple ---------- */
.side-center .sheet.bday-sheet { width: min(520px, 100%); }
.bday-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bday-head-ico {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 28px;
  background: linear-gradient(160deg, rgba(255, 230, 168, 0.45), rgba(255, 135, 189, 0.4) 50%, rgba(155, 107, 255, 0.35)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px rgba(255, 92, 157, 0.3);
}
.bday-head > div { display: grid; gap: 2px; min-width: 0; }
.bday-head small { color: var(--gold-2); font-weight: 700; font-size: 13px; }

/* cuenta regresiva: días, horas, minutos y segundos */
.bday-count { margin: 2px 0 14px; }
.bday-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bday-unit {
  min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 214, 234, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 20px rgba(0, 0, 0, 0.25);
}
.bday-unit b { font-family: var(--serif); font-size: clamp(30px, 9vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px rgba(255, 135, 189, 0.6); }
.bday-unit:first-child b { color: var(--gold-2); text-shadow: 0 0 20px rgba(246, 216, 150, 0.6); }
.bday-unit small { font-size: 12px; font-weight: 750; color: var(--pink-2); text-transform: lowercase; }
.bday-count .bday-when { margin: 8px 0 0; text-align: center; font-weight: 700; color: var(--muted); font-size: 13.5px; }
.bday-today {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: 4px; padding: 18px 14px; border-radius: 22px; text-align: center;
  border: 1.5px solid transparent; background: linear-gradient(170deg, rgba(110, 40, 86, 0.96), rgba(52, 20, 64, 0.96)) padding-box, var(--cake-grad) border-box;
  box-shadow: 0 16px 40px rgba(255, 92, 157, 0.3);
}
.bday-today-ico { font-size: 52px; line-height: 1; filter: drop-shadow(0 8px 20px rgba(255, 135, 189, 0.75)); animation: bday-cake 2.2s ease-in-out infinite; }
.bday-today b {
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 6.4vw, 30px); line-height: 1.15;
  background: linear-gradient(90deg, #fff1c8, #ff9cc9 50%, #f6d896); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bday-today small { color: var(--cream); font-weight: 700; font-size: 14px; }
.bday-today::before, .bday-today::after { content: '✦'; position: absolute; color: var(--gold-2); font-size: 18px; opacity: 0.8; animation: beat 1.6s ease-in-out infinite; }
.bday-today::before { left: 16px; top: 14px; }
.bday-today::after { right: 18px; bottom: 14px; animation-delay: -0.8s; }

.bday-cta { min-height: 56px; font-size: 17px; }
.bday-cta.gold { width: 100%; }
.bday-cta-note { margin: 8px 2px 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.bday-section { margin-top: 16px; }
.bday-section .section-title { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bday-section .section-title small { font-family: var(--sans); font-size: 13px; font-weight: 650; color: var(--muted); }
.bday-total { margin: 0 0 8px; font-weight: 800; font-size: 16px; color: var(--gold-2); }
.bday-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bday-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--cream); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 214, 234, 0.22); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bday-chip.me { color: #3a0f24; background: linear-gradient(180deg, #ffd0e4, #ff87bd); border-color: transparent; }
.bday-chip.more { color: var(--gold-2); border-style: dashed; }
.bday-empty { margin: 0; color: var(--muted); line-height: 1.45; }
.bday-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bday-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-soft); }
.bday-item .art { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 28px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.bday-item .art img { width: 100%; height: 100%; object-fit: contain; }
.bday-item .meta { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.bday-item .meta b { overflow-wrap: anywhere; }
.bday-item .meta small { color: var(--muted); font-size: 12.5px; }
.bday-item .meta .note { color: var(--gold-2); font-style: italic; font-size: 13px; overflow-wrap: anywhere; }
.bday-item .wrap { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #3a2408; background: linear-gradient(180deg, #ffe6a8, #e3b763); }
.bday-sheet .menu-note, .bday-reveal-sheet .menu-note { margin-top: 18px; }
.bday-reveal-sheet .bday-total { font-size: 15px; }
.bday-reveal-sheet .btn.wide { margin-top: 14px; }

/* ---------- regalerías: «🎁 Guardalo para su cumple (16 de enero)» ---------- */
.shop-bday {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px 10px 10px; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1.5px dashed rgba(246, 216, 150, 0.55); transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-bday .ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 24px; background: rgba(246, 216, 150, 0.14); }
.shop-bday .txt { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.shop-bday .txt b { color: var(--gold-2); }
.shop-bday .txt small { color: var(--muted); font-size: 12.5px; }
.shop-bday.on { border-style: solid; border-color: transparent; background: linear-gradient(170deg, rgba(110, 40, 86, 0.9), rgba(52, 20, 64, 0.9)) padding-box, var(--cake-grad) border-box; box-shadow: 0 10px 26px rgba(255, 92, 157, 0.25); }
.shop-bday.on .ico { background: linear-gradient(160deg, #ffe6a8, #ff87bd); }
.shop-bday.on .txt small { color: var(--pink-2); }
.confirm .shop-bday { margin: 10px 0 4px; text-align: left; }
.gift-done-bday h3 { color: var(--gold-2); }

/* ---------- consola de Lizzy: «🎂 Cumple» ---------- */
.lf-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lf-bday .bday-count { margin-bottom: 10px; }
.lf-bday .bday-open { width: 100%; min-height: 54px; font-size: 17px; }
.lf-bday .bday-open[disabled] { opacity: 0.7; }
.lf-bday .bday-open-hint { margin: 6px 2px 0; text-align: center; color: var(--muted); font-size: 13px; }
.lf-bday .lf-item .note { color: var(--gold-2); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .bday-ribbon.today, .pill.bday-pill.today, .pill.bday-pill.today .ico, .bday-today-ico, .bday-today::before, .bday-today::after { animation: none !important; }
}
