/* ═══════════════════════════════════════════════════════════════
   streak.css — «Огонёк»: ежедневная серия визитов
   Карточка в профиле + полноэкранная 3D-сцена первого визита.
   Не связан с halloween.css: работает всегда, независимо от ивента.
═══════════════════════════════════════════════════════════════ */

/* ─── Карточка огонька в профиле ─────────────────────────────── */
.streak-profile-card {
  width: 100%;
  margin-top: 2px;
}

/* Studio-тема ставит аватар и подпись в ряд. На узких экранах карточка
   огонька уходит на отдельную строку, чтобы не вылезать за край модалки. */
@media (max-width: 600px) {
  #profile-modal .profile-avatar-wrap { flex-wrap: wrap; }
  #profile-modal .streak-profile-card {
    flex: 1 0 100%;
    width: 100%;
    order: 3;
  }
}

.streak-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 138, 61, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(255, 138, 61, 0.10), rgba(178, 59, 255, 0.08));
  border: 1px solid rgba(255, 168, 92, 0.24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.streak-card::after {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 146, 52, 0.18), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.streak-card-flame {
  width: 42px;
  height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.streak-card--pp .streak-card-flame { width: 38px; height: 48px; }

.streak-flame-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px var(--streak-glow, rgba(255, 140, 50, 0.55)));
}

.streak-card-body { flex: 1; min-width: 0; }
.streak-card-top { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.streak-card-count {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffb15c;
  text-shadow: 0 0 18px rgba(255, 140, 50, 0.35);
}
.streak-card--pp .streak-card-count { font-size: 1.35rem; }
.streak-card-days {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--txt-secondary, rgba(255, 255, 255, 0.62));
  white-space: nowrap;
}
.streak-card-status {
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--txt-secondary, rgba(255, 255, 255, 0.62));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.streak-card-dot { margin: 0 5px; opacity: 0.45; }
.streak-card-best {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  flex: 0 0 auto;
}
.streak-card-best span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-muted, rgba(255, 255, 255, 0.42));
}
.streak-card-best b { font-size: 1rem; color: #ffd166; }
.streak-card-foot {
  margin-top: 6px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--txt-muted, rgba(255, 255, 255, 0.45));
}

/* Уровни: цвет свечения карточки */
.streak-lvl-spark   { --streak-glow: rgba(255, 196, 92, 0.55); }
.streak-lvl-flame   { --streak-glow: rgba(255, 140, 50, 0.70); }
.streak-lvl-fire    { --streak-glow: rgba(255, 96, 32, 0.82); }
.streak-lvl-blue    { --streak-glow: rgba(84, 176, 255, 0.82); }
.streak-lvl-gold    { --streak-glow: rgba(255, 208, 80, 0.90); }
.streak-lvl-eternal { --streak-glow: rgba(255, 244, 190, 0.95); }

.streak-card.is-out { opacity: 0.72; border-color: rgba(255, 255, 255, 0.10); }
.streak-card.is-out .streak-flame-svg {
  filter: grayscale(1) brightness(0.68);
  opacity: 0.65;
}
.streak-card.is-out .streak-card-count { color: var(--txt-secondary, rgba(255, 255, 255, 0.62)); text-shadow: none; }

.streak-card-loading { opacity: 0.7; }
.streak-card-loading .streak-flame-svg { animation: none; }

/* Светлая тема — карточка не должна выглядеть провалом */
body.theme-light .streak-card {
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(178, 59, 255, 0.08));
  border-color: rgba(207, 112, 40, 0.28);
  box-shadow: 0 8px 24px rgba(35, 28, 58, 0.12);
}

/* ─── Анимация пламени ───────────────────────────────────────── */
.streak-flame-outer,
.streak-flame-mid,
.streak-flame-core {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.streak-flame-outer { animation: streak-flicker 1.85s ease-in-out infinite; }
.streak-flame-mid   { animation: streak-flicker 1.35s ease-in-out -0.35s infinite reverse; }
.streak-flame-core  { animation: streak-flicker 0.95s ease-in-out -0.15s infinite; }
.streak-flame-shadow { animation: streak-shadow 2.4s ease-in-out infinite; }

.streak-card.is-out .streak-flame-outer,
.streak-card.is-out .streak-flame-mid,
.streak-card.is-out .streak-flame-core,
.streak-card.is-out .streak-flame-shadow { animation: none; }

@keyframes streak-flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  22%      { transform: scale(1.035, 0.985) rotate(-1.1deg); }
  46%      { transform: scale(0.985, 1.025) rotate(0.8deg); }
  70%      { transform: scale(1.02, 0.99) rotate(-0.5deg); }
}
@keyframes streak-shadow {
  0%, 100% { opacity: 0.22; transform: scaleX(1); }
  50%      { opacity: 0.34; transform: scaleX(1.12); }
}

