/* Тикопи — графит + один синий акцент. Радиусы: 28 / 18 / 12. Анимируем только transform и opacity. */
/* Manrope лежит в проекте (не зависит от Google): переменный вес 400–800 */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0c0d0f; --s1: #141619; --s2: #1b1e22; --s3: #24282d; --hair: rgba(255, 255, 255, .06);
  --text: #f1f2f4; --muted: #8d939c; --dim: #5d636c;
  --blue: #3d7bff; --blue-l: #8fb2ff; --blue-t: rgba(61, 123, 255, .13);
  --lk: #23272d; --lk2: #30353c;
  --rl: 28px; --rm: 18px; --rs: 12px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 Manrope, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; background: none; border: 0; outline: 0; min-width: 0; width: 100%; -webkit-user-select: text; user-select: text; }
input::placeholder { color: var(--dim); }
h1 { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 24px; line-height: 1.15; font-weight: 750; letter-spacing: -.025em; }
h3 { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.muted { color: var(--muted); }

/* ---------- экраны и появление ---------- */
#app { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  opacity: 0; transition: opacity .3s var(--ease); }
.screen.in { opacity: 1; }
.screen.out { opacity: 0; transition-duration: .2s; pointer-events: none; }
.rise { opacity: 0; transform: translate3d(0, 18px, 0); }
.screen.in .rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.wrap { min-height: 100%; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; padding: 22px 20px calc(30px + env(safe-area-inset-bottom)); }
.grow { flex: 1 1 auto; min-height: 24px; }
.head { margin: 10px 0 24px; }
.head p { margin-top: 8px; max-width: 320px; }
.boot { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; }

/* ---------- кнопки ---------- */
.btn { display: block; width: 100%; height: 56px; border-radius: var(--rm); font-size: 16px; font-weight: 700;
  background: var(--s2); color: var(--text); transition: background-color .3s var(--ease), color .3s, transform .2s var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.soft { background: var(--blue-t); color: var(--blue-l); height: 48px; font-size: 15px; }
.btn.light { background: #eceef1; color: #0c0d0f; }
.btn:disabled { background: var(--s2); color: var(--dim); cursor: default; }
.btn + .btn { margin-top: 10px; }
.quiet { display: block; margin: 14px auto 0; padding: 12px; color: var(--dim); font-size: 13px; font-weight: 600; }
.link { color: var(--blue-l); font-size: 14px; font-weight: 700; }
.pill { height: 34px; padding: 0 14px; border-radius: var(--rs); background: var(--s2); font-size: 13px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; margin-left: 8px; }
.pill.accent { background: var(--blue-t); color: var(--blue-l); }
.pill.on { background: var(--blue); color: #fff; }

/* ---------- логотип и шапка ---------- */
.wm { display: flex; align-items: center; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.wm .logo { width: 30px; height: 30px; margin-right: 10px; }
.lg-bg { fill: var(--s2); }
.lg-track { fill: none; stroke: var(--s3); stroke-width: 5; }
.lg-arc { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 84 200; animation: arc 1.6s var(--ease) both .2s; }
.lg-t { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.pulse { width: 64px; height: 64px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes arc { from { stroke-dasharray: 0 200; } }
@keyframes pulse { 50% { opacity: .4; } }
.bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bar-r { display: flex; }

/* ---------- приветствие ---------- */
.welcome-art { height: 170px; margin: 34px -14px 26px; display: flex; align-items: center; }
.welcome-art .art { --under: var(--bg); }
.display { font-size: 42px; line-height: 1.02; letter-spacing: -.045em; }
.lead { color: var(--muted); font-size: 16px; margin-top: 14px; max-width: 340px; }
.agree { display: flex; align-items: center; padding: 14px 16px; margin-bottom: 12px; border-radius: var(--rm); background: var(--s1); cursor: pointer; }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw { position: relative; flex: 0 0 48px; height: 28px; border-radius: 14px; background: var(--s3); margin-right: 14px; transition: background-color .3s var(--ease); }
.sw:after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #8d939c; transition: transform .4s var(--ease), background-color .3s; }
.agree input:checked + .sw { background: var(--blue); }
.agree input:checked + .sw:after { transform: translateX(20px); background: #fff; }
.agree-t { font-size: 13px; color: var(--muted); line-height: 1.4; }
.agree-t a { color: var(--text); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 2px; }

/* ---------- карусель категорий ---------- */
.carousel { margin: 0 -20px; overflow: hidden; touch-action: pan-y; padding: 4px 0; }
.track { display: flex; --cw: min(80vw, 380px); padding: 0 calc((100% - var(--cw)) / 2); transition: transform .55s var(--ease); will-change: transform; }
.track.snap, .track.snap .cat { transition: none !important; }
.cat { flex: 0 0 var(--cw); margin-right: 14px; padding: 22px 22px 24px; border-radius: 32px; background: var(--s1);
  transform: scale(.9); opacity: .35; transition: transform .55s var(--ease), opacity .55s var(--ease); }
.cat.active { transform: none; opacity: 1; }
.cat-art { height: 168px; display: flex; align-items: center; justify-content: center; margin: 0 -8px 18px; }
.cat-art .art { --under: var(--s1); }
.cat h2 { font-size: 30px; letter-spacing: -.035em; }
.cat p { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 40px; }
.cat-meta { display: block; margin-top: 14px; color: var(--blue-l); font-size: 13px; font-weight: 700; }
.dots { display: flex; justify-content: center; margin: 20px 0 8px; }
.dots { height: 12px; overflow: hidden; }
.dots-r { display: flex; align-items: center; transition: transform .5s var(--ease); }
.dots i { width: 8px; height: 8px; border-radius: 50%; margin: 0 4px; background: var(--s3); }
.dots i:nth-child(1), .dots i:nth-child(7) { transform: scale(.35); opacity: .5; }
.dots i:nth-child(2), .dots i:nth-child(6) { transform: scale(.55); }
.dots i:nth-child(3), .dots i:nth-child(5) { transform: scale(.8); background: #3a3f46; }
.dots i:nth-child(4) { transform: scale(1.35); background: var(--blue); }
.fan { position: relative; width: 210px; height: 140px; }
.fan .flag { position: absolute; top: 22px; left: 45px; width: 120px; height: 90px; }
.fan .flag:nth-child(1) { transform: translate3d(-42px, 6px, 0) rotate(-12deg); }
.fan .flag:nth-child(3) { transform: translate3d(42px, 6px, 0) rotate(12deg); }

/* ---------- фото и флаги: серые, цвет проявляется ---------- */
.photo, .flag { position: relative; width: 100%; height: 100%; }
.photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.flag { overflow: hidden; border-radius: 10px; background: var(--s3); }
.flag img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-g { filter: grayscale(1) brightness(.45) contrast(1.05); }
.flag .ph-g { filter: grayscale(1) brightness(.5); }
.reveal .ph-c { clip-path: inset(0 calc(100% - var(--p)) 0 0); transition: clip-path 1.4s var(--ease); }
.flag.reveal .ph-c { clip-path: inset(calc(100% - var(--p)) 0 0 0); }
.hero-art.travel, .cfg-art.travel { justify-content: center; }
.hero-art.travel .flag, .cfg-art.travel .flag { width: auto; height: 100%; aspect-ratio: 4 / 3; border-radius: 16px; }

/* ---------- каталог ---------- */
.search { position: relative; margin-bottom: 14px; }
.search input { height: 50px; padding: 0 16px 0 46px; border-radius: var(--rm); background: var(--s1); transition: background-color .25s; }
.search input:focus { background: var(--s2); }
.search:before { content: ""; position: absolute; left: 18px; top: 17px; width: 11px; height: 11px; border: 2px solid var(--dim); border-radius: 50%; }
.search:after { content: ""; position: absolute; left: 30px; top: 30px; width: 6px; height: 2px; background: var(--dim); transform: rotate(45deg); }
.list { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 8px; }
.row { display: flex; align-items: center; width: 100%; text-align: left; padding: 12px 16px 12px 12px; border-radius: var(--rm); background: var(--s1);
  transition: transform .2s var(--ease), background-color .2s; content-visibility: auto; contain-intrinsic-size: 76px; }
.row:active { transform: scale(.98); background: var(--s2); }
.row-art { flex: 0 0 96px; height: 48px; margin-right: 12px; display: flex; align-items: center; justify-content: center; }
.row-art .art { --under: var(--s1); }
.row-art.travel { flex-basis: 52px; height: 39px; }
.row-art.travel .flag { border-radius: 8px; }
.row-t { flex: 1; min-width: 0; }
.row-t b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t span, .row-p small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-p { color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; margin-left: 10px; text-align: right; }
.row-p small { font-weight: 500; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- конструктор образа ---------- */
.b-art { height: 140px; margin: -6px -10px 18px; }
.b-art .art { --under: var(--bg); }
.types { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; margin-bottom: 12px; }
.types button { padding: 8px 4px 10px; border-radius: var(--rs); background: var(--s2); font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2;
  transition: background-color .25s, color .25s, transform .2s var(--ease); }
.types button:active { transform: scale(.95); }
.types button.on { background: var(--blue-t); color: var(--text); }
.ti { display: block; height: 34px; margin-bottom: 6px; }
.b-row { display: grid; grid-template-columns: 1.4fr 1fr; grid-gap: 8px; margin-bottom: 10px; }
.irow { display: flex; align-items: center; padding: 8px 0; }
.irow + .irow { border-top: 1px solid var(--hair); }
.irow .ti { flex: 0 0 30px; height: 30px; margin: 0 12px 0 0; }
.irow b { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irow span { color: var(--muted); font-weight: 600; font-size: 14px; }
.irow button { width: 32px; height: 32px; margin-left: 8px; border-radius: 10px; background: var(--s2); color: var(--muted); font-size: 18px; line-height: 1; }
.total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--hair); font-size: 15px; }
.total b { font-size: 18px; }

/* ---------- поля и нижний лист ---------- */
#veil { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); z-index: 10; }
#sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 92%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  max-width: 560px; margin: 0 auto; padding: 6px 20px calc(24px + env(safe-area-inset-bottom)); background: #15171a; border-radius: 32px 32px 0 0;
  transform: translate3d(0, 105%, 0); transition: transform .5s var(--ease); visibility: hidden; }
.sheet-open #veil { opacity: 1; pointer-events: auto; }
.sheet-open #sheet { transform: none; visibility: visible; }
.grab { height: 24px; margin: 0 -20px 6px; display: flex; justify-content: center; align-items: center; touch-action: none; cursor: grab; }
.grab:after { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--s3); }
#sheet h2 + .muted { margin-top: 4px; }
.cfg-art { height: 140px; margin: 0 -8px 16px; display: flex; align-items: center; }
.cfg-art .art { --under: #15171a; }
.chips { display: flex; overflow-x: auto; margin: 16px -20px 0; padding: 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; height: 40px; padding: 0 16px; margin-right: 8px; border-radius: var(--rs); background: var(--s2); font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.chips button.on { background: var(--blue); color: #fff; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field small { display: block; color: var(--dim); font-size: 12px; margin-top: 6px; }
.money { display: flex; align-items: center; height: 54px; padding: 0 16px; border-radius: var(--rm); background: var(--s2); transition: box-shadow .25s; }
.money:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue); }
.money input { font-size: 18px; font-weight: 700; }
.money i { font-style: normal; color: var(--muted); font-weight: 700; margin-left: 8px; }
#sheet .btn { margin-top: 20px; }
#sheet .btn + .btn { margin-top: 10px; }
.amount { display: flex; align-items: baseline; justify-content: center; margin: 28px 0 20px; }
.amount input { font-size: 48px; font-weight: 800; text-align: center; max-width: 85%; letter-spacing: -.03em; transition: width .15s; }
.amount input.bump { animation: bump .3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }
.amount input::placeholder { color: var(--s3); }
.amount i { font-style: normal; font-size: 30px; font-weight: 800; color: var(--dim); margin-left: 6px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; }
.quick button { height: 44px; border-radius: var(--rs); background: var(--s2); font-weight: 700; font-size: 13px; transition: transform .2s var(--ease), background-color .2s; }
.quick button:active { transform: scale(.93); background: var(--s3); }
.terms { -webkit-user-select: text; user-select: text; }
.terms h4 { font-size: 14px; margin: 18px 0 6px; }
.terms p, .terms li { color: #b4b9c1; font-size: 13.5px; line-height: 1.55; }
.terms ul { padding-left: 18px; }

/* ---------- главный экран ---------- */
.goals { display: flex; overflow-x: auto; margin: 0 -20px 18px; padding: 0 20px; scrollbar-width: none; }
.goals::-webkit-scrollbar { display: none; }
.gchip { flex: 0 0 auto; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 38px; padding: 0 16px; margin-right: 8px;
  border-radius: var(--rs); background: var(--s1); color: var(--muted); font-weight: 600; font-size: 13.5px; transition: background-color .25s, color .25s; }
.gchip.on { background: #eceef1; color: #0c0d0f; }
.gchip.add { color: var(--blue-l); background: var(--blue-t); }
.hero { padding: 6px 0 22px; }
.hero-art { height: 180px; display: flex; align-items: center; margin: 0 -12px 14px; }
.hero-art .art { --under: var(--bg); }
.hero-cap { color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-t { margin-top: 2px; }
.sum { display: flex; align-items: baseline; flex-wrap: wrap; margin-top: 16px; }
.sum b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin-right: 10px; }
.sum span { color: var(--muted); font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; margin-top: 16px; }
.progress i { display: block; height: 100%; background: var(--blue); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.3s var(--ease); }
.sum-row { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sum-row b { color: var(--text); }
.insight { margin-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.insight b { color: var(--text); font-weight: 700; }
.actions { display: grid; grid-template-columns: 1.5fr 1fr; grid-gap: 10px; margin-bottom: 14px; }
.actions .btn + .btn { margin-top: 0; }
.card { background: var(--s1); border-radius: var(--rl); padding: 20px; margin-bottom: 12px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; }
.card .btn.soft { margin-top: 14px; }
.part { display: flex; align-items: center; padding: 10px 0; }
.part + .part { border-top: 1px solid var(--hair); }
.pi { flex: 0 0 28px; height: 28px; border-radius: 9px; background: var(--s2); margin-right: 12px; display: flex; align-items: center; justify-content: center;
  transition: background-color .4s, transform .4s var(--ease); }
.pi svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; animation: tick .5s var(--ease) both .3s; }
@keyframes tick { from { stroke-dashoffset: 20; } }
.part.on .pi { background: var(--blue); }
.part.nx .pi { box-shadow: inset 0 0 0 1.5px var(--blue); }
.pt-t { flex: 1; min-width: 0; }
.pt-t b { font-weight: 600; font-size: 14.5px; }
.pt-t span { display: block; font-size: 12.5px; color: var(--muted); }
.part.on .pt-t span { color: var(--blue-l); }
.pbar { height: 3px; border-radius: 2px; background: var(--s2); margin-top: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transition: transform .9s var(--ease); }
.pp { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-left: 10px; white-space: nowrap; }
.part.on .pp { color: var(--text); }
.tx { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; }
.tx + .tx { border-top: 1px solid var(--hair); }
.tx span { color: var(--muted); font-size: 13px; }
.tx b.p { color: var(--blue-l); }
.fc { display: flex; justify-content: space-between; margin-bottom: 14px; }
.fc div + div { text-align: right; }
.fc b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.fc span { font-size: 12px; color: var(--muted); font-weight: 600; }
.chart { width: 100%; height: 90px; display: block; }
.chart .ln { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: draw 1.4s var(--ease) both .3s; }
.chart .ar { fill: var(--blue); opacity: .12; }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* ---------- paywall ---------- */
.pw { padding-top: 4px; }
.pw-k { color: var(--blue-l); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.pw-list { list-style: none; margin: 20px 0; }
.pw-list li { padding: 12px 0 12px 30px; position: relative; font-weight: 600; font-size: 15px; }
.pw-list li + li { border-top: 1px solid var(--hair); }
.pw-list li:before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 5px; margin-top: -5px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.pw-price b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.pw-price span { color: var(--muted); font-weight: 600; margin-left: 6px; }
.fine { color: var(--dim); font-size: 12px; margin-top: 12px; line-height: 1.5; }

/* ---------- админка ---------- */
.kpi { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; margin-bottom: 12px; }
.kpi-i { padding: 16px; border-radius: var(--rm); background: var(--s1); }
.kpi-i.wide { grid-column: 1 / -1; }
.kpi-i b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.kpi-i span { font-size: 12px; color: var(--muted); font-weight: 600; }
.hbar { display: flex; align-items: center; padding: 6px 0; font-size: 14px; }
.hbar span { flex: 0 0 110px; color: var(--muted); font-weight: 600; }
.hb { flex: 1; height: 8px; border-radius: 4px; background: var(--s2); overflow: hidden; margin: 0 10px; }
.hb i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.urow { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 12px 0; }
.urow + .urow { border-top: 1px solid var(--hair); }
.urow b { display: block; font-weight: 700; font-size: 14.5px; }
.urow em { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--blue); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
.urow span { font-size: 12.5px; color: var(--muted); }
.ur { text-align: right; }
.kv { display: grid; grid-template-columns: auto 1fr; grid-gap: 10px 16px; margin-top: 18px; font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; }

/* ---------- празднование и тост ---------- */
#cele { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 7, 9, .82);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); overflow: hidden; }
#cele.show { opacity: 1; pointer-events: auto; }
.cele-card { position: relative; z-index: 1; width: 100%; max-width: 360px; text-align: center; padding: 32px 22px 22px; border-radius: 32px; background: var(--s1);
  transform: scale(.88) translate3d(0, 24px, 0); transition: transform .6s var(--ease); }
#cele.show .cele-card { transform: none; }
.cele-sum { font-size: 44px; font-weight: 800; letter-spacing: -.04em; }
.cele-q { font-size: 17px; font-weight: 600; color: var(--muted); margin: 8px 0 20px; line-height: 1.4; }
.cele-open { padding: 14px; border-radius: var(--rm); background: var(--blue-t); margin-bottom: 4px; }
.cele-open span { display: block; font-size: 12px; font-weight: 700; color: var(--blue-l); margin-bottom: 4px; }
.cele-open b { display: inline-block; margin: 2px 6px; font-size: 16px; }
.cele-card .btn { margin-top: 16px; }
.cf { position: absolute; top: 45%; left: 50%; font-size: 24px; font-style: normal; line-height: 1; opacity: 0; animation: cf 1.5s var(--ease) forwards; }
@keyframes cf { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); } }
#toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 30; max-width: 90%; padding: 13px 18px; border-radius: 16px; background: #eceef1; color: #0c0d0f;
  font-weight: 600; font-size: 14px; text-align: center; transform: translate3d(-50%, 24px, 0); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s; }
#toast.show { transform: translate3d(-50%, 0, 0); opacity: 1; }

/* ---------- векторные иллюстрации ---------- */
.art { width: 100%; height: 100%; display: block; overflow: visible; }
.art .sh { fill: #000; opacity: .45; }
.art .cut { fill: var(--under, var(--s1)); }
.art .gl { fill: none; stroke: var(--s3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pt { fill: var(--lk); stroke: var(--lk2); stroke-width: 1; transition: fill .9s var(--ease), stroke .9s var(--ease); }
.pt * { transition: fill .9s var(--ease), stroke .9s var(--ease); }
.pt.nx { stroke: var(--blue); animation: nx 1.8s ease-in-out infinite; }
@keyframes nx { 50% { stroke-opacity: .2; } }
.dl, .sp, .dt { fill: none; stroke: #2b3036; stroke-width: 1.2; }
.arc { fill: none; }
/* машина */
.car .k-interior { fill: #2a2e35; }
.car .k-glass { fill-opacity: .8; }
.car .k-engine { fill: none; stroke-width: 1.4; }
.car .k-tires { fill: #1d2025; }
.car .on.k-body { fill: url(#gBody); stroke: #5f8dff; stroke-width: .6; }
.car .on.k-body .dl { stroke: rgba(5, 12, 35, .45); }
.car .on.k-body .hd { fill: #b9ccf5; }
.car .on.k-glass { fill: url(#gGlass); stroke: #9db9ef; }
.car .on.k-interior { fill: #9a7457; stroke: #6e523e; }
.car .on.k-lights { fill: #f3f7ff; stroke: #8fb3ff; stroke-width: 2; }
.car .on.k-engine { stroke: rgba(160, 192, 255, .55); }
.car .on.k-tires { fill: #0b0c0e; stroke: #4a505a; stroke-width: 1.5; }
.car .on.k-rims { fill: url(#gRim); stroke: #59616d; }
.car .on.k-rims .sp { stroke: #5d6573; stroke-width: 1.6; }
.car .on.k-rims .hub { fill: var(--blue); }
/* техника */
.tech .on.k-body { fill: url(#gMetal); stroke: #4a5262; }
.tech .on.k-body .stripe { fill: #0b0c0e; }
.tech .k-case { fill: none; stroke-width: 3; }
.tech .k-case .case { fill: none; }
.tech .on.k-case { stroke: var(--blue); }
.tech .on.k-screen { fill: url(#gScreen); stroke: #3b5fae; }
.tech .on.k-screen .isl { fill: #050608; }
.tech .k-screen .ring { fill: none; stroke-width: 4; }
.tech .on.k-screen .ring { stroke: #ff5c7a; }
.tech .on.k-screen .r2 { stroke: #5ee08f; }
.tech .on.k-cam { fill: #20242c; stroke: #3a414e; }
.tech .on.k-cam .lens { fill: #05070a; stroke: #6f7d93; stroke-width: 1.6; }
.tech .on.k-keys { fill: #0e1013; stroke: #2b3038; }
.tech .on.k-pad { fill: #2b313b; stroke: #4a5262; }
.tech .on.k-pad .knob { fill: var(--blue); }
.tech .on.k-game { fill: #2c63e6; stroke: #5f8dff; }
.tech .on.k-game .band { fill: #e9ecf1; }
.tech .k-band { fill: none; }
.tech .k-band .arc { stroke-width: 9; stroke-linecap: round; }
.tech .on.k-band { stroke: #c9ced6; }
.tech .on.k-cups { fill: url(#gMetal); stroke: #4a5262; }
.tech .on.k-cush { fill: #3d7bff; stroke: #6f9bff; }
.tech .on.k-strap { fill: #2c63e6; stroke: #5f8dff; }
/* одежда: цвет по типу вещи */
.s-cap .on { fill: #3d7bff; stroke: #6f9bff; }
.s-tee .on { fill: #e9ecf1; stroke: #fff; }
.s-hoodie .on { fill: #56657f; stroke: #7183a3; }
.s-jacket .on { fill: #1f3c7a; stroke: #3d63b3; }
.s-pants .on { fill: #2b3444; stroke: #43506a; }
.s-shoe .on { fill: #f2f3f5; stroke: #c9ced6; }
.s-bag .on { fill: #8a6448; stroke: #a57b5b; }
.s-watch .on { fill: #c9ced6; stroke: #eef1f5; }
.clothes .on .dt { stroke: rgba(0, 0, 0, .3); }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.builder .card { margin-top: 14px; }

/* ---------- нижнее меню ---------- */
#tabs { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; padding: 6px;
  border-radius: 26px; background: #191b1f; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transform: translate3d(-50%, 130%, 0); opacity: 0;
  transition: transform .5s var(--ease), opacity .3s; pointer-events: none; }
.tabs-on #tabs { transform: translate3d(-50%, 0, 0); opacity: 1; pointer-events: auto; }
.tabs-on .wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
#tabs button { display: flex; flex-direction: column; align-items: center; width: 84px; height: 52px; justify-content: center; border-radius: 20px; color: var(--dim);
  font-size: 11px; font-weight: 700; transition: color .25s, transform .2s var(--ease); }
#tabs button:active { transform: scale(.92); }
#tabs button.on { color: var(--text); }
#tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
#tabs .tab-add { width: 56px; height: 52px; margin: 0 6px; background: var(--blue); color: #fff; border-radius: 18px; }
#tabs .tab-add svg { width: 26px; height: 26px; stroke-width: 2.4; margin: 0; }

/* ---------- сворачиваемые детали ---------- */
.fold-btn { display: flex; align-items: center; text-align: left; }
.fold-btn h3 { margin: 0; }
.chev { display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: translateY(2px) rotate(-135deg); transition: transform .4s var(--ease); }
.chev.r { transform: rotate(-45deg); margin-left: auto; }
.fold.shut .chev { transform: translateY(-2px) rotate(45deg); }
.fold-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease), opacity .3s; margin-top: 10px; }
.fold-body > div { overflow: hidden; min-height: 0; }
.fold.shut .fold-body { grid-template-rows: 0fr; opacity: 0; margin-top: 0; }

/* ---------- предупреждение об окончании Pro ---------- */
.warn { padding: 18px; border-radius: var(--rl); background: #251b14; margin-bottom: 14px; }
.warn b { color: #ffc58f; font-size: 15px; }
.warn p { color: #d8b89a; font-size: 14px; margin: 4px 0 14px; }
.warn .btn { height: 46px; font-size: 15px; }

/* ---------- цена вещи в одно касание ---------- */
.pchips { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; margin: 0 0 10px; padding: 0; overflow: visible; }
.pchips button { height: 38px; padding: 0; margin: 0; font-size: 13px; }

/* ---------- празднование: цитата с автором ---------- */
.cele-q small { display: block; margin-top: 6px; font-size: 13px; color: var(--dim); font-weight: 600; }

/* ---------- Pro уже есть ---------- */
.pro-have { text-align: center; }
.pro-have .pw-list { text-align: left; }
.pro-badge { display: inline-flex; align-items: center; padding: 8px 16px 8px 8px; border-radius: 18px; background: var(--blue-t); margin: 6px 0 16px; animation: pop .6s var(--ease) both; }
.pro-badge .logo { width: 36px; height: 36px; margin-right: 10px; }
.pro-badge span { font-weight: 800; font-size: 20px; color: var(--blue-l); }
.pro-have p b { color: var(--text); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- профиль ---------- */
.me { display: flex; align-items: center; margin: 10px 0 22px; }
.ava { flex: 0 0 64px; height: 64px; border-radius: 22px; background: var(--blue); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-right: 16px; }
.me h1 { font-size: 28px; }
.upsell b { font-size: 18px; }
.upsell p { margin: 4px 0 14px; }
.menu { padding: 6px 20px; }
.prow { display: flex; align-items: center; width: 100%; text-align: left; padding: 16px 0; font-weight: 600; font-size: 15px; }
.prow + .prow { border-top: 1px solid var(--hair); }
.prow em { font-style: normal; color: var(--muted); font-size: 14px; margin-left: auto; }
.prow em + .chev { margin-left: 12px; }
.quiet.danger { color: #e0626b; }

/* ---------- админка: цели ---------- */
.agoal { display: flex; flex-wrap: wrap; align-items: center; padding: 10px 0; }
.agoal + .agoal { border-top: 1px solid var(--hair); }
.ag-t { flex: 1; min-width: 0; }
.ag-t b, .ag-r b { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-t span, .ag-r span { font-size: 12px; color: var(--muted); }
.ag-r { text-align: right; margin-left: 10px; }
.agoal .pbar { flex: 0 0 100%; }
.sh-h { margin: 22px 0 6px; }

/* ---------- бейджи непрочитанного ---------- */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; vertical-align: 1px; animation: pop .4s var(--ease) both; }
#tabs button { position: relative; }
#tabs button.dot:after { content: ""; position: absolute; top: 9px; right: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #191b1f; }

/* ---------- профиль: имя и подписка ---------- */
.me-t { min-width: 0; }
.me-name { display: flex; align-items: center; max-width: 100%; text-align: left; }
.me-name h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pen { flex: 0 0 auto; width: 26px; height: 26px; margin-left: 8px; border-radius: 9px; background: var(--s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d939c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 6l4 4M5 19l1-4L15.5 5.5a1.4 1.4 0 0 1 2 0l1 1a1.4 1.4 0 0 1 0 2L9 18z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sub { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 20px; margin-bottom: 12px; border-radius: var(--rl); background: var(--blue); color: #fff; cursor: pointer; }
.sub span { display: block; font-size: 13px; font-weight: 600; opacity: .8; }
.sub b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.sub em { font-style: normal; font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 11px; background: rgba(255, 255, 255, .18); white-space: nowrap; margin-left: 10px; }

/* ---------- чат поддержки ---------- */
.chat { height: 100%; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.chat-h { padding: 22px 20px 12px; }
.chat-h p { font-size: 13px; margin-top: 2px; }
.chat-h:has(#cmenu) { display: flex; align-items: center; }
.ch-t { flex: 1; min-width: 0; }
.ch-t h2, .ch-t p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgs { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 16px 16px; display: flex; flex-direction: column; }
.msg { max-width: 82%; margin-top: 6px; padding: 10px 14px 8px; border-radius: 20px 20px 20px 6px; background: var(--s2); align-self: flex-start; animation: rise .35s var(--ease) both; }
.msg.mine { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 20px 20px 6px 20px; }
.msg p { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.4; -webkit-user-select: text; user-select: text; }
.msg time { display: block; text-align: right; font-size: 11px; margin-top: 2px; opacity: .55; }
.day { align-self: center; margin: 14px 0 4px; font-size: 12px; font-weight: 700; color: var(--dim); }
.chat-empty { margin: auto; max-width: 260px; text-align: center; color: var(--muted); }
.composer { display: flex; align-items: flex-end; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--hair); }
.composer textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 16px; border-radius: 22px; background: var(--s2); color: var(--text);
  font: inherit; font-size: 15px; line-height: 1.45; border: 0; outline: 0; resize: none; -webkit-user-select: text; user-select: text; }
.composer textarea::placeholder { color: var(--dim); }
.send { flex: 0 0 44px; height: 44px; margin-left: 8px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), opacity .2s; }
.send:disabled { opacity: .35; }
.send:active:not(:disabled) { transform: scale(.9); }
.send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ch-t { min-width: 0; flex: 1; }
.ch-t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- поделиться целью ---------- */
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; }
.hero-row > div { min-width: 0; }
.icon-btn { flex: 0 0 40px; height: 40px; margin-left: 12px; border-radius: 14px; background: var(--s1); color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), background-color .2s; }
.icon-btn:active { transform: scale(.9); background: var(--s2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-prev { display: flex; align-items: center; padding: 12px; margin: 18px 0 12px; border-radius: var(--rm); background: var(--s1); }
.share-prev b { display: block; font-weight: 700; }
.share-prev span { font-size: 13px; color: var(--blue-l); font-weight: 700; }
.sp-art { flex: 0 0 96px; height: 52px; margin-right: 12px; display: flex; align-items: center; justify-content: center; }
.sp-art .art { --under: var(--s1); }
.sp-art.travel .flag { width: 64px; height: 48px; }
#sheet .quiet { margin-top: 8px; }

/* ---------- просмотр чужой цели ---------- */
.v-own { margin: 22px 0 -4px; color: var(--blue-l); font-weight: 700; font-size: 14px; }
.viewer .hero-art { margin-top: 10px; }
.emo { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; }
.emo button { height: 60px; border-radius: var(--rm); background: var(--s2); font-size: 28px; transition: transform .2s var(--ease), background-color .2s; }
.emo button:active { transform: scale(.9); }
.emo button.boom { animation: boom .6s var(--ease); background: var(--blue-t); }
@keyframes boom { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
.cta b { font-size: 18px; }
.cta p { margin: 4px 0 14px; }

/* ---------- приглашения ---------- */
.invite { display: flex; align-items: center; width: 100%; text-align: left; padding: 16px 18px; margin-bottom: 12px; border-radius: var(--rl); background: var(--blue-t);
  transition: transform .2s var(--ease); }
.invite:active { transform: scale(.98); }
.inv-ic { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-right: 14px; }
.invite b { display: block; font-size: 15px; }
.invite span { font-size: 13px; color: var(--blue-l); }
.ref-hero { padding: 22px 22px 20px; border-radius: var(--rl); background: var(--blue); color: #fff; margin-bottom: 12px; position: relative; overflow: hidden; }
.ref-hero:after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .1); }
.ref-hero span { font-size: 13px; font-weight: 600; opacity: .8; }
.ref-hero b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin: 2px 0 10px; }
.ref-hero em { font-style: normal; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 11px; background: rgba(255, 255, 255, .18); }
.mood { margin: 0 4px 16px; font-weight: 600; color: var(--muted); }
.ref-link { padding: 14px 16px; border-radius: var(--rm); background: var(--s2); font-weight: 700; font-size: 14px; word-break: break-all; -webkit-user-select: all; user-select: all; }
.ref-link + .btn { margin-top: 12px; }
.steps { list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 8px 0 8px 42px; counter-increment: s; }
.steps li:before { content: counter(s); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 9px; background: var(--blue-t); color: var(--blue-l);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-weight: 700; }
.steps span { font-size: 13px; color: var(--muted); }
.tx .fr { color: var(--text); font-weight: 600; font-size: 14px; }
.tx b.wait { color: var(--dim); font-weight: 600; font-size: 13px; }
.tx em.p { font-style: normal; color: var(--blue-l); }
.ref-hero em { display: inline-block; margin: 4px 6px 0 0; }
.ref-hero em.pend { background: rgba(0, 0, 0, .18); }

/* ---------- мотивация: вехи, серия ---------- */
.cele-card.big { animation: wobble .7s var(--ease) .15s; }
@keyframes wobble { 30% { transform: scale(1.04) rotate(-1deg); } 60% { transform: scale(.99) rotate(.6deg); } }
.cele-mile { display: inline-block; margin-bottom: 10px; padding: 7px 14px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; animation: pop .5s var(--ease) both .2s; }
.cele-streak { margin: 12px 0 0; font-weight: 700; color: #ffb36b; font-size: 14px; }
.cele-card .btn.soft { margin-top: 10px; }
.streak { margin-top: 12px; font-size: 14px; color: var(--muted); }
.streak b { color: #ffb36b; }
.streak.warn-s { color: #d8b89a; }
.msg.auto { opacity: .75; font-size: 14px; }

/* ---------- техника: плитки видов ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; }
.tile { padding: 12px 6px 14px; border-radius: var(--rm); background: var(--s1); text-align: center; transition: transform .2s var(--ease), background-color .2s; }
.tile:active { transform: scale(.95); background: var(--s2); }
.tile-art { height: 56px; margin: 0 -4px 8px; }
.tile-art .art { --under: var(--s1); }
.tile b { font-size: 13px; font-weight: 700; }
.tech .on.k-mon { fill: url(#gMetal); stroke: #4a5262; }
.tech .on.k-mon .scr { fill: url(#gScreen); stroke: #3b5fae; }
.tech .on.k-body .lens { fill: #0b0c0e; stroke: #3d7bff; stroke-width: 1.6; }

/* ---------- одежда: выбор вещей и цены ---------- */
.types.pick { grid-template-columns: repeat(2, 1fr); }
.types.pick button { position: relative; padding: 14px 8px; font-size: 13px; }
.types.pick .ti { height: 52px; }
.tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 7px; background: var(--s3); display: flex; align-items: center; justify-content: center;
  transform: scale(.8); opacity: .6; transition: transform .25s var(--ease), background-color .25s, opacity .25s; }
.tick svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.types.pick button.on { background: var(--blue-t); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--blue); }
.types.pick button.on .tick { background: var(--blue); transform: none; opacity: 1; }
.types.pick button.on .tick svg { opacity: 1; }
.wcard { padding: 14px 16px 16px; }
.wc-h { display: flex; align-items: center; margin-bottom: 12px; }
.wc-h .ti { flex: 0 0 34px; height: 34px; margin: 0 10px 0 0; }
.wname { flex: 1; font-size: 17px; font-weight: 700; padding: 6px 0; border-bottom: 1px dashed var(--s3); }
.wdel { width: 32px; height: 32px; margin-left: 8px; border-radius: 10px; background: var(--s2); color: var(--muted); font-size: 18px; }
.wcard .money { height: 48px; }
#more { margin-bottom: 12px; }

/* ---------- собранные цели ---------- */
.kpi-i.tap { text-align: left; position: relative; transition: transform .2s var(--ease); }
.kpi-i.tap:active { transform: scale(.97); }
.kpi-i.tap .chev { position: absolute; right: 16px; top: 22px; }
.done-b { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; margin-bottom: 14px; border-radius: var(--rl); background: var(--blue); color: #fff; }
.done-b b { font-size: 17px; }
.done-b span { font-size: 13px; opacity: .8; font-weight: 600; }
.pchips button { border-radius: var(--rs); background: var(--s2); font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s, transform .2s var(--ease); }
.pchips button:active { transform: scale(.94); }
.pchips button.on { background: var(--blue); color: #fff; }
.credits { margin-top: 16px; }
.credits a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; }
.credits a + a { border-top: 1px solid var(--hair); }
.credits b { display: block; font-size: 14px; }
.credits span { font-size: 12px; color: var(--muted); }

/* ---------- цвет машины ---------- */
.swatches { margin: 16px 0 4px; }
.swatches > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.swatches > div { display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 10px; }
.swatches button { aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: transform .25s var(--ease), box-shadow .25s; }
.swatches button.on { transform: scale(1.12); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
.photo img { transition: filter .45s var(--ease); }
.hero-art.car .photo { cursor: pointer; }
.fan.four { width: 260px; }
.fan.four .flag { left: 72px; width: 116px; height: 87px; }
.fan.four .flag:nth-child(1) { transform: translate3d(-68px, 12px, 0) rotate(-16deg); }
.fan.four .flag:nth-child(2) { transform: translate3d(-23px, 0, 0) rotate(-5deg); z-index: 2; }
.fan.four .flag:nth-child(3) { transform: translate3d(23px, 0, 0) rotate(5deg); z-index: 1; }
.fan.four .flag:nth-child(4) { transform: translate3d(68px, 12px, 0) rotate(16deg); }

/* ---------- «Что копим?» как сцена: свечение, луч, пол и отражение ---------- */
.picker { background: radial-gradient(120% 70% at 60% 38%, rgba(37, 84, 255, .22) 0%, rgba(12, 13, 15, 0) 62%); }
.picker .track { --cw: min(92vw, 440px); }
.picker .cat { padding: 0 6px 6px; background: none; border-radius: 0; margin-right: 0; transform: scale(.86) translate3d(0, 6px, 0); opacity: 0;
  transition: transform .6s var(--ease), opacity .45s ease; will-change: transform, opacity; }
.picker .cat.active { transform: none; opacity: 1; }
.picker .cat-art { position: relative; height: 250px; margin: 0 -14px 26px; }
.picker .carousel { position: relative; }
.picker .carousel:after { content: ""; position: absolute; left: 6%; right: 6%; top: 206px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(61, 123, 255, 0), #3d7bff 30%, #7aa5ff 50%, #3d7bff 70%, rgba(61, 123, 255, 0));
  box-shadow: 0 0 22px 5px rgba(61, 123, 255, .35); } /* неподвижный «пол»: при свайпе едет только машина */
.picker .cat-art > * { position: relative; z-index: 1; }
.scene .refl { top: 86.7%; transform: scaleY(-1); opacity: .28; -webkit-mask-image: linear-gradient(to top, #000, transparent 38%); mask-image: linear-gradient(to top, #000, transparent 38%); }
.scene.flip img { transform: scaleX(-1); }
.scene.flip .refl { transform: scale(-1, -1); }
.picker .cat-art .photo { height: 82%; align-self: flex-start; margin-top: 4%; }
.picker .cat h2 { font-size: 44px; letter-spacing: -.04em; padding: 0 22px; }
.picker .cat p { font-size: 16px; padding: 0 22px; margin-top: 10px; }
.picker .cat-meta { padding: 0 22px; font-size: 15px; color: #4a86ff; }
.btn.primary { background: linear-gradient(180deg, #4a86ff, #2a5ee8); box-shadow: 0 12px 34px -12px rgba(61, 123, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:disabled { background: var(--s2); box-shadow: none; }
.picker .track { position: relative; z-index: 1; }
.fan .flag:nth-child(2) { z-index: 2; transform: translate3d(0, -4px, 0) scale(1.06); }

/* ---------- заливка цели снизу вверх + светящийся уровень ---------- */
.reveal .ph-c, .flag.reveal .ph-c { clip-path: inset(calc(100% - var(--p)) 0 0 0); transition: clip-path 1.4s var(--ease); }
.vec { position: relative; width: 100%; height: 100%; }
.vec > .ph-g, .vec > .ph-c { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.vec > .ph-g { filter: grayscale(1) brightness(.5); }
.reveal .edge { position: absolute; left: 4%; right: 4%; bottom: var(--p); height: 2px; border-radius: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(61, 123, 255, 0), #7aa5ff 20%, #fff 50%, #7aa5ff 80%, rgba(61, 123, 255, 0));
  box-shadow: 0 0 14px 2px rgba(61, 123, 255, .6); transition: bottom 1.4s var(--ease), opacity .4s; }
.reveal .lvl { position: absolute; right: 0; bottom: 6px; font-size: 12px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 8px;
  background: rgba(61, 123, 255, .9); font-style: normal; box-shadow: 0 4px 14px rgba(61, 123, 255, .45); }
.reveal.empty .edge { opacity: .5; }
.reveal.full .edge { opacity: 0; }

/* ---------- образ из иконок вещей ---------- */
.wear-row { display: flex; align-items: flex-end; justify-content: center; height: 100%; padding: 4% 2% 6%; }
.wear-row span { flex: 1 1 0; max-width: 22%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wear-row img, .ti img, .wimg { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- главный экран: подиум, мягкий свет сверху, плавный свайп ---------- */
.picker { background: radial-gradient(90% 45% at 50% 0%, rgba(61, 123, 255, .16), rgba(12, 13, 15, 0) 70%), var(--bg); }
.picker .carousel:before { content: ""; position: absolute; left: 10%; right: 10%; top: 168px; height: 74px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 123, 255, .34), rgba(61, 123, 255, .1) 55%, rgba(61, 123, 255, 0)); }
.picker .carousel:after { top: 205px; left: 14%; right: 14%; opacity: .8; box-shadow: 0 0 18px 3px rgba(61, 123, 255, .3); }
.picker .track { transition: transform .62s cubic-bezier(.16, 1, .3, 1); }
.picker .cat .cat-art { transform: translate3d(24px, 0, 0) scale(.94); transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.picker .cat.active .cat-art { transform: none; }
.picker .cat h2, .picker .cat p, .picker .cat-meta { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .45s ease, transform .55s var(--ease); }
.picker .cat.active h2 { opacity: 1; transform: none; transition-delay: .08s; }
.picker .cat.active p { opacity: 1; transform: none; transition-delay: .14s; }
.picker .cat.active .cat-meta { opacity: 1; transform: none; transition-delay: .2s; }
.welcome-art.stage { height: 190px; margin: 26px -14px 22px; }
#sheet { transition: transform .55s cubic-bezier(.16, 1, .3, 1); }

/* ---------- нижнее меню на 4 кнопки ---------- */
#tabs button { width: 72px; }

/* ---------- подсказки при первом заходе ---------- */
.coach { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  background: rgba(6, 7, 9, .72); opacity: 0; transition: opacity .35s ease; }
.coach.show { opacity: 1; }
.coach-card { width: 100%; max-width: 420px; padding: 22px 20px 20px; border-radius: 28px; background: var(--s1); text-align: center;
  transform: translate3d(0, 40px, 0); transition: transform .55s cubic-bezier(.16, 1, .3, 1); margin-bottom: env(safe-area-inset-bottom); }
.coach.show .coach-card { transform: none; }
.coach-card h3 { color: var(--text); font-size: 19px; margin: 14px 0 6px; }
.coach-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.hand-demo { height: 70px; position: relative; overflow: hidden; }
.hand-demo span { position: absolute; top: 12px; left: 50%; font-size: 40px; animation: swipe 1.8s ease-in-out infinite; }
@keyframes swipe { 0% { transform: translateX(40px) rotate(8deg); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateX(-80px) rotate(-8deg); opacity: 1; } 100% { opacity: 0; transform: translateX(-90px); } }
.fill-demo { height: 130px; }
.fill-demo .reveal .ph-c { animation: demo-fill 3.2s ease-in-out infinite; }
.fill-demo .reveal .edge { animation: demo-edge 3.2s ease-in-out infinite; }
.fill-demo .lvl { display: none; }
@keyframes demo-fill { 0%, 10% { clip-path: inset(100% 0 0 0); } 70%, 100% { clip-path: inset(25% 0 0 0); } }
@keyframes demo-edge { 0%, 10% { bottom: 0; } 70%, 100% { bottom: 75%; } }
.swipe-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 10px; font-size: 13px; font-weight: 600; color: var(--blue-l);
  transition: opacity .5s, max-height .5s; max-height: 30px; overflow: hidden; }
.swipe-hint i { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: bob 1.1s ease-in-out infinite; }
.swipe-hint.gone { opacity: 0; max-height: 0; margin: 0; }
@keyframes bob { 50% { transform: translateY(4px) rotate(45deg); } }

/* ---------- совет дня ---------- */
.tip { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--rm); background: var(--blue-t); color: #c7d8ff; font-size: 14px; line-height: 1.45; }

/* ---------- подсказки моделей ---------- */
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest button { padding: 7px 11px; border-radius: 10px; background: var(--s2); color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s; }
.suggest button:active { background: var(--blue); color: #fff; }

/* ---------- @PremiumBot ---------- */
.pbot { display: block; width: 100%; text-align: left; margin-top: 14px; padding: 12px 14px; border-radius: var(--rm); background: var(--s2); }
.pbot span { display: block; font-size: 13px; color: var(--muted); }
.pbot b { display: inline-flex; align-items: center; margin-top: 4px; color: var(--blue-l); font-size: 15px; }
.pbot svg { width: 18px; height: 18px; margin-left: 4px; fill: var(--blue); }
.pbot svg .ck { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- калькулятор ---------- */
.calc .chips { margin: 12px 0 0; padding: 0; }
.res { display: grid; grid-gap: 10px; }
.res-row { position: relative; padding: 14px 16px; border-radius: var(--rm); background: var(--s2); overflow: hidden; }
.res-row span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.res-row b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.res-row small { color: var(--muted); font-size: 13px; }
.lock-row.locked b, .lock-row.locked small { filter: blur(7px); user-select: none; }
.unlock { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 9px 12px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }

.icon-btn + .icon-btn { margin-left: 8px; }
.icon-btn.del { color: #ff6b5e; }
.cfg-art { transition: opacity .18s ease, transform .18s ease; }
.cfg-art.swap { opacity: 0; transform: scale(.96); }
.types .ti .wimg { transform: scale(1.3); }
.pw .pbot { margin: 4px 0 14px; padding: 14px 16px; border: 1px solid rgba(61,123,255,.35); background: rgba(61,123,255,.1); }
.pw .pbot span { font-size: 15px; color: var(--text); font-weight: 600; line-height: 1.35; }
.pw .pbot b { font-size: 17px; margin-top: 6px; }
.pw .pbot svg { width: 20px; height: 20px; }

/* пять вкладок */
#tabs button { width: 64px; }
#tabs button span { font-size: 10.5px; white-space: nowrap; }
#tabs .tab-add { width: 52px; margin: 0 4px; }
#tabs button.dot:after { right: 18px; }

/* огонёк */
.flame { display: inline-block; line-height: 1; transform-origin: 50% 90%; }
.fire { display: flex; align-items: center; width: 100%; margin-top: 14px; padding: 10px 14px; border-radius: var(--rm); background: var(--s1); text-align: left; color: var(--muted); font-size: 13px; }
.fire .flame { font-size: 28px; margin-right: 12px; }
.fire b { display: block; color: var(--text); font-size: 15px; }
.fire small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; }
.fire.on { background: linear-gradient(90deg, rgba(255,140,40,.16), var(--s1) 70%); }
.fire.on b { color: #ffb36b; }
.on > .flame, .on .flame { animation: flick 1.6s ease-in-out infinite; }
.fire.wait b { color: #d8b89a; }
.wait .flame { opacity: .7; animation: flick 3.2s ease-in-out infinite; }
.off .flame, .none .flame { filter: grayscale(1); opacity: .35; }
.fire:active, .fire-card:active { transform: scale(.98); }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(-2deg); } 30% { transform: scale(1.08, .95) rotate(2deg); } 60% { transform: scale(.96, 1.06) rotate(-1deg); } }
.fire-hero { position: relative; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.fire-hero .flame { font-size: 84px; position: relative; z-index: 1; }
.fire-hero.on:before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,140,40,.45), transparent 65%); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.15); opacity: .7; } }
.fire-hero.ignite .flame { animation: ignite .9s cubic-bezier(.2,1.6,.4,1) both, flick 1.6s ease-in-out .9s infinite; }
.fire-hero.ignite:before { animation: ignite .9s ease both, glow 2s ease-in-out .9s infinite; }
@keyframes ignite { 0% { transform: scale(0) translateY(30px); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.fire-day { margin-top: 8px; font-weight: 800; color: #ffb36b; font-size: 18px; }
.fire-rules { list-style: none; margin: 16px 0; }
.fire-rules li { padding: 10px 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.fire-rules li + li { border-top: 1px solid var(--hair); }
.fire-rules b { color: var(--text); }
.fire-best { font-weight: 700; color: #ffb36b; margin-bottom: 14px; }

/* статистика */
.fire-card { display: flex; flex-wrap: wrap; align-items: center; width: 100%; text-align: left; }
.fire-card .flame { font-size: 44px; margin-right: 14px; }
.fire-card .fc-t { flex: 1; min-width: 0; color: var(--muted); }
.fire-card .fc-t b { display: block; font-size: 20px; font-weight: 800; color: var(--text); }
.fire-card.on .fc-t b { color: #ffb36b; }
.fire-card .fc-t small { display: block; font-size: 13px; margin-top: 2px; line-height: 1.3; }
.fc-best { text-align: center; margin-left: 10px; }
.fc-best b { display: block; font-size: 22px; font-weight: 800; }
.fc-best span { font-size: 12px; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; width: 100%; margin-top: 16px; }
.cal i { height: 12px; border-radius: 6px; background: var(--s2); }
.cal i.lit { background: linear-gradient(180deg, #ffb36b, #ff7a2f); box-shadow: 0 0 8px rgba(255,122,47,.45); }
.cal i.now { outline: 2px solid rgba(255,255,255,.35); outline-offset: 2px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.nums div { padding: 14px 16px; border-radius: var(--rm); background: var(--s1); }
.nums b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.nums span { font-size: 12px; color: var(--muted); }
.bars { position: relative; display: flex; align-items: flex-end; height: 140px; gap: 8px; margin-top: 12px; }
.bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars i { width: 100%; height: 100px; border-radius: 8px; background: linear-gradient(180deg, var(--blue-l), var(--blue)); transform-origin: bottom; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bars b { order: -1; font-size: 10px; color: var(--muted); margin-bottom: 4px; min-height: 12px; }
.bars span { font-size: 11px; color: var(--muted); margin-top: 6px; }
.bars.locked i, .bars.locked b { filter: blur(6px); }
.stats .card { position: relative; }
.stats .unlock { position: absolute; right: auto; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.sg { margin-top: 12px; }
.sg > div:first-child { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.sg span { color: var(--muted); font-weight: 600; }
.cal i { width: 16px; height: 16px; border-radius: 50%; justify-self: center; }
.cal-cap { width: 100%; margin-top: 14px; font-size: 12px; color: var(--muted); }
.cal-cap + .cal { margin-top: 8px; }
/* «Пополнить»: аккуратная тень только снизу, без синего ореола вокруг */
.actions .btn.primary { box-shadow: 0 8px 18px -10px rgba(61, 123, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.actions .btn:not(.primary) { box-shadow: inset 0 0 0 1px var(--hair); }

/* план к цели */
.plan .chips { margin: 12px 0 0; padding: 0; }
.plan-res { margin-top: 14px; padding: 14px 16px; border-radius: var(--rm); background: var(--s2); }
.plan-res span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-res b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.plan-res small { color: var(--muted); font-size: 13px; }
.steps { position: relative; display: flex; justify-content: space-between; margin-top: 18px; }
.steps:before { content: ""; position: absolute; left: 12%; right: 12%; top: 11px; height: 2px; background: var(--s2); }
.steps div { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps i { width: 24px; height: 24px; border-radius: 50%; background: var(--s2); border: 2px solid var(--s1); display: flex; align-items: center; justify-content: center; }
.steps .ok i { background: var(--blue); }
.steps i svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.steps b { font-size: 12px; margin-top: 6px; font-weight: 700; }
.steps span { font-size: 11px; color: var(--muted); }

/* календарь огонька */
.calm { touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden; }
.cal-h { display: flex; align-items: center; justify-content: space-between; text-align: center; }
.cal-h b { display: block; font-size: 17px; font-weight: 800; }
.cal-h span { font-size: 12px; color: var(--muted); }
.cal-a { width: 36px; height: 36px; border-radius: 12px; background: var(--s2); color: var(--text); font-size: 22px; line-height: 1; }
.cal-a:disabled { opacity: .3; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-w { margin: 14px 0 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.cal-g { row-gap: 6px; }
.cal-g span { position: relative; height: 36px; line-height: 36px; font-size: 14px; font-weight: 600; z-index: 0; }
.cal-g span.lit { color: #fff; }
.cal-g span.lit:before { content: ""; position: absolute; z-index: -1; left: 3px; right: 3px; top: 2px; bottom: 2px; border-radius: 12px;
  background: linear-gradient(180deg, #ffb36b, #ff7a2f); box-shadow: 0 0 10px rgba(255,122,47,.35); }
.cal-g span.l:before { left: -3px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-g span.r:before { right: -3px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-g span.now:after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-g span.now:not(.lit) { color: var(--blue-l); }
.cal-g span.fut { color: var(--dim); opacity: .5; }
.cal-g.in-r { animation: calR .28s ease; }
.cal-g.in-l { animation: calL .28s ease; }
@keyframes calR { from { transform: translate3d(30px,0,0); opacity: 0; } }
@keyframes calL { from { transform: translate3d(-30px,0,0); opacity: 0; } }
.hero-acts { display: flex; gap: 8px; flex: 0 0 auto; margin-left: 12px; }
.hero-acts .icon-btn { margin: 0; }
.plan .chips { flex-wrap: wrap; overflow: visible; gap: 8px; }
.plan .chips button { margin: 0; }
.tip { position: relative; padding-right: 40px; overflow: hidden; transition: opacity .3s ease, height .3s ease, margin .3s ease, padding .3s ease; }
.tip.gone { opacity: 0; height: 0 !important; margin: 0; padding-top: 0; padding-bottom: 0; }
.tip-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); color: #c7d8ff; font-size: 17px; line-height: 26px; text-align: center; }
.tip-x:active { transform: scale(.9); }
.swipe-hint { position: relative; }
.swipe-hint .tip-x { top: 50%; margin-top: -13px; }
/* «Поделиться» и «Удалить» — в углу картинки цели: всегда помещаются, как бы ни было длинно название */
.home .hero { position: relative; }
.home .hero-acts { position: absolute; top: 4px; right: 0; z-index: 3; margin: 0; gap: 8px; }
.home .hero-acts .icon-btn { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 13px; background: rgba(28, 30, 35, .82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.home .hero-acts .icon-btn svg { width: 19px; height: 19px; }
@media (max-width: 350px) {
  #tabs button { width: 56px; }
  #tabs button span { font-size: 9.5px; }
  #tabs .tab-add { width: 48px; }
}
/* путешествия на главном: три крупных флага с подписями */
.tops { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 0 12px; }
.top { flex: 0 0 31%; max-width: 128px; text-align: center; transform: translate3d(0, 10px, 0) rotate(-4deg); }
.top:nth-child(2) { flex-basis: 36%; max-width: 150px; transform: translate3d(0, -6px, 0); z-index: 1; }
.top:nth-child(3) { transform: translate3d(0, 10px, 0) rotate(4deg); }
.top .flag { width: 100%; height: 0; padding-top: 66.6%; border-radius: 12px; /* без aspect-ratio — для старых телефонов */
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), 0 0 22px -6px rgba(61,123,255,.55); }
.top span { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.top:nth-child(2) span { font-size: 15px; }
.prow > span { flex: 1; }
.tgl { position: relative; flex: 0 0 46px; height: 28px; border-radius: 14px; background: var(--s2); transition: background .25s ease; }
.tgl:after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.tgl.on { background: var(--blue); }
.tgl.on:after { transform: translate3d(18px, 0, 0); }
.tops { gap: 8px; padding: 0 22px; box-sizing: border-box; }
.top { flex: 0 1 29%; min-width: 0; }
.top:nth-child(2) { flex: 0 1 35%; }
@media (max-width: 380px) {
  .picker .cat h2 { font-size: 36px; }
  .top span { font-size: 12px; }
  .top:nth-child(2) span { font-size: 13px; }
}
.credits-l { display: block; margin: 14px auto 0; font-size: 12px; color: var(--dim); }
/* совет дня — только на экране цели, над огоньком */
.tip { margin: 16px 0 0; padding: 14px 44px 16px 16px; border-radius: var(--rm);
  background: linear-gradient(135deg, rgba(61,123,255,.22), rgba(61,123,255,.08)); box-shadow: inset 0 0 0 1px rgba(91,148,255,.28); }
.tip-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-l); margin-bottom: 6px; }
.tip p { margin: 0; font-size: 15.5px; line-height: 1.45; color: #e3ecff; font-weight: 500; }
.tip + .fire { margin-top: 10px; }

/* машина и образ: переключатель «Из чего состоит / План к цели» */
.seg { position: relative; display: flex; padding: 4px; border-radius: 14px; background: var(--s2); margin-bottom: 14px; }
.seg button { position: relative; z-index: 1; flex: 1; height: 38px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .25s ease; }
.seg button.on { color: var(--text); }
.seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 11px; background: var(--s1);
  box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.seg.right i { transform: translate3d(100%, 0, 0); }
.tw[hidden] { display: none; }
.tw-edit { display: block; margin: -4px 0 8px auto; }
.twin .plan .chips { margin-top: 10px; }
/* бесконечная карусель: при незаметном перескоке в среднюю копию ничего внутри не должно анимироваться заново */
.track.snap *, .track.snap *:before, .track.snap *:after { transition: none !important; animation: none !important; }
/* картинка карточки просто «подрастает», без сдвига вбок — не дёргается при свайпе в любую сторону */
.picker .cat .cat-art { transform: scale(.94); }

/* образ из вещей: иконки обрезаны по краю вещи, раскладываем сеткой — крупно и читаемо */
.wear-row { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); align-items: end; justify-items: center; gap: 4px 6px; height: 100%; padding: 4px 6px; }
.wear-row.two { grid-template-rows: 1fr 1fr; }
.wear-row span { width: 100%; height: 100%; max-width: none; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.wear-row img { width: 100%; height: 100%; object-fit: contain; }
.types .ti .wimg { transform: none; }
.tip-k em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: rgba(199,216,255,.6); }
.prow small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.home .hero-art.clothes { height: 224px; padding-top: 46px; box-sizing: border-box; } /* образ не прячется под кнопками в углу */
#toast { width: max-content; max-width: calc(100% - 40px); box-sizing: border-box; }

/* маскот (копилка) и экран блокировки */
.mascot { height: 170px; margin: 0 -8px 10px; display: flex; align-items: center; justify-content: center; }
.mascot.big { height: 220px; }
.mascot .photo { height: 100%; }
.blocked { text-align: center; }
.blocked .lead { margin-top: 10px; }
.blocked .muted { margin-top: 8px; }
.btn.danger-b { background: rgba(255, 90, 80, .14); color: #ff7a6e; }
.btn.danger-b:disabled { opacity: .45; }
.urow em.ban { background: rgba(255, 90, 80, .16); color: #ff7a6e; }
.pbot small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- единые тени кнопок: одна форма — мягкая тень строго снизу, без ореола.
   Синие кнопки — с лёгким синим оттенком, остальные — нейтральная тёмная. ---------- */
:root {
  --sh-btn: 0 6px 14px -8px rgba(0, 0, 0, .7);
  --sh-btn-blue: 0 6px 14px -8px rgba(31, 84, 214, .8);
  --sh-top: inset 0 1px 0 rgba(255, 255, 255, .16);
  --sh-edge: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.btn, .actions .btn:not(.primary), .icon-btn, .home .hero-acts .icon-btn, .cal-a, .pill, .btn.soft, .btn.danger-b { box-shadow: var(--sh-edge), var(--sh-btn); }
.btn.primary, .actions .btn.primary, #tabs .tab-add, .unlock, .pill.on { box-shadow: var(--sh-top), var(--sh-btn-blue); }
.btn:disabled, .btn.primary:disabled, .cal-a:disabled { box-shadow: none; }
.btn:active:not(:disabled), .icon-btn:active, #tabs .tab-add:active { box-shadow: var(--sh-edge); }

/* как вернуть советы: мини-копия строки из профиля */
.howto { margin: 16px 0 18px; padding: 14px 16px; border-radius: var(--rm); background: var(--s2); }
.howto > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.howto-row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.howto-row .chev { margin: 0 2px; }
.howto-row .tgl { margin-left: auto; }

/* «Другое»: кнопка на главном, своя цель со значком или фото */
.pk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.other-b { flex: 0 0 auto; height: 38px; margin: 6px 0 0; padding: 0 14px 0 10px; background: var(--s2); color: var(--text); gap: 6px; }
.other-b span { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; }
.oth { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.oth-in { position: relative; width: var(--os, 140px); height: var(--os, 140px); flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(91,148,255,.35), rgba(30,60,140,.25) 60%, rgba(20,24,32,.9));
  box-shadow: inset 0 0 0 2px rgba(91,148,255,.45), 0 0 30px -6px rgba(61,123,255,.6); }
.oth-in span { font-size: 64px; line-height: 1; }
.row-art .oth-in span, .sp-art .oth-in span { font-size: 28px; }
.oth-in img { width: 100%; height: 100%; object-fit: cover; }
.oth-prev { height: 150px; margin: 4px 0 6px; }
.icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.icons button, .icons .up { height: 52px; border-radius: 14px; background: var(--s2); font-size: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icons button.on, .icons .up.on { background: var(--blue-t); box-shadow: inset 0 0 0 1.5px var(--blue); }
.muted.small { font-size: 12px; margin-top: 10px; }
.row-art .oth, .sp-art .oth { --os: 48px; }
.cfg-art .oth, .oth-prev .oth { --os: 130px; }
.hero-art .oth { --os: 150px; }
.fill-demo .oth { --os: 110px; }
.row-art .oth-in span, .sp-art .oth-in span { font-size: 24px; }

/* своё фото без фона: предмет «на полу» с тенью и синим контуром — как наши картинки */
.oth.cut img { max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(140,175,255,.75)) drop-shadow(0 0 14px rgba(61,123,255,.35)); }
.vec > .ph-g .oth.cut img { filter: none; }
.cut-bar { display: flex; justify-content: center; gap: 8px; margin: 0 0 10px; }
.cut-bar[hidden], .cut-bar .pill[hidden] { display: none; }
.cut-bar .pill { margin: 0; height: 36px; color: var(--text); }
.oth-prev.busy { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.icons .up { flex-direction: column; gap: 0; } .icons .up small { font-size: 10px; color: var(--muted); font-weight: 700; margin-top: -2px; }

/* «Не нашёл свою машину?» — внизу списка машин */
.miss { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: var(--rm); text-align: left;
  background: linear-gradient(135deg, rgba(61,123,255,.16), rgba(61,123,255,.05)); box-shadow: inset 0 0 0 1px rgba(91,148,255,.25); }
.miss-ic { flex: 0 0 64px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.miss-ic .photo { height: 100%; }
.miss-ic .refl { display: none; }
.miss b { display: block; font-size: 15px; }
.miss span { font-size: 13px; color: var(--muted); }
.miss > div { flex: 1; min-width: 0; }

/* «Загрузить своё фото» — крупная заметная кнопка над значками */
.upload-big { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; padding: 16px; border-radius: var(--rm); cursor: pointer;
  background: linear-gradient(135deg, rgba(61,123,255,.2), rgba(61,123,255,.06)); border: 1.5px dashed rgba(110,160,255,.6); }
.upload-big:active { transform: scale(.98); }
.upload-big.on { border-style: solid; border-color: var(--blue); }
.ub-ic { flex: 0 0 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--blue); box-shadow: var(--sh-top), var(--sh-btn-blue); }
.upload-big b { display: block; font-size: 16px; }
.upload-big span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.ub-ic { font-style: normal; }
.ub-ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.miss-ic { flex-basis: 70px; height: 62px; overflow: hidden; border-radius: 14px; background: rgba(61,123,255,.12); }
.miss-ic .photo { width: 100%; }
.miss-ic img { width: 100%; height: 100%; object-fit: contain; transform: scale(2.1) translate3d(0, 4%, 0); }
.miss { margin: 0 0 12px; }
.pw-price .star { width: 34px; height: 34px; margin-left: 6px; vertical-align: -4px; filter: drop-shadow(0 2px 6px rgba(255,178,30,.35)); }
/* первый экран: три простых шага */
.steps3 { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.steps3 > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--s1); }
.steps3 i { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--s2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-style: normal; }
.steps3 p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.steps3 b { display: block; font-size: 15px; color: var(--text); }

/* первый экран: машина сама заливается цветом, падают монетки, растёт процент — понятно без слов */
.wdemo { position: relative; height: 200px; margin: 22px -10px 10px; }
.wd-car { position: absolute; left: 0; right: 0; bottom: 18px; height: 150px; }
.wdemo .reveal .ph-c { animation: wfill 3.6s cubic-bezier(.45,.05,.35,1) infinite; }
.wdemo .reveal .edge { animation: wedge 3.6s cubic-bezier(.45,.05,.35,1) infinite; }
.wdemo .lvl { display: none; }
@keyframes wfill { 0%, 10% { clip-path: inset(100% 0 0 0); opacity: 1; } 75%, 97% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.wdemo .ph-g { filter: grayscale(1) brightness(.8) contrast(.95); opacity: .75; }
@keyframes wedge { 0%, 10% { bottom: 0; opacity: 1; } 75% { bottom: 100%; opacity: 1; } 80%, 100% { bottom: 100%; opacity: 0; } }
.coin { position: absolute; top: 0; font-style: normal; font-weight: 800; font-size: 14px; color: #ffd76a; padding: 6px 10px; border-radius: 12px;
  background: rgba(255, 200, 60, .14); box-shadow: inset 0 0 0 1px rgba(255, 210, 90, .35); opacity: 0; animation: coin 3.6s ease-in infinite; }
.coin.c1 { left: 14%; animation-delay: .3s; } .coin.c2 { left: 42%; animation-delay: 1s; } .coin.c3 { left: 70%; animation-delay: 1.7s; }
@keyframes coin { 0% { opacity: 0; transform: translate3d(0, -6px, 0) scale(.8); } 12% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  45% { opacity: 1; transform: translate3d(0, 70px, 0) scale(.9); } 55%, 100% { opacity: 0; transform: translate3d(0, 92px, 0) scale(.6); } }
.wd-pct { position: absolute; right: 18px; bottom: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--blue-l);
  text-shadow: 0 0 18px rgba(61,123,255,.5); }
.wtitle { font-size: 46px; }
.wsteps { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.wsteps span { padding: 8px 12px; border-radius: 14px; background: var(--s1); font-size: 14px; font-weight: 700; white-space: nowrap; }
.wsteps i { flex: 1; height: 2px; min-width: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), transparent); }
@media (max-width: 350px) { .wsteps span { padding: 7px 9px; font-size: 13px; } .wtitle { font-size: 40px; } }

/* первый экран: свинка-копилка с репликой */
.pig-say { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pig { flex: 0 0 74px; height: 74px; border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: radial-gradient(circle at 50% 40%, rgba(61,123,255,.28), rgba(61,123,255,.06)); }
.pig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transform-origin: 50% 60%; animation: pig-wave 2.6s ease-in-out infinite; }
@keyframes pig-wave { 0%, 100% { transform: scale(1.15) rotate(0); } 50% { transform: scale(1.15) translate3d(0, -3%, 0) rotate(-4deg); } }
.pig-say p { position: relative; margin: 0; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--s1); font-size: 15px; line-height: 1.35;
  box-shadow: inset 0 0 0 1px var(--hair); }
/* главный экран: активная карточка спокойно «дышит», подсветка пола мягко пульсирует */
.picker .cat.active .cat-art .scene img:not(.refl) { animation: float 4s ease-in-out infinite; }
.picker .cat.active .cat-art .scene img.refl { animation: float-r 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }
@keyframes float-r { 0%, 100% { transform: scaleY(-1) translate3d(0, 0, 0); opacity: .28; } 50% { transform: scaleY(-1) translate3d(0, 5px, 0); opacity: .2; } }
.picker .carousel:after { animation: floor 4s ease-in-out infinite; }
@keyframes floor { 0%, 100% { opacity: .8; } 50% { opacity: .5; } }
/* подсказка у «Пополнить», пока цель пустая */
.nudge { margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; font-size: 14px; color: #c7d8ff; background: rgba(61,123,255,.12); }
.btn.ring { position: relative; }
.btn.ring:after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(61,123,255,.6); animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(61,123,255,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(61,123,255,0); } }

/* подсказка после запуска: свинка машет, рядом палец показывает свайп */
.pig-hi { position: relative; height: 150px; margin: -6px -10px 4px; }
.pig-hi .photo { height: 100%; }
.pig-hi .refl { display: none; }
.pig-hand { position: absolute; bottom: 8px; left: 50%; font-size: 34px; animation: swipe 1.8s ease-in-out infinite; }
.insight:empty { display: none; }
.tu-ic { font-size: 54px; margin-bottom: 10px; } .tupd .lead { margin-top: 12px; }

/* машина по деталям: маски деталей из webapp/assets/parts/<id>.png (7 штук одна под другой) */
.cparts { position: relative; width: 100%; max-width: 380px; margin: 0 auto; height: 0; padding-top: min(50%, 190px); cursor: pointer; }
.hero-art .cparts { align-self: center; }
.cparts > img, .cparts > i { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cp-g { filter: grayscale(1) brightness(.45) contrast(1.05); }
.cp-c, .cp-next { -webkit-mask-size: 100% 700%; mask-size: 100% 700%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: clip-path 1.2s var(--ease); }
.cp-next { background: rgba(110, 165, 255, .55); animation: cp-pulse 1.8s ease-in-out infinite; }
@keyframes cp-pulse { 0%, 100% { opacity: .15; } 50% { opacity: .65; } }
.cp-tip { position: absolute; z-index: 5; transform: translate3d(-50%, calc(-100% - 10px), 0); padding: 8px 12px; border-radius: 14px; white-space: nowrap;
  background: rgba(22, 24, 30, .95); box-shadow: 0 8px 22px rgba(0,0,0,.5), inset 0 0 0 1px rgba(110,165,255,.35); text-align: center;
  transition: opacity .3s ease; pointer-events: none; animation: tip-in .25s var(--ease); }
.cp-tip.gone { opacity: 0; }
.cp-tip b { display: block; font-size: 14px; }
.cp-tip span { display: block; font-size: 12px; color: var(--muted); }
.cp-tip em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--blue-l); margin-top: 2px; }
@keyframes tip-in { from { opacity: 0; transform: translate3d(-50%, calc(-100% - 2px), 0); } }
.vtog { position: absolute; top: 4px; left: 0; z-index: 3; display: flex; padding: 3px; border-radius: 13px; background: rgba(28, 30, 35, .82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.vtog button { height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.vtog button.on { background: var(--blue); color: #fff; }

.cp-next { opacity: 0; animation: none; }
.cp-next.on { animation: cp-pulse 1.8s ease-in-out infinite; }
.cp-c { transition: clip-path 1.4s cubic-bezier(.22, .8, .25, 1); }
.cp-badge { position: absolute; z-index: 4; transform: translate3d(-50%, -50%, 0) scale(.6); opacity: 0; padding: 4px 8px; border-radius: 10px; font-size: 12px;
  font-weight: 800; white-space: nowrap; background: rgba(20, 24, 34, .9); color: #fff; box-shadow: 0 0 0 1px rgba(110,165,255,.5), 0 4px 14px rgba(0,0,0,.4);
  transition: transform .4s var(--ease), opacity .4s ease, left .6s var(--ease), top .6s var(--ease); pointer-events: none; }
.cp-badge.on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }

/* мягкий «студийный» свет за машиной: тёмные цвета не теряются, яркие выглядят сочнее */
.cp-g { filter: grayscale(1) brightness(.85) contrast(.8); opacity: .42; }
.cp-hint { position: absolute; left: 50%; bottom: -6px; transform: translate3d(-50%, 0, 0); z-index: 4; padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 700;
  white-space: nowrap; color: #d6e4ff; background: rgba(61,123,255,.22); box-shadow: inset 0 0 0 1px rgba(110,165,255,.4); animation: hint-bob 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes hint-bob { 0%, 100% { transform: translate3d(-50%, 0, 0); } 50% { transform: translate3d(-50%, -3px, 0); } }
.sorts { margin: 10px 0 12px; }
.sorts .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 8px; padding: 0 20px; scrollbar-width: none; }
.sorts .chips::-webkit-scrollbar { display: none; }
.sorts .chips button { flex: 0 0 auto; height: 34px; font-size: 13px; }

/* огонёк рядом с суммой: значок с числом дней */
.sum { display: flex; align-items: baseline; flex-wrap: wrap; }
.fire-chip { position: relative; align-self: center; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 140, 40, .12); box-shadow: inset 0 0 0 1px rgba(255, 160, 70, .3); }
.fire-chip .flame { font-size: 28px; line-height: 1; }
.fire-chip b { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.fire-chip.wait { background: rgba(255, 140, 40, .06); }
.fire-chip.off, .fire-chip.none { background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair); }
.fire-chip:active { transform: scale(.92); }
/* кнопка цвета машины — в углу картинки */
.paint-b { position: absolute; left: 0; bottom: 18px; z-index: 3; width: 38px; height: 38px; border-radius: 13px; font-size: 18px;
  background: rgba(28, 30, 35, .82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.paint-b:active { transform: scale(.9); }
.paint-b { top: 140px; bottom: auto; }

/* первый экран: копилка с мечтами */
.whero { height: 210px; margin: 14px -18px 8px; display: flex; align-items: center; justify-content: center; }
.whero img { width: 100%; height: 100%; object-fit: contain; animation: float 5s ease-in-out infinite; }
/* нажатая деталь коротко вспыхивает */
.cp-next.tap { animation: cp-tap .9s ease-out; background: rgba(255, 255, 255, .7); }
@keyframes cp-tap { 0% { opacity: .85; } 100% { opacity: 0; } }
.cp-tip { min-width: 120px; }

.cp-tip { left: 50% !important; top: auto !important; bottom: -8px; transform: translate3d(-50%, 0, 0); display: flex; align-items: baseline; gap: 8px;
  padding: 7px 12px; border-radius: 12px; animation: tip-up .25s var(--ease); }
.cp-tip b, .cp-tip span, .cp-tip em { display: inline; margin: 0; }
@keyframes tip-up { from { opacity: 0; transform: translate3d(-50%, 6px, 0); } }
#paint { font-size: 18px; }
/* огонёк без подложки: только пламя, цифра дня внутри */
.fire-chip, .fire-chip.wait, .fire-chip.off, .fire-chip.none { background: none; box-shadow: none; width: 46px; height: 50px; }
.fire-chip .flame { font-size: 40px; filter: drop-shadow(0 2px 8px rgba(255, 120, 30, .35)); }
.fire-chip b { top: 62%; font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 0 2px #b23a00, 0 1px 4px rgba(120, 30, 0, .9); }
.fire-chip.off .flame, .fire-chip.none .flame { filter: grayscale(1); opacity: .45; }

.colr { display: inline-flex; align-items: center; gap: 5px; font: inherit; color: var(--blue-l); }
.colr i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.colr:after { content: "›"; margin-left: 1px; opacity: .7; }
/* первый экран без пустоты: картинка забирает свободное место, текст и кнопки — ровно под ней */
.welcome .whero { flex: 1 1 auto; height: auto; min-height: 190px; max-height: 360px; margin: 6px -18px 4px; }
.welcome .grow { flex: 0 0 18px; }
.tupd .grow { flex: 1 1 auto; }

/* техника: крупные нарисованные иконки и заметные подсказки моделей */
.tile-art img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.35); }
.sug-k { margin: 12px 0 0; font-size: 12px; font-weight: 700; color: var(--blue-l); }
.suggest { gap: 8px; margin-top: 8px; }
.suggest button { padding: 9px 13px; border-radius: 12px; font-size: 14px; color: var(--text); background: rgba(61,123,255,.12);
  box-shadow: inset 0 0 0 1px rgba(110,165,255,.28); }
.suggest button:first-child { background: rgba(61,123,255,.22); box-shadow: inset 0 0 0 1px rgba(110,165,255,.5); }
.suggest:empty + * , .suggest:empty { margin: 0; }

.screen.swap-in .hero, .screen.swap-in .sum, .screen.swap-in .progress { animation: swap-in .28s ease both; }
@keyframes swap-in { from { opacity: .35; } }
.screen.swap-in { animation: none !important; }

/* пока картинка готовится — мягкая подложка вместо пустоты */
.row-art .photo, .tile-art { background: radial-gradient(ellipse 60% 40% at 50% 70%, rgba(61,123,255,.08), transparent 70%); }
.tile-art img { transform: scale(1.1); }

/* карусель: соседние карточки видны всегда (без «пустоты» при быстром свайпе), во время свайпа ничего не «дышит» */
.picker .cat { opacity: .45; transform: scale(.9) translate3d(0, 4px, 0); transition: opacity .35s ease, transform .45s var(--ease); }
.picker .cat.active { opacity: 1; transform: none; }
.picker .cat h2, .picker .cat p, .picker .cat-meta { opacity: .5; transform: none; }
.picker .cat.active h2, .picker .cat.active p, .picker .cat.active .cat-meta { opacity: 1; }
.dragging .cat .cat-art img, .dragging .carousel:after { animation: none !important; }
.picker .cat-art img { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* переключатель вида — под машиной */
.vtog-row { display: flex; justify-content: center; margin: -6px 0 10px; }
.vtog-row .vtog { position: static; }
/* подсказка «Нажми на деталь» — спокойная, без мигания */
.cp-hint { animation: none; }
/* окно настройки цели: кнопка «Начать копить» всегда видна */
#start { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
/* своё фото: пометка про качество */
.q-note { display: block; width: 100%; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; text-align: left; color: var(--muted);
  background: rgba(255, 196, 0, .08); box-shadow: inset 0 0 0 1px rgba(255, 196, 0, .25); }
.q-note[hidden] { display: none; }
.q-note b { color: #ffd76a; }
/* админка: фото целей */
.aphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.aph { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; background: var(--s2); text-align: left; overflow: hidden; }
.aph img { width: 100%; height: 70px; object-fit: contain; border-radius: 8px; background: #0b0c0f; }
.aph span { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aph small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aph.ban { opacity: .45; }
.aph-big { height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.aph-big img { max-width: 100%; max-height: 100%; border-radius: 14px; }

/* подсказка без слов: детали по очереди вспыхивают светлым бело-голубым — видно и на синей машине */
.cp-demo .cp-next { background: linear-gradient(180deg, rgba(235, 244, 255, .95), rgba(140, 190, 255, .85));
  filter: drop-shadow(0 0 6px rgba(150, 200, 255, .9)); animation: cp-seq 3.85s ease-in-out infinite; }
@keyframes cp-seq { 0% { opacity: 0; } 6% { opacity: .9; } 16% { opacity: 0; } 100% { opacity: 0; } }
.vtog-row { justify-content: flex-end; margin: -10px 0 6px; } .vtog-row .vtog button { height: 28px; padding: 0 9px; font-size: 11.5px; }
/* вспышка-подсказка — лёгкий голубой отблеск, не похожий на заливку цветом */
.cp-demo .cp-next { background: rgba(140, 195, 255, .5); filter: drop-shadow(0 0 4px rgba(140, 195, 255, .8)); }
@keyframes cp-seq { 0% { opacity: 0; } 5% { opacity: .75; } 12% { opacity: 0; } 100% { opacity: 0; } }
.vtog-row { justify-content: center; }

/* следующая деталь больше не мигает постоянно — видно по значку с процентом */
.cp-next.on { animation: none; opacity: 0; }
/* нажатая деталь — целиком в цвете машины, мягко появляется и уходит */
.cp-c.peek { transition: clip-path .35s ease; } /* без тени: тень на маске с фильтром цвета тормозила на телефонах */
.cparts .cp-c { -webkit-mask-size: 100% 700%; mask-size: 100% 700%; }

/* своя цель: нажми на круг — загрузи фото */
.oth-up { display: flex; flex-direction: column; align-items: center; cursor: pointer; margin: 4px 0 10px; }
.oth-up .oth-prev { margin: 0; }
.up-badge { margin-top: -6px; padding: 8px 14px; border-radius: 14px; font-size: 14px; color: #fff; background: var(--blue); box-shadow: var(--sh-top), var(--sh-btn-blue); }
.oth-up:active .up-badge { transform: scale(.96); }
.oth-up.on .up-badge { background: var(--s2); color: var(--text); box-shadow: var(--sh-edge), var(--sh-btn); }
/* одежда: вещи сеткой по 3 — всё на одном экране; главная кнопка прилипает к низу */
.types.pick { grid-template-columns: repeat(3, 1fr); grid-gap: 8px; }
.types.pick button { padding: 10px 4px 8px; font-size: 12px; }
.types.pick .ti { height: 46px; }
#next, #done, #ogo { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
.carousel.leaving .track { transition: none !important; }
.howto-t { margin: 14px 0 18px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); background: var(--s2); } .howto-t b { color: var(--text); }

/* одежда: «собери образ» — вещи вокруг силуэта */
.look { position: relative; width: 100%; max-width: 380px; margin: 4px auto 0; aspect-ratio: 100 / 150; }
.look-glow { position: absolute; inset: 8% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 130, 255, .16), transparent); pointer-events: none; transition: opacity .4s; opacity: .5; }
.look.some .look-glow { opacity: 1; }
.look-sil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.look-sil path { fill: none; stroke: rgba(120, 165, 255, .16); stroke-width: .6; stroke-dasharray: 1.6 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.look .lk { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: 0; background: none; border: 0;
  animation: lk-in .5s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: var(--d); -webkit-tap-highlight-color: transparent; }
.lk-img { position: relative; width: 100%; aspect-ratio: 1; border-radius: 30%; background: var(--s2); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-edge), var(--sh-btn); transition: transform .25s, background .25s, box-shadow .25s; }
.lk-img img, .lk-img svg { width: 82%; height: 82%; object-fit: contain; filter: grayscale(1) brightness(.85); opacity: .9; transition: filter .3s, opacity .3s; }
.lk em { margin-top: 5px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .25s; }
.lk .tick { top: -4px; right: -4px; }
.lk:active .lk-img { transform: scale(.92); }
.lk.on .lk-img { background: var(--blue-t); box-shadow: inset 0 0 0 1.5px var(--blue), 0 8px 24px rgba(40, 110, 255, .35); }
.lk.on .lk-img img, .lk.on .lk-img svg { filter: none; opacity: 1; }
.lk.on em { color: var(--text); }
.lk.on .tick { background: var(--blue); transform: none; opacity: 1; }
.lk.on .tick svg { opacity: 1; }
.lk.pop .lk-img { animation: lk-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes lk-in { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } }
@keyframes lk-pop { 40% { transform: scale(1.14) rotate(-4deg); } 70% { transform: scale(.97); } }

/* главный экран: машина «плавает» всегда и на всех карточках одинаково — при свайпе и возврате анимация не обрывается и не дёргается */
.picker .cat .cat-art .scene img:not(.refl), .picker .track.snap .cat .cat-art .scene img:not(.refl), .dragging .cat .cat-art .scene img:not(.refl) { animation: float 4s ease-in-out infinite !important; }
.picker .cat .cat-art .scene img.refl, .picker .track.snap .cat .cat-art .scene img.refl, .dragging .cat .cat-art .scene img.refl { animation: float-r 4s ease-in-out infinite !important; }
.picker .carousel.dragging:after { animation: floor 4s ease-in-out infinite !important; }

.cparts .cp-c { will-change: clip-path; }

/* подсветка нажатой детали: появляется, держится ~1 с и гаснет сама; новое нажатие просто перезапускает её */
.cp-pk { pointer-events: none; opacity: 0;
  -webkit-mask-size: 100% 700%; mask-size: 100% 700%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.cp-pk.go { animation: cp-pk 1.4s ease; }
@keyframes cp-pk { 0% { opacity: 0; } 14% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* процент следующей детали — не поверх машины, а маленькой строкой под ней; пока открыта подсказка детали — скрыт */
.cparts .cp-badge { left: 50% !important; top: auto !important; bottom: -26px; transform: translate3d(-50%, 0, 0) scale(.9); padding: 3px 9px; font-size: 12px; font-weight: 700;
  background: var(--s2); color: var(--muted); box-shadow: none; transition: opacity .3s ease, transform .3s var(--ease); }
.cparts .cp-badge.on { transform: translate3d(-50%, 0, 0); }
.cparts:has(.cp-tip) .cp-badge { opacity: 0; }
.hero-art .cparts { margin-bottom: 24px; }

/* фото цели удалено модератором */
.img-off { margin: 0 0 12px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 90, 90, .08); box-shadow: inset 0 0 0 1px rgba(255, 110, 110, .3); }
.img-off b { display: block; font-size: 15px; }
.img-off p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.img-off .btn { width: 100%; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.reasons .pill.on { background: var(--blue); color: #fff; }
#newg { margin-top: 10px; }

/* «Сейчас копим: …» больше не показываем на машине — следующая деталь видна в «Из чего состоит» */
.cparts .cp-badge { display: none !important; }
.hero-art .cparts { margin-bottom: 0; }

/* кнопки «Пополнить / Вычесть» всегда на одном месте: всё, что выше них, фиксированной высоты */
.home .hero-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .hero-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .insight { -webkit-line-clamp: unset; min-height: 0; }
.img-off { margin: 12px 0 0; }

.home .actions { margin-top: 14px; }
.home .ins-under { margin: 12px 4px 0; }
.home .ins-under:empty { display: none; }

/* профиль: заметная карточка «Приводи друзей» */
.invite.big { position: relative; overflow: hidden; padding: 16px 18px 16px 132px; min-height: 112px; background: linear-gradient(135deg, #1d4fd8, #3d7bff);
  box-shadow: 0 10px 30px rgba(40, 110, 255, .35), var(--sh-top); }
.invite.big .inv-art { position: absolute; left: -6px; top: 50%; width: 140px; transform: translateY(-50%); pointer-events: none; }
.invite.big .inv-ic { position: absolute; left: 30px; font-size: 48px; }
.invite.big b { font-size: 18px; color: #fff; }
.invite.big span { color: rgba(255, 255, 255, .85); }
.invite.big .inv-go { display: inline-block; margin-top: 8px; padding: 6px 11px; border-radius: 11px; background: rgba(255, 255, 255, .2); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }
/* экран приглашений */
.ref-code { padding: 20px; border-radius: var(--rl); background: linear-gradient(135deg, #1d4fd8, #3d7bff); color: #fff; margin-bottom: 12px; text-align: center; }
.ref-code > span { font-size: 13px; font-weight: 600; opacity: .85; }
.ref-code b { display: block; font-size: 44px; letter-spacing: .14em; font-weight: 800; margin: 4px 0 14px; cursor: pointer; }
.rc-acts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.rc-acts .btn.primary { background: #fff; color: #1d4fd8; }
.rc-acts .btn:not(.primary) { background: rgba(255, 255, 255, .18); color: #fff; }
.rc-hint { margin-top: 10px; font-size: 12.5px; opacity: .8; }
.ref-bal .rb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ref-bal .rb-top span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ref-bal .rb-top b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.ref-bal .rb-top .btn { width: auto; padding: 0 22px; }
.rb-bar { height: 6px; border-radius: 3px; background: var(--s2); margin-top: 12px; overflow: hidden; }
.rb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffc93c, #ffb000); border-radius: 3px; }
.rb-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ref-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ref-steps div { padding: 12px 10px; border-radius: var(--rm); background: var(--s1); text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.ref-steps i { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-weight: 800; }
.re-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.re-row .btn { width: auto; padding: 0 20px; }
.re-row input { text-transform: uppercase; letter-spacing: .1em; }
.pform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.pform input { width: 100%; padding: 12px; border-radius: var(--rs); background: var(--s2); color: var(--text); border: 0; font: inherit; font-size: 14px; }
.pdel { margin-left: 8px; color: #ff6b6b; font-size: 12px; }

.rc-acts .btn, .rc-acts .btn + .btn { margin: 0; height: 50px; }
.ref-code b { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; }

/* листы открываются быстрее */
#sheet { transition: transform .32s cubic-bezier(.2, .9, .3, 1); }
/* значок Pro в окне «Pro уже с тобой»: логотип сразу целиком, без долгой отрисовки дуги */
.pro-badge { animation: pop .22s var(--ease) both; }
.pro-badge .lg-arc { animation: none; }

/* пункты Pro с иконками */
.pw-list.ic li { display: flex; align-items: center; gap: 12px; padding-left: 0; min-height: 44px; }
.pw-list.ic li:before { display: none; }
.pw-list.ic img { flex: 0 0 40px; width: 40px; height: 40px; }

/* админка: вкладки, компактный список чатов как в Telegram */
.atabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px 14px; padding: 8px 20px; background: var(--bg); scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
.atabs button { flex: 0 0 auto; position: relative; padding: 9px 14px; border-radius: 14px; background: var(--s1); color: var(--muted); font-weight: 700; font-size: 14px; }
.atabs button.on { background: var(--blue); color: #fff; }
.atabs .cnt { position: absolute; top: -5px; right: -5px; }
.cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue);
  color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--bg); }
.atabs button.on .cnt { background: #fff; color: var(--blue); }
.ach-bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ach-bar .search { margin: 0; }
.chat-list { border-radius: var(--rl); background: var(--s1); overflow: hidden; }
.chat-list > .muted { padding: 16px; }
.chat-list .btn { margin: 8px; width: calc(100% - 16px); }
.crow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; }
.crow + .crow { border-top: 1px solid var(--hair); }
.crow .ava.sm { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; font-size: 17px; display: flex; align-items: center; justify-content: center; background: var(--blue-t); color: var(--blue-l); font-weight: 800; }
.cr-t { flex: 1; min-width: 0; }
.cr-t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-t span { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow.new .cr-t span { color: var(--text); }
.cr-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cr-r time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.admin .card { margin-bottom: 10px; }
/* фото в чате */
.composer .attach { flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); cursor: pointer; }
.composer .attach svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.msg-img { display: block; max-width: 100%; max-height: 300px; border-radius: 12px; margin-bottom: 4px; cursor: zoom-in; }
.atabs { gap: 4px; }
.atabs button { flex: 1 1 auto; padding: 9px 6px; font-size: 13px; text-align: center; }

.abc { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--s2); color: var(--muted); }
/* «Pro уже с тобой»: значок сразу, без анимации; список компактнее; кнопка всегда видна внизу */
.pro-badge, .pro-badge * { animation: none !important; opacity: 1; transform: none; }
#sheet .pw-list.ic { margin: 12px 0; }
#sheet .pw-list.ic li { min-height: 0; padding: 7px 0; font-size: 14.5px; }
#sheet .pw-list.ic img { flex-basis: 34px; width: 34px; height: 34px; }
#sheet .pro-have #okp, #sheet .pw #buy { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2; box-shadow: 0 -12px 24px 8px var(--s1), var(--sh-btn-blue); }

/* окно Pro: свинка, плитки возможностей, цена, кнопка, маленькая ссылка на звёзды */
.pw2, .pro-have { text-align: center; }
.pw2 .pw-hero { height: 120px; margin: -4px auto 4px; max-width: 220px; }
.pw2 .pw-hero .scene img.refl { display: none; }
.pw2 h2 { font-size: 24px; line-height: 1.15; }
.pw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 14px; }
.pw-grid div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: var(--s2); }
.pw-grid img { width: 44px; height: 44px; }
.pw-grid span { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.pw2 .pw-price { display: flex; flex-direction: column; align-items: center; margin: 4px 0 14px; }
.pw2 .pw-price b { display: inline-flex; align-items: center; gap: 4px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.pw2 .pw-price b .star { width: 28px; height: 28px; }
.pw2 .pw-price span { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pbot2 { display: block; width: 100%; margin-top: 10px; padding: 8px; font-size: 13.5px; color: var(--muted); background: none; }
.pbot2 b { color: var(--blue-l); }
.pw2 .fine { margin-top: 2px; }
#sheet .pw2 #buy { position: static; box-shadow: var(--sh-btn-blue); }
.pro-have .pw-grid { margin-top: 10px; }

/* компактнее: всё окно Pro влезает в экран небольшого телефона */
.pw2 .pw-hero { height: 84px; max-width: 150px; margin: -8px auto 0; }
.pw2 .pw-k { margin-bottom: 2px; font-size: 13px; }
.pw2 h2, .pro-have h2 { font-size: 21px; margin: 0; }
.pw-grid { gap: 6px; margin: 12px 0 10px; }
.pw-grid div { flex-direction: row; justify-content: flex-start; gap: 6px; padding: 7px 6px; border-radius: 12px; text-align: left; }
.pw-grid img { flex: 0 0 28px; width: 28px; height: 28px; }
.pw-grid span { font-size: 11.5px; }
.pw2 .pw-price { flex-direction: row; justify-content: center; align-items: baseline; gap: 6px; margin: 2px 0 10px; }
.pw2 .pw-price b { font-size: 28px; }
.pw2 .pw-price b .star { width: 22px; height: 22px; }
.pw2 .pw-price span { margin: 0; font-size: 14px; }
.pbot2 { margin-top: 6px; padding: 6px; }
.pw2 .fine { margin-top: 0; font-size: 11px; }
.pro-have .pro-badge { margin: 0 0 8px; padding: 6px 14px 6px 6px; }
.pro-have .pro-badge .logo { width: 30px; height: 30px; }
.pro-have .pro-badge span { font-size: 17px; }
.pro-have > .muted { margin: 2px 0 0; font-size: 14px; }
/* окна Pro теперь короткие — кнопки обычные, не «прилипают» и ничего не перекрывают (на iPhone перекрывали плитки) */
#sheet .pro-have #okp, #sheet .pw #buy { position: static; box-shadow: var(--sh-btn-blue); margin-top: 6px; }
.pw-grid { position: relative; z-index: 1; }
/* цена «50 ⭐ в месяц» ровно в одну линию по центру */
.pw2 .pw-price { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 12px; }
.pw2 .pw-price b { display: inline-flex; align-items: center; gap: 4px; font-size: 30px; line-height: 1; }
.pw2 .pw-price b .star { width: 24px; height: 24px; margin: 0; vertical-align: 0; filter: none; flex: 0 0 24px; }
.pw2 .pw-price span { font-size: 15px; font-weight: 600; line-height: 1; color: var(--muted); margin: 3px 0 0; }
#buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#buy .star { width: 20px; height: 20px; margin: 0; filter: none; }
.pw2 .pw-price { gap: 6px; }
.pw2 .pw-price b { gap: 1px; }
#buy { gap: 3px; }

/* открыта клавиатура: нижнее меню и прилипшие кнопки не мешают и не закрывают поле */
body.kb #tabs { opacity: 0 !important; pointer-events: none !important; transform: translate3d(-50%, 150%, 0) !important; }
body.kb #next, body.kb #done, body.kb #ogo { position: static; }
input, textarea { scroll-margin: 90px; }

body.kb #start { position: static; }
#tabs { transition: transform .25s ease, opacity .2s ease; }

/* своя цель: загрузка фото — только по нажатию на круг и кнопку, а не по всей строке */
.oth-up { width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
/* «Начать копить» в окне выбора: ровный отступ от полей, прилипает к низу */
#sheet #start { margin-top: 18px; bottom: 0; }
#sug { margin-bottom: 14px; }
/* под кнопками: подсказки ровной колонкой, одинаковые отступы */
.home .actions { margin: 14px 0 0; }
.home .ins-under { margin: 12px 2px 0; font-size: 14px; line-height: 1.45; }
.home .nudge { margin: 10px 0 0; padding: 11px 14px; border-radius: var(--rm); font-size: 14px; line-height: 1.4; text-align: left; }
.home .img-off { margin: 10px 0 0; }
.home .tip { margin: 10px 0 0; }
.home .actions ~ .card, .home .actions ~ section.card { margin-top: 14px; }

/* «Популярные — нажми, чтобы выбрать»: ровно под полем, с отступом, на одной линии с полями */
#sheet .sug-k { margin: 10px 2px 0; }
#sheet #sug { margin: 8px 0 16px; }
#sheet #sug + .field { margin-top: 0; }

/* выбор картинки цели в технике: ряд миниатюр с прокруткой */
.picks { display: flex; gap: 8px; overflow-x: auto; margin: 8px -20px 16px; padding: 2px 20px 6px; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.picks button { flex: 0 0 76px; height: 64px; border-radius: 14px; background: var(--s2); padding: 4px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, transform .15s; }
.picks button.on { box-shadow: inset 0 0 0 2px var(--blue); background: var(--blue-t); }
.picks button:active { transform: scale(.95); }
.picks img { width: 100%; height: 100%; object-fit: contain; }
#sheet #sug + #pick-k { margin-top: 0; }

/* цвет машины: слой краски поверх оригинала, по маске кузова с мягким краем */
.ph-box { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.photo .coat { pointer-events: none; }
.cparts .cp-pk { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* под машиной — своя «подложка»: чуть светлее фона, ровная, со скруглением; тёмные машины на ней видно, без пятен и свечений */
.hero-art.car { position: relative; border-radius: 26px; background: linear-gradient(180deg, #16191e 0%, #1c2026 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.cfg-art.car { border-radius: 22px; background: linear-gradient(180deg, #16191e 0%, #1c2026 100%); }

/* копить вместе */
.hero-acts .icon-btn { position: relative; }
.hero-acts .icon-btn.on { color: var(--blue-l); background: var(--blue-t); }
.hero-acts .icon-btn .cnt { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; font-size: 10.5px; }
.hero-acts .icon-btn svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.coop { text-align: center; }
.co-hero { height: 120px; max-width: 220px; margin: -6px auto 2px; }
.co-hero .scene img.refl, .wl-hero .scene img.refl { display: none; }
.co-art { height: 130px; margin: 0 auto 8px; max-width: 280px; position: relative; }
.co-people { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 6px; text-align: left; }
.co-p { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--s2); }
.co-p .ava.sm { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-t); color: var(--blue-l); font-weight: 800; }
.co-p b { flex: 1; font-size: 15px; }
.co-p em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.co-p .link.danger { color: #ff6b6b; font-size: 13px; }
.co-live { margin: 4px 0 8px; font-size: 14px; font-weight: 600; }
.coop .chips { justify-content: center; margin-bottom: 12px; }
.co-sum { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 4px 0 14px; }
.co-sum b { font-size: 24px; font-weight: 800; }
.co-sum span { color: var(--muted); }
.coop .sh-h { text-align: left; margin-top: 16px; }
.coop .muted.small { text-align: left; }
/* вишлист */
.wl-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.wl-mini > div { padding: 8px 6px; border-radius: 14px; background: var(--s2); }
.wl-mini .wl-ic { height: 48px; position: relative; }
.wl-mini span { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish .wl-head { text-align: center; margin: 6px 0 14px; }
.wl-hero { height: 150px; max-width: 260px; margin: 0 auto; }
.wish .wl-head h1 { font-size: 30px; margin-top: 4px; }
.wl-list { display: flex; flex-direction: column; gap: 10px; }
.wl-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--s1); }
.wl-card.done { box-shadow: inset 0 0 0 1.5px rgba(255, 196, 0, .35); }
.wl-art { flex: 0 0 120px; height: 72px; position: relative; border-radius: 14px; background: linear-gradient(180deg, #16191e, #1c2026); }
.wl-t { flex: 1; min-width: 0; text-align: left; }
.wl-t span { font-size: 12px; color: var(--muted); font-weight: 600; }
.wl-t b { display: block; font-size: 16px; margin: 1px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-t .progress { height: 6px; margin: 0 0 5px; }
.wl-t em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.wl-t .wl-done { color: #ffc93c; }
.wish #wmine { margin-top: 16px; }
/* машина: «Детали» и «Заливка» — один размер и один серый цвет незаполненного */
.hero-art.car { height: auto; min-height: 180px; margin: 0 0 14px; padding: 46px 10px 14px; justify-content: center; }
.hero-art.car .photo { position: relative; width: 100%; max-width: 380px; height: auto; aspect-ratio: 2 / 1; margin: 0 auto; flex: 0 0 auto; }
.hero-art.car .cparts { width: 100%; max-width: 380px; margin: 0 auto; padding-top: 50%; }
.photo[data-car] .ph-g, .cparts .cp-g { filter: grayscale(1) brightness(.85) contrast(.8); opacity: .42; }
/* кнопки «вместе / поделиться / удалить» — внутри подложки, в её углу */
.home .hero-acts { top: 10px; right: 10px; }
.home .hero-acts .icon-btn { flex-basis: 36px; width: 36px; height: 36px; border-radius: 12px; }
.home .hero-acts { top: 16px; right: 12px; }

/* кнопки цели — в строке с названием, не поверх картинки: машину, дом, технику ничего не перекрывает */
.home .hero-row .hero-acts { position: static; display: flex; gap: 6px; margin: 2px 0 0 10px; flex: 0 0 auto; }
.home .hero-row .hero-acts .icon-btn { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; }
.home .hero-row .hero-acts .icon-btn svg { width: 18px; height: 18px; }
/* компактнее: кнопки «Пополнить / Вычесть» видны на первом экране */
.hero-art.car { padding: 12px 10px 10px; min-height: 0; margin-bottom: 8px; }
.home .hero-art { height: 150px; margin-bottom: 8px; }
.home .hero-art.car { height: auto; }
.home .vtog-row { margin: -2px 0 6px; }
.home .goals { margin-bottom: 10px; }
.home .sum { margin-top: 6px; }
.home .sum b { font-size: 40px; }
.home .actions { margin-top: 10px; }

/* пополнение / вычитание: зелёная или красная вспышка суммы, всплывающая сумма, свечение полоски */
.home .sum { position: relative; }
.sum.gain #saved { animation: tx-gain 1.4s ease; }
.sum.loss #saved { animation: tx-loss 1.4s ease; }
@keyframes tx-gain { 0% { color: inherit; } 15% { color: #2fd27a; transform: scale(1.06); text-shadow: 0 0 18px rgba(47, 210, 122, .45); } 100% { color: inherit; transform: none; text-shadow: none; } }
@keyframes tx-loss { 0% { color: inherit; } 15% { color: #ff5a5a; transform: scale(.97); text-shadow: 0 0 18px rgba(255, 90, 90, .4); } 100% { color: inherit; transform: none; text-shadow: none; } }
.home .sum #saved { display: inline-block; transform-origin: 0 70%; }
.tx-float { position: absolute; left: 0; top: -26px; font-style: normal; font-weight: 800; font-size: 17px; padding: 3px 10px; border-radius: 10px; pointer-events: none; z-index: 3; }
.tx-float.up { color: #2fd27a; background: rgba(47, 210, 122, .14); animation: tx-up 1.6s cubic-bezier(.2, .8, .3, 1) forwards; }
.tx-float.down { color: #ff5a5a; background: rgba(255, 90, 90, .14); animation: tx-down 1.6s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes tx-up { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 20% { opacity: 1; transform: translateY(-6px) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes tx-down { 0% { opacity: 0; transform: translateY(-10px) scale(.8); } 20% { opacity: 1; transform: translateY(4px) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }
.progress.gain i { background: #2fd27a; box-shadow: 0 0 14px rgba(47, 210, 122, .55); transition: transform 1.3s var(--ease), background .3s, box-shadow .3s; }
.progress.loss i { background: #ff5a5a; box-shadow: 0 0 14px rgba(255, 90, 90, .5); transition: transform 1.3s var(--ease), background .3s, box-shadow .3s; }

/* перестановка целей */
.gchip { transition: transform .18s ease, box-shadow .18s ease; touch-action: pan-x; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.goals.sorting { overflow: visible; touch-action: none; }
.gchip.lift { position: relative; z-index: 5; box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 0 2px var(--blue); transition: box-shadow .18s ease; }
/* вишлист: копить вместе */
.wl-co { margin-top: 8px; padding: 7px 12px; border-radius: 11px; background: var(--blue-t); color: var(--blue-l); font-size: 13px; font-weight: 700; }
.wl-co:active { transform: scale(.96); }
.wl-joined { display: inline-block; margin-top: 8px; font-size: 12.5px; color: #2fd27a; font-weight: 700; }

/* ---------- подсказка «машина собирается по деталям» (одна и та же BMW, мягкие маски) ---------- */
.car-intro { margin: 2px -4px 0; }
.ci-car { position: relative; aspect-ratio: 2 / 1; }
.ci-car img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.ci-g { filter: grayscale(1) brightness(.78) contrast(.9); opacity: .75; }
.ci-l { -webkit-mask-image: var(--pm), linear-gradient(to bottom, transparent 47%, #000 53%); mask-image: var(--pm), linear-gradient(to bottom, transparent 47%, #000 53%);
  -webkit-mask-size: 100% 100%, 100% 300%; mask-size: 100% 100%, 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect; -webkit-mask-position: 0 0, 0 23%; mask-position: 0 0, 0 23%;
  animation: 7s cubic-bezier(.45, 0, .3, 1) infinite; }
.ci-b, .ci-f { -webkit-mask-image: linear-gradient(to bottom, transparent 47%, #000 53%); mask-image: linear-gradient(to bottom, transparent 47%, #000 53%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-position: 0 23%; mask-position: 0 23%; }
.ci-gw { position: absolute; top: 0; left: 0; right: 0; bottom: 0; filter: blur(7px) brightness(1.9) saturate(1.6); mix-blend-mode: screen; opacity: 0; animation: 7s ease-in-out infinite; pointer-events: none; }
/* режим «Детали»: детали по очереди загораются (7 с по кругу) */
.m-parts .ci-w { animation-name: ci-w; } .m-parts .ci-li { animation-name: ci-li; } .m-parts .ci-gl { animation-name: ci-gl; } .m-parts .ci-b { animation-name: ci-b; }
.m-parts .ci-gw-w { animation-name: ci-gw-w; } .m-parts .ci-gw-li { animation-name: ci-gw-li; } .m-parts .ci-gw-gl { animation-name: ci-gw-gl; } .m-parts .ci-gw-b { animation-name: ci-gw-b; }
.m-parts .ci-f { display: none; }
@keyframes ci-w { 0%, 6% { -webkit-mask-position: 0 0, 0 22.5%; mask-position: 0 0, 0 22.5%; opacity: 1; } 22%, 90% { -webkit-mask-position: 0 0, 0 52.5%; mask-position: 0 0, 0 52.5%; opacity: 1; } 98%, 100% { -webkit-mask-position: 0 0, 0 52.5%; mask-position: 0 0, 0 52.5%; opacity: 0; } }
@keyframes ci-li { 0%, 24% { -webkit-mask-position: 0 0, 0 37%; mask-position: 0 0, 0 37%; opacity: 1; } 35%, 90% { -webkit-mask-position: 0 0, 0 53%; mask-position: 0 0, 0 53%; opacity: 1; } 98%, 100% { -webkit-mask-position: 0 0, 0 53%; mask-position: 0 0, 0 53%; opacity: 0; } }
@keyframes ci-gl { 0%, 36% { -webkit-mask-position: 0 0, 0 42.5%; mask-position: 0 0, 0 42.5%; opacity: 1; } 51%, 90% { -webkit-mask-position: 0 0, 0 62.5%; mask-position: 0 0, 0 62.5%; opacity: 1; } 98%, 100% { -webkit-mask-position: 0 0, 0 62.5%; mask-position: 0 0, 0 62.5%; opacity: 0; } }
@keyframes ci-b { 0%, 52% { -webkit-mask-position: 0 23%; mask-position: 0 23%; opacity: 1; } 78%, 90% { -webkit-mask-position: 0 63%; mask-position: 0 63%; opacity: 1; } 98%, 100% { -webkit-mask-position: 0 63%; mask-position: 0 63%; opacity: 0; } }
@keyframes ci-gw-w { 0%, 8% { opacity: 0; } 18% { opacity: .9; } 30%, 100% { opacity: 0; } }
@keyframes ci-gw-li { 0%, 26% { opacity: 0; } 34% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes ci-gw-gl { 0%, 38% { opacity: 0; } 48% { opacity: .8; } 58%, 100% { opacity: 0; } }
@keyframes ci-gw-b { 0%, 56% { opacity: 0; } 76% { opacity: .7; } 88%, 100% { opacity: 0; } }
/* режим «Заливка»: вся машина заливается снизу вверх (4,5 с по кругу) */
.m-fill .ci-w, .m-fill .ci-li, .m-fill .ci-gl, .m-fill .ci-b, .m-fill .ci-gw { display: none; }
.m-fill .ci-f { animation: ci-f 4.5s cubic-bezier(.45, 0, .3, 1) infinite; }
@keyframes ci-f { 0%, 8% { -webkit-mask-position: 0 23%; mask-position: 0 23%; opacity: 1; } 68%, 88% { -webkit-mask-position: 0 63%; mask-position: 0 63%; opacity: 1; } 97%, 100% { -webkit-mask-position: 0 63%; mask-position: 0 63%; opacity: 0; } }
.ci-step { position: relative; height: 26px; margin-top: 4px; }
.ci-step span { position: absolute; left: 0; right: 0; font-size: 13.5px; font-weight: 700; color: var(--text); opacity: 0; animation: 7s ease infinite; }
.m-parts .ci-step span:nth-child(1) { animation-name: ci-s1; } .m-parts .ci-step span:nth-child(2) { animation-name: ci-s2; } .m-parts .ci-step span:nth-child(3) { animation-name: ci-s3; }
.m-parts .ci-step span:nth-child(4) { animation-name: ci-s4; } .m-parts .ci-step span:nth-child(5) { animation-name: ci-s5; }
.m-fill .ci-step span:nth-child(6) { opacity: 1; animation: none; }
@keyframes ci-s1 { 4% { opacity: 0; transform: translateY(6px); } 8%, 21% { opacity: 1; transform: none; } 24% { opacity: 0; } }
@keyframes ci-s2 { 23% { opacity: 0; transform: translateY(6px); } 26%, 33% { opacity: 1; transform: none; } 36% { opacity: 0; } }
@keyframes ci-s3 { 35% { opacity: 0; transform: translateY(6px); } 38%, 49% { opacity: 1; transform: none; } 52% { opacity: 0; } }
@keyframes ci-s4 { 51% { opacity: 0; transform: translateY(6px); } 54%, 76% { opacity: 1; transform: none; } 79% { opacity: 0; } }
@keyframes ci-s5 { 78% { opacity: 0; transform: translateY(6px) scale(.9); } 81%, 92% { opacity: 1; transform: none; color: #ffd23f; } 96% { opacity: 0; } }
.ci-tog { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 4px; padding: 3px; border-radius: 12px; background: var(--s2); }
.ci-tog button { position: relative; z-index: 1; padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; transition: color .3s; }
.ci-tog button.on { color: #fff; }
.ci-tog i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: var(--blue); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.m-fill .ci-tog i { transform: translateX(100%); }
@media (prefers-reduced-motion: reduce) { .ci-l, .ci-gw, .ci-step span { animation-duration: 14s; } }
/* компактный экран цели: «Пополнить / Вычесть» видны сразу, над нижним меню, даже на небольших телефонах */
.home .bar { margin-bottom: 8px; }
.home .goals { margin-bottom: 6px; }
.home .hero { padding-top: 0; margin-top: 0; }
.home .hero-art { height: 140px; margin-bottom: 6px; }
.home .hero-art.car { height: auto; padding: 6px 8px; margin-bottom: 6px; }
.home .hero-art.car .photo, .home .hero-art.car .cparts { max-width: 300px; }
.home .vtog-row { margin: 0 0 4px; }
.home .vtog-row .vtog button { height: 28px; }
.home .sum { margin-top: 2px; }
.home .sum b { font-size: 36px; }
.home .progress { margin-top: 8px; }
.home .sum-row { margin-top: 6px; }
.home .actions { margin-top: 12px; }

/* активный фильтр в каталоге: видно сразу, сбросить одним нажатием */
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; padding: 10px 12px; border-radius: 14px;
  background: var(--blue-t); box-shadow: inset 0 0 0 1px rgba(61, 123, 255, .35); font-size: 13.5px; }
.fbar[hidden] { display: none; }
.fbar b { color: var(--text); }
.fbar button { flex: 0 0 auto; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--text); font-size: 13px; font-weight: 700; }
.sorts .chips + .chips { margin-top: 6px; }
/* главный экран и «Хочу питомца»: на невысоких телефонах карточка ниже, кнопка всегда видна внизу */
.picker #pick { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
@media (max-height: 760px) {
  .picker .cat-art { height: 190px; margin-bottom: 16px; }
  .picker .carousel:before { top: 128px; height: 56px; }
  .picker .carousel:after { top: 156px; }
  .picker .cat h2 { font-size: 34px; }
  .picker .cat p { font-size: 14.5px; margin-top: 6px; }
}

/* машина «по деталям»: пропорция 2:1 от своей ширины (padding-top в % считался от ширины блока и растягивал машину) — как в «Заливке» */
.hero-art.car .cparts, .home .hero-art.car .cparts { height: auto; padding-top: 0; aspect-ratio: 2 / 1; }
/* «Приводи друзей»: без синего свечения снизу — ровная тонкая тень, как у остальных карточек */
.invite.big { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(0, 0, 0, .28); }
.invite.big .inv-art { filter: none; }

/* вспышка суммы дольше и заметнее */
.sum.gain #saved { animation: tx-gain 1.8s ease; }
.sum.loss #saved { animation: tx-loss 1.8s ease; }
@keyframes tx-gain { 0% { color: inherit; } 12%, 65% { color: #2fd27a; text-shadow: 0 0 22px rgba(47, 210, 122, .55); } 12% { transform: scale(1.08); } 40% { transform: none; } 100% { color: inherit; text-shadow: none; } }
@keyframes tx-loss { 0% { color: inherit; } 12%, 65% { color: #ff5a5a; text-shadow: 0 0 22px rgba(255, 90, 90, .5); } 12% { transform: scale(.95); } 40% { transform: none; } 100% { color: inherit; text-shadow: none; } }
.tx-float { font-size: 19px; }
/* калькулятор */
.calc-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.calc-how div { padding: 10px 8px; border-radius: var(--rm); background: var(--s1); font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center; }
.calc-how i { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-weight: 800; }
#sh-tip { margin-top: 8px; }
.calc-goal { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); }
.cg-art { flex: 0 0 64px; height: 40px; position: relative; }
.cg-t { flex: 1; min-width: 0; }
.cg-t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-t span, .cg-r span { font-size: 12.5px; color: var(--muted); }
.cg-r { text-align: right; }
.cg-r b { display: block; font-size: 15px; color: #2fd27a; }
.calc-note { margin: 4px 6px 0; }

/* главный экран, путешествия: отражение, свечение ярче, акцент на центральном флаге, плавание как у других карточек */
.picker .tops-scene { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.picker .tops-glow { position: absolute; left: 22%; right: 22%; top: 46%; height: 70px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 123, 255, .5), rgba(61, 123, 255, .16) 60%, transparent); filter: blur(6px); }
.picker .tops-scene .tops { position: relative; z-index: 1; }
.picker .tops-scene .tops.refl { position: absolute; left: 0; right: 0; top: 100%; transform: scaleY(-1); opacity: .3; pointer-events: none; margin-top: -24%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 45%); mask-image: linear-gradient(to top, #000, transparent 45%); }
.picker .tops .top:nth-child(1), .picker .tops .top:nth-child(3) { filter: brightness(.62) saturate(.85) blur(.5px); }
.picker .tops .top:nth-child(2) .flag { box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 30px -4px rgba(61, 123, 255, .75); }
.picker .cat.active .tops-scene .tops:not(.refl) { animation: float 4s ease-in-out infinite; }
.picker .cat.active .tops-scene .tops.refl { animation: float-r 4s ease-in-out infinite; }
.picker .track.snap .cat .tops-scene .tops:not(.refl), .dragging .cat .tops-scene .tops:not(.refl), .picker .cat .tops-scene .tops:not(.refl) { animation: float 4s ease-in-out infinite !important; }
.picker .track.snap .cat .tops-scene .tops.refl, .dragging .cat .tops-scene .tops.refl, .picker .cat .tops-scene .tops.refl { animation: float-r-flag 4s ease-in-out infinite !important; }
@keyframes float-r-flag { 0%, 100% { transform: scaleY(-1) translate3d(0, 0, 0); opacity: .22; } 50% { transform: scaleY(-1) translate3d(0, 5px, 0); opacity: .16; } }

/* после пополнения: лёгкая плашка снизу, сама исчезает */
#mini { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px;
  max-width: 440px; margin: 0 auto; padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(24, 27, 32, .96); box-shadow: inset 0 0 0 1px rgba(47, 210, 122, .35), 0 12px 30px rgba(0, 0, 0, .45);
  transform: translate3d(0, 24px, 0); opacity: 0; transition: transform .35s var(--ease), opacity .3s ease; }
#mini.show { transform: none; opacity: 1; }
#mini .mc-ic { font-size: 26px; }
#mini > div { flex: 1; min-width: 0; }
#mini b { display: block; font-size: 15.5px; color: #2fd27a; }
#mini span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini button { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }

/* ===== Финальная полировка ===== */
/* 1. Кнопки — деликатное «жидкое стекло»: тонкая светлая обводка, верхний блик, лёгкая глубина. Синий не меняется */
.btn.primary { position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 8px 18px -10px rgba(31, 84, 214, .8); }
.btn.primary:after { content: ""; position: absolute; left: 10%; right: 10%; top: 1px; height: 38%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); }
.btn.primary:disabled:after { display: none; }
.btn:not(.primary):not(.danger-b), .btn.soft, .icon-btn, .pill:not(.on):not(.accent) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 14px -8px rgba(0, 0, 0, .7); }
.btn:active, .icon-btn:active { transform: scale(.98); }
/* 4. Тонкие графитовые границы — только у карточек и плиток, чтобы блоки отделялись */
.card, .kpi-i, .wl-card, .co-p { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045); }
.chat-list, .fbar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
/* 3. Профиль компактнее */
.profile .me { margin: 2px 0 12px; }
.profile .ava { flex-basis: 52px; width: 52px; height: 52px; border-radius: 18px; font-size: 23px; margin-right: 12px; }
.profile .me-name { font-size: 24px; }
.profile .sub { padding: 13px 16px; margin-bottom: 10px; }
.profile .upsell { padding: 14px 16px; }
.profile .upsell p { margin: 2px 0 10px; }
.profile .invite.big { min-height: 92px; padding: 12px 14px 12px 118px; margin-bottom: 10px; }
.profile .invite.big .inv-art { width: 122px; }
.profile .kpi { margin-bottom: 10px; grid-gap: 6px; }
.profile .kpi-i { padding: 12px 14px; }
.profile .kpi-i b { font-size: 20px; }
.profile .menu { padding: 2px 14px; }
.profile .prow { padding: 11px 0; gap: 12px; }
.profile .prow small { margin-top: 1px; }
.profile .prow .pic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: var(--s2); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.profile .prow .pic img { width: 24px; height: 24px; }
.profile #wipe { margin-top: 4px; }

.profile .kpi-i.tap { position: relative; }
.profile .kpi-i .pic { display: inline-flex; width: 26px; height: 26px; margin-bottom: 4px; }
.profile .kpi-i .pic img { width: 26px; height: 26px; }
.btn.primary:after { display: none; }

/* профиль: статистика одной компактной строкой */
.pstats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 10px; border-radius: var(--rl); background: var(--s1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045); }
.pstats > * { padding: 11px 12px; text-align: left; }
.pstats > * + * { border-left: 1px solid var(--hair); }
.pstats b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.pstats span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.pstats button:active { background: var(--s2); }
/* промокод */
.profile .promo-row .pic { font-size: 17px; font-style: normal; }
.promo-in input { width: 100%; height: 56px; padding: 0 16px; margin: 14px 0 4px; border-radius: var(--rm); background: var(--s2); color: var(--text); border: 0; font: inherit;
  font-size: 20px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pw2 .pbot2 + .pbot2 { margin-top: 0; }

/* ===== Единый стиль по всему приложению: тонкая графитовая обводка и деликатное «жидкое стекло» ===== */
:root { --edge: inset 0 0 0 1px rgba(255, 255, 255, .05); --glass: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .16); }
/* поверхности: карточки, строки, плитки, поля, подсказки — едва заметная граница */
.row, .tile, .tip, .nudge, .search input, .money, .seg, .vtog, .gchip:not(.on), .wl-art, .picks button:not(.on), .pstats, .ref-bal, .ref-steps div, .calc-how div,
.pw-grid div, .reasons .pill:not(.on), .co-p, .swatches, .hero-art.car, .cparts .cp-tip, .msg:not(.mine), .composer textarea, .plan-res { box-shadow: var(--edge); }
.money:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue); }
#sheet { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 -10px 30px rgba(0, 0, 0, .35); }
/* синие активные элементы — то же стекло, что у кнопок: тонкая светлая обводка и верхний блик, цвет прежний */
.chips button.on, .vtog button.on, .gchip.on, .sorts .chips button.on, .atabs button.on, .pill.on, .pill.accent, .reasons .pill.on, .wl-co, #mini button, .re-row .btn, .rc-acts .btn.primary,
.icon-btn.on, .tgl.on, #tabs .plus, #tabs button.add { box-shadow: var(--glass), 0 6px 14px -8px rgba(31, 84, 214, .75); }
.chips button:not(.on), .sorts .chips button:not(.on), .atabs button:not(.on) { box-shadow: var(--edge); }
/* нижнее меню — тонкая граница и блик, как у карточек */
#tabs { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px rgba(0, 0, 0, .45); }

/* страны на главном: без обводки, у каждого флага зеркальное отражение снизу */
#tabs .tab-add { box-shadow: var(--glass), 0 6px 14px -8px rgba(31, 84, 214, .75); }
.picker .tops-scene .tops.refl { display: none; }
.picker .tops .top .flag { box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .8); }
.picker .tops .top:nth-child(2) .flag { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .85); }
.picker .tops .top .frefl { margin-top: 4px; transform: scaleY(-1); opacity: .26; box-shadow: none;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 55%); mask-image: linear-gradient(to top, #000, transparent 55%); }
.picker .tops .top { align-self: flex-start; }
.picker .tops-scene { justify-content: flex-start; padding-top: 18%; }

.chips.years { justify-content: center; margin: 4px 0 10px; }
.chips.years button { min-width: 84px; font-weight: 800; }

/* план: своя дата — нативный выбор дня поверх чипа */
.chips .pdate { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--rs); background: var(--s2); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; box-shadow: var(--edge); }
.chips .pdate.on { background: var(--blue); color: #fff; }
.chips .pdate input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; font-size: 16px; }
.chips .pdate input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.chips .pdate.on { background: var(--blue); color: #fff; box-shadow: var(--glass), 0 6px 14px -8px rgba(31, 84, 214, .75); }
/* приветствие под логотипом */
.wm span { display: flex; flex-direction: column; line-height: 1.05; }
.wm .hello { font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
/* отметки 25/50/75% на полоске: пройденные светятся */
.progress.ticks { position: relative; }
.progress.ticks s { position: absolute; top: 50%; width: 2px; height: 2px; margin: -1px 0 0 -1px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background .4s, box-shadow .4s; }
.progress.ticks s.on { background: #fff; box-shadow: 0 0 6px rgba(160, 200, 255, .9); }
/* плашка после вычитания и «Отменить» */
#mini.minus b { color: #ff7a7a; }
#mini button.ghost { background: transparent; color: var(--muted); box-shadow: var(--edge); padding: 0 12px; }
#mini { gap: 10px; }
#mini b { white-space: nowrap; }
#mini button { padding: 0 12px; font-size: 13.5px; }
#mini { gap: 10px; }
#mini b { white-space: nowrap; }
#mini button { padding: 0 12px; font-size: 13.5px; }

/* пополнение: монеты летят в цель; вычитание: высыпаются */
.fx-layer { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.fx-coin { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0 12%, #ffd75a 30%, #f4a823 70%, #c97a10 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 236, 160, .9), inset 0 -2px 3px rgba(120, 60, 0, .35), 0 0 10px rgba(255, 190, 60, .55); }
.fx-coin::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid rgba(190, 115, 10, .55); }
.fx-ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; opacity: 0; animation: fx-ring .8s cubic-bezier(.1, .7, .3, 1) both; }
.fx-ring.gold { border: 2px solid rgba(255, 205, 90, .9); box-shadow: 0 0 18px rgba(255, 190, 60, .6), inset 0 0 12px rgba(255, 190, 60, .35); }
.fx-ring.blue { border: 2px solid rgba(90, 150, 255, .95); box-shadow: 0 0 24px rgba(60, 120, 255, .7), inset 0 0 14px rgba(60, 120, 255, .4); animation-duration: 1s; }
.fx-ring.red { border: 2px solid rgba(255, 95, 95, .9); box-shadow: 0 0 18px rgba(255, 80, 80, .55); }
@keyframes fx-ring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(4.2); } }
.fx-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3c0; box-shadow: 0 0 8px 2px rgba(255, 200, 80, .8); }
.fx-spark.red { background: #ffd0d0; box-shadow: 0 0 8px 2px rgba(255, 90, 90, .7); }
.home #art.fx-gulp { animation: fx-gulp .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fx-gulp { 0% { transform: none; } 30% { transform: scale(1.07, .95); } 60% { transform: scale(.98, 1.03); } 100% { transform: none; } }
.home #art.fx-shake { animation: fx-shake .5s ease; }
@keyframes fx-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-1.2deg); } 40% { transform: translateX(5px) rotate(1deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* блик пробегает по полоске */
.home .progress i { position: relative; overflow: hidden; }
.progress.gain i::after, .progress.loss i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); width: 40%; animation: fx-sweep 1.1s ease .15s both; }
@keyframes fx-sweep { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .home #art.fx-gulp, .home #art.fx-shake { animation: none; } }

/* сумма операции в цели: без фона, светом */
.fx-amt { position: absolute; white-space: nowrap; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #ffe08a; opacity: 0;
  text-shadow: 0 0 18px rgba(255, 190, 60, .75), 0 0 2px rgba(255, 240, 200, .9), 0 2px 10px rgba(0, 0, 0, .55); }
.fx-amt.red { color: #ff8a8a; text-shadow: 0 0 18px rgba(255, 80, 80, .7), 0 2px 10px rgba(0, 0, 0, .55); }
.tx-float { display: none; }
/* «Из чего состоит»: ровные строки, цены в одну колонку, полоски одной длины */
.part { box-shadow: none; padding: 11px 0; }
.part .pp { min-width: 86px; text-align: right; }
.pt-t .pbar { max-width: none; }

/* каталог: одна строка фильтров, варианты — списком снизу */
.fpills { display: flex; gap: 8px; overflow-x: auto; margin: 12px -20px 0; padding: 2px 20px 4px; scrollbar-width: none; }
.fpills::-webkit-scrollbar { display: none; }
.fpill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 14px; border-radius: var(--rs); background: var(--s2); color: var(--text); font-weight: 600; font-size: 14px; box-shadow: var(--edge); white-space: nowrap; }
.fpill.on { background: var(--blue); color: #fff; box-shadow: var(--glass), 0 6px 14px -8px rgba(31, 84, 214, .75); }
.fpill.sort { margin-left: auto; color: var(--muted); padding: 0 14px 0 12px; }
.fchev, .fsort { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.fsort { width: 15px; height: 15px; stroke-width: 1.6; }
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.fbar b { color: var(--text); }
.fbar button { color: var(--blue-l); font-weight: 600; font-size: 13.5px; background: none; padding: 4px 0; }
.fopts { display: flex; flex-direction: column; margin-top: 8px; }
.fopts button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px; text-align: left; font-size: 16px; font-weight: 600; color: var(--text); background: none; }
.fopts button + button { border-top: 1px solid var(--hair); }
.fopts button span { flex: 1; }
.fopts button small { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.fopts button i { flex: 0 0 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.fopts button i svg { width: 18px; height: 18px; fill: none; stroke: var(--blue-l); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fopts button.on { color: var(--blue-l); }
.fopts button:disabled { opacity: .35; }
.list .empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0; color: var(--muted); }
.fpills { gap: 8px; }
.fpill { flex: 1 0 auto; justify-content: center; padding: 0 10px; }
.fbar span { display: inline-flex; align-items: center; gap: 4px; }
.fbar .fsortb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }

/* ============ Стандарт v2: единые радиусы, мягкие тени, аккуратные панели ============ */
:root {
  --sh-card: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 28px -16px rgba(0, 0, 0, .75);
  --sh-float: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 44px -18px rgba(0, 0, 0, .85);
}
.card, .row, .miss, .tile, .hero-art.car, .plan-res, .swatches { box-shadow: var(--sh-card); }
.row { border-radius: 20px; transition: transform .2s var(--ease), background-color .2s; }
.row:active, .miss:active, .tile:active { transform: scale(.985); }
.search input { border-radius: 16px; box-shadow: var(--sh-card); }
.btn { border-radius: 18px; }
.btn:not(.primary):not(.light) { box-shadow: var(--sh-card); }
#sheet { border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -24px 60px -20px rgba(0, 0, 0, .9); }
#mini { border-radius: 20px; box-shadow: var(--sh-float); }

/* строка «найдено / сортировка» — просто текст, без плашки */
.fbar { background: none; box-shadow: none; padding: 0 2px; margin: 12px 0 12px; border-radius: 0; }
.fbar .fsortb { height: 30px; padding: 0 10px; border-radius: 10px; background: var(--s1); box-shadow: var(--edge); }

/* «Не нашёл свою машину?» — спокойная карточка с иконкой в плитке */
.miss { margin: 0 0 12px; padding: 12px 14px 12px 12px; gap: 14px; border-radius: 20px; background: var(--s1); }
.miss-ic { flex: 0 0 56px; height: 56px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(61, 123, 255, .35), rgba(61, 123, 255, .08) 70%); box-shadow: inset 0 0 0 1px rgba(120, 165, 255, .22); }
.miss-ic img { transform: scale(2) translate3d(0, 5%, 0); }
.miss b { font-size: 15px; font-weight: 700; }
.miss span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.miss .chev { opacity: .5; }

/* выбор цвета — отдельная панель: подпись сверху, ровная сетка, кольцо выбора не обрезается */
.swatches { margin: 14px 0 6px; padding: 14px 14px 16px; border-radius: 20px; background: var(--s1); }
.swatches > .sw-l { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.swatches > .sw-l b { color: var(--text); font-weight: 700; font-size: 14px; }
.swatches > div { grid-template-columns: repeat(6, 1fr); grid-gap: 12px 0; justify-items: center; }
.swatches button { width: 38px; height: 38px; aspect-ratio: auto; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 6px 10px rgba(255, 255, 255, .14), inset 0 -6px 10px rgba(0, 0, 0, .25), 0 4px 10px -4px rgba(0, 0, 0, .6); }
.swatches button.on { transform: none; box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px var(--blue), 0 6px 16px -4px rgba(61, 123, 255, .6); }
.swatches button.on::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 7px; margin: -5px 0 0 -6px;
  border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.swatches button[data-c="white"].on::after, .swatches button[data-c="silver"].on::after, .swatches button[data-c="yellow"].on::after { border-color: #111; filter: none; }

/* цвет машины на главном: кружок с кольцом, чёрный тоже виден */
.colr i { width: 12px; height: 12px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45); }
#sheet .swatches { background: var(--s2); }
#sheet .swatches button.on { box-shadow: 0 0 0 3px var(--s2), 0 0 0 5px var(--blue), 0 6px 16px -4px rgba(61, 123, 255, .6); }
/* расчёт: период и доля — ровные сегменты на всю ширину, ничего не обрезается */
.calc #per, .calc #share { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; overflow: visible; }
.calc #per { grid-template-columns: repeat(3, 1fr); }
.calc #share { grid-template-columns: repeat(5, 1fr); }
.calc #per button, .calc #share button { margin: 0; padding: 0; min-width: 0; border-radius: 14px; }
.calc-how div { border-radius: 18px; padding: 12px 8px; font-size: 12px; }
