/* f-fund.css — «Копилка мечты»: слой экрана поверх brand.css (DESIGN-3.md). Только var(),
   только transform/opacity в движении. Материалы: .card (карточка копилки), .hero-card.aurora
   (герой детали — один на экран), .btn-primary («Пополнить» — одно главное действие). */

/* FAB «+»: screens-home/screens-play ставят .fab { display:flex } и перебивают UA-правило
   [hidden] — без этого «+» висел и в пустом состоянии (дубль кнопки в орбе), и поверх карточки */
.fab.fund-fab[hidden] { display: none; }

/* ---- список: карточка копилки ---- */
.fund-list { display: flex; flex-direction: column; gap: 12px; }
.fund-card { padding: 14px 16px; cursor: pointer; transition: transform var(--t-fast) var(--ease-out); }
.fund-card:active { transform: scale(.985); }
.fund-row { display: flex; align-items: center; gap: 14px; }
.fund-main { flex: 1; min-width: 0; }
.fund-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fund-sum { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; min-width: 0; }
.fund-sum .display { font-size: 24px; line-height: 1.1; white-space: nowrap; }
.fund-sum .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fund-card .chev { color: var(--muted); flex: none; }

/* кольцо с эмодзи мечты внутри: размер задаёт --sz, эмодзи масштабируется вместе с ним */
.fund-ring { position: relative; flex: none; }
.fund-ring .ring { width: var(--sz, 64px); height: var(--sz, 64px); }
.fund-ring .fund-emoji { position: absolute; font-size: calc(var(--sz, 64px) * .36); line-height: 1; }

/* полоса «кто сколько»: индиго — он, роза — она; ширина считается один раз при отрисовке */
.fund-split { display: flex; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.fund-split i { display: block; height: 100%; }
.fund-split .him { background: var(--him); }
.fund-split .her { background: var(--her); }

/* вехи-точки 25/50/75/100 */
.fund-dots { display: flex; gap: 7px; margin-top: 8px; align-items: center; }
.fund-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.fund-dots i.on { background: var(--us); border-color: transparent; box-shadow: 0 0 0 2px var(--violet-soft); }
.fund-dots i.on.gold { background: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }

/* «Исполнено»: золотая кромка сургуча (--gold), а не ещё одна аврора */
.fund-card.done { border-color: color-mix(in oklab, var(--gold) 55%, transparent);
  box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in oklab, var(--gold) 30%, transparent), var(--shadow-inset); }
.fund-card.done .fund-dots i.on { background: var(--gold); box-shadow: none; }
.fund-done-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 13px; }

/* прогноз: дедлайн / в неделю / при таком темпе */
.fund-eta { margin-top: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.fund-eta span { display: flex; align-items: center; gap: 6px; }
.fund-eta .ic { opacity: .8; }

/* ---- деталь ---- */
.fund-topbar { display: flex; align-items: center; gap: 10px; }
.fund-topbar h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin: 0;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fund-hero { padding: 20px 18px 18px; }
.fund-hero-top { display: flex; align-items: center; gap: 16px; }
.fund-hero-nums { min-width: 0; }
.fund-hero .display { font-size: 34px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* на тёмном стекле героя дорожка кольца и подложки полос — белым с прозрачностью (как рамка .hero-card в brand.css) */
.fund-hero .ring .track { stroke: rgba(255, 255, 255, .16); }
.fund-hero .fund-split { background: rgba(255, 255, 255, .14); margin-top: 14px; }
.fund-hero .fund-dots i { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .18); }
.fund-hero .fund-dots i.on { background: var(--us); border-color: transparent; box-shadow: none; }
.fund-hero .fund-dots i.on.gold { background: var(--gold); }
.fund-who { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; }
.fund-who span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fund-hero .btn-primary { margin-top: 16px; }
.fund-hero .fund-done-badge { background: rgba(255, 255, 255, .14); color: var(--gold); }

/* лента взносов */
.fund-feed { display: flex; flex-direction: column; gap: 8px; }
.fund-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.fi-main { flex: 1; min-width: 0; }
.fi-sum { font-weight: 700; font-size: 15px; }
.fi-note { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-right { display: flex; align-items: center; gap: 4px; flex: none; }
.fi-right time { font-size: 12px; }
.fi-del { background: transparent; color: var(--muted); }
.fund-manage { display: flex; gap: 8px; }
.fund-manage .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---- шторки: пополнить / создать ---- */
.fund-amt { width: 100%; font-size: 26px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.fund-sheet .seg { display: flex; margin: 12px 0; }
.fund-sheet .seg button { flex: 1; }
.fund-new-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.fund-emoji-btn { font-size: 24px; flex: none; }
.fund-empty-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