/* ═══════════════════════════════════════════════════════════════
   Полноэкранная сцена
═══════════════════════════════════════════════════════════════ */
body.streak-lock-scroll { overflow: hidden !important; }

.streak-overlay {
  position: fixed;
  inset: 0;
  /* Выше popups.css (.popup-overlay — 99990): промо-окно открывается через
     секунду после загрузки и иначе накрывает сцену огонька своим тёмным
     размытым фоном — выглядело как «появилось и стало чёрным». */
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  overflow: hidden auto;
  opacity: 0;
  animation: streak-overlay-in 0.55s ease forwards;
  -webkit-tap-highlight-color: transparent;
}
.streak-overlay-out { animation: streak-overlay-out 0.42s ease forwards; }

@keyframes streak-overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes streak-overlay-out { from { opacity: 1; } to { opacity: 0; } }

/* ─── Ночное небо ────────────────────────────────────────────── */
.streak-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 70% 0%, rgba(73, 54, 138, 0.42), transparent 65%),
    radial-gradient(70% 60% at 15% 85%, rgba(142, 48, 88, 0.22), transparent 70%),
    linear-gradient(180deg, #05070f 0%, #090c1c 38%, #120d2b 68%, #170d1c 100%);
}

.streak-stars { position: absolute; inset: 0; }
.streak-stars i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #fff;
  animation: streak-twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}
@keyframes streak-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

.streak-moon {
  position: absolute;
  top: 9%;
  right: 9%;
  width: clamp(78px, 10vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffdf0 0%, #fff2c2 42%, #f2ce82 68%, #b98a3a 100%);
  box-shadow: 0 0 50px rgba(255, 228, 154, 0.55), 0 0 140px rgba(255, 210, 120, 0.22);
  opacity: 0.92;
}
.streak-moon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 38%, rgba(150, 110, 52, 0.16) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 26%, rgba(150, 110, 52, 0.13) 0 6%, transparent 7%),
    radial-gradient(circle at 58% 66%, rgba(150, 110, 52, 0.15) 0 11%, transparent 12%),
    radial-gradient(circle at 26% 72%, rgba(150, 110, 52, 0.12) 0 5%, transparent 6%);
}

.streak-aurora {
  position: absolute;
  top: -18%;
  left: -10%;
  width: 70%;
  height: 55%;
  filter: blur(48px);
  opacity: 0.32;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 128, 64, 0.42), transparent 62%),
    radial-gradient(ellipse at 70% 40%, rgba(150, 80, 255, 0.38), transparent 65%);
  animation: streak-aurora 14s ease-in-out infinite alternate;
}
@keyframes streak-aurora {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to   { transform: translate3d(8%, 6%, 0) scale(1.12); }
}

