/* Cover: экраны «Рисуем» и «Готово» (web/static/js/views/cover_ai.js). Вход оформлен классами Edits (edits.css), здесь только то, чего там нет.
   Экраны открываются поверх кабинета, как экран сборки в Edits: чёрный фон, мягкое белое свечение, шрифт заголовков Unbounded. */

.cv-screen { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: var(--bg); color: var(--text); overflow: hidden; animation: cv-in .35s cubic-bezier(.2, .9, .3, 1); }
.cv-screen.leaving { animation: cv-out .25s ease-in both; }
@keyframes cv-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes cv-out { to { opacity: 0; transform: scale(.985); } }
.cv-screen > * { position: relative; z-index: 2; }
.cv-screen:focus { outline: none; }
.cv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cv-wrap { width: min(440px, 100%); margin: 0 auto; height: 100%; display: flex; flex-direction: column; position: relative; }

/* ── Рисуем: фон – рисуемая картинка ── */
.cv-bg { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; background: var(--bg); }
.cv-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cv-glow { position: absolute; left: 50%; top: 38%; width: min(120vw, 760px); aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 62%); animation: cv-glow 6s ease-in-out infinite; pointer-events: none; }
@keyframes cv-glow { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.cv-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 10, 10, .6), rgba(10, 10, 10, .3) 26%, rgba(10, 10, 10, .3) 44%, rgba(10, 10, 10, .7) 100%); pointer-events: none; }
.cv-top { display: flex; justify-content: space-between; align-items: center; padding: calc(22px + max(var(--tg-top, 0px), env(safe-area-inset-top, 0px))) 22px 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.cv-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #d6d6d6; }
.cv-clock { font-size: .8125rem; color: #d6d6d6; font-variant-numeric: tabular-nums; }
.cv-hero { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 24px 6px; text-align: center; }
.cv-pct { font-family: var(--display); font-weight: 700; font-size: clamp(60px, 18vw, 80px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); transition: text-shadow .6s ease; }
.cv-pct small { font-size: 22px; color: #d6d6d6; margin-left: 3px; letter-spacing: 0; }
.cv-screen.full .cv-pct { text-shadow: 0 0 60px rgba(255, 255, 255, .45); }
.cv-cap { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; width: min(320px, 100%); min-height: 56px; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.cv-cap.on { opacity: 1; transform: none; }
.cv-cap .k { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #d0d0d0; }
.cv-cap b { font-size: .9375rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-panel { margin: 0 16px calc(18px + env(safe-area-inset-bottom, 0px)); padding: 18px 16px 14px; border-radius: 24px; background: rgba(14, 14, 14, .66); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 14px; }
@media (prefers-reduced-transparency: reduce) { .cv-panel { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.cv-txt { position: relative; }
.cv-ttl, .cv-hint { position: relative; width: 100%; }
.cv-ttl { height: 28px; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; line-height: 1.25; }
.cv-hint { height: 20px; margin-top: 2px; font-size: .8125rem; line-height: 1.5; color: #b5b5b5; }
.cv-ttl span, .cv-hint span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(12px); filter: blur(4px); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .5s cubic-bezier(.2, .9, .3, 1), transform .5s cubic-bezier(.2, .9, .3, 1), filter .5s cubic-bezier(.2, .9, .3, 1); }
.cv-ttl span.on, .cv-hint span.on { opacity: 1; transform: none; filter: none; }
.cv-ttl span.past, .cv-hint span.past { transform: translateY(-10px); }
.cv-screen.failed .cv-hint { height: 40px; }
.cv-screen.failed .cv-hint span { white-space: normal; }
.cv-heard { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.cv-heard em { font-style: normal; height: 26px; padding: 0 10px; display: flex; align-items: center; font-size: .75rem; color: #c4c4c4; border: 1px solid rgba(255, 255, 255, .16); border-radius: 13px; opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .35s ease, transform .35s ease; }
.cv-heard em.in { opacity: 1; transform: none; }
.cv-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cv-col { display: flex; flex-direction: column; gap: 8px; }
.cv-gt { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.cv-gt.done { border-color: transparent; }
.cv-gt canvas { display: block; width: 100%; height: 100%; }
.cv-bot > div { display: none; width: 100%; }
.cv-bot[data-m="go"] .m-go { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.cv-bot[data-m="q"] .m-q { display: block; }
.cv-bot[data-m="f"] .m-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; }
.cv-bot[data-m="none"] .m-none { display: block; }
.cv-note { font-size: .75rem; color: #8f8f8f; }
.cv-bot .btn-ghost { padding: 0 4px; height: 40px; color: #c4c4c4; }
.cv-bot .btn-ghost:hover { background: none; color: var(--text); }

/* ── Готово: карточка, ряд вариантов, панель действий. Фон универсальный, как в Edits ── */
.cv-ready { background: var(--bg); }
.cv-ready::before { content: ''; position: absolute; left: 50%; top: 34%; width: 560px; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 62%); animation: cv-breath 6s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes cv-breath { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.cv-rtop { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + max(var(--tg-top, 0px), env(safe-area-inset-top, 0px))) 12px 0; }
.tg-fullscreen .cv-top { padding-top: calc(12px + max(var(--tg-top), 96px)); }
.tg-fullscreen .cv-rtop { padding-top: calc(8px + max(var(--tg-top), 96px)); }
.cv-rtop .btn { min-width: 72px; justify-content: flex-start; }
.cv-rtop .cv-back { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
.cv-rtop .cv-kicker { color: var(--light); }
.cv-rtop .r { min-width: 72px; text-align: right; }
.cv-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; }
.cv-deck { position: relative; width: max(220px, min(380px, calc(100% - 16px), calc(100dvh - 500px))); aspect-ratio: 1 / 1; outline: 0; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cv-deck:focus-visible { outline: 2px solid #fff; outline-offset: 10px; border-radius: 22px; }
.cv-dk { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); background: #0b0b0b; will-change: transform; cursor: grab;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, filter .35s ease; touch-action: pan-y; }
.cv-dk:active { cursor: grabbing; }
.cv-dk img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.cv-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.cv-name { position: absolute; left: 18px; right: 18px; bottom: 18px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); overflow-wrap: anywhere; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s ease; pointer-events: none; }
.cv-deck.named .cv-shade, .cv-deck.named .cv-name { opacity: 1; transform: none; }
.cv-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.cv-dot { width: 30px; height: 30px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cv-dot i { display: block; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); transition: width .35s ease, background-color .35s ease; }
.cv-dot.on i { width: 18px; background: #fff; }
.cv-rcap { display: flex; flex-direction: column; align-items: center; text-align: center; width: min(330px, 100%); height: 44px; overflow: hidden; }
.cv-rcap b { font-size: .9375rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-dock { margin: 0 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.cv-dock .cv-panel { padding: 14px; gap: 10px; }
.cv-go { display: flex; flex-direction: column; gap: 10px; }
.cv-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cv-row2 .btn { height: 46px; font-size: .875rem; }
.cv-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cv-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 2px; }
.cv-split .btn { border-radius: 12px 0 0 12px; }
.cv-arr { display: flex; align-items: center; justify-content: center; height: 52px; border: 0; border-radius: 0 12px 12px 0; background: #fff; color: #0A0A0A; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease; }
.cv-arr:active { background: #e6e6e6; }
.cv-arr svg { transition: transform .25s ease; }
.cv-arr[aria-expanded="true"] svg { transform: rotate(180deg); }
.cv-menu { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(310px, 100%); padding: 6px; border-radius: 16px; background: rgba(26, 26, 26, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); z-index: 6; transform-origin: bottom right; animation: cv-menu-in .2s cubic-bezier(.2, .9, .3, 1); }
.cv-menu[hidden] { display: none; }
@keyframes cv-menu-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.cv-mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; color: inherit; text-align: left; border-radius: 10px; cursor: pointer; font: inherit; }
.cv-mi:active { background: rgba(255, 255, 255, .08); }
.cv-mi > svg { color: var(--light); flex: none; }
.cv-mi .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cv-mi b { font-size: .875rem; font-weight: 600; }
.cv-mi .b span { font-size: .75rem; color: var(--mid); }
@media (hover: hover) { .cv-mi:hover { background: rgba(255, 255, 255, .06); } }
.cv-act { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); color: var(--text);
  font: 600 .8125rem var(--font); cursor: pointer; transition: transform .12s ease, background-color .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.cv-act:active { transform: scale(.97); }
.cv-act:disabled { opacity: .5; }
.cv-act > svg { color: var(--light); flex: none; }
.cv-act .t { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-cost { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 24px; padding: 0 7px 0 5px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--light); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cv-cost svg { color: var(--mid); }
.btn-primary .cv-cost { margin-left: 8px; background: rgba(10, 10, 10, .1); color: #0A0A0A; }
.btn-primary .cv-cost svg { color: #3a3a3a; }
.cv-lim { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .75rem; color: var(--mid); }
.cv-credit { align-items: center; justify-content: flex-start; gap: 6px; }
.cv-credit svg { flex: none; }
.cv-sw { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 0 2px; }
.cv-sw b { flex: 1; min-width: 0; font-size: .875rem; font-weight: 600; }
.cv-switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #252525; border: 0; flex-shrink: 0; cursor: pointer; transition: background-color .25s ease; }
.cv-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #666; transition: transform .3s ease, background-color .25s ease; }
.cv-switch[aria-checked="true"] { background: #fff; }
.cv-switch[aria-checked="true"]::after { transform: translateX(18px); background: #0A0A0A; }
.cv-ask { display: none; flex-direction: column; gap: 8px; }
.cv-ask b { font-size: .9375rem; }
.cv-ask span { font-size: .8125rem; color: #b5b5b5; margin-bottom: 4px; }
.cv-dock[data-m="ask"] .cv-go { display: none; }
.cv-dock[data-m="ask"] .cv-ask { display: flex; }
.cv-toast { position: absolute; left: 16px; right: 16px; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #0A0A0A; font-weight: 600; font-size: .8125rem;
  opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .35s ease, transform .4s ease; }
.cv-toast.on { opacity: 1; transform: none; pointer-events: auto; }
.cv-toast .ck { width: 22px; height: 22px; border-radius: 11px; background: #0A0A0A; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cv-toast button { margin-left: auto; background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 700; color: #0A0A0A; text-decoration: underline; cursor: pointer; }
.cv-hist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cv-hist button { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cv-hist img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.cv-hist span { font-size: .75rem; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-height: 720px) { .cv-stage { gap: 8px; } }

@media (prefers-reduced-motion: reduce) and (min-width: 100000px) {
  .cv-screen, .cv-screen.leaving { animation: none; }
}

/* Шторки («Похожие», «История») открываются поверх экранов «Рисуем» и «Готово» */
body.ed-building .sheet-backdrop { z-index: 500; }

/* Заголовок входа делит строку с плашкой кредитов */
.cv-page .page-title.ellipsis { font-size: 1.1875rem; white-space: nowrap; }

/* Миниатюры «Недавних» без светлой рамки */
.cv-page .ed-th { border-color: transparent; }

/* ── Ещё настройки: раскрываются внутри карточки ── */
.cv-adv { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .9, .3, 1); }
.cv-advcard.open .cv-adv { grid-template-rows: 1fr; }
.cv-adv-in { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .9, .3, 1); }
.cv-advcard.open .cv-adv-in { opacity: 1; transform: none; transition-delay: .06s; }
.cv-adv-body { display: flex; flex-direction: column; gap: 16px; padding: 14px 0 16px; border-top: 1px solid var(--divider); }
.cv-lab { display: block; margin-bottom: 8px; font-size: .75rem; letter-spacing: .02em; color: var(--dim); }
.cv-ref { display: flex; align-items: center; gap: 12px; }
.cv-ref-w { position: relative; width: 64px; height: 64px; flex: none; }
.cv-ref-t { position: relative; width: 64px; height: 64px; flex: none; padding: 0; font: inherit; border-radius: 12px; overflow: hidden; border: 1.5px dashed #3a3a3a; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--light); cursor: pointer; transition: border-color .2s ease, transform .12s ease; }
.cv-ref-t:active { transform: scale(.97); }
.cv-ref-t > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.cv-ref-t.has { border: 0; cursor: default; }
.cv-ref-t.has > img { display: block; }
.cv-ref-t.has > svg:first-child { display: none; }
.cv-ref-t.busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%); animation: cv-sweep 1.2s ease-in-out infinite; }
@keyframes cv-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.cv-ref-x { position: absolute; top: 4px; right: 4px; z-index: 2; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 11px; background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cv-ref-x[hidden] { display: none; }
.cv-ref-d { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-ref-d b { font-size: .875rem; font-weight: 600; }
.cv-ref-d span { font-size: .8125rem; color: var(--mid); line-height: 1.4; }

/* Ползунок «Насколько похоже» */
.cv-range { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; animation: cv-rise .35s cubic-bezier(.2, .9, .3, 1); }
.cv-range[hidden] { display: none; }
@keyframes cv-rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cv-range-h { display: flex; align-items: baseline; justify-content: space-between; font-size: .8125rem; color: var(--light); }
.cv-range-h b { font-size: .75rem; font-weight: 600; color: var(--text); }
.cv-range-l { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--dim); }
.cv-rng { width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 50%; }
.cv-rng::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #fff var(--p), #2a2a2a var(--p)); }
.cv-rng::-moz-range-track { height: 6px; border-radius: 3px; background: #2a2a2a; }
.cv-rng::-moz-range-progress { height: 6px; border-radius: 3px; background: #fff; }
.cv-rng::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 12px; background: #fff; border: 3px solid #141414; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.cv-rng::-moz-range-thumb { width: 18px; height: 18px; border-radius: 12px; background: #fff; border: 3px solid #141414; }
.cv-rng:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* Обрезка референса до квадрата */
.cv-crop { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.cv-crop:active { cursor: grabbing; }
.cv-crop img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; will-change: transform; }
.cv-crop-grid { position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: linear-gradient(to right, transparent 33.1%, rgba(255, 255, 255, .28) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255, 255, 255, .28) 66.6%, transparent 66.9%),
    linear-gradient(to bottom, transparent 33.1%, rgba(255, 255, 255, .28) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255, 255, 255, .28) 66.6%, transparent 66.9%); }
.cv-crop-z { display: flex; align-items: center; gap: 10px; color: var(--mid); }
.cv-crop-z .cv-rng { flex: 1; }

/* ── Движение: один ритм и одна кривая на все экраны Cover ── */
.cv-screen, .cv-page { --cv-ease: cubic-bezier(.22, 1, .36, 1); --cv-spring: cubic-bezier(.34, 1.4, .64, 1); }
@keyframes cv-rise { from { opacity: 0; translate: 0 18px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes cv-pop { from { opacity: 0; translate: 0 28px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes cv-fade { from { opacity: 0; } to { opacity: 1; } }
/* Готово: шапка, колода, точки, подпись и панель появляются по очереди */
.cv-ready .cv-rtop { animation: cv-fade .5s var(--cv-ease) both; }
.cv-ready .cv-dk { animation: cv-pop .7s var(--cv-ease) backwards; }
.cv-ready .cv-dk:nth-child(1) { animation-delay: .06s; } .cv-ready .cv-dk:nth-child(2) { animation-delay: .12s; }
.cv-ready .cv-dk:nth-child(3) { animation-delay: .18s; } .cv-ready .cv-dk:nth-child(4) { animation-delay: .24s; }
.cv-ready .cv-dots { animation: cv-rise .6s var(--cv-ease) .28s both; }
.cv-ready .cv-rcap { animation: cv-rise .6s var(--cv-ease) .34s both; }
.cv-ready .cv-dock { animation: cv-rise .7s var(--cv-ease) .4s both; }
/* Вход: блоки страницы поднимаются друг за другом */
.cv-page > :not(.sticky-actions) { animation: cv-rise .6s var(--cv-ease) both; }
.cv-page > :nth-child(2) { animation-delay: .05s; } .cv-page > :nth-child(3) { animation-delay: .1s; } .cv-page > :nth-child(4) { animation-delay: .15s; }
.cv-page > :nth-child(5) { animation-delay: .2s; } .cv-page > :nth-child(6) { animation-delay: .25s; } .cv-page > :nth-child(7) { animation-delay: .3s; }
.cv-page .sticky-actions { animation: cv-fade .6s var(--cv-ease) .2s both; }
/* Нажатия и мелочи */
.cv-dock .btn, .cv-arr, .cv-back, .cv-rtop .r { transition: transform .18s var(--cv-ease), background-color .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.cv-dock .btn:active, .cv-arr:active, .cv-back:active, .cv-rtop .r:active { transform: scale(.96); }
.cv-act { transition: transform .18s var(--cv-ease), background-color .2s ease, opacity .2s ease; }
.cv-switch::after { transition: transform .4s var(--cv-spring), background-color .25s ease; }
.cv-toast { transition: opacity .35s var(--cv-ease), transform .5s var(--cv-spring); }
.cv-dot i { transition: width .45s var(--cv-spring), background-color .35s ease; }
.cv-menu { animation: cv-menu-in .28s var(--cv-ease); }
@media (hover: hover) and (pointer: fine) { .cv-act:hover { background: #222; transform: translateY(-1px); } .cv-act:active { transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .cv-ready .cv-rtop, .cv-ready .cv-dk, .cv-ready .cv-dots, .cv-ready .cv-rcap, .cv-ready .cv-dock, .cv-page > *, .cv-page .sticky-actions { animation: cv-fade .25s ease both; animation-delay: 0s; }
}
