/* f-depth.css — слой экрана «Как меня любить» поверх brand.css (DESIGN-3.md). Только var(),
   только transform/opacity в движении. Разметка — web/js/views/depth.js. */

/* ---- герой: итог («Как радовать <имя>» / свои языки / приглашение) ---- */
.dp-hero { padding: 20px 18px 18px; }
.dp-hero-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .8;
  display: flex; align-items: center; gap: 6px; }
.dp-hero-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.08; letter-spacing: -.01em; margin-top: 8px; }
.dp-hero-sub { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.dp-top { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* чип на тёмном стекле героя: заливки brand.css рассчитаны на бумагу, здесь — полупрозрачный свет */
.dp-hero .dp-chip { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.18); min-height: 36px; }
.dp-ideas { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.dp-ideas li::marker { color: rgba(255,255,255,.6); font-family: var(--font-display); font-weight: 600; }
.dp-ideas b { font-weight: 700; opacity: .85; }

/* ---- степпер трёх уровней ---- */
.dp-steps { display: flex; flex-direction: column; gap: 10px; }
.dp-step { display: flex; align-items: center; gap: 12px; padding: 14px; }
.dp-step .lead { color: var(--text); }
.dp-st-body { flex: 1; min-width: 0; }
.dp-st-title { font-size: 15px; font-weight: 700; }
.dp-st-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.dp-st-status { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dp-st-right { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.dp-st-note { font-size: 11.5px; color: var(--muted); text-align: center; max-width: 92px; line-height: 1.2; }
.dp-act { min-height: 44px; min-width: 88px; }
.dp-ring .ring { width: 44px; height: 44px; }
.dp-ring .ring circle { stroke-width: 4; }
.dp-ring-ok { position: absolute; color: var(--violet); display: flex; }

/* ---- результаты: горизонтальные бары, свои и партнёра рядом ---- */
.dp-res { display: flex; flex-direction: column; gap: 12px; }
.dp-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.dp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dp-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dp-legend .dot.him, .dp-bar.him i { background: var(--him); }
.dp-legend .dot.her, .dp-bar.her i { background: var(--her); }
.dp-bars { display: flex; flex-direction: column; gap: 10px; }
.dp-row { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; }
.dp-lbl { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dp-lbl .ic { color: var(--muted); }
.dp-bar-col { display: grid; grid-template-columns: 1fr 40px; gap: 4px 8px; align-items: center; }
.dp-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
/* рост бара — transform, а не width: ширина перерисовывает раскладку на каждом кадре */
.dp-bar i { display: block; height: 100%; border-radius: 4px; transform-origin: left center; transform: scaleX(0);
  transition: transform var(--t-joy) var(--ease-out); }
.dp-bar i.on { transform: scaleX(var(--p, 0)); }
.dp-pct { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.dp-hidden { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.dp-style { font-size: 14px; margin-top: 4px; }
.dp-text { font-size: 15px; line-height: 1.45; }
.dp-note { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.dp-note-t { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ---- инструкция: свои поля строками-аккордеоном и карточки партнёра ---- */
.dp-manual { display: flex; flex-direction: column; gap: 12px; }
.dp-manual-hint { font-size: 13px; }
.dp-field + .dp-field { border-top: 1px solid var(--hairline); }
.dp-field > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; cursor: pointer; }
.dp-field > summary::-webkit-details-marker { display: none; }
.dp-field > summary .ic { flex: none; color: var(--muted); transition: transform var(--t-base) var(--ease-out); }
.dp-field[open] > summary .ic { transform: rotate(90deg); }
.dp-m-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dp-m-l { font-size: 15px; font-weight: 600; }
.dp-m-state { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-m-state.dp-m-none { opacity: .75; }   /* не .empty — это глобальный класс пустого состояния */
.dp-field[open] .dp-m-state { display: none; }                     /* раскрыто — текст уже в поле */
.dp-field textarea { min-height: 88px; width: 100%; }
.dp-saved { display: block; font-size: 12px; color: var(--muted); min-height: 16px; margin: 4px 0 8px; }
/* скелет до первого ответа: та же высота, что у героя и карточек уровней */
.dp-skel-hero { height: 180px; }
.dp-skel-step { height: 96px; }
.dp-pcard { display: flex; flex-direction: column; gap: 4px; }
.dp-pk { padding: 10px 0; }
.dp-pk + .dp-pk { border-top: 1px solid var(--hairline); }
.dp-pk-l { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dp-pk-t { font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
/* иконка в орбе пустого состояния: заливка авроры фиксированной насыщенности в обеих темах
   (как текст героя в brand.css), поэтому белый */
.dp-page .empty .orb { color: #fff; }

/* ---- прохождение: один вопрос на экран ---- */
.dp-run { display: flex; flex-direction: column; gap: 16px; min-height: 60vh; }
.dp-run-top { display: flex; align-items: center; gap: 10px; }
.dp-run-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-run-n { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.dp-run .icon-btn[disabled] { opacity: .35; }
.dp-q { display: flex; flex-direction: column; gap: 10px; animation: dpIn var(--t-page) var(--ease-out) both; }
.dp-q.out { animation: dpOut 180ms var(--ease-out) forwards; pointer-events: none; }
@keyframes dpIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes dpOut { to { opacity: 0; transform: translateX(-18px); } }
.dp-statement { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.18; letter-spacing: -.01em; margin: 6px 0 10px; }
.dp-statement.dp-pick { font-size: 22px; color: var(--muted); }
.dp-opt { display: block; width: 100%; text-align: left; padding: 16px 18px; min-height: 64px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow), var(--shadow-inset);
  color: var(--text); font-size: 16px; line-height: 1.35; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base); }
.dp-opt:active, .dp-opt.picked { transform: scale(.97); }
.dp-opt.picked { background: var(--us-soft); border-color: var(--violet); }
.dp-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dp-scale button { min-height: 56px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 24px; transition: transform var(--t-fast) var(--ease-out); }
.dp-scale button:active, .dp-scale button.picked { transform: scale(.94); }
.dp-scale button.picked { background: var(--us); color: #fff; border-color: transparent; box-shadow: var(--glow-us); }
.dp-scale-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .dp-q, .dp-q.out { animation: none !important; }
  .dp-bar i, .dp-field > summary .ic { transition: none !important; }
}
