:root {
  --bg: #0e1116;
  --panel: #171c24;
  --panel-2: #1f2630;
  --line: #2a3340;
  --text: #e8edf3;
  --muted: #8a96a6;
  --hit: #3ddc84;
  --hit-ink: #06281a;
  --flop: #ff5a5f;
  --flop-ink: #330708;
  --accent: #66c0f4;
  --radius: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.2,1.6,.4,1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #1b2633 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top, 0) 16px env(safe-area-inset-bottom, 0);
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
/* Экраны со свайпом — ровно в высоту экрана, без прокрутки (100dvh учитывает панели мобильного браузера).
   «Чуйка» прокручивается как обычная страница. */
body.deck-mode { height: 100vh; height: 100dvh; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }

.top { width: 100%; max-width: 460px; margin: 0 auto; padding-top: 14px; flex: none; }
h1 {
  margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; font-weight: 800;
  display: flex; align-items: baseline; gap: 8px;
}
h1 .or { font-size: 13px; font-weight: 600; color: var(--muted); }
.top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; margin-top: 2px; }
.lang button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 4px 8px; transition: background 0.2s, color 0.2s; }
.lang button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
.tabs { position: relative; display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
/* подложка выбранной вкладки: одна на всех, переезжает (координаты ставит app.js) */
.tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--pill-w, 0);
  transform: translateX(var(--pill-x, 0)); background: var(--panel-2); border-radius: 9px;
}
.tabs.ready::before { transition: transform 0.32s var(--ease), width 0.32s var(--ease); }
.tabs button {
  position: relative; flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: color 0.2s;
}
@media (max-width: 400px) {
  .tabs button { font-size: 12.5px; padding: 8px 2px; }
  .tabs { gap: 2px; }
}
.tabs button[aria-selected="true"] { color: var(--text); }
.count { display: inline-block; font-size: 11px; color: var(--muted); font-weight: 500; }

main { width: 100%; max-width: 460px; margin: 0 auto; padding: 12px 0 32px; }
body.deck-mode main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 10px; }
.deck-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.mode-hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; flex: none; }

/* ---------- стопка карточек ---------- */
/* карточка забирает всё место между подсказкой и кнопками */
.stack { position: relative; flex: 1 1 auto; min-height: 0; max-height: 640px; }
.card {
  position: absolute; inset: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.3s var(--ease), opacity 0.3s, border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}
/* за пальцем — без задержки, но рамка ставки ×2 при «с размаху» всё равно разгорается плавно */
.card.dragging { transition: border-color 0.2s, box-shadow 0.2s; cursor: grabbing; }
.card:not(.top-card) { pointer-events: none; }
.card[data-depth="1"] { transform: translateY(10px) scale(0.96); opacity: 0.7; }
.card[data-depth="2"] { transform: translateY(20px) scale(0.92); opacity: 0.35; }
/* откуда выходит новая карточка: снизу из глубины стопки, а вернувшаяся отменой — сверху */
.card.entering { transform: translateY(30px) scale(0.88); opacity: 0; }
.card.entering.top-card { transform: translateY(-24px) scale(1.04); }
.card.leaving { pointer-events: none; }