.streak-hill {
  position: absolute;
  left: -12%;
  width: 124%;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
.streak-hill-back {
  bottom: -12%;
  height: 34%;
  background: linear-gradient(180deg, #0d1024, #080a16);
  opacity: 0.9;
}
.streak-hill-front {
  bottom: -18%;
  height: 28%;
  background: linear-gradient(180deg, #090b18, #05060d);
}

/* ─── Сетка сцены ────────────────────────────────────────────── */
.streak-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(8px, 2.6vw, 38px);
  width: min(1000px, 100%);
  min-height: min(86vh, 760px);
}

.streak-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  min-width: 0;
}

.streak-stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(430px, 38vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out;
}

/* 3D-кольца вокруг огонька */
.streak-ring {
  position: absolute;
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}
.streak-ring-a {
  inset: 11%;
  border: 1px solid rgba(255, 168, 92, 0.25);
  box-shadow: 0 0 30px rgba(255, 130, 40, 0.18), inset 0 0 30px rgba(255, 130, 40, 0.08);
  animation: streak-ring-a 17s linear infinite;
}
.streak-ring-b {
  inset: 2%;
  border: 1px solid rgba(178, 120, 255, 0.22);
  box-shadow: 0 0 34px rgba(140, 80, 255, 0.16);
  animation: streak-ring-b 24s linear infinite reverse;
}
.streak-ring-c {
  inset: -7%;
  border: 1px dashed rgba(255, 210, 140, 0.18);
  animation: streak-ring-c 31s linear infinite;
}
@keyframes streak-ring-a {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to   { transform: rotateX(72deg) rotateZ(360deg); }
}
@keyframes streak-ring-b {
  from { transform: rotateX(68deg) rotateY(14deg) rotateZ(0deg); }
  to   { transform: rotateX(68deg) rotateY(14deg) rotateZ(360deg); }
}
@keyframes streak-ring-c {
  from { transform: rotateX(78deg) rotateY(-12deg) rotateZ(360deg); }
  to   { transform: rotateX(78deg) rotateY(-12deg) rotateZ(0deg); }
}

.streak-flame-wrap {
  position: relative;
  width: min(230px, 21vw);
  transform: translateZ(70px) scale(0.42);
  opacity: 0;
  transition: opacity 0.7s ease, transform 1.15s cubic-bezier(0.2, 1.35, 0.3, 1);
  will-change: transform, opacity;
}
.streak-flame-wrap.is-lit { opacity: 1; transform: translateZ(70px) scale(1); }
.streak-flame-wrap .streak-flame-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 128, 32, 0.55)) drop-shadow(0 18px 70px rgba(255, 100, 20, 0.35));
}
.streak-flame-halo {
  position: absolute;
  inset: -30% -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 142, 48, 0.40), rgba(255, 80, 20, 0.12) 46%, transparent 70%);
  filter: blur(24px);
  animation: streak-halo 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes streak-halo {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.streak-stage-floor {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 52%;
  height: 9%;
  transform: translateX(-50%) translateZ(10px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 150, 60, 0.35), transparent 70%);
  filter: blur(8px);
  animation: streak-shadow 2.4s ease-in-out infinite;
}

.streak-ember-field {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.streak-ember-field i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--es, 3px);
  height: var(--es, 3px);
  margin: calc(var(--es, 3px) / -2) 0 0 calc(var(--es, 3px) / -2);
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 8px #ff9d3d, 0 0 18px rgba(255, 140, 40, 0.6);
  transform: translate3d(var(--ex, 0), var(--ey, 0), var(--ez, 0));
  animation: streak-ember var(--ed, 4s) ease-in-out infinite alternate;
  animation-delay: var(--edl, 0s);
  opacity: 0.4;
}
@keyframes streak-ember {
  from { transform: translate3d(var(--ex, 0), var(--ey, 0), var(--ez, 0)) scale(0.55); opacity: 0.18; }
  to   { transform: translate3d(var(--ex, 0), calc(var(--ey, 0px) - 52px), calc(var(--ez, 0px) + 30px)) scale(1); opacity: 0.9; }
}

.streak-visual-caption {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 205, 160, 0.62);
  text-transform: uppercase;
}
.streak-visual-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff9d3d;
  box-shadow: 0 0 12px #ff8a3d;
  animation: streak-dot 1.8s ease-in-out infinite;
}
@keyframes streak-dot { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }

/* ─── Панель с цифрой ────────────────────────────────────────── */
.streak-panel {
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 30px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 130, 50, 0.10), transparent 55%),
    linear-gradient(160deg, rgba(24, 25, 46, 0.86), rgba(10, 12, 26, 0.92));
  border: 1px solid rgba(255, 190, 130, 0.16);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  transform: translate3d(calc(var(--px, 0) * -5px), calc(var(--py, 0) * -4px), 0);
  transition: transform 0.25s ease-out;
}

.streak-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.streak-overlay-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: rotate(90deg); }

