/* dates.css — Знакомства людей (19.11.2026): экраны /app/dates. На токенах
 * kit.css; свой акцент раздела — тёплый розовый поверх лаванды (--dt-*).
 * Кнопка-сердце в шапке, плашка над лентой и строка Ошейника — в app.css
 * (они на первом экране, а этот файл грузится лениво).
 * Блоки: ОБЩЕЕ · КАРТОЧКА · КОЛОДА · ПРИВЕТСТВИЕ · АНКЕТА · СПИСКИ ·
 * ПЕРВОЕ СООБЩЕНИЕ · ЭТО ВЗАИМНО. */

/* == ОБЩЕЕ =============================================================== */
.scr-dates { padding: 0 var(--gutter) 28px; }
.scr-dates > .sub-head, .scr-dates > .dt-seg { margin: 0 calc(var(--gutter) * -1); }
.scr-dates > .dt-seg { top: calc(var(--hdr-h) + var(--safe-t) + 52px); padding-top: 4px; }
/* На телефоне шапка приложения на подэкранах убрана (app.css, №26) — полоска
   вкладок встаёт сразу под «‹ Знакомства». */
@media (max-width: 1023px) { .scr-dates > .dt-seg { top: calc(var(--safe-t) + 52px); } }
.dt-head-sp { flex: 1; }
.dt-gear { color: var(--ink-mid); }
.dt-seg .seg-b { gap: 6px; }
.dt-seg-n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--dt-grad); color: #fff; font-size: 12px; font-weight: 900; font-style: normal; line-height: 18px;
}
.dt-body { padding-top: 6px; }

/* == КАРТОЧКА ============================================================ */
.dt-card {
  position: relative; overflow: hidden;
  border-radius: 26px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--e2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  will-change: transform;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) linear;
}
.dt-card.is-drag { transition: none; cursor: grabbing; }
.dt-card.is-flying.out-right { transform: translateX(120%) rotate(16deg); opacity: 0; }
.dt-card.is-flying.out-left { transform: translateX(-120%) rotate(-16deg); opacity: 0; }
.dt-hero {
  position: relative; display: grid; place-items: center;
  height: 268px; background: var(--dt-stage); overflow: hidden;
}
.dt-hero.has-photo { display: block; height: auto; aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; background: var(--bg-2); }
/* Галерея: полоски сверху (сколько фото и какое сейчас), клик по правой
   половине — дальше, по левой — назад; у края кадр «упирается». */
.dt-hero.is-gallery { cursor: pointer; }
.dt-bars { position: absolute; z-index: 3; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; pointer-events: none; }
.dt-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); transition: background-color var(--dur-fast) linear; }
.dt-bars i.on { background: #fff; }
.dt-hero.is-gallery::before {
  content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 64px; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 5, 16, .42), transparent);
}
.dt-shot-n {
  position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--photo-glass); color: #fff; font-size: 12px; font-weight: 800;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dt-hero.is-gallery ~ .dt-ribbon, .dt-hero.is-gallery ~ .dt-more { top: 20px; }
.dt-hero.is-edge .dt-photo { animation: dt-edge var(--dur-slow) var(--ease-out); }
@keyframes dt-edge { 40% { transform: scale(.985); } }
.dt-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-hero.has-photo::after {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg-2));
}
.dt-glow {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent);
  animation: dt-breathe 5s ease-in-out infinite;
}
.dt-stage { position: relative; display: grid; place-items: center; filter: drop-shadow(0 14px 18px rgba(5, 3, 12, .35)); animation: dt-float 6s ease-in-out infinite; }
.dt-hero-cat {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--bg-2), var(--e2);
}
.dt-lock {
  position: absolute; left: 12px; right: 12px; bottom: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto;
  display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--photo-glass); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dt-lock .ki { font-size: 14px; }
