/* Genexts Happy Birthday: the two questions, the balloons, the greeting and the "credits arrived" card.
   Calm and minimal like the rest of Genexts: the balloons are soft, the colours come from the theme. */

/* ---------- the greeting ---------- */
body.birthday #chat-empty .chat-empty-mark { color: var(--r-accent-text, var(--brand, #2ee6b6)); }
body.birthday #chat-empty h2 { line-height: 1.25; }
body.birthday #chat-empty h2 .bd-name { color: var(--r-accent-text, var(--brand, #2ee6b6)); }
body.birthday #chat-empty h2 .bd-sub { display: block; margin-top: .45rem; font-size: 1.05rem; font-weight: 500; letter-spacing: 0; opacity: .72; }

/* ---------- balloons on the sides (only on the chat and home pages) ---------- */
.bd-balloons { display: none; position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; color: var(--r-text, #888); }
body.birthday:has(#chat-view:not(.hidden)) .bd-balloons,
body.birthday:has(#main-view:not(.hidden)) .bd-balloons { display: block; }
.bd-side { position: absolute; top: 0; bottom: 0; width: 96px; display: flex; flex-direction: column; justify-content: space-around; align-items: center; padding: 72px 0 120px; }
.bd-side.left { left: 92px; }          /* just right of the 84px menu rail */
.bd-side.right { right: 8px; }
.bd-balloon { opacity: .9; transform-origin: 50% 100%; animation: bd-float var(--t, 6s) ease-in-out var(--d, 0s) infinite alternate; filter: saturate(.85); }
.bd-side.right .bd-balloon:nth-child(odd), .bd-side.left .bd-balloon:nth-child(even) { margin-inline-start: 26px; }
.bd-side.left .bd-balloon:nth-child(odd), .bd-side.right .bd-balloon:nth-child(even) { margin-inline-end: 26px; }
@keyframes bd-float {
  from { transform: translateY(10px) rotate(-3deg); }
  to   { transform: translateY(-14px) rotate(3deg); }
}
@media (max-width: 1100px) { .bd-side { width: 64px; } .bd-balloon { transform: scale(.78); } }
@media (max-width: 768px) {
  .bd-side.left { left: 0; }
  .bd-side.right { right: 0; }
  .bd-side { width: 44px; }
  .bd-balloon { transform: scale(.6); }
  .bd-balloon:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bd-balloon { animation: none; } }

/* ---------- the two questions ---------- */
.bd-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 16px; }
.bd-card { width: min(440px, 100%); max-height: 100%; overflow-y: auto; background: var(--r-surface, #16171a); color: var(--r-text, #ececee);
  border: 1px solid var(--r-border-strong, rgba(255,255,255,.13)); border-radius: 18px; padding: 22px; box-shadow: var(--r-shadow-pop, 0 20px 60px rgba(0,0,0,.45)); display: flex; flex-direction: column; gap: 12px; }
.bd-card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--r-accent-soft, rgba(46,230,182,.12)); color: var(--r-accent-text, #2ee6b6); }
.bd-card h2 { margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.bd-desc { margin: 0; color: var(--r-text-2, #a1a1aa); font-size: .93rem; line-height: 1.5; }
.bd-field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--r-text-2, #a1a1aa); }
.bd-field[hidden] { display: none; }
.bd-field input, .bd-field select { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; font: inherit; font-weight: 500; color: var(--r-text, #ececee);
  background: var(--r-surface-2, #1d1e22); border: 1px solid var(--r-border-strong, rgba(255,255,255,.13)); outline: none; color-scheme: light dark; }
.bd-field input:focus, .bd-field select:focus { border-color: var(--r-accent, #2ee6b6); box-shadow: 0 0 0 3px var(--r-accent-soft, rgba(46,230,182,.12)); }
.bd-hint { margin: 0; font-size: .78rem; color: var(--r-text-3, #8b8b94); line-height: 1.45; }
.bd-error { margin: 0; font-size: .85rem; color: var(--r-danger, #f87171); }
.bd-error[hidden] { display: none; }
.bd-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.bd-btn { height: 40px; padding: 0 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--r-text, #ececee); background: transparent; border: 1px solid var(--r-border-strong, rgba(255,255,255,.13)); }
.bd-btn:hover { background: var(--r-surface-2, #1d1e22); }
.bd-btn.primary { background: var(--r-accent, #2ee6b6); border-color: var(--r-accent, #2ee6b6); color: var(--r-accent-ink, #052e25); }
.bd-btn.primary:hover { filter: brightness(1.06); }
.bd-btn:disabled { opacity: .55; cursor: default; }
.bd-btn:focus-visible, .bd-field :focus-visible { outline: 2px solid var(--r-accent, #2ee6b6); outline-offset: 2px; }
@media (max-width: 520px) { .bd-modal { align-items: end; padding: 0; } .bd-card { border-radius: 18px 18px 0 0; width: 100%; } }

/* ---------- "the credits arrived" ---------- */
.bd-pop { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1001; width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px; background: var(--r-surface, #16171a); color: var(--r-text, #ececee); border: 1px solid var(--r-accent, #2ee6b6);
  box-shadow: var(--r-shadow-pop, 0 14px 40px rgba(0,0,0,.4)); animation: bd-in .4s cubic-bezier(.2,.9,.3,1.2); }
.bd-pop p { margin: 2px 0 0; font-size: .86rem; color: var(--r-text-2, #a1a1aa); line-height: 1.4; }
.bd-pop > div { flex: 1; min-width: 0; }
.bd-pop-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--r-accent-soft, rgba(46,230,182,.12)); color: var(--r-accent-text, #2ee6b6); }
.bd-pop .bd-btn { height: 34px; padding: 0 12px; flex: none; }
@keyframes bd-in { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .bd-pop { animation: none; } }
