/* =====================================================
   Праздник большой вехи серии (streak_celebrate.js).
   Месяц, сотня и годовщины — реже, чем подъём в лигу,
   поэтому здесь можно громче. Но без мигания и тряски.
   ===================================================== */

.stc {
  position: fixed;
  inset: 0;
  z-index: 121;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 12, 17, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: stcIn 0.24s ease-out both;
}
.stc.out { animation: stcOut 0.2s ease-in both; }
@keyframes stcIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes stcOut { from { opacity: 1; } to { opacity: 0; } }

.stc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stc-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(340px, 100%);
  padding: 26px 22px 20px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: stcCard 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes stcCard {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Пламя — главный герой карточки, поэтому без подложки и крупнее, чем где бы
   то ни было ещё. Салют над ним отыгрывает flame.js: холст снопа выходит за
   границы значка, и карточка его не подрезает. */
.stc-flame {
  position: relative;
  width: 120px;
  height: 120px;
  animation: stcFlame 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
/* Тёплое свечение за пламенем — дышит, как в виджете, только шире. */
.stc-flame::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 131, 41, 0.3), transparent 70%);
  animation: glowPulse 2.2s ease-in-out infinite;
}
@keyframes stcFlame {
  0% { opacity: 0; transform: scale(0.3); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: none; }
}

.stc-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stc-days {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* Число крупнее слов: с расстояния читается именно оно. */
.stc-days b {
  font-size: 40px;
  font-weight: 800;
  vertical-align: -3px;
  background: linear-gradient(180deg, #fee49b, #fa8329);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stc-meaning {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.stc-ok { width: 100%; margin-top: 10px; }

/* Спокойный режим: никакого движения, только карточка. */
@media (prefers-reduced-motion: reduce) {
  .stc, .stc-card, .stc-flame { animation: none; }
  .stc-flame::before { animation: none; }
}