.dt-ribbon {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--dt-grad); color: #fff; font-size: 13px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(255, 111, 147, .35);
  animation: dt-pop var(--dur-slow) var(--ease-pop) both;
}
.dt-ribbon .ki { font-size: 15px; --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .5); }
.dt-more {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  background: var(--photo-glass); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dt-mark {
  position: absolute; top: 22px; z-index: 4; display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%; opacity: 0; pointer-events: none;
  color: #fff; font-size: 34px; box-shadow: var(--e3);
}
.dt-mark .ki { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-mark.is-like { left: 22px; background: var(--dt-grad); transform: rotate(-12deg); }
.dt-mark.is-pass { right: 22px; background: rgba(60, 52, 90, .92); transform: rotate(12deg); }
.dt-info { padding: 16px 18px 18px; }
.dt-name { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dt-place { margin: 4px 0 0; color: var(--ink-mid); font-size: 14px; font-weight: 700; }
.dt-goal { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.dt-goal-pill {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--accent-wash-2); color: var(--lav); font-size: 13px; font-weight: 800;
}
.dt-goal-pill.is-love { background: rgba(255, 125, 156, .16); color: var(--dt-ink-hot); }
.dt-goal-pill.is-city { background: rgba(255, 217, 160, .14); color: var(--warm-ink); }
.dt-common {
  display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-4);
  background: var(--dt-grad-soft); font-size: 14px; font-weight: 700; line-height: 1.35;
}
.dt-common .ki { flex: none; margin-top: 1px; font-size: 18px; color: var(--dt-ink-hot); }
.dt-common b { font-weight: 900; }
.dt-about { margin: 14px 0 0; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.dt-tags, .dt-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.dt-tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--raise-2); color: var(--ink-soft); font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}
.dt-tag.is-common { background: rgba(255, 125, 156, .16); color: var(--dt-ink-hot); box-shadow: inset 0 0 0 1px rgba(255, 125, 156, .4); font-weight: 900; }
.dt-posts-h { margin: 18px 0 8px; color: var(--ink-dim); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dt-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dt-post { display: block; aspect-ratio: 4 / 5; border-radius: var(--r-4); overflow: hidden; background: var(--sk-1); }
.dt-post img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity var(--dur-base) linear; }
.dt-post.is-loaded img { opacity: 1; }
.dt-catlink {
  display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; min-height: var(--tap);
  border-top: 1px solid var(--line); color: var(--ink-mid); font-size: 13px; font-weight: 800;
}

/* == КОЛОДА ============================================================== */
.dt-deck-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; }
.dt-dots { display: inline-flex; gap: 6px; }
.dt-dots i { width: 26px; height: 5px; border-radius: 3px; background: var(--line-strong); transition: background-color var(--dur-base) linear; }
.dt-dots i.done { background: var(--accent-wash-3); }
.dt-dots i.on { background: var(--dt-grad); }
.dt-deck-hint { color: var(--ink-dim); font-size: 13px; font-weight: 800; }
.dt-deck { position: relative; }
.dt-deck > .dt-card { animation: dt-rise var(--dur-slow) var(--ease-out) both; }
.dt-deck > .dt-card.is-under {
  position: absolute; inset: 0; z-index: 0; animation: none;
  transform: translateY(12px) scale(.955); opacity: .55; pointer-events: none;
}
.dt-deck > .dt-card:not(.is-under) { z-index: 1; }
.dt-acts {
  position: sticky; z-index: 12; bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: fit-content; margin: 16px auto 0; padding: 8px 12px; border-radius: 999px;
  background: var(--bar); box-shadow: inset 0 0 0 1px var(--line), var(--e3);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
}
.dt-acts.is-sheet { position: sticky; bottom: 4px; margin-top: 12px; }
.dt-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 56px; min-width: 56px; padding: 0; border: 0; border-radius: 28px; cursor: pointer;
  font-size: 15px; font-weight: 900;
  transition: transform var(--dur-fast) var(--ease-pop), opacity var(--dur-press) linear, filter var(--dur-press) linear;
}
.dt-act .ki { font-size: 26px; }
.dt-x { width: 26px; height: 26px; display: block; }
.dt-mark .dt-x { width: 34px; height: 34px; }
.dt-act:active:not(:disabled) { transform: scale(.92); }
.dt-act:disabled { opacity: .5; cursor: default; }
.dt-act.is-pass { background: var(--raise-2); color: var(--ink-mid); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dt-act.is-hello { padding: 0 20px 0 16px; background: var(--accent-grad); color: var(--ink-on-accent); }
.dt-act.is-hello .ki { font-size: 22px; }
.dt-act.is-like {
  height: 64px; min-width: 64px; border-radius: 32px; background: var(--dt-grad); color: #fff;
  box-shadow: 0 8px 22px rgba(255, 111, 147, .42);
}
.dt-act.is-like .ki { font-size: 30px; --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-swipe-hint { margin: 12px 0 0; color: var(--ink-dim); font-size: 12px; font-weight: 700; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .dt-act:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-2px); }
  .dt-swipe-hint { display: none; }
}