.media {
  position: relative; aspect-ratio: 460 / 215; max-height: 240px; background: #0a0d12; flex: none; cursor: pointer;
  transition: max-height 0.28s cubic-bezier(.2,.8,.2,1);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.dots { position: absolute; left: 0; right: 0; top: 8px; display: flex; gap: 4px; padding: 0 10px; }
.dots i { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.28); transition: background 0.2s; }
.dots i.on { background: #fff; }

.stamp {
  position: absolute; top: 26px; padding: 4px 14px; border: 4px solid; border-radius: 10px;
  font-weight: 900; font-size: 34px; letter-spacing: 0.04em; opacity: 0; z-index: 3; pointer-events: none;
  background: rgb(0 0 0 / 0.35);
}
/* пока тянут — штамп следует за пальцем, отпустили — гаснет плавно */
.card:not(.dragging) .stamp { transition: opacity 0.2s; }
.stamp.hit { left: 18px; color: var(--hit); border-color: var(--hit); transform: rotate(-14deg); }
.stamp.flop { right: 18px; color: var(--flop); border-color: var(--flop); transform: rotate(14deg); }
/* ставка ×2: взведена кнопкой или карточку дотянули «с размаху» */
.stamp .x2 { display: none; margin-left: 8px; color: #ffd166; }
.card.sure .stamp .x2, .card.hard .stamp .x2 { display: inline; }
.card.sure, .card.hard { border-color: #ffd166; box-shadow: 0 18px 40px rgb(0 0 0 / 0.45), 0 0 0 2px rgb(255 209 102 / 0.35); }

.body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; overflow: hidden; }
.body > * { flex: none; }
.name { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { background: var(--panel-2); border-radius: 8px; padding: 4px 8px; font-size: 13px; font-weight: 600; }
.fact.hype { color: #ffd166; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; max-height: 46px; overflow: hidden; transition: max-height 0.28s var(--ease); } /* не больше двух рядов */
.tag { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
/* описание занимает, сколько осталось, и плавно гаснет внизу — вместо прокрутки */
.body > .desc {
  flex: 1 1 auto; min-height: 0; overflow: hidden; color: #c3cbd6; font-size: 14px; margin: 0;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
}
.foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.steam-link { font-size: 13px; text-decoration: none; }
.more { display: none; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.more::after { content: attr(data-more) " ▾"; }
.card.overflows .body { cursor: pointer; }
.card.overflows .more, .card.expanded .more { display: inline; }

/* раскрытая карточка: картинка — полоской, текст целиком и прокручивается по вертикали */
.card.expanded .media { max-height: 76px; }
.card.expanded .body { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: thin; }
.card.expanded .tags { max-height: 40em; } /* не none: к «none» переход не едет */
.card.expanded .body > .desc { flex: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.card.expanded .more::after { content: attr(data-less) " ▴"; }

/* ---------- кнопки ---------- */
.controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 14px; flex: none; animation: fade-up 0.3s var(--ease); }
.ctl {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel);
  font-size: 28px; font-weight: 800; display: grid; place-items: center;
  transition: transform 0.12s, background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.ctl:active { transform: scale(0.92); }
.ctl.small { width: 46px; height: 46px; font-size: 20px; color: var(--muted); }
.ctl.flop { color: var(--flop); border-color: color-mix(in srgb, var(--flop) 50%, transparent); }
.ctl.hit { color: var(--hit); border-color: color-mix(in srgb, var(--hit) 50%, transparent); }
.ctl:disabled { opacity: 0.3; cursor: default; }
.ctl.sure { font-size: 15px; font-weight: 900; }
.ctl.sure[aria-pressed="true"] { color: #1a1300; background: #ffd166; border-color: #ffd166; }
body[data-view="daily"] .session { font-size: 20px; letter-spacing: 3px; }
.session { text-align: center; color: var(--muted); font-size: 13px; min-height: 1.4em; margin: 8px 0 0; flex: none; }

.empty {
  flex: 1 1 auto; min-height: 0; max-height: 640px; overflow: auto; border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-content: center; text-align: center; padding: 24px; color: var(--muted); gap: 10px;
  animation: fade-up 0.35s var(--ease);
}
.empty strong { color: var(--text); font-size: 17px; }
.empty .progress { font-size: 13px; }
.spinner { width: 28px; height: 28px; margin: 0 auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn { border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 8px 14px; font-weight: 600; }

/* ---------- раскрытие в тренировке ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: end center;
  background: rgb(5 8 12 / 0.6); backdrop-filter: blur(4px); padding: 16px;
  animation: fade-in 0.2s;
}
.reveal.closing { animation: fade-out 0.2s forwards; pointer-events: none; }
.reveal.closing .sheet { animation: down 0.2s var(--ease) forwards; }
.sheet {
  width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px 20px 18px; animation: up 0.25s cubic-bezier(.2,.8,.2,1);
  margin-bottom: env(safe-area-inset-bottom, 0);
  /* с графиком окно выше: на маленьком экране прокручивается, а не уезжает за край */
  max-height: calc(100dvh - 32px); overflow-y: auto;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes down { to { transform: translateY(40px); opacity: 0; } }
/* цвет окна — угадал или нет; цвет вердикта игры остаётся только на плашке «хит/провал» */
.sheet.yes { --tone: var(--hit); --tone-ink: var(--hit-ink); }
.sheet.no { --tone: var(--flop); --tone-ink: var(--flop-ink); }
.sheet.yes, .sheet.no {
  border-color: color-mix(in srgb, var(--tone) 40%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 13%, var(--panel)), var(--panel) 150px);
}
.sheet .result { font-size: 30px; font-weight: 900; margin: 0; display: flex; align-items: center; gap: 12px; color: var(--tone); }
.sheet .mark {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--tone); color: var(--tone-ink); font-size: 21px; font-weight: 900;
}
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pts { font-weight: 800; font-size: 15px; white-space: nowrap; }
.pts.yes { color: var(--hit); }
.pts.no { color: var(--flop); }
.quip { font-size: 17px; font-weight: 700; line-height: 1.3; margin: -4px 0 12px; }
.sheet .game { color: var(--muted); margin: 2px 0 14px; }
.verdict-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.verdict-pill.hit { background: var(--hit); color: var(--hit-ink); }
.verdict-pill.flop { background: var(--flop); color: var(--flop-ink); }
.chart-box { margin: 4px 0 12px; }
.verdict-chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.verdict-chart .flop-zone { fill: color-mix(in srgb, var(--flop) 9%, transparent); }
.verdict-chart .grid { stroke: var(--line); stroke-width: 1; }
.verdict-chart .rule { stroke: color-mix(in srgb, var(--muted) 55%, transparent); stroke-width: 1; }
.verdict-chart text { font-size: 10px; fill: var(--muted); }
.verdict-chart .zone { font-weight: 800; letter-spacing: 0.08em; fill: color-mix(in srgb, var(--muted) 70%, transparent); }
.verdict-chart .cloud { fill: var(--muted); opacity: 0.35; }
.verdict-chart .cloud.on { opacity: 1; fill: var(--text); }
.verdict-chart .game { stroke: var(--panel); stroke-width: 2; }
.verdict-chart .game.hit { fill: var(--hit); }
.verdict-chart .game.flop { fill: var(--flop); }
.verdict-chart .game.on { stroke: var(--text); }
.verdict-chart .game-label { font-size: 11px; font-weight: 700; fill: var(--text); }
.chart-caption { margin: 4px 0 0; font-size: 12px; color: var(--muted); min-height: 1.45em; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.num { background: var(--panel-2); border-radius: 12px; padding: 10px; }
.num b { display: block; font-size: 19px; }
.num span { font-size: 11.5px; color: var(--muted); }
.reason { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
/* серии и звания — бейджем в цвет окна: это награда за угаданное, а не предупреждение */
.streak-line {
  display: inline-block; margin: -2px 6px 12px 0; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 15%, transparent);
}
.streak-line.record { animation: pop 0.5s cubic-bezier(.2,1.6,.4,1); }
.streak-line.broken { color: var(--muted); background: var(--panel-2); font-weight: 600; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.crowd { margin: 0 0 12px; }
.crowd-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--panel-2); }
.crowd-bar .h { background: var(--hit); }
.crowd-bar .f { background: var(--flop); flex: 1; }
.crowd-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.crowd-text { margin: 6px 0 0; font-size: 13.5px; }
.burst { position: fixed; left: 50%; top: 45%; z-index: 30; pointer-events: none; }
.burst span { position: absolute; font-size: 22px; animation: fly 1s ease-out forwards; }
@keyframes fly {
  from { transform: translate(0, 0) scale(0.4); opacity: 1; }
  to { transform: translate(var(--x), var(--y)) scale(1.1); opacity: 0; }
}
.sheet .next { width: 100%; padding: 12px; border-radius: 12px; border: 0; background: var(--text); color: var(--bg); font-weight: 800; font-size: 16px; }

/* ---------- чуйка ---------- */
.stats-view h2 { font-size: 15px; margin: 22px 0 8px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.score-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.score-card .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.score-card .big { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.score-card .big small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.vs { font-size: 13.5px; margin: 4px 0 10px; }
.vs.good { color: var(--hit); }
.vs.bad { color: var(--flop); }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.bar .track { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 4px; }
.bar .fill.base { background: var(--muted); }
.bar b { color: var(--text); text-align: right; }
.list { display: grid; gap: 6px; }
.row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 6px 6px;
}
.row img { width: 76px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }
.row .t { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .mark { font-size: 18px; font-weight: 900; }
.row .mark.yes { color: var(--hit); }
.row .mark.no { color: var(--flop); }
.chip { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.chip.hit { color: var(--hit); border: 1px solid var(--hit); }
.chip.flop { color: var(--flop); border: 1px solid var(--flop); }
.chip.warn { color: #ffd166; border: 1px solid #ffd166; }
.title-badge { font-size: 20px; font-weight: 850; margin-top: 4px; }
.title-next { font-size: 12.5px; margin: 2px 0 10px; }

/* ---------- пятёрка дня: итог ---------- */
.daily-done { display: grid; gap: 8px; justify-items: center; }
.daily-done .label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12.5px; }
.daily-score { font-size: 56px; font-weight: 900; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.daily-score small { font-size: 24px; color: var(--muted); }
.daily-squares { font-size: 30px; letter-spacing: 4px; }
.daily-standing { margin: 4px 0 0; color: #ffd166; font-weight: 800; font-size: 17px; }
.daily-crowd { margin: 4px 0 0; color: var(--text); font-size: 14px; }
.daily-vs { margin: 10px auto 0; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: grid; gap: 4px; width: min(100%, 320px); }
.daily-vs.win { border-color: var(--hit); }
.daily-vs.lose { border-color: var(--flop); }
.vs-result { font-weight: 800; font-size: 16px; margin-bottom: 2px; color: var(--text); }
.daily-vs.win .vs-result { color: var(--hit); }
.vs-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; text-align: left; }
.vs-squares { font-size: 18px; letter-spacing: 2px; }
.daily-days { margin: 4px 0 0; color: #ff9f43; font-weight: 700; font-size: 15px; }
.share-preview {
  margin: 4px 0; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; font-family: inherit; font-size: 13px; line-height: 1.5;
  white-space: pre-wrap; text-align: left; color: var(--text); user-select: text; -webkit-user-select: text; max-width: 100%;
}
.daily-summary { display: grid; gap: 8px; justify-items: center; }
.share-card { width: min(100%, 300px); aspect-ratio: 1; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.daily-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
a.btn { color: var(--text); text-decoration: none; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.small { font-size: 12px; }
.archive { display: grid; gap: 12px; width: min(100%, 420px); }
.archive-list { display: grid; gap: 8px; }
.archive-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); }
.archive-row .t { display: block; font-weight: 700; }
.archive-row .s { display: block; color: var(--muted); font-size: 12.5px; }
.archive-row .mine { color: var(--muted); font-size: 13px; white-space: nowrap; }
.archive-row.done .mine { color: var(--text); font-size: 16px; }
.history-row { cursor: pointer; }
.history-row[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.row-chart { padding: 4px 4px 2px; }
.history-more { margin-top: 10px; text-align: center; }
.restore-card { border-color: var(--accent); }
.restore-card p, .transfer-card p { margin: 6px 0 10px; }
.days-nudge { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #ff9f43; font-weight: 600; }
.transfer-link { display: block; word-break: break-all; font-size: 12px; color: var(--muted); }
.rules { color: var(--muted); font-size: 12.5px; margin-top: 22px; line-height: 1.55; }
.muted { color: var(--muted); }

/* низкие экраны (iPhone SE, телефон с открытыми панелями браузера): всё компактнее, чтобы карточка не сжималась в полоску */
@media (max-height: 720px) {
  .top { padding-top: 8px; }
  h1 { font-size: 19px; margin-bottom: 6px; }
  .tabs button { padding: 6px 2px; }
  main { padding-top: 8px; }
  .mode-hint { font-size: 12px; margin-bottom: 6px; }
  .name { font-size: 18px; }
  .body { padding: 10px 14px 10px; gap: 6px; }
  .ctl { width: 54px; height: 54px; font-size: 24px; }
  .ctl.small { width: 40px; height: 40px; font-size: 18px; }
  .controls { margin-top: 10px; }
  .session { margin-top: 4px; font-size: 12px; }
}

/* ---------- анимации ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes grow-w { from { width: 0; } }
@keyframes card-in { from { opacity: 0; transform: scale(0.9); } }

/* дети появляются лесенкой: --i ставит app.js (stagger) */
.stagger > :not(.spinner) { animation: fade-up 0.35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.sheet > .streak-line.record { animation: pop 0.5s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.sheet .result { animation: pop 0.45s var(--spring) 0.05s backwards; }
.sheet .pts { animation: pop 0.4s var(--spring) 0.18s backwards; }
.crowd-bar .h { animation: grow-w 0.7s var(--ease) 0.2s backwards; }
.bar .fill { animation: grow-w 0.8s var(--ease) 0.15s backwards; }
.row { animation: fade-up 0.35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 30ms + 120ms); }
.daily-done.stagger .daily-squares { animation: pop 0.5s var(--spring) 0.15s backwards; }
.share-card { animation: card-in 0.45s var(--spring); }

/* кто просил в системе меньше движения — всё меняется сразу (крутилка загрузки остаётся) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .spinner { animation-duration: 0.9s !important; }
}
