/* CHAT STREAKS (2026-11-23, js/chatlife.js): the 🔥 badge next to a name, the Streak Saver button and the streak party.
   The chat background is always deep (Pop Chat), so the colours here read in both themes. */
.cl-st { margin-left: 4px; white-space: nowrap; font-size: 0.9em; display: inline-flex; gap: 3px; vertical-align: baseline; }
.cl-st:empty { display: none; }
.cl-st i { font-style: normal; }
.cl-fire { font-weight: 800; font-variant-numeric: tabular-nums; }
.cl-fire em { font-style: normal; margin-left: 1px; opacity: 0.85; }
.cl-st.pop { animation: clpop 0.6s cubic-bezier(.3, 1.6, .5, 1); }

/* the Streak Saver button (the day after a missed day) */
.cl-save { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; max-width: calc(100% - 24px); border: 0; cursor: pointer;
  background: #ff7a2b; color: #fff; border-radius: 16px; padding: 8px 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  font: 700 13.5px/1.25 'Outfit', system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; animation: clpopc 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.cl-save small { font: 500 11px/1.3 system-ui, sans-serif; opacity: 0.9; }
.cl-save:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the party at 7 / 30 / 100 / 365 days */
.cl-party { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.cl-party span { position: absolute; top: -10%; font-size: 22px; animation: clfall 2s linear forwards; }
.cl-cheer { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); background: #ffd23f; color: #3b2300; border-radius: 18px; padding: 12px 20px; text-align: center;
  font: 800 19px/1.2 'Outfit', system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); animation: clcheer 3.2s ease forwards; white-space: nowrap; }
.cl-cheer small { display: block; font: 600 12px/1.4 system-ui, sans-serif; }

@keyframes clpop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
@keyframes clpopc { 0% { transform: translateX(-50%) scale(0.5); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes clfall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(115vh) rotate(260deg); opacity: 0.2; } }
@keyframes clcheer { 0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 20%, 82% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cl-st.pop, .cl-save { animation: none; } .cl-party span { display: none; } .cl-cheer { animation: none; } }