/* На сегодня всё */
.dt-done { display: grid; justify-items: center; gap: 0; padding: 22px 8px 8px; text-align: center; }
.dt-done-cat { width: 132px; height: auto; margin-bottom: 6px; filter: drop-shadow(0 10px 14px rgba(5, 3, 12, .3)); }
.dt-done-title { margin: 0; font-size: 24px; font-weight: 900; }
.dt-done-text { margin: 8px 0 0; max-width: 34ch; color: var(--ink-mid); font-size: 15px; }
.dt-done-wait { margin-top: 18px; background: var(--dt-grad); color: #fff; }
.dt-done-wait .ki { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-done-card {
  display: grid; justify-items: center; gap: 6px; width: 100%; margin-top: 24px; padding: 18px 16px;
  border-radius: var(--r-5); background: var(--dt-grad-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.dt-done-card b { font-size: 16px; font-weight: 900; }
.dt-done-card small { max-width: 34ch; color: var(--ink-mid); font-size: 13px; font-weight: 700; }
.dt-done-card .btn { margin-top: 6px; }
.dt-done-pro {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); margin-top: 12px;
  color: var(--gold-ink); font-size: 14px; font-weight: 800;
}

/* == ПРИВЕТСТВИЕ ========================================================= */
.dt-welcome { display: grid; justify-items: center; padding: 4px 4px 8px; text-align: center; }
.dt-wel-art {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 224px; margin-bottom: 4px; border-radius: 28px; overflow: hidden;
  background: var(--dt-stage); box-shadow: inset 0 0 0 1px var(--line);
}
.dt-wel-glow {
  position: absolute; left: 50%; top: 46%; width: 300px; height: 300px; border-radius: 50%; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 125, 156, .3), transparent);
  animation: dt-breathe 5s ease-in-out infinite;
}
.dt-wel-cat { position: relative; z-index: 1; display: grid; place-items: center; width: 122px; height: 132px; filter: drop-shadow(0 12px 14px rgba(5, 3, 12, .35)); }
.dt-wel-cat.is-me { animation: dt-lean-r 4.5s ease-in-out infinite; }
.dt-wel-cat.is-q { animation: dt-lean-l 4.5s ease-in-out infinite; }
.dt-wel-cat.is-q b {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: var(--raise-2); color: var(--dt-ink-hot); font-size: 54px; font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 125, 156, .45);
}
.dt-wel-heart {
  position: relative; z-index: 2; align-self: center; display: grid; place-items: center;
  width: 54px; height: 54px; margin: 0 -8px 48px; border-radius: 50%;
  background: var(--dt-grad); color: #fff; font-size: 28px; box-shadow: 0 8px 22px rgba(255, 111, 147, .5);
  animation: dt-beat 1.6s ease-in-out infinite;
}
.dt-wel-heart .ki { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-wel-h {
  position: absolute; bottom: 30%; width: 14px; height: 14px; background: var(--dt-hot); opacity: 0;
  clip-path: path("M7 13C2 9 0 6.6 0 4.2 0 2 1.7.5 3.6.5 5 .5 6.2 1.3 7 2.4 7.8 1.3 9 .5 10.4.5 12.3.5 14 2 14 4.2 14 6.6 12 9 7 13z");
  animation: dt-up 4s ease-in infinite;
}
.dt-wel-h.h1 { left: 26%; animation-delay: .2s; }
.dt-wel-h.h2 { left: 52%; animation-delay: 1.5s; scale: 1.4; }
.dt-wel-h.h3 { left: 72%; animation-delay: 2.7s; scale: .8; }
.dt-wel-title { margin: 20px 0 0; max-width: 18ch; font-size: 27px; font-weight: 900; line-height: 1.15; letter-spacing: -.015em; }
.dt-wel-sub { margin: 10px 0 0; max-width: 38ch; color: var(--ink-mid); font-size: 15px; }
.dt-wel-list { display: grid; gap: 10px; width: 100%; margin: 22px 0 0; padding: 0; list-style: none; text-align: left; }
.dt-wel-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--r-5);
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line);
}
.dt-wel-ic {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--dt-grad-soft); color: var(--dt-ink-hot); font-size: 22px;
}
.dt-wel-list b { display: block; font-size: 15px; font-weight: 900; }
.dt-wel-list small { display: block; margin-top: 2px; color: var(--ink-mid); font-size: 13px; font-weight: 600; line-height: 1.4; }
.dt-wel-go {
  position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); z-index: 5;
  width: 100%; min-height: 54px; margin-top: 20px; border-radius: 27px;
  background: var(--dt-grad); color: #fff; font-size: 17px; font-weight: 900;
  box-shadow: 0 10px 26px rgba(255, 111, 147, .42);
}
.dt-wel-go .ki { font-size: 22px; --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-wel-note { margin: 12px 0 0; max-width: 40ch; color: var(--ink-dim); font-size: 12px; font-weight: 700; }

/* Разовая шторка-анонс (ui/datesintro.js). */
.dt-intro { display: grid; justify-items: center; padding: 0 4px 8px; text-align: center; }
.dt-intro .dt-wel-art { height: 190px; margin-bottom: 16px; }
.dt-intro-title { margin: 8px 0 0; font-size: 24px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.dt-intro-text { margin: 8px 0 0; max-width: 36ch; color: var(--ink-mid); font-size: 15px; }
.dt-intro .dt-wel-go { position: static; margin-top: 18px; }
.dt-intro-later { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 24px; }

/* == АНКЕТА (создание и правка) ========================================== */
.dt-wiz, .dt-edit { display: grid; padding: 6px 2px 0; }
.dt-wiz-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.dt-wiz-bar i { height: 5px; border-radius: 3px; background: var(--line-strong); transition: background var(--dur-base) linear; }
.dt-wiz-bar i.on { background: var(--dt-grad); }
.dt-wiz-title { margin: 22px 0 0; font-size: 26px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.dt-wiz-sub { margin: 6px 0 0; color: var(--ink-mid); font-size: 14px; }
.dt-form { display: grid; gap: 18px; margin-top: 22px; }
.dt-lab { display: grid; gap: 8px; color: var(--ink-mid); font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.dt-lab small { color: var(--ink-dim); font-weight: 700; letter-spacing: 0; }
.dt-inp, .dt-sel {
  width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: var(--r-4);
  background: var(--raise-2); color: var(--panel-fg); font-size: 16px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line-strong); outline: none;
  transition: box-shadow var(--dur-fast) linear;
}
.dt-inp:focus, .dt-sel:focus { box-shadow: inset 0 0 0 2px var(--dt-hot); }
.dt-inp::placeholder { color: var(--ink-dim); font-weight: 600; }
.dt-area { min-height: 112px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.dt-count { justify-self: end; color: var(--ink-dim); font-size: 12px; font-weight: 700; }
.dt-birth { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 8px; }
.dt-sel { padding: 0 10px; appearance: none; -webkit-appearance: none; background-image: none; text-align: center; text-align-last: center; cursor: pointer; }
.dt-sel option { color: #2c2347; background: #fff; }
.dt-choice { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.dt-choice[data-field="photo_vis"] { grid-auto-flow: row; }
.dt-opt {
  display: grid; align-content: center; gap: 2px; min-height: 54px; padding: 8px 10px; border: 0; border-radius: var(--r-4);
  background: var(--raise-2); color: var(--panel-fg); text-align: center; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--dur-fast) linear, background-color var(--dur-fast) linear, transform var(--dur-fast) var(--ease-pop);
}
.dt-opt b { font-size: 15px; font-weight: 900; }
.dt-opt small { color: var(--ink-dim); font-size: 12px; font-weight: 700; }
.dt-opt:active { transform: scale(.97); }
.dt-opt.on { background: var(--dt-grad-soft); box-shadow: inset 0 0 0 2px var(--dt-hot); }
.dt-opt.on small { color: var(--ink-mid); }
.dt-pick { margin: 0; }
.dt-tag.is-pick { min-height: 38px; padding: 0 14px; font-size: 14px; cursor: pointer; transition: background-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear, transform var(--dur-fast) var(--ease-pop); }
.dt-tag.is-pick:active { transform: scale(.95); }
.dt-tag.is-pick.on { background: var(--dt-grad); color: #fff; box-shadow: none; font-weight: 900; }
.dt-agree { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.dt-agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--dt-hot); }
.dt-err {
  margin: 16px 0 0; padding: 10px 14px; border-radius: var(--r-3);
  background: rgba(255, 154, 154, .12); color: var(--danger-ink); font-size: 14px; font-weight: 800;
}
.dt-wiz-acts {
  position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 5;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 24px; padding: 8px 0;
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
}
.dt-wiz-next, .dt-save { min-height: 52px; border-radius: 26px; background: var(--dt-grad); color: #fff; font-size: 16px; font-weight: 900; }
.dt-wiz-back { min-height: 52px; border-radius: 26px; }
.dt-save { margin-top: 20px; }
/* Сетка фото анкеты: шесть мест 4:5, первое — главное. */
.dt-pg { display: grid; gap: 10px; }
.dt-pg.is-busy { opacity: .6; pointer-events: none; }
.dt-pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dt-pg-cell {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-4); overflow: hidden; padding: 0; border: 0;
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line);
}
.dt-pg-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-pg-cell.is-add {
  display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; color: var(--ink-dim);
  background: var(--raise); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 12px; font-weight: 800;
  transition: background-color var(--dur-press) linear;
}
.dt-pg-cell.is-add:active { background: var(--accent-wash-2); }
.dt-pg-cell.is-next { color: var(--dt-ink-hot); background: var(--dt-grad-soft); box-shadow: inset 0 0 0 1.5px var(--dt-edge); }
.dt-pg-cell.is-next .ki { font-size: 26px; }
.dt-pg-plus { font-size: 26px; font-weight: 500; line-height: 1; }
.dt-pg-main {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 9px; border-radius: 999px;
  background: var(--dt-grad); color: #fff; font-size: 11px; font-weight: 900;
}
.dt-pg-star {
  position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 9px 0 7px;
  border: 0; border-radius: 999px; background: var(--photo-glass); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dt-pg-star .ki { font-size: 13px; --ic-warm: #fff; }
.dt-pg-x {
  position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: var(--photo-glass); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dt-pg-hint { margin: 0; color: var(--ink-mid); font-size: 13px; font-weight: 600; line-height: 1.4; }
.dt-pg-hint b { color: var(--dt-ink-hot); font-weight: 900; }
.dt-pg-hint.is-good b { color: var(--ok-ink, var(--lav)); }
a.dt-done-card.is-photos { text-decoration: none; color: inherit; margin-top: 12px; }
.dt-edit .dt-ph-slot { margin-top: 4px; }
.dt-zone { display: grid; gap: 6px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.dt-zone small { margin-bottom: 12px; color: var(--ink-dim); font-size: 12px; font-weight: 700; }
.dt-zone .is-quit { color: var(--danger-ink); }

/* == СПИСКИ: симпатии и пары ============================================= */
.dt-list-h { margin: 8px 2px 14px; color: var(--ink-mid); font-size: 14px; font-weight: 700; }
.dt-list { display: grid; gap: 10px; }
.dt-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 80px; padding: 10px 14px 10px 12px;
  border: 0; border-radius: var(--r-5); background: var(--raise); color: var(--panel-fg); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--dur-press) linear;
}
.dt-row:active { background: var(--accent-wash-2); }
.dt-row.is-pair { cursor: default; padding-right: 4px; }
.dt-row-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.dt-row-av { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--dt-grad-soft); }
.dt-row-photo { width: 100%; height: 100%; object-fit: cover; }
.dt-row-tx { display: grid; flex: 1; min-width: 0; }
.dt-row-tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 900; }
.dt-row-tx small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-mid); font-size: 13px; font-weight: 700; }
.dt-row-go {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--dt-grad); color: #fff; font-size: 22px;
}
.dt-row-go .ki { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-row-write {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-grad); color: var(--ink-on-accent); font-size: 22px;
}
.dt-sheetcard { display: grid; padding: 0 2px 6px; }
.dt-sheetcard .dt-card { box-shadow: inset 0 0 0 1px var(--line); touch-action: auto; }
.dt-sheetcard .dt-hero { height: 220px; }
.dt-sheetcard .dt-hero.has-photo { max-height: 52vh; }
.dt-sheet-write { margin-top: 12px; min-height: 52px; border-radius: 26px; }

/* == ПЕРВОЕ СООБЩЕНИЕ ==================================================== */
.dt-hello { display: grid; gap: 12px; padding: 0 2px 6px; }
.dt-hello-to { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-mid); font-size: 13px; font-weight: 700; line-height: 1.4; }
.dt-hello-to b { color: var(--panel-fg); }
.dt-hello-tx {
  width: 100%; min-height: 96px; padding: 12px 14px; border: 0; border-radius: var(--r-4); resize: none;
  background: var(--raise-2); color: var(--panel-fg); font-size: 16px; line-height: 1.45; outline: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.dt-hello-tx:focus { box-shadow: inset 0 0 0 2px var(--dt-hot); }
.dt-hello-tips { display: grid; gap: 6px; }
.dt-tip {
  padding: 10px 12px; border: 0; border-radius: var(--r-3); background: var(--accent-wash); color: var(--ink-soft);
  font-size: 13px; font-weight: 700; line-height: 1.35; text-align: left; cursor: pointer;
  transition: background-color var(--dur-press) linear;
}
.dt-tip:active { background: var(--accent-wash-3); }
.dt-hello-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dt-hello-n { color: var(--ink-dim); font-size: 12px; font-weight: 700; }
.dt-hello-send { min-width: 150px; }

/* == ЭТО ВЗАИМНО ========================================================= */
html.has-dt-match { overflow: hidden; }
.dt-match {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(90% 70% at 50% 40%, rgba(255, 111, 147, .36), rgba(110, 70, 200, .3) 55%, rgba(10, 7, 20, .94));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: dt-fade var(--dur-slow) var(--ease-out) both;
}
.dt-match.is-leaving { opacity: 0; transition: opacity var(--dur-base) linear; }
.dt-match-box { position: relative; z-index: 2; display: grid; justify-items: center; width: min(360px, 100%); text-align: center; color: #fff; }
.dt-match-pair { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.dt-match-av {
  display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 16px 40px rgba(0, 0, 0, .4);
}
.dt-match-av.is-me { animation: dt-meet-l .7s var(--ease-pop) both; }
.dt-match-av.is-them { animation: dt-meet-r .7s var(--ease-pop) both; }
.dt-match-photo { width: 100%; height: 100%; object-fit: cover; }
.dt-match-heart {
  z-index: 2; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 -18px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6f93, #d977e6); color: #fff; font-size: 32px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 10px 26px rgba(255, 111, 147, .6);
  animation: dt-pop .6s var(--ease-pop) .35s both, dt-beat 1.4s ease-in-out 1s infinite;
}
.dt-match-heart .ki { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-match-title { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -.02em; animation: dt-rise .5s var(--ease-out) .45s both; }
.dt-match-text { margin: 10px 0 24px; max-width: 30ch; color: rgba(255, 255, 255, .86); font-size: 16px; animation: dt-rise .5s var(--ease-out) .55s both; }
.dt-match-text b { color: #fff; }
.dt-match-write {
  width: 100%; min-height: 54px; border-radius: 27px; background: #fff; color: #7a2a8c; font-size: 17px; font-weight: 900;
  animation: dt-rise .5s var(--ease-out) .65s both;
}
.dt-match-later {
  width: 100%; min-height: 48px; margin-top: 10px; border-radius: 24px; background: transparent; color: rgba(255, 255, 255, .86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); animation: dt-rise .5s var(--ease-out) .72s both;
}
.dt-match-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dt-match-hearts i {
  position: absolute; left: calc(var(--x) * 1%); bottom: -24px; width: 18px; height: 18px; scale: var(--s);
  background: rgba(255, 255, 255, .85); opacity: 0;
  clip-path: path("M9 17C3 12 0 9 0 5.6 0 2.7 2.2.6 4.7.6 6.4.6 8 1.6 9 3.1 10 1.6 11.6.6 13.3.6 15.8.6 18 2.7 18 5.6 18 9 15 12 9 17z");
  animation: dt-rain 3.4s ease-in var(--d) infinite;
}
.dt-match-hearts i:nth-child(3n) { background: #ffb3c5; }
.dt-match-hearts i:nth-child(4n) { background: #e0c8ff; }

/* == ДВИЖЕНИЕ ============================================================ */
@keyframes dt-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dt-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes dt-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(.98); } 42% { transform: scale(1.09); } 60% { transform: scale(1); } }
@keyframes dt-breathe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes dt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dt-lean-r { 0%, 100% { transform: rotate(0) translateX(0); } 50% { transform: rotate(4deg) translateX(4px); } }
@keyframes dt-lean-l { 0%, 100% { transform: rotate(0) translateX(0); } 50% { transform: rotate(-4deg) translateX(-4px); } }
@keyframes dt-up { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-150px) scale(1.1) rotate(18deg); } }
@keyframes dt-rain { 0% { opacity: 0; transform: translateY(0) rotate(0); } 12% { opacity: .9; } 100% { opacity: 0; transform: translateY(-105vh) rotate(40deg); } }
@keyframes dt-meet-l { from { opacity: 0; transform: translateX(-90px) rotate(-14deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes dt-meet-r { from { opacity: 0; transform: translateX(90px) rotate(14deg) scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dt-card, .dt-deck > .dt-card, .dt-glow, .dt-stage, .dt-ribbon, .dt-wel-glow, .dt-wel-cat, .dt-wel-heart, .dt-wel-h,
  .dt-match, .dt-match-av, .dt-match-heart, .dt-match-title, .dt-match-text, .dt-match-write, .dt-match-later,
  .dt-match-hearts i { animation: none !important; transition: none !important; }
  .dt-wel-h, .dt-match-hearts i { display: none; }
}

/* Широкий экран: карточка не растягивается на всю колонку. */
@media (min-width: 720px) {
  .dt-deck, .dt-deck-top, .dt-welcome, .dt-wiz, .dt-edit, .dt-done, .dt-list, .dt-list-h { max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* == ВОПРОСЫ АНКЕТЫ, СИМПАТИЯ К КОНКРЕТНОМУ, РАМКА КАДРА (21.11.2026) ===== */
/* Ответ на карточке: вопрос мелко, ответ крупно — к нему можно придраться. */
.dt-ans {
  position: relative; margin: 14px 0 0; padding: 14px 52px 16px 16px; border-radius: var(--r-5);
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line);
}
.dt-ans small { display: block; color: var(--ink-dim); font-size: 12px; font-weight: 800; }
.dt-ans p { margin: 4px 0 0; font-size: 19px; font-weight: 900; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
/* Сердце «нравится именно это»: видно только на живой карточке. */
.dt-pickbtn {
  position: absolute; right: 10px; bottom: 10px; z-index: 4; display: none; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--bg-2); color: var(--dt-hot); font-size: 20px; box-shadow: inset 0 0 0 1px var(--dt-edge), var(--e2);
  transition: transform var(--dur-fast) var(--ease-pop);
}
.dt-card.is-live .dt-pickbtn { display: grid; }
.dt-pickbtn:active { transform: scale(.9); }
.dt-pickbtn.is-photo { right: 12px; bottom: 12px; background: var(--dt-grad); color: #fff; box-shadow: var(--dt-shadow); }
.dt-pickbtn.is-photo .ki { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
.dt-card.is-live .dt-shot-n { right: 62px; bottom: 20px; }
/* «Ей понравилось твоё фото» — что именно во мне отметили. */
.dt-what {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 12px 8px 8px; border-radius: var(--r-4);
  background: var(--dt-grad-soft); box-shadow: inset 0 0 0 1px var(--dt-edge); font-size: 13px; font-weight: 700; line-height: 1.35;
}
.dt-what > span { display: block; min-width: 0; padding-left: 4px; }
.dt-what .ki { margin-right: 6px; color: var(--dt-hot); font-size: 15px; vertical-align: -2px; }
.dt-what b { font-weight: 900; }
.dt-what-ph { flex: none; width: 44px; height: 55px; border-radius: 10px; object-fit: cover; }
.dt-what-q { display: block; margin-top: 2px; color: var(--ink-mid); overflow-wrap: anywhere; }
/* Шторка симпатии */
.dt-symp-q { padding: 12px 14px; border-radius: var(--r-4); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.dt-symp-q small { display: block; color: var(--ink-dim); font-size: 12px; font-weight: 800; }
.dt-symp-q p { margin: 3px 0 0; font-size: 17px; font-weight: 900; line-height: 1.25; }
.dt-symp-q.is-photo { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; font-size: 14px; }
.dt-symp-q.is-photo img { flex: none; width: 64px; height: 80px; border-radius: 12px; object-fit: cover; }
.dt-symp-q.is-photo .ki { margin-right: 6px; color: var(--dt-hot); vertical-align: -3px; }
.dt-symp .dt-hello-tx { min-height: 72px; }
.dt-symp-send { background: var(--dt-grad); color: #fff; }
.dt-symp-send .ki { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, .55); }
/* Редактор ответов */
.dt-qa { display: grid; gap: 10px; }
.dt-qa-it { display: grid; gap: 6px; padding: 10px; border-radius: var(--r-4); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.dt-qa-top { display: flex; align-items: center; gap: 6px; }
.dt-qa-q { flex: 1; min-width: 0; min-height: 44px; text-align: left; text-align-last: left; font-size: 14px; }
.dt-qa-a { min-height: 64px; font-size: 15px; }
.dt-qa-x { flex: none; color: var(--ink-dim); font-size: 20px; }
.dt-qa-add { justify-self: start; }
/* Рамка кадрирования 4:5 */
.dcr { display: grid; justify-items: center; gap: 12px; padding: 0 2px 6px; }
.dcr-win {
  position: relative; overflow: hidden; border-radius: 18px; background: var(--bg-2); touch-action: none; cursor: grab;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.dcr-win:active { cursor: grabbing; }
.dcr-cv { width: 100%; height: 100%; display: block; }
.dcr-grid {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
  background:
    linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 33.33% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 66.66% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 0 33.33% / 100% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 0 66.66% / 100% 1px no-repeat;
}
.dcr-hint { margin: 0; max-width: 30ch; color: var(--ink-mid); font-size: 13px; font-weight: 600; text-align: center; }
.dcr-zoom { width: min(264px, 100%); accent-color: var(--dt-hot); }
.dcr-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; width: 100%; }
.dcr-acts .btn { min-height: 48px; border-radius: 24px; }
.dcr-ok { background: var(--dt-grad); color: #fff; }