.streak-kicker {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  color: #ffae63;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.streak-count-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 4px;
}
.streak-count {
  font-size: clamp(5.2rem, 10vw, 8.4rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
  background: linear-gradient(180deg, #fffdf6 0%, #ffd08a 42%, #ff8a3d 82%, #ff5d1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 132, 42, 0.38));
  font-variant-numeric: tabular-nums;
}
.streak-count.is-final { animation: streak-count-pop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes streak-count-pop {
  0%   { transform: scale(0.92); }
  55%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.streak-day-label {
  padding-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.25;
}

.streak-title {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff8ef;
  letter-spacing: -0.02em;
}
.streak-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

/* Прогресс до следующего уровня */
.streak-progress { margin-bottom: 20px; }
.streak-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.52);
}
.streak-progress-head span:first-child { color: #ffb15c; }
.streak-progress-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.streak-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5d1f, #ffa53d 55%, #ffe082);
  box-shadow: 0 0 16px rgba(255, 130, 40, 0.65);
  transition: width 1.1s cubic-bezier(0.2, 1, 0.3, 1);
}
.streak-progress-note {
  margin-top: 7px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
}

.streak-continue {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff5d1f 52%, #b23bff 120%);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(255, 100, 30, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.streak-continue:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 18px 42px rgba(255, 100, 30, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.streak-continue:active { transform: translateY(1px) scale(0.99); }
.streak-overlay .streak-continue:focus-visible { outline: 2px solid #ffd166; outline-offset: 3px; }

.streak-note {
  margin-top: 12px;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.36);
}

/* ─── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 850px) {
  .streak-overlay { align-items: flex-start; padding: 12px; }
  .streak-shell {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: calc(100% - 0px);
    width: min(560px, 100%);
    margin: auto;
  }
  .streak-visual { min-height: 33vh; padding-top: 8px; }
  .streak-stage { width: min(300px, 64vw); }
  .streak-flame-wrap { width: min(170px, 40vw); }
  .streak-panel { padding: 22px 20px 20px; border-radius: 24px; }
  .streak-count { font-size: clamp(4rem, 18vw, 6rem); }
  .streak-title { font-size: 1.35rem; }
  .streak-desc { font-size: 0.84rem; margin-bottom: 14px; }
  .streak-progress { margin-bottom: 16px; }
  .streak-visual-caption { margin-top: 0; font-size: 0.58rem; }
}

@media (max-width: 480px) {
  .streak-overlay { padding: 8px; }
  .streak-visual { min-height: 28vh; }
  .streak-stage { width: min(240px, 62vw); }
  .streak-flame-wrap { width: min(136px, 36vw); }
  .streak-panel { padding: 20px 16px 16px; border-radius: 20px; }
  .streak-count { font-size: clamp(3.6rem, 20vw, 5rem); }
  .streak-day-label { padding-bottom: 0.45rem; font-size: 0.6rem; }
  .streak-title { margin-top: 6px; font-size: 1.2rem; }
  .streak-desc { font-size: 0.8rem; }
  .streak-continue { padding: 13px 16px; }
  .streak-note { font-size: 0.62rem; }
  .streak-overlay-close { top: 10px; right: 10px; width: 30px; height: 30px; }
  .streak-moon { top: 4%; right: 5%; width: 72px; }
}

@media (max-height: 700px) and (min-width: 851px) {
  .streak-shell { min-height: 0; }
  .streak-stage { width: min(360px, 33vw); }
  .streak-flame-wrap { width: min(190px, 17vw); }
  .streak-count { font-size: clamp(4.4rem, 8vw, 6.6rem); }
  .streak-panel { padding: 26px 30px; }
}

/* Невысокие экраны (телефон в альбомной ориентации, маленькое окно):
   сцена и панель ужимаются, чтобы кнопка «Продолжить» была видна сразу. */
@media (max-width: 850px) and (max-height: 720px) {
  .streak-overlay { padding: 8px 12px; }
  .streak-shell { gap: 0; }
  .streak-visual { min-height: 0; padding-top: 0; }
  .streak-stage { width: min(190px, 44vw); }
  .streak-flame-wrap { width: min(112px, 26vw); }
  .streak-visual-caption { display: none; }
  .streak-panel { padding: 16px 18px 14px; }
  .streak-kicker { margin-bottom: 4px; }
  .streak-count { font-size: clamp(3.1rem, 3.8rem, 4.4rem); }
  .streak-day-label { padding-bottom: 0.4rem; }
  .streak-title { margin: 5px 0 6px; }
  .streak-desc { margin-bottom: 10px; }
  .streak-progress { margin-bottom: 12px; }
  .streak-note { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .streak-overlay,
  .streak-overlay-out { animation-duration: 0.01ms !important; }
  .streak-stars i,
  .streak-aurora,
  .streak-flame-outer,
  .streak-flame-mid,
  .streak-flame-core,
  .streak-flame-shadow,
  .streak-flame-halo,
  .streak-stage-floor,
  .streak-ember-field i,
  .streak-visual-dot,
  .streak-ring,
  .streak-count.is-final { animation: none !important; }
  .streak-flame-wrap { transition-duration: 0.01ms !important; }
  .streak-stage,
  .streak-panel { transition: none !important; }
}
