/* ============================================================================
   TAROT TABLE — «MAGICAL COSMIC LUXURY» (v25)
   ----------------------------------------------------------------------------
   Стили виртуального стола Таро. Подключается отдельным файлом к index.html
   и не изменяет css/style.css. Использует дизайн-токены существующего сайта
   (--gold, --violet, --serif, --sans…), поэтому стол — часть единой системы.
   ============================================================================ */

/* ---------- Токены стола ---------- */
:root {
  --tt-night: #070514;
  --tt-deep: #0d0822;
  --tt-violet-bg: #150d33;
  --tt-amethyst: #a678e2;
  --tt-amethyst-deep: #6b3fa8;
  --tt-pink: #f0a6ee;
  --tt-pink-soft: rgba(240, 166, 238, .35);
  --tt-gold: var(--gold, #e2bd7c);
  --tt-gold-bright: var(--gold-bright, #f5d89a);
  --tt-gold-deep: var(--gold-deep, #b98a3e);
  --tt-ink: #f4efe6;
  --tt-muted: #c9bce0;
  --tt-card-ratio: 420 / 735;
  --tt-ease: cubic-bezier(.22, .8, .28, 1);
  --tt-bounce: cubic-bezier(.34, 1.45, .5, 1);
  /* v25 (2026-11-27): знак ротации — две стрелки РЯДОМ друг с другом
     (левая смотрит вниз, правая — вверх, как глиф ⇅), чёрные с золотым
     кантом, крупнее и толще. Индикатор перевёрнутой карты живёт
     ТОЛЬКО на самих картах (стол, ряд, расклад, отчёт) — в подписях
     под картами его нет. */
  --tt-rot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 42'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe9b0'/%3E%3Cstop offset='.55' stop-color='%23d9a54e'/%3E%3Cstop offset='1' stop-color='%238a5a1e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='11' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6v21'/%3E%3Cpath d='M11 19l7 8 7-8'/%3E%3Cpath d='M46 36v-21'/%3E%3Cpath d='M39 23l7-8 7 8'/%3E%3C/g%3E%3Cg fill='none' stroke='%230b0712' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6v21'/%3E%3Cpath d='M11 19l7 8 7-8'/%3E%3Cpath d='M46 36v-21'/%3E%3Cpath d='M39 23l7-8 7 8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   КОРЕНЬ ОВЕРЛЕЯ
   ========================================================================== */
.tarot-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  /* v5.3: закрытый корень не должен ловить клики даже «сквозь» себя:
     последний активный .tt-screen остаётся visibility:visible (правило
     .tt-screen.is-active перебивает inherited hidden) и растянут на весь
     экран — без pointer-events:none невидимый слой блокировал всю главную */
  pointer-events: none;
  background: var(--tt-night);
  color: var(--tt-ink);
  font-family: var(--sans);
  opacity: 0;
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* v6: открытие/закрытие стола мгновенные (без fade) */
.tarot-root.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ---------- Фон стола: загруженный космический арт (v6.1, 2026-11-25) ----------
   Оригинал IMG_1095.jpeg 941×1672 (464 КБ JPEG) оптимизирован в WebP q78:
   table-bg-portrait.webp  941×1672, 119 КБ — телефоны (cover почти без кропа);
   table-bg-landscape.webp 1920×1080, 69 КБ — десктоп (центральный кроп 16:9,
   LANCZOS + лёгкий unsharp). Под изображением лежит градиент-фолбэк:
   если WebP не загрузится, стол останется прежнего ночного цвета. */
.tt-sky--photo {
  /* v36 (2026-11-28): фикс «лёгкого приближения фона при скролле».
     Слой растягивался inset:0 по текущей высоте корня: на iOS/Android
     при прокрутке прячется адресная строка, fixed-корень подрастает
     (~740→844px) и background-size:cover пересчитывается — фон зумился.
     Теперь слой привязан к верхней грани с высотой 100vh — «большой
     вьюпорт», который НЕ меняется при скрытии/показе адресной строки,
     поэтому размер фона при скролле неизменен. На десктопе 100vh равен
     высоте окна — отрисовка пиксель-в-пиксель прежняя. */
  position: absolute; top: 0; left: 0; right: 0;
  height: 100vh;
  /* v37 (2026-11-28, запрос заказчика): лёгкое зумирование фона при
     прокрутке экрана выбора расклада — движок стола (buildRoot в
     tarot-table.js) по событию scroll ставит слою transform: scale()
     до 1.08 пропорционально глубине прокрутки. will-change держит слой
     на композиторе — зум плавный и вёрстку не трогает; масштаб не
     влияет на прежний фикс 100vh (размер фоновой картинки по-прежнему
     не пересчитывается от адресной строки), а по уходу с экрана
     масштаб сбрасывается движком (см. go) */
  transform-origin: 50% 46%;
  will-change: transform;
  transition: transform .3s ease-out;
  background-image:
    url("../img/tarot/table-bg-portrait.webp"),
    linear-gradient(180deg, #0a0620 0%, #0d0827 34%, #0b0620 70%, #070514 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* широкий экран: ландшафтный вариант, чтобы не растягивать портрет вверх */
@media (min-aspect-ratio: 1/1) {
  .tt-sky--photo {
    background-image:
      url("../img/tarot/table-bg-landscape.webp"),
      linear-gradient(180deg, #0a0620 0%, #0d0827 34%, #0b0620 70%, #070514 100%);
  }
}
/* затемнение верха/низа поверх арта — золотой текст topbar/tablebar читается */
.tt-sky--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 5, 20, .55) 0%, transparent 15%,
    transparent 76%, rgba(7, 5, 20, .62) 100%);
  pointer-events: none;
}

/* v6: «магическая пыль» (16 бесконечно летящих частиц) удалена целиком */

/* ==========================================================================
   ДЕКОР: розы, свечи, орнаменты (края, не мешают картам)
   v6: статичные — мерцание свечей и искры звёзд не анимируются
   ========================================================================== */
.tt-decor { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tt-decor .deco { position: absolute; filter: drop-shadow(0 10px 24px rgba(20, 8, 44, .8)); }


.deco--rose-l { left: 3.5%; top: 14%; width: 74px; height: 74px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e2bd7c' stroke-width='1.4' stroke-opacity='.9'%3E%3Ccircle cx='40' cy='40' r='9' fill='%23c069e8' fill-opacity='.5'/%3E%3Cpath d='M40 31c7-8 18-5 18 4 0 9-11 15-18 15s-18-6-18-15c0-9 11-12 18-4Z' fill='%23a678e2' fill-opacity='.55'/%3E%3Cpath d='M40 49c-8 6-19 3-19-6M40 49c8 6 19 3 19-6'/%3E%3Cpath d='M40 60v12M34 66l6-6 6 6' stroke-linecap='round'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
.deco--rose-r { right: 4%; bottom: 18%; width: 66px; height: 66px; opacity: .85; transform: rotate(-14deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e2bd7c' stroke-width='1.4' stroke-opacity='.9'%3E%3Ccircle cx='40' cy='40' r='9' fill='%23f0a6ee' fill-opacity='.45'/%3E%3Cpath d='M40 31c7-8 18-5 18 4 0 9-11 15-18 15s-18-6-18-15c0-9 11-12 18-4Z' fill='%23c069e8' fill-opacity='.5'/%3E%3Cpath d='M40 49c-8 6-19 3-19-6M40 49c8 6 19 3 19-6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }

/* свечи */
.deco--candle-l { left: 6%; bottom: 12%; width: 46px; height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 110'%3E%3Cdefs%3E%3ClinearGradient id='c' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23f6ead2'/%3E%3Cstop offset='.5' stop-color='%23e8d9b8'/%3E%3Cstop offset='1' stop-color='%23c9b48c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='13' y='34' width='20' height='70' rx='6' fill='url(%23c)' stroke='%23b98a3e' stroke-opacity='.5'/%3E%3Cpath d='M23 34V22' stroke='%236b4630' stroke-width='1.4'/%3E%3Cellipse class='fl' cx='23' cy='14' rx='5.5' ry='10' fill='%23ffd98f' opacity='.95'/%3E%3Cellipse cx='23' cy='16' rx='2.6' ry='5' fill='%23fff6e0'/%3E%3C/svg%3E") center/contain no-repeat; }
.deco--candle-r { right: 7.5%; top: 26%; width: 40px; height: 96px; opacity: .92;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 110'%3E%3Crect x='13' y='34' width='20' height='70' rx='6' fill='%23e8d9b8' stroke='%23b98a3e' stroke-opacity='.5'/%3E%3Cpath d='M23 34V22' stroke='%236b4630' stroke-width='1.4'/%3E%3Cellipse cx='23' cy='14' rx='5.5' ry='10' fill='%23ffd98f' opacity='.95'/%3E%3Cellipse cx='23' cy='16' rx='2.6' ry='5' fill='%23fff6e0'/%3E%3C/svg%3E") center/contain no-repeat; }

/* золотые восьмиконечные звёзды */
.deco--star { width: 44px; height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 2c.9 8.4 5.6 13.1 14 14-8.4.9-13.1 5.6-14 14-.9-8.4-5.6-13.1-14-14 8.4-.9 13.1-5.6 14-14Z' fill='%23f2d796' stroke='%23b98a3e' stroke-width='.8'/%3E%3Ccircle cx='24' cy='16' r='12' fill='none' stroke='%23e2bd7c' stroke-opacity='.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.deco--star.tl { left: 12%; top: 7%; }
.deco--star.tr { right: 10%; top: 12%; width: 30px; height: 30px; }
/* v23: звезда-декор внизу справа убрана по просьбе заказчика */


/* ==========================================================================
   ШАПКА И ПРОГРЕСС
   ========================================================================== */
.tt-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.tt-topbar__title {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 24.5px);
  letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(180deg, #f8e7bb 15%, var(--tt-gold) 48%, #a87e37 78%, #f2d492);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(226, 189, 124, .25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-iconbtn {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--tt-gold-bright);
  background: linear-gradient(180deg, rgba(46, 28, 84, .72), rgba(22, 12, 44, .82));
  border: 1px solid rgba(226, 189, 124, .45);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .18), 0 6px 16px rgba(5, 2, 14, .6);
  cursor: pointer;
}
.tt-iconbtn:hover { border-color: rgba(245, 216, 154, .85); box-shadow: inset 0 1px 0 rgba(255,240,200,.25), 0 6px 16px rgba(5,2,14,.6); } /* v19: свечение 0 0 18px убрано */
.tt-iconbtn svg { width: 20px; height: 20px; }
.tt-iconbtn.is-off { color: #8f84ab; border-color: rgba(160, 140, 200, .3); }
.tt-topbar__spacer { flex: 1; }

/* шаги путешествия */
.tt-steps {
  position: absolute; top: calc(58px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 25; display: flex; align-items: center; gap: 7px;
  pointer-events: none; opacity: .92;
}
.tt-steps b {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(226, 189, 124, .55);
  background: rgba(20, 12, 44, .6);
}
.tt-steps b.is-done { background: var(--tt-gold); box-shadow: 0 0 8px rgba(226,189,124,.6); }
.tt-steps b.is-cur {
  background: radial-gradient(circle at 35% 30%, #fff2cf, var(--tt-gold));
  box-shadow: 0 0 12px rgba(245, 216, 154, .9), 0 0 26px rgba(196, 105, 232, .5);
  transform: scale(1.35);
}
.tt-steps i { width: 16px; height: 1px; background: linear-gradient(90deg, rgba(226,189,124,.05), rgba(226,189,124,.45)); }

/* ==========================================================================
   ЭКРАНЫ
   ========================================================================== */
.tt-stage { position: absolute; inset: 0; }
/* v6: переключение экранов мгновенное (без fade/scale) */
.tt-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
}
.tt-screen.is-active { opacity: 1; visibility: visible; }

/* ---------- Общие заголовки ---------- */
.tt-h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(29px, 4.6vw, 48px);
  letter-spacing: .1em; text-align: center; margin: 0;
  background: linear-gradient(180deg, #fdf1cd 12%, #f0cf8c 42%, #b98a3e 70%, #f5d89a 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(226, 189, 124, .28));
}
.tt-h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(21.5px, 2.6vw, 29px);
  letter-spacing: .06em; text-align: center; margin: 0;
  color: var(--tt-ink);
}
.tt-sub { text-align: center; color: var(--tt-muted); font-size: clamp(14.5px, 1.5vw, 17px); letter-spacing: .04em; }

/* декоративная линия-разделитель */
.tt-ornline { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px auto 0; }
.tt-ornline::before, .tt-ornline::after {
  content: ""; height: 1px; width: min(150px, 24vw);
  background: linear-gradient(90deg, transparent, rgba(226,189,124,.65));
}
.tt-ornline::after { background: linear-gradient(90deg, rgba(226,189,124,.65), transparent); }
.tt-ornline svg { width: 16px; height: 16px; color: var(--tt-gold); flex: 0 0 auto; }

/* ---------- Кнопки ---------- */
.tt-btn {
  position: relative;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(17px, 1.9vw, 20.5px);
  letter-spacing: .16em; text-transform: uppercase;
  color: #241303;
  padding: 13px 34px 14px;
  border-radius: 14px;
  border: none; cursor: pointer;
  background:
    linear-gradient(178deg, #fdf0c4 0%, #f0cf8c 26%, #d9ab5b 52%, #b17f34 78%, #e9c37c 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 252, 240, .85),
    inset 0 -3px 6px rgba(120, 78, 22, .55),
    0 0 0 1px rgba(122, 84, 30, .9),
    0 0 0 4px rgba(226, 189, 124, .14),
    0 10px 26px rgba(4, 2, 12, .66); /* v19: свечение 0 0 24px убрано */
  text-shadow: 0 1px 0 rgba(255, 246, 220, .55);
  -webkit-user-select: none; user-select: none;
}
.tt-btn::after { /* блик поверх */
  content: ""; position: absolute; inset: 2px 3px 55% 3px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, rgba(255,252,235,.55), rgba(255,252,235,0));
  pointer-events: none;
}
.tt-btn:hover {
  box-shadow:
    inset 0 2px 2px rgba(255,252,240,.9),
    inset 0 -3px 6px rgba(120,78,22,.5),
    0 0 0 1px rgba(140,98,36,.95),
    0 0 0 4px rgba(226,189,124,.2),
    0 14px 30px rgba(4,2,12,.7); /* v19: свечение 0 0 34px убрано */
}
.tt-btn:active { filter: saturate(.94); }
.tt-btn:disabled { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.tt-btn--ghost {
  background: linear-gradient(180deg, rgba(48, 30, 88, .8), rgba(24, 14, 50, .9));
  color: var(--tt-gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(240, 220, 255, .14),
    0 0 0 1px rgba(226, 189, 124, .5),
    0 0 0 4px rgba(166, 120, 226, .1),
    0 8px 22px rgba(4, 2, 12, .6);
  text-shadow: none; /* v19: свечение надписи убрано */
}
.tt-btn--ghost::after { background: linear-gradient(180deg, rgba(255,255,255,.12), transparent); }
.tt-btn--ghost:hover { color: #fdf1cd; box-shadow: inset 0 1px 0 rgba(240,220,255,.2), 0 0 0 1px rgba(245,216,154,.8), 0 0 0 4px rgba(166,120,226,.16), 0 10px 26px rgba(4,2,12,.66); } /* v19: свечение 0 0 26px убрано */

/* v19 (2026-11-26): у ВСЕХ кнопок стола убрано свечение (просьба юзера):
   drop-shadow по контуру у art1–art5 (база/hover/focus/disabled),
   цветные блюр-тени 0 0 Npx у базовых .tt-btn/.tt-btn--ghost/
   .tt-iconbtn/.tt-tablebar, свечение text-shadow у ghost. Тёмные тени
   глубины и тонкие кольца-рамки сохранены. */
/* v39 (2026-11-28): картинки кнопок art1–art5 переведены из PNG в WebP
   (сохранена альфа, ширина уменьшена до 1200px при дисплее ≤340px —
   запас 3-4x для retina; качество 85 — визуально без изменений).
   Вес пяти файлов: 12.3 МБ → ~1.0 МБ — основная нагрузка при открытии
   стола снята (оптимизация загрузки, запрос заказчика). Аспекты
   переменных --tt-art-ar обновлены под новые размеры. */
/* v16 (2026-11-26): «Танцевать» → «Тасовать» = вторая картинка IMG_1099
   (надпись запечена в самой картинке), класс .tt-btn--art2. Общая
   механика art/art2: лицо = PNG с альфой (никаких прямоугольных
   box-shadow/outline — v15); подпись
   скрыта (font-size 0), имя для скринридеров — aria-label. Картинка и
   аспект — через CSS-переменные. Размеры: «К столу» (welcome) —
   270x93, справа; в .tt-tablebar__btns — «Тасовать» (art2) слева
   впритык + «Открыть расклад» (art) справа, ВСЕГДА одна строка:
   nowrap + одинаковая высота h = min(93px, (100vw-42px)/4.9) — из
   уравнения 2.9h + 2.0h + gap 10px ≤ 100vw - 32px (паддинги панели
   16+16), ширины из своих аспектов (art 2135/736, art2 1774/887);
   flex-shrink — страховка от наложения. */
.tt-btn--art { --tt-art-img: url("../img/tt-btn-1098.webp"); --tt-art-ar: 1200 / 414; margin-left: auto; }
.tt-btn--art2 { --tt-art-img: url("../img/tt-btn-1099.webp"); --tt-art-ar: 1200 / 600; }
/* v17 (2026-11-26): «Получить толкование» → «Подробнее с ИИ» = третья
   картинка IMG_1109 (надпись запечена в самой картинке), класс
   .tt-btn--art3, кнопка #ttToReading в .tt-spreadbar. Механика та же
   art/art2: лицо = PNG с альфой по контуру (без прямоугольных
   box-shadow/outline); подпись
   скрыта (font-size 0, color transparent), имя для скринридеров —
   aria-label. Картинка и аспект — через те же CSS-переменные. */
.tt-btn--art3 { --tt-art-img: url("../img/tt-btn-1109.webp"); --tt-art-ar: 1200 / 517; }
/* v18 (2026-11-26): «Новое гадание» и соседняя «Закрыть» (экран толкования,
   #ttAgain / #ttCloseReading в .tt-reading__cta) → картинки IMG_1111 и
   IMG_1110 (надписи запечены в самих картинках), классы .tt-btn--art4 и
   .tt-btn--art5. Механика та же art/art2/art3: альфа-контур,
   подпись скрыта (font-size 0), для скринридеров —
   aria-label. В .tt-reading__cta — одинаковая высота
   h = min(88px, 21vw), ширины из своих аспектов (1111: 2089/753,
   1110: 2058/764); на узких экранах flex-wrap уже есть — встанут в столбик. */
.tt-btn--art4 { --tt-art-img: url("../img/tt-btn-1111.webp"); --tt-art-ar: 1200 / 433; }
.tt-btn--art5 { --tt-art-img: url("../img/tt-btn-1110.webp"); --tt-art-ar: 1200 / 445; }
.tt-reading__cta .tt-btn.tt-btn--art4,
.tt-reading__cta .tt-btn.tt-btn--art5 {
  width: auto;
  min-width: 0;               /* гасит base min-width 230px */
  height: min(88px, 21vw);
}
/* размер CTA «Подробнее с ИИ» в спредбаре: ширина как у бывшей пилюли
   (min(340px, 84vw)), высота — из аспекта картинки. (0,3,0) глушит
   base .tt-spreadbar .tt-btn min-width (0,2,0) и базовую art-ширину. */
.tt-spreadbar .tt-btn.tt-btn--art3 { min-width: 0; width: min(340px, 84vw); }
.tt-btn.tt-btn--art, .tt-btn.tt-btn--art2, .tt-btn.tt-btn--art3,
.tt-btn.tt-btn--art4, .tt-btn.tt-btn--art5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(270px, 70.2vw);
  max-width: 100%;             /* на узких экранах не вылезает */
  aspect-ratio: var(--tt-art-ar);
  padding: 0;
  border: none;
  border-radius: 0;           /* форму задаёт альфа-канал картинки */
  background: var(--tt-art-img) center / 100% 100% no-repeat;
  color: transparent;         /* подпись скрыта — на картинке своя надпись */
  font-size: 0;
  letter-spacing: 0;
  text-shadow: none;
  /* БЕЗ box-shadow: базовые .tt-btn / :hover / .tt-tablebar рисуют
     прямоугольные тени и кольца вокруг альфа-контура. Специфичность
     (0,2,0) и позже в файле — глушит base .tt-btn и base :hover. */
  box-shadow: none;
  /* v19: свечение по контуру (drop-shadow) убрано по просьбе юзера —
     у всех кнопок стола свечения больше нет, лицо = чистая картинка */
}
/* пара в нижней панели тасовки: одна строка, слева-вправо впритык,
   одинаковая высота — никогда не наезжают друг на друга.
   NB: (0,2,0) — иначе base .tt-tablebar__btns flex-wrap:wrap (0,1,0,
   позже в файле) побеждает по порядку и на мобилках будет 2 строки;
   размеры кнопок (0,3,0) — иначе base min-width 230px побеждает. */
.tt-tablebar .tt-tablebar__btns { flex-wrap: nowrap; align-self: stretch; justify-content: space-between; }
.tt-tablebar__btns .tt-btn.tt-btn--art,
.tt-tablebar__btns .tt-btn.tt-btn--art2 {
  width: auto;
  min-width: 0;               /* гасит base min-width 230px, даёт сжиматься */
  height: min(93px, calc((100vw - 42px) / 4.9));
}
/* глянцевый ::after не нужен — блик в самой картинке */
.tt-btn--art::after, .tt-btn--art2::after, .tt-btn--art3::after,
.tt-btn--art4::after, .tt-btn--art5::after { display: none; }
/* v19: hover без свечения — отдельное filter-правило больше не нужно */
.tt-btn.tt-btn--art:active, .tt-btn.tt-btn--art2:active, .tt-btn.tt-btn--art3:active,
.tt-btn.tt-btn--art4:active, .tt-btn.tt-btn--art5:active { transform: scale(.985); }
/* фокус без прямоугольника: рамку (:focus-visible outline) выключаем,
   вместо свечения (v19 убрано) — лёгкое осветление картинки */
.tt-btn.tt-btn--art:focus, .tt-btn.tt-btn--art2:focus, .tt-btn.tt-btn--art3:focus,
.tt-btn.tt-btn--art4:focus, .tt-btn.tt-btn--art5:focus { outline: none; box-shadow: none; }
.tt-btn.tt-btn--art:focus-visible, .tt-btn.tt-btn--art2:focus-visible, .tt-btn.tt-btn--art3:focus-visible,
.tt-btn.tt-btn--art4:focus-visible, .tt-btn.tt-btn--art5:focus-visible {
  outline: none;
  filter: brightness(1.12);
}
/* отключенная — приглушена, но узнаваема (без grayscale), тоже без
   прямоугольной тени; pointer-events:none остаётся от base */
.tt-btn.tt-btn--art:disabled, .tt-btn.tt-btn--art2:disabled, .tt-btn.tt-btn--art3:disabled,
.tt-btn.tt-btn--art4:disabled, .tt-btn.tt-btn--art5:disabled {
  opacity: .78;
  filter: saturate(.72) brightness(.86); /* v19: drop-shadow убран */
}

/* ==========================================================================
   ЭКРАН 1 — ВЫБОР РАСКЛАДА
   ========================================================================== */
.tt-welcome { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.tt-welcome__inner {
  margin: 0 auto; width: min(1180px, 100%);
  padding: calc(74px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 22px;
}
.tt-welcome__hero { display: flex; gap: 26px; align-items: stretch; }
.tt-welcome__head { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.tt-welcome__head .tt-h1 { text-align: left; }
.tt-catquote {
  position: relative;
  max-width: 560px;
  background: linear-gradient(160deg, rgba(44, 27, 78, .5), rgba(20, 12, 44, .72));
  border: 1px solid rgba(166, 120, 226, .3);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  color: var(--tt-muted); font-size: 15.5px; line-height: 1.55; font-style: italic;
  font-family: var(--serif);
  box-shadow: 0 10px 26px rgba(4, 2, 12, .45);
}
.tt-catquote::before {
  content: "«"; position: absolute; left: -4px; top: -22px;
  font-family: var(--serif); font-size: 48px; color: rgba(226, 189, 124, .55);
}
.tt-catquote b { color: var(--tt-gold-bright); font-style: normal; }
/* v37 (запрос заказчика): реплика Кисуньи в пузыре выбора расклада —
   выравнивание по центру (пузырь в отчёте с вопросом не тронут).
   v38 (запрос заказчика): реплика — ЗОЛОТЫМ шрифтом, жирнее и на 20%
   крупнее. Градиент с background-clip:text вешается на внутренний
   СПАН .tt-catquote__text (js v34), а НЕ на пузырь: у пузыря свой
   фон-градиент, и clip:text на нём «съел» бы его целиком. Спан —
   inline-block: градиент единый сверху вниз на весь текст (по строкам
   не перезапускается); line-height 1.55 оставляет хвостам «у/д»
   место в строке — урок v9.20 с обрезанными цифрами. Фолбэк color:
   золотой — если clip:text не поддержан, текст остаётся золотым,
   а не прозрачным. Размер 14px → 16.8px (+20%); вес 700 (заметно
   жирнее текущего italic-500). База .tt-catquote не тронута —
   пузырь с вопросом в толковании рендерится как раньше */
.tt-welcome__head .tt-catquote {
  text-align: center;
  font-size: 18.8px; /* v38: +20% к базовым 14px */
  font-weight: 700;  /* v38: заметно жирнее */
}
.tt-welcome__head .tt-catquote__text {
  display: inline-block;
  color: var(--tt-gold-bright); /* фолбэк, если clip:text не работает */
  background-image: linear-gradient(180deg, #d8a959 0%, #eecf8e 42%, #fff3d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* участники и вопрос */
.tt-participants {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.tt-pcard {
  background: linear-gradient(165deg, rgba(44, 27, 78, .45), rgba(18, 11, 40, .75));
  border: 1px solid rgba(226, 189, 124, .24);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 12px 30px rgba(4, 2, 12, .4);
}
.tt-pcard__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #ffd98f; font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 214, 140, .35);
}
.tt-pcard__tag svg { width: 14px; height: 14px; }
.tt-field {
  display: flex; flex-direction: column; gap: 4px;
}
.tt-field span { font-size: 12.5px; color: var(--tt-muted); letter-spacing: .05em; }
.tt-field input, .tt-field textarea {
  width: 100%;
  background: rgba(10, 6, 26, .72);
  border: 1px solid rgba(166, 120, 226, .32);
  border-radius: 10px;
  color: var(--tt-ink);
  font: 14px/1.4 var(--sans);
  padding: 9px 12px;
  outline: none;
}
.tt-field input:focus, .tt-field textarea:focus {
  border-color: rgba(226, 189, 124, .7);
  box-shadow: 0 0 0 3px rgba(226, 189, 124, .12), 0 0 18px rgba(166, 120, 226, .18);
}
.tt-field textarea { resize: none; min-height: 58px; }
/* v3: на сенсорных/узких экранах поля 16px — iOS Safari автоматически
   приближает страницу при фокусе в поле с font-size <16px (пинч уже
   заблокирован в index.html, авто-зум фокуса лечится только размером) */
@media (pointer: coarse), (max-width: 640px) {
  .tt-field input, .tt-field textarea { font-size: 18px; }
}
.tt-hint { font-size: 13px; color: #9a8db8; }

/* карточки раскладов */
.tt-spreads {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.tt-spread {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(170deg, rgba(56, 34, 100, .34), rgba(22, 13, 48, .78) 60%),
    radial-gradient(120% 80% at 50% 0%, rgba(196, 105, 232, .12), transparent 60%);
  border: 1px solid rgba(226, 189, 124, .28);
  box-shadow: 0 14px 34px rgba(4, 2, 12, .5), inset 0 1px 0 rgba(240, 220, 255, .08);
  cursor: pointer;
  overflow: hidden;
}
.tt-spread::before { /* уголковый завиток */
  content: ""; position: absolute; inset: 6px;
  border-radius: 12px;
  border: 1px solid rgba(226, 189, 124, .14);
  pointer-events: none;
  mask: linear-gradient(135deg, rgba(0,0,0,.9) 0 34px, transparent 34px) top left / 40% 40% no-repeat,
        linear-gradient(45deg, rgba(0,0,0,.9) 0 34px, transparent 34px) top right / 40% 40% no-repeat,
        linear-gradient(-45deg, rgba(0,0,0,.9) 0 34px, transparent 34px) bottom left / 40% 40% no-repeat,
        linear-gradient(-135deg, rgba(0,0,0,.9) 0 34px, transparent 34px) bottom right / 40% 40% no-repeat;
  -webkit-mask: linear-gradient(135deg, #000 0 34px, transparent 34px) top left / 40% 40% no-repeat,
        linear-gradient(45deg, #000 0 34px, transparent 34px) top right / 40% 40% no-repeat,
        linear-gradient(-45deg, #000 0 34px, transparent 34px) bottom left / 40% 40% no-repeat,
        linear-gradient(-135deg, #000 0 34px, transparent 34px) bottom right / 40% 40% no-repeat;
}
.tt-spread:hover {
  border-color: rgba(245, 216, 154, .75);
  box-shadow: 0 20px 44px rgba(4, 2, 12, .6), 0 0 30px rgba(196, 105, 232, .22), inset 0 1px 0 rgba(240,220,255,.12);
}
.tt-spread.is-picked { border-color: var(--tt-gold-bright); box-shadow: 0 0 0 1px rgba(245,216,154,.8), 0 0 34px rgba(226,189,124,.3), 0 18px 40px rgba(4,2,12,.6); }
/* v33 (2026-11-28): схема расклада обязана помещаться в свой бокс.
   Раньше svg без ограничения высоты растягивался на «ширина × 0.7»
   (пропорция viewBox 100×70) и вылезал вниз на заголовок/описание —
   на мобильном перехлёст доходил до 168px. Теперь svg всегда вписан
   в бокс схемы (preserveAspectRatio по умолчанию xMidYMid meet):
   карты схемы не задевают надписи ни на каком размере окна, размер
   схемы подстраивается под окно, приоритет — читаемость текста. */
.tt-spread__scheme { width: 100%; height: clamp(90px, 12vw, 120px); display: block; }
.tt-spread__scheme svg { width: 100%; height: 100%; display: block; }
.tt-spread__title { font-family: var(--serif); font-size: 21.5px; font-weight: 600; color: var(--tt-ink); letter-spacing: .04em; text-align: center; }
.tt-spread__sub { font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd98f; text-align: center; text-shadow: 0 0 12px rgba(255, 214, 140, .4), 0 1px 3px rgba(0, 0, 0, .85); }
.tt-spread__desc { font-size: 14px; line-height: 1.5; color: var(--tt-muted); text-align: center; }
/* v44 (2026-11-29): окно «СВОИ КАРТЫ» стало КНОПКОЙ — клик открывает
   платный разбор пользовательских карт нейросетью (подтверждение 50
   коинов → две формы ввода → стрим ответа). Курсор-рука и hover-подъём —
   как у карточек раскладов; рамка/фон — общий класс .tt-spread.
   Картинка «СВОИ КАРТЫ» (WebP с альфой) и приглашение — внутри кнопки. */
.tt-spread--live {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: center;
}
.tt-spread--live:hover {
  border-color: rgba(245, 216, 154, .75);
  box-shadow: 0 20px 44px rgba(4, 2, 12, .6), 0 0 30px rgba(196, 105, 232, .22), inset 0 1px 0 rgba(240,220,255,.12);
}
.tt-spread--live:focus-visible {
  outline: none;
  border-color: var(--tt-gold-bright);
  box-shadow: 0 0 0 1px rgba(245, 216, 154, .8), 0 0 34px rgba(226, 189, 124, .3);
}
.tt-spread--live:active { transform: translateY(1px); }
.tt-spread--live .tt-live__scheme { height: clamp(124px, 16vw, 156px); }
.tt-spread--live .tt-live__scheme img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 6px 16px rgba(226, 150, 60, .28));
}
.tt-spread--live .tt-live__text {
  font-family: var(--serif); font-size: 17.5px; line-height: 1.45;
  color: var(--tt-ink); text-align: center; padding: 0 6px 2px;
}
.tt-welcome__cta { display: flex; justify-content: center; padding: 4px 0 8px; }

/* ==========================================================================
   КАРТА (общая)
   ========================================================================== */
.tt-card {
  position: relative;
  aspect-ratio: var(--tt-card-ratio);
  border-radius: 5.5% / 3.2%;
  transform-style: preserve-3d;
  -webkit-user-select: none; user-select: none;
  touch-action: none;
}
.tt-card__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s var(--tt-ease);
}
.tt-card.is-flipped .tt-card__inner { transform: rotateY(180deg); }
.tt-card__face, .tt-card__back {
  position: absolute; inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: #17102e;
}
/* v29 (2026-11-27): рубашка — целиком, без обрезки: object-fit: contain
   вместо cover; фон стороны и картинки — чистый чёрный #000, чтобы боковые
   поля от contain (аспект карты 420/735 против 0.563 у рубашки) сливались
   с чёрным фоном картинки и были незаметны. Лица карт — по-прежнему cover. */
.tt-card__back { background: #000; }
.tt-card__face img, .tt-card__back img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  -webkit-user-drag: none;
}
.tt-card__back img { object-fit: contain; background: #000; } /* v29: рубашка целиком */
.tt-card__face { transform: rotateY(180deg); }
/* золотая рамка поверх обеих сторон */
.tt-card__frame {
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(240, 210, 140, .75),
    inset 0 0 0 2.5px rgba(64, 36, 12, .55),
    inset 0 0 0 3.5px rgba(240, 210, 140, .35);
  pointer-events: none;
}
/* v6: блик .tt-card__glare УДАЛЁН по требованию (hover-подсветка
   на картах больше не анимируется и не рисуется) */
/* внешняя тень-объём */
.tt-card { box-shadow: 0 1px 2px rgba(3, 1, 10, .8), 0 6px 16px rgba(3, 1, 10, .55), 0 14px 34px rgba(3, 1, 10, .45); }
.tt-card.is-lifted { box-shadow: 0 2px 3px rgba(3,1,10,.6), 0 16px 34px rgba(3,1,10,.6), 0 0 26px rgba(226,189,124,.4), 0 0 60px rgba(166,120,226,.35); }
/* v25: знак ротации — индикатор перевёрнутости карты (единый для всех
   карт: стол, ряд, расклад, отчёт): две стрелки РЯДОМ друг с другом
   (левая вниз, правая вверх — как глиф ⇅), чёрные с золотым кантом,
   крупнее и толще; под стрелками тёмная плашка-подложка — знак
   читается даже на самых ярких иллюстрациях карт */
.tt-card__flipdot {
  position: absolute; top: 4.5%; left: 50%; transform: translateX(-50%);
  width: 34%; aspect-ratio: 64 / 42;
  background:
    var(--tt-rot) center / contain no-repeat,
    radial-gradient(50% 50% at 50% 50%, rgba(7, 5, 20, .9) 55%, rgba(7, 5, 20, 0) 78%);
  filter: drop-shadow(0 0 7px rgba(240, 200, 120, .95));
  opacity: 0;
  pointer-events: none;
}
.tt-card.is-reversed .tt-card__flipdot { opacity: 1; }
/* v35 (запрос заказчика): при перевороте карты к стороне описания стрелки
   перевёрнутой карты (знак ротации) исчезают МГНОВЕННО в момент клика —
   они не остаются поверх фиолетовой стороны описания; при обратном
   перевороте возвращаются так же мгновенно (у flipdot нет transition) */
.tt-card.is-info .tt-card__flipdot,
.tt-card.is-info.is-reversed .tt-card__flipdot { opacity: 0; }
/* v37 (запрос заказчика): стрелки «перевёрнутая» больше не появляются
   неравномерно и не пропадают во время переворота: на весь флип (.7s)
   движок вешает на карту класс .is-flipping — знак скрыт всё время
   вращения (никаких мельканий над стороной описания и конфликтов
   3D-композиции), а по завершении переворота появляется мгновенно и
   одновременно; повторный клик во время флипа движок игнорирует */
.tt-card.is-flipping .tt-card__flipdot { opacity: 0 !important; }

/* v34 (2026-11-28), запрос заказчика: карточка-описание — ОБОРОТНАЯ
   СТОРОНА карты. Под картами (на столе и в отчёте) — только названия;
   краткое описание видно по клику: карта переворачивается к фиолетовой
   стороне ТЕМ ЖЕ ФЛИПОМ, что и при раскладе, — работает общая машина
   переворота (.tt-card__inner rotateY 180→360deg, .7s). Сторона описания
   лежит ВНУТРИ __inner в плоскости рубашки (translateZ(1px) — чуть
   впереди рубашки, чтобы стороны не «спорили»), backface-visibility
   прячет её, пока карта не повернулась. Видима только при is-info;
   при закрытии прячется с задержкой .75s — после окончания обратного
   флипа (.7s), чтобы в его середине не мигала рубашка; при открытии
   появляется сразу (до середины флипа её всё равно не видно).
   Размер шрифта задаёт движок в --tt-info-fs — подбирается под размер
   карты и длину текста. */
.tt-card__info {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  gap: calc(var(--tt-info-fs, 12px) * .5);
  padding: 9% 8%;
  border-radius: inherit;
  /* v35 (запрос заказчика): описание, не поместившееся в границы карты,
     прокручивается пальцем вверх-вниз: скролл живёт внутри стороны
     описания; overscroll-behavior не передаёт жест наружу, touch-action
     pan-y разрешает вертикальный скролл поверх флип-карты */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 189, 124, .4) transparent;
  text-align: center;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(166, 120, 226, .34), transparent 62%),
    radial-gradient(95% 75% at 50% 112%, rgba(107, 63, 168, .42), transparent 60%),
    linear-gradient(172deg, #2f1b60 0%, #1b1040 48%, #100a2b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(240, 210, 140, .78),
    inset 0 0 0 2.5px rgba(64, 36, 12, .55),
    inset 0 0 0 3.5px rgba(240, 210, 140, .35);
  transform: translateZ(1px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0s linear .75s, visibility 0s linear .75s;
  -webkit-user-select: none; user-select: none;
}
/* v35: вертикальное центрирование — через flex-спейсеры, а не
   justify-content:center: при переполнении спейсеры схлопываются в ноль,
   контент начинается сверху и весь доступен скроллом (при center верх
   текста клипился и был недоступен) */
.tt-card__info::before, .tt-card__info::after { content: ""; flex: 1 0 auto; }
/* тонкий золотой скроллбар описания (webkit) */
.tt-card__info::-webkit-scrollbar { width: 4px; }
.tt-card__info::-webkit-scrollbar-track { background: transparent; }
.tt-card__info::-webkit-scrollbar-thumb { background: rgba(226, 189, 124, .3); border-radius: 2px; }
/* v35: карты расклада не блокируют вертикальный жест — иначе палец
   поверх скролла описания попадал под touch-action:none базовой карты */
.tt-spread-zone .tt-card { touch-action: pan-y; }
/* закрытая карточка-описание не перехватывает клики по карте */
.tt-card:not(.is-info) .tt-card__info { pointer-events: none; }
/* открытие описания — общий флип карты: правило стоит НИЖЕ
   .tt-card.is-flipped .tt-card__inner, поэтому у открытой карты угол
   180deg (лицо) сменяется на 360deg (сторона описания) */
.tt-card.is-info .tt-card__inner { transform: rotateY(360deg); }
.tt-card.is-info .tt-card__info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s; /* на открытие — мгновенно (до половины флипа её не видно) */
}
.tt-info__name {
  font: 700 calc(var(--tt-info-fs, 12px) * 1.3)/1.18 var(--serif);
  letter-spacing: .05em;
  color: var(--tt-gold-bright);
  text-shadow: 0 1px 12px rgba(40, 14, 84, .95);
}
.tt-info__meta {
  font: 600 calc(var(--tt-info-fs, 12px) * .68)/1.3 var(--sans);
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 217, 143, .95);
}
.tt-info__text {
  margin: 0;
  font: italic 500 calc(var(--tt-info-fs, 12px) * .98)/1.42 var(--serif);
  color: #ffffff; /* v53: подпись-описание в карточке — белая (была оранжевой в v52) */
  overflow-wrap: break-word;
  /* v42: полное описание карты из базы знаний — многострочный текст
     с переносами (\n в CARD_INFO) */
  white-space: pre-line;
}
/* презентация взятой карты: карточка-описание не участвует */
.tt-present__cardbox .tt-card__info { display: none; }

/* ==========================================================================
   ЭКРАН 2 — ТАБЛИЦА И РУЧНАЯ ТАСОВКА
   ========================================================================== */
.tt-table-screen { overflow: hidden; }
.tt-table-wrap { position: absolute; inset: 0; touch-action: none; }
/* магический круг под колодой */
.tt-magiccircle {
  position: absolute; left: 50%; top: 50%;
  width: min(78vh, 92vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: .8;
}
.tt-magiccircle svg { width: 100%; height: 100%; overflow: visible; }
/* v6: вращение колец магического круга остановлено (было 90s/140s infinite) */
.tt-table-glow {
  position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(166, 120, 226, .2), rgba(120, 60, 190, .08) 45%, transparent 70%);
  pointer-events: none;
  opacity: .85;
}

/* сама колода — змейка */
.tt-deck { position: absolute; inset: 0; }
.tt-deck .tt-card { position: absolute; will-change: transform; }
/* v5: карта на столе выбирается касанием */
.tt-deck .tt-card { cursor: pointer; }
.tt-deck .tt-card:hover { filter: brightness(1.15) drop-shadow(0 0 12px rgba(226, 189, 124, .45)); }
.tt-deck .tt-card.is-taken { opacity: 0; pointer-events: none; }

/* нижняя панель тасовки */
.tt-tablebar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 95; /* выше карт колоды (до z≈88) */
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 5, 20, .88) 46%);
  pointer-events: none;
  /* v20: вертикальный слот ряда выложенных карт — интервал от колоды
     до кнопок; карты ряда занимают его целиком (сжимаются при многих
     картах — см. renderTray в tarot-table.js) */
  --tt-tray-h: clamp(104px, 21vh, 204px);
}
.tt-tablebar > * { pointer-events: auto; }
/* v20: счётчик «0 из 1» — слева, ровно над кнопкой «Тасовать»;
   подписи «Выбрано:» и «Карт в колоде: 78» удалены по просьбе юзера */
.tt-shuffle-stats {
  align-self: stretch;
  text-align: left;
  font-size: 14px; color: var(--tt-muted); letter-spacing: .06em;
}
.tt-shuffle-stats b { color: var(--tt-gold-bright); font-family: var(--serif); font-size: 18px; letter-spacing: .1em; }
.tt-tablebar__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tt-tablebar .tt-btn { min-width: min(230px, 44vw); }

/* ==========================================================================
   ПРЕЗЕНТАЦИЯ ВЗЯТОЙ КАРТЫ (v6): СРАЗУ НА ВЕСЬ ЭКРАН, ДО КРАЁВ, БЕЗ РАМОК
   Появление мгновенное; из анимаций — только переворот рубашки лицом.
   Подпись показывается внизу после переворота (класс is-named).
   ========================================================================== */
.tt-present {
  position: fixed; inset: 0; z-index: 150;
  background: #050310;
}
.tt-present[hidden] { display: none; }
.tt-present__shade {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 42%, rgba(26, 15, 58, .88), rgba(5, 3, 16, .95));
  opacity: 0;
}
.tt-present.is-open .tt-present__shade { opacity: 1; }
.tt-present__cardbox {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
/* карта занимает весь экран: на телефоне в портрете — вся ширина,
   на широком экране — вся высота; без рамки, скругления и тени.
   Пропорция = точные пропорции лица 1200/ (675×1200) — арт не
   обрезается ни на пиксель (object-fit: cover совпадает с ratio) */
.tt-present__cardbox .tt-card {
  flex: 0 0 auto;
  aspect-ratio: 675 / 1200;
  /* v8 (2026-11-26): взятая со стола карта меньше на 10% — было
     min(100vh, 100vw·1200/675), стало 90% от того же максимума */
  height: min(90vh, calc(90vw * 1200 / 675));
  width: auto;
  max-width: 90vw;
  border-radius: 0;
  box-shadow: none;
}
.tt-present__cardbox .tt-card__frame { display: none; }
.tt-present__cardbox .tt-card__flipdot { display: none; }
/* подпись внизу экрана — после переворота, с градиентом для читаемости */
.tt-present__name {
  position: absolute; left: 0; right: 0;
  bottom: calc(6px + env(safe-area-inset-bottom));
  text-align: center;
  padding: 40px 18px 10px;
  background: linear-gradient(180deg, rgba(5, 3, 16, 0), rgba(5, 3, 16, .92) 55%);
  opacity: 0;
  pointer-events: none;
}
.tt-present.is-named .tt-present__name { opacity: 1; }
.tt-present__name b {
  display: block;
  font-family: var(--serif); font-size: clamp(19px, 2.6vw, 27px); font-weight: 600; letter-spacing: .08em;
  background: linear-gradient(180deg, #fdf1cd, #eecf8e 55%, #b98a3e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tt-present__name i { font-style: normal; font-size: 13px; color: var(--tt-muted); letter-spacing: .1em; }
/* v22: плашка «перевёрнутая» вверху карты (перевёрнутая карта стоит
   на экране ровно; ориентация — только этой плашкой) */
.tt-present__rev {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  z-index: 5;
  padding: 8px 22px;
  border: 1px solid rgba(226, 189, 124, .6);
  border-radius: 999px;
  background: rgba(5, 3, 16, .8);
  color: #eecf8e;
  font-family: var(--serif);
  font-size: clamp(14.5px, 1.9vw, 20.5px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(5, 3, 16, .9), 0 0 14px rgba(226, 189, 124, .3);
  pointer-events: none;
}

/* ==========================================================================
   ЭКРАН 4 — РАСКЛАД И ОТКРЫТИЕ
   ========================================================================== */
.tt-spread-screen { overflow: hidden; }
.tt-spread-zone {
  position: absolute; left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  touch-action: none;
}
.tt-slot {
  position: absolute;
  aspect-ratio: var(--tt-card-ratio);
  border-radius: 5.5% / 3.2%;
  border: 1.5px dashed rgba(226, 189, 124, .4);
  background: linear-gradient(170deg, rgba(66, 40, 118, .22), rgba(18, 11, 40, .4));
  box-shadow: inset 0 0 24px rgba(120, 60, 190, .12);
}
.tt-slot.is-target { border-color: rgba(245, 216, 154, .9); box-shadow: inset 0 0 24px rgba(196, 105, 232, .3), 0 0 18px rgba(226, 189, 124, .25); }
/* v21 (2026-11-26): золотые номера-шарики на слотах и картах расклада
   удалены по просьбе юзера — позиции остаются только в текстовых
   подписях (.tt-slot__label и подпись под картой) */
.tt-slot__label {
  position: absolute; left: 50%; bottom: calc(100% + 7px);
  transform: translateX(-50%);
  white-space: nowrap;
  font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #ffd98f;
  text-shadow: 0 0 8px rgba(255, 214, 140, .35), 0 1px 6px rgba(3, 1, 10, .9);
  text-shadow: 0 1px 6px rgba(3, 1, 10, .9);
  pointer-events: none;
}
/* карточки в раскладе */
.tt-spread-zone .tt-card { position: absolute; cursor: pointer; }
/* v6: вспышка открытия (is-opening/ttCardOpen) удалена — остался
   только сам переворот (.tt-card__inner transition) */
/* подпись открытой карты */
.tt-card__caption {
  position: absolute; left: 50%; top: calc(100% + 6px);
  transform: translateX(-50%);
  text-align: center; white-space: nowrap;
  pointer-events: none;
}
.tt-card__caption b {
  display: block;
  font: 600 13px/1.25 var(--serif); letter-spacing: .05em;
  color: var(--tt-ink); text-shadow: 0 1px 8px rgba(3, 1, 10, .95);
}
.tt-card__caption span {
  font: 700 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: #ffd98f; text-shadow: 0 0 8px rgba(255, 214, 140, .35), 0 1px 6px rgba(3, 1, 10, .95);
}
.tt-card__caption i { /* значок перевёрнутости */
  display: inline-block; font-style: normal; margin-left: 4px;
  color: var(--tt-amethyst); font-size: 11px;
}

/* слот посадки карты: v6 — без вспышки, класс остаётся (скрывает метку) */
.tt-slot.is-landed { border-color: transparent; background: none; box-shadow: none; }

.tt-spreadbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 5, 20, .9) 48%);
}
.tt-spreadbar .tt-btn { min-width: min(340px, 84vw); }
/* v42: на экране расклада два действия — «Сочетание и выводы» (повторный
   вызов окна) и «Подробнее с ИИ»: переносятся в два ряда на узких экранах */
.tt-spreadbar { flex-wrap: wrap; gap: 10px; }
.tt-spreadbar .tt-combbtn { min-width: min(250px, 64vw); font-size: 14.5px; }
/* v7 (2026-11-26): чип вопроса перенесён на уровень stage — постоянно
   виден поверх рабочих экранов (стол/расклад/толкование). На столе чип
   может наезжать на верх стола — z-index 25, фоновая подложка читаема */
.tt-question-chip {
  position: absolute; top: calc(86px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); /* v52: чуть ниже */
  z-index: 25; max-width: min(880px, 94vw); /* v51: окно и шрифт вдвое */
  padding: 16px 36px; border-radius: 999px;
  background: rgba(20, 12, 44, .82);
  border: 1px solid rgba(226, 189, 124, .45);
  font: italic 500 26px/1.3 var(--serif); color: var(--tt-muted);
  text-align: center; pointer-events: none;
  box-shadow: 0 8px 24px rgba(4, 2, 12, .5);
}
.tt-question-chip b { color: var(--tt-gold-bright); font-style: normal; }

/* v7: экран «ВОПРОС» (режим «Классика») — поле + кнопки по центру */
.tt-question-screen { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.tt-question__inner {
  margin: 0 auto; width: min(560px, 100%);
  padding: calc(74px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: center; min-height: 100%;
}
.tt-qwrap {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(165deg, rgba(44, 27, 78, .45), rgba(18, 11, 40, .75));
  border: 1px solid rgba(226, 189, 124, .24);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(4, 2, 12, .4);
}
/* v8: заголовок «Ваш вопрос картам» — крупно, по центру */
.tt-qwrap__title {
  text-align: center; margin: 0 0 2px;
  font-size: clamp(24.5px, 3.4vw, 38px);
}
/* v8: textarea теперь напрямую в qwrap (label убран) — стили поля
   перенесены из .tt-qwrap .tt-field textarea */
.tt-qwrap textarea {
  width: 100%; min-height: 96px; resize: none;
  background: rgba(10, 6, 26, .72);
  border: 1px solid rgba(166, 120, 226, .32);
  border-radius: 10px;
  color: var(--tt-ink);
  font: 14px/1.4 var(--sans);
  padding: 9px 12px;
  outline: none;
}
.tt-qwrap textarea:focus {
  border-color: rgba(226, 189, 124, .7);
  box-shadow: 0 0 0 3px rgba(226, 189, 124, .12), 0 0 18px rgba(166, 120, 226, .18);
}
/* v8: «К столу» неактивна без текста — заметное, но мягкое состояние */
.tt-qwrap__btns .tt-btn:disabled,
.tt-qwrap__btns .tt-btn[disabled] {
  filter: grayscale(.5) brightness(.75);
  opacity: .55;
  cursor: not-allowed;
}
.tt-qwrap__btns { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.tt-qwrap__btns .tt-btn--art { margin-left: 0; }
@media (pointer: coarse), (max-width: 640px) {
  .tt-qwrap textarea { font-size: 18px; } /* iOS не зумит поле при фокусе */
}

/* ==========================================================================
   ЭКРАН 5 — ТОЛКОВАНИЕ
   ========================================================================== */
.tt-reading { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.tt-reading__inner {
  margin: 0 auto; width: min(1060px, 100%);
  padding: calc(70px + env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
}
.tt-reading__head { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.tt-reading__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: 14px; color: var(--tt-muted); letter-spacing: .04em;
}
.tt-reading__meta b { color: var(--tt-gold-bright); font-weight: 600; }
.tt-arcana-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.tt-arcana-strip span {
  font-size: 12.5px; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(44, 27, 78, .5);
  border: 1px solid rgba(166, 120, 226, .35);
  color: var(--tt-muted);
}
.tt-arcana-strip span b { color: var(--tt-ink); font-weight: 600; }
.tt-cards-report { display: flex; flex-direction: column; gap: 14px; }
.tt-rcard {
  display: grid;
  grid-template-columns: minmax(84px, 128px) 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(44, 27, 78, .42), rgba(18, 11, 40, .72));
  border: 1px solid rgba(226, 189, 124, .22);
  box-shadow: 0 12px 30px rgba(4, 2, 12, .42);
}
.tt-rcard__vis { position: relative; }
.tt-rcard__vis .tt-card { width: 100%; cursor: pointer; }
/* v8: номер-бейдж .tt-rcard__num удалён вместе с разметкой —
   нумерация карт больше не показывается */
.tt-rcard__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tt-rcard__pos {
  font-size: 15px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #ffd98f; /* v51: должны выделяться — крупнее, жирнее, ярче */
  text-shadow: 0 0 14px rgba(255, 214, 140, .5), 0 1px 3px rgba(0, 0, 0, .85);
}
.tt-rcard__name {
  font-family: var(--serif); font-size: clamp(21.5px, 2.4vw, 27px); font-weight: 600;
  color: var(--tt-ink); line-height: 1.15;
}
.tt-rcard__name i {
  font-style: normal; font-size: .62em; letter-spacing: .1em;
  color: var(--tt-amethyst); margin-left: 8px; white-space: nowrap;
}
.tt-rcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-rcard__tags span {
  font-size: 11.5px; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(226, 189, 124, .3); color: var(--tt-gold-bright);
  background: rgba(226, 189, 124, .07);
}
.tt-rcard__tags span.suit { color: var(--tt-pink); border-color: rgba(240, 166, 238, .35); background: rgba(240, 166, 238, .06); }
.tt-rcard__text { font-size: 15.5px; line-height: 1.62; color: #d9cdea; }
.tt-rcard__text b { color: var(--tt-ink); }
.tt-rcard__kb {
  border-left: 2px solid rgba(226, 189, 124, .45);
  padding: 2px 0 2px 12px;
  font-size: 14.5px; line-height: 1.58; color: var(--tt-muted);
}
.tt-rcard__kb b { color: var(--tt-gold-bright); }
/* v31: подсказка про карточку-описание (вместо удалённых текстов) */
.tt-rcard__hint {
  font: italic 500 12px/1.45 var(--serif);
  color: rgba(201, 188, 224, .62);
  margin-top: 2px;
}
/* сводка */
.tt-summary {
  border-radius: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(196, 105, 232, .12), transparent 55%),
    linear-gradient(165deg, rgba(52, 32, 94, .5), rgba(18, 11, 40, .8));
  border: 1px solid rgba(226, 189, 124, .3);
  box-shadow: 0 16px 40px rgba(4, 2, 12, .5);
  display: flex; flex-direction: column; gap: 10px;
}
.tt-summary h3 {
  margin: 0; text-align: center;
  font-family: var(--serif); font-weight: 600; font-size: 23.5px; letter-spacing: .08em;
  background: linear-gradient(180deg, #fdf1cd, #eecf8e 55%, #b98a3e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tt-tonerow { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tt-tonerow span {
  font-size: 13px; padding: 4px 14px; border-radius: 999px; letter-spacing: .05em;
  border: 1px solid; background: rgba(10, 6, 26, .5);
}
.tt-tonerow .t-good { color: #9fe0bb; border-color: rgba(127, 207, 164, .45); }
.tt-tonerow .t-neutral { color: #c3b4ef; border-color: rgba(179, 164, 224, .45); }
.tt-tonerow .t-hard { color: #eda49d; border-color: rgba(224, 138, 132, .45); }
.tt-summary p { margin: 0; font-size: 15.5px; line-height: 1.66; color: #d9cdea; }
.tt-summary p b { color: var(--tt-ink); }
.tt-reading__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }

/* ==========================================================================
   КОШКА-ПРОВОДНИК (пузырь с подсказкой)
   ========================================================================== */
.tt-cat {
  position: absolute; z-index: 96; /* над высокой панелью стола (v5) */
  right: 14px; bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; gap: 10px;
  max-width: min(340px, calc(100vw - 28px));
  pointer-events: none;
  opacity: 0;
}
.tt-cat.is-visible { opacity: 1; }
.tt-cat__speech {
  position: relative;
  background: linear-gradient(165deg, rgba(52, 32, 94, .88), rgba(22, 13, 48, .92));
  border: 1px solid rgba(226, 189, 124, .4);
  border-radius: 14px 14px 3px 14px;
  padding: 10px 14px;
  font: italic 500 13px/1.5 var(--serif);
  color: #e8def6;
  box-shadow: 0 12px 28px rgba(3, 1, 10, .6);
  pointer-events: auto;
}

/* тост */
/* v42 (запрос заказчика): подсказка «Все карты выбраны — нажимайте далее»
   должна быть ПОВЕРХ ВСЕГО и поверх карт — её ничего не должно перекрывать:
   z-index 60 → 140 (карты стола — до 96, панель стола 95; презентация 150
   закрывается до появления подсказки, подтверждение выхода — 220) */
.tt-toast {
  position: absolute; left: 50%; top: calc(104px + env(safe-area-inset-top));
  transform: translate(-50%, -12px);
  z-index: 140;
  padding: 10px 20px; border-radius: 12px;
  background: rgba(24, 14, 50, .94);
  border: 1px solid rgba(226, 189, 124, .5);
  color: var(--tt-ink); font-size: 15px; letter-spacing: .03em;
  box-shadow: 0 14px 34px rgba(3, 1, 10, .7);
  opacity: 0; pointer-events: none;
  max-width: min(480px, 90vw); text-align: center;
}
.tt-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* v41: вариант ближе к центру экрана (подсказка «Все карты выбраны —
   нажимайте далее», запрос заказчика) */
.tt-toast--center { top: 50%; transform: translate(-50%, -50%); }
.tt-toast--center.is-visible { opacity: 1; transform: translate(-50%, -50%); }
/* v42 (запрос заказчика): подсказка «Все карты выбраны…» — ВДВОЕ крупнее
   (13.5 → 27px), жирнее, шире, заметнее — она в приоритете видимости */
.tt-toast--center {
  font-size: 30px; font-weight: 600; line-height: 1.3;
  padding: 16px 30px; border-radius: 16px;
  letter-spacing: .02em;
  max-width: min(680px, 92vw);
  background: rgba(20, 10, 44, .96);
  box-shadow: 0 18px 48px rgba(3, 1, 10, .85), 0 0 34px rgba(120, 60, 190, .3);
  border-width: 1.5px;
}

/* призма-разделитель в отчёте */
.tt-divider { display: flex; align-items: center; gap: 12px; }
.tt-divider::before, .tt-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,189,124,.4), transparent); }
.tt-divider svg { width: 15px; height: 15px; color: var(--tt-gold); }

/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================================================== */
@media (max-width: 1024px) {
  .deco--candle-r { display: none; }
  .deco--star.tr { display: none; }
}
@media (max-width: 820px) {
  .tt-welcome__hero { flex-direction: column; }
  .tt-welcome__head .tt-h1 { text-align: center; }
  .deco--rose-l, .deco--rose-r { display: none; }
  .deco--candle-l { left: 4%; bottom: 16%; width: 34px; height: 84px; }
  .deco--star.tl { left: 8%; top: 10%; width: 30px; height: 30px; }
  .tt-rcard { grid-template-columns: minmax(72px, 96px) 1fr; gap: 13px; padding: 13px; }
  .tt-cat { bottom: calc(120px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .tt-topbar { padding: calc(8px + env(safe-area-inset-top)) 10px 8px; gap: 8px; }
  .tt-topbar__title { font-size: 17px; letter-spacing: .16em; }
  /* v25: строка коинов на мобиле — компактнее, чтобы влезть в экран */
  .tt-coins { left: 10px; gap: 6px; }
  .tt-coins__row { gap: 5px; padding: 4px 7px 4px 8px; }
  .tt-coins__sum { font-size: 15px; }
  .tt-coins__unit { display: none; }
  .tt-coins__input { padding: 5px 10px; font-size: 13px; }
  .tt-coins__apply { padding: 6px 10px; }
  .tt-steps { top: calc(52px + env(safe-area-inset-top)); }
  .tt-iconbtn { width: 40px; height: 40px; }
  .tt-spreads { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tt-spread { padding: 12px 8px 12px; border-radius: 14px; }
  .tt-spread__scheme { height: 64px; }
  .tt-spread__title { font-size: 17.5px; }
  .tt-spread__desc { font-size: 12px; }
  .tt-participants { grid-template-columns: 1fr; }
  .tt-btn { padding: 12px 22px 13px; border-radius: 12px; }
  .deco--candle-l, .deco--star.tl { display: none; }
  .tt-cat { right: 8px; max-width: calc(100vw - 20px); bottom: calc(128px + env(safe-area-inset-bottom)); }
  .tt-cat__speech { font-size: 13px; padding: 8px 12px; }
  .tt-rcard { grid-template-columns: minmax(64px, 84px) 1fr; gap: 11px; padding: 11px; border-radius: 14px; }
  .tt-rcard__text { font-size: 14.5px; }
  .tt-card__caption b { font-size: 11.5px; }
  .tt-card__caption span { font-size: 9.5px; }
  .tt-slot__label { font-size: 10px; letter-spacing: .09em; }
}
@media (max-width: 380px) {
  .tt-spreads { grid-template-columns: 1fr; }
}
/* горизонтальная ориентация мобильного — стол важнее декора */
@media (max-height: 480px) and (orientation: landscape) {
  .tt-decor .deco { display: none !important; }
  .tt-cat { display: none; }
}

/* доступность: меньше движения */
@media (prefers-reduced-motion: reduce) {
  .tt-card__inner { transition-duration: .15s; }
  /* v34: карточка-описание переворачивается той же машиной — длительность
     задаёт .tt-card__inner; собственная анимация у стороны описания удалена */
  .tt-deck .tt-card.is-anim { transition-duration: .15s; }
}

/* скрытый скроллбар в панелях */
.tt-welcome::-webkit-scrollbar, .tt-reading::-webkit-scrollbar { width: 8px; }
.tt-welcome::-webkit-scrollbar-thumb, .tt-reading::-webkit-scrollbar-thumb {
  background: rgba(166, 120, 226, .35); border-radius: 8px;
}

/* ==========================================================================
   ДОПОЛНЕНИЯ РЕВИЗИИ (v1.0.1)
   ========================================================================== */
/* v22: перевёрнутая карта стоит на экране РОВНО — изображение лицевой
   стороны больше не вращается на 180°. Ориентацию обозначают:
   плашка «перевёрнутая» вверху карты в презентации, золотая точка
   на чипе ряда и в подписях под картами в раскладе/отчёте. */

/* анимация перестроения колоды после переноса */
.tt-deck .tt-card { transition: none; }
.tt-deck .tt-card.is-anim { transition: transform .5s var(--tt-ease); }
.tt-deck .tt-card.is-anim { will-change: transform; }

/* ряд выбранных карт в нижней панели стола (v5);
   v20: слот фиксированной высоты --tt-tray-h резервируется всегда —
   интервал от колоды до кнопок занят рядом, карты растит renderTray */
.tt-tray {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; align-content: center;
  gap: 10px; width: 100%;
  height: var(--tt-tray-h);
}
.tt-tray[hidden] { display: none; }
/* v31 (2026-11-28, запрос заказчика): в ряду — настоящие карты (.tt-card,
   лицом к зрителю): клик НЕ убирает карту в колоду, а переворачивает её
   к карточке-описанию тем же флипом, что и на столе/в раскладе; знак
   ротации перевёрнутой карты — общий .tt-card__flipdot (при открытии
   описания прячется мгновенно). Размер карт задаёт renderTray инлайн */
.tt-tray .tt-card {
  border-radius: 5px;
  cursor: pointer;
  touch-action: pan-y; /* палец по карте = скролл описания вверх-вниз */
}
.tt-tray .tt-card:hover { box-shadow: 0 8px 18px rgba(3,1,10,.8), 0 0 16px rgba(245, 216, 154, .5); }
/* v31: отдельные стрелки-чипы ряда удалены вместе с чипами — знак
   ротации перевёрнутой карты теперь общий .tt-card__flipdot на самой
   карте ряда (при открытии описания прячется мгновенно) */

/* прокрутка отчёта не блокируется картами */
.tt-reading .tt-card { touch-action: pan-y; cursor: default; }

/* заголовки панелей отчёта */
.tt-rcard__name { margin: 0; }

/* фокус-доступность */
.tarot-root :focus-visible { outline: 2px solid rgba(245, 216, 154, .8); outline-offset: 3px; border-radius: 8px; }

/* кнопка «К столу» всегда доступна при прокрутке экрана выбора
   (v37: тёмный градиент-фон убран — всегда прозрачная подложка) */
.tt-welcome__cta {
  position: sticky; bottom: 0; z-index: 20;
  padding: 18px 0 10px;
  background: none;
  border-radius: 0 0 4px 4px;
}

/* перевёрнутая карта выдвинута из стопки — индикатор виден */
.tt-deck .tt-card.is-rev-out {
  filter: drop-shadow(0 0 10px rgba(240, 166, 238, .55));
}
.tt-deck .tt-card.is-rev-out .tt-card__flipdot {
  width: 46%; opacity: 1;
}
/* v6: пульсация индикатора (ttFlipPulse) убрана — знак статичен */
/* подсказка тасовки удалена (v20) — текст убран по просьбе юзера */

/* шапка читается при прокрутке (welcome/reading) */
.tt-topbar {
  background: linear-gradient(180deg, rgba(7, 5, 20, .94) 55%, rgba(7, 5, 20, 0));
}
/* sticky-кнопка появляется только после выбора расклада */
.tt-welcome__cta { position: static; padding: 10px 0 4px; background: none; }
/* v37 (2026-11-28, запрос заказчика): тёмная градиентная подложка под
   кнопкой «Далее» убрана — фон полностью прозрачный, кнопка лежит
   прямо на небе; sticky оставлен, чтобы кнопка была доступна при прокрутке */
.tt-welcome.has-pick .tt-welcome__cta {
  position: sticky; bottom: 0; z-index: 20;
  padding: 18px 0 10px;
  background: none;
}
/* последняя (пятая) карточка расклада — на всю ширину в 2 колонках */
@media (max-width: 560px) {
  .tt-spreads { grid-template-columns: repeat(2, 1fr); }
  .tt-spreads .tt-spread:last-child { grid-column: 1 / -1; }
}

/* отклик карты стола при нажатии (v5) */
.tt-deck .tt-card:active {
  filter: brightness(1.4) drop-shadow(0 0 16px rgba(245, 216, 154, .8));
}
/* активная кнопка открытия расклада — без свечения с v19
   (v16: art и art2 исключены — их свечение рисовал drop-shadow, тоже убрано) */
.tt-tablebar .tt-btn:not(:disabled):not(.tt-btn--art):not(.tt-btn--art2) {
  box-shadow:
    inset 0 2px 2px rgba(255, 252, 240, .85),
    inset 0 -3px 6px rgba(120, 78, 22, .55),
    0 0 0 1px rgba(122, 84, 30, .9),
    0 0 0 4px rgba(226, 189, 124, .14),
    0 10px 26px rgba(4, 2, 12, .66);
}

/* у стола высокая нижняя панель — кошка над ней (v5) */
.tarot-root.tt-tallbar-screen .tt-cat {
  bottom: calc(312px + env(safe-area-inset-bottom));
}
@media (min-width: 700px) {
  .tarot-root.tt-tallbar-screen .tt-cat { bottom: calc(244px + env(safe-area-inset-bottom)); }
}

/* на прокручиваемых экранах кошка сверху — не перекрывает контент */
.tarot-root.tt-scroll-screen .tt-cat {
  top: calc(56px + env(safe-area-inset-top));
  bottom: auto; right: 12px;
  flex-direction: row-reverse;
}
.tarot-root.tt-scroll-screen .tt-cat .tt-cat__speech {
  border-radius: 14px 14px 14px 3px;
}
.tarot-root.tt-scroll-screen .tt-cat .tt-cat__speech::after {
  left: auto; right: -7px;
  border-left: none; border-right: 1px solid rgba(226, 189, 124, .4);
}

/* v21 (2026-11-26): медальоны-номера со слотов и карт расклада
   (.tt-slot__num / .tt-posnum) удалены по просьбе юзера — на экране
   расклада номеров-шариков больше нет, остаются текстовые подписи */

/* когда карта села в слот — метка слота скрывается (название позиции
   показывает подпись под картой, дублирования нет) */
.tt-slot.is-landed .tt-slot__label { display: none; }

/* компактные подписи карт в раскладе — помещаются в зазор посоха */
.tt-card__caption { top: calc(100% + 4px); }
.tt-card__caption b { font-size: 11.5px; line-height: 1.2; }
.tt-card__caption span { font-size: 9.5px; line-height: 1.25; letter-spacing: .08em; }

/* v24 (2026-11-27): знак ротации в подписи под картой расклада УДАЛЁН
   по просьбе юзера — стрелки-индикатор живут только на самих картах
   (.tt-card__flipdot); под картами расклада пометки нет ни текстом,
   ни глифом */

/* свободная подпись в зоне расклада (для повёрнутых карт) */
.tt-cap-free {
  position: absolute;
  transform: translateX(-50%);
  z-index: 60;
  text-align: center; white-space: nowrap;
  pointer-events: none;
}
/* v6: влёт подписи (ttCapIn) убран — появляется сразу */

/* плашка подписи — читаемость даже поверх соседней карты */
.tt-cap-free {
  background: rgba(10, 6, 26, .86);
  border: 1px solid rgba(226, 189, 124, .28);
  border-radius: 9px;
  padding: 3px 12px 4px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ==========================================================================
   v25 (2026-11-27): СИСТЕМА КОИНОВ НА СТОЛЕ — сумма сверху + промокод
   По образцу игровых залов (kotur.ru): баланс в коинах и поле промокода
   всегда видны одной строкой сверху стола; взятие карты списывает коины,
   возврат карты в ряд — возвращает. Секретный промокод «dikanka»
   открывает окно админа. Сумма в localStorage. Одна компактная строка
   (а не столбец) — чтобы минимально перекрывать карты колоды.
   ========================================================================== */
.tt-coins {
  position: absolute;
  top: calc(74px + env(safe-area-inset-top));
  left: 12px;
  z-index: 96; /* выше карт колоды (z≈88) */
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  pointer-events: none;
}
.tt-coins > * { pointer-events: auto; }
.tt-coins__row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(46, 28, 84, .78), rgba(22, 12, 44, .88));
  border: 1px solid rgba(226, 189, 124, .45);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .18), 0 6px 16px rgba(5, 2, 14, .6);
}
.tt-coins.is-empty .tt-coins__row { border-color: rgba(240, 166, 238, .55); }
.tt-coins__coin { width: 20px; height: 20px; display: block; flex: 0 0 auto; filter: drop-shadow(0 0 5px rgba(240, 200, 120, .55)); }
.tt-coins__coin svg { width: 100%; height: 100%; display: block; }
.tt-coins__sum {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: .06em; color: var(--tt-gold-bright);
  font-variant-numeric: tabular-nums; text-align: right;
}
.tt-coins__unit {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tt-muted); white-space: nowrap;
}
/* v25: поле промокода видно всегда (как на kotur.ru) — кнопки-
   переключателя больше нет */
.tt-coins__promo { display: flex; gap: 6px; }
.tt-coins__input {
  width: clamp(114px, 16vw, 184px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 189, 124, .45);
  background: rgba(13, 9, 27, .92);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
  color: var(--tt-ink);
  font-family: var(--sans); font-size: 14.5px; letter-spacing: .04em;
  outline: none;
}
.tt-coins__input:focus { border-color: rgba(245, 216, 154, .85); box-shadow: 0 0 12px rgba(226, 189, 124, .25); }
.tt-coins__apply {
  border: 1px solid rgba(226, 189, 124, .55);
  border-radius: 999px; padding: 6px 14px;
  background: linear-gradient(180deg, rgba(70, 46, 130, .8), rgba(30, 18, 64, .9));
  color: var(--tt-gold-bright);
  font: 600 13px/1 var(--sans); letter-spacing: .08em;
  cursor: pointer;
}
.tt-coins__apply:hover { border-color: rgba(245, 216, 154, .85); }
/* вспышка суммы при изменении */
.tt-coins.is-flash .tt-coins__sum { animation: ttCoinsFlash .5s var(--tt-ease); }
@keyframes ttCoinsFlash {
  0% { text-shadow: none; transform: scale(1); }
  35% { text-shadow: 0 0 14px rgba(245, 216, 154, .95); transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   v23: ОКНО АДМИНА — открывается секретным промокодом «dikanka»
   (как на kotur.ru): баланс, быстрые кнопки, установка суммы, сброс.
   ========================================================================== */
.tt-admin {
  position: absolute; inset: 0; z-index: 160; /* выше презентации (150) */
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 2, 14, .74);
  padding: 20px;
}
.tt-admin[hidden] { display: none; }
.tt-admin__box {
  width: min(92vw, 360px);
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(46, 28, 84, .92), rgba(22, 12, 44, .97));
  border: 1px solid rgba(226, 189, 124, .55);
  box-shadow: 0 18px 50px rgba(3, 1, 10, .7), inset 0 1px 0 rgba(255, 240, 200, .18);
}
.tt-admin__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tt-admin__head b {
  font-family: var(--serif); font-size: 21.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tt-gold-bright);
}
.tt-admin__close {
  background: none; border: 0; color: var(--tt-muted); cursor: pointer;
  padding: 4px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 8px;
}
.tt-admin__close:hover { color: var(--tt-gold-bright); }
.tt-admin__close svg { width: 16px; height: 16px; }
.tt-admin__sum { margin: 0 0 12px; font: 13px/1.4 var(--sans); color: var(--tt-muted); }
.tt-admin__sum b { color: var(--tt-gold-bright); font-size: 18px; }
.tt-admin__quick { display: flex; gap: 8px; margin-bottom: 12px; }
.tt-admin__quick button,
.tt-admin__set button,
.tt-admin__reset {
  border: 1px solid rgba(226, 189, 124, .5); border-radius: 999px;
  background: rgba(20, 12, 44, .6); color: var(--tt-gold-bright);
  font: 600 13px/1 var(--sans); letter-spacing: .06em;
  cursor: pointer; padding: 9px 12px; white-space: nowrap;
}
.tt-admin__quick button:hover,
.tt-admin__set button:hover,
.tt-admin__reset:hover { border-color: rgba(245, 216, 154, .85); }
.tt-admin__set { display: flex; gap: 8px; margin-bottom: 12px; }
.tt-admin__set input {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(226, 189, 124, .45);
  background: rgba(13, 9, 27, .92);
  color: var(--tt-ink); font-family: var(--sans); font-size: 14.5px;
  outline: none;
}
.tt-admin__set input:focus { border-color: rgba(245, 216, 154, .85); }
.tt-admin__reset { width: 100%; }

/* ==========================================================================
   v27: «ДА ИЛИ НЕТ» — центральный аркан судьбы (экран расклада)
   ----------------------------------------------------------------------------
   Блок .tt-fate ставится движком (buildSlots) в самый центр зоны расклада
   строго по размеру карты (width/height/left/top — инлайном из JS):
   вокруг него верхний ряд «Да» и нижний ряд «Нет». Внутри:
     .tt-fate__who   — имя · дата пользователя (под картой, строка 1)
     .tt-fate__card  — сама карта аркана судьбы (переворачивается первой)
     .tt-fate__ph    — приглушённая заглушка «?», если даты рождения нет
     .tt-fate__label — «N Имя / аркан судьбы» (под именем, после переворота)
   ========================================================================== */
.tt-fate {
  position: absolute; /* координаты и размер — инлайн из tarot-table.js */
  z-index: 9;         /* под картами расклада (placeCard даёт 10+) */
  /* v31: аркан судьбы интерактивен — это карта на столе: клик открывает
     карточку-описание (как и у остальных лежащих карт) */
}
/* золотое сияние аркана судьбы: карта-«весы» выделена на фоне карт сторон */
.tt-spread-zone .tt-fate__card {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  cursor: pointer; /* v31: клик — карточка-описание аркана судьбы */
  box-shadow:
    inset 0 0 0 1px rgba(245, 216, 154, .28),
    0 0 22px rgba(226, 189, 124, .38),
    0 0 64px rgba(166, 120, 226, .3),
    0 14px 34px rgba(3, 1, 10, .5);
}
/* имя · дата под арканом (строка 1 блока подписи) — над арканом места
   нет: там плашка подписи открытой верхней карты (~45px из-за строчного
   strut); под картой зазор свободен целиком */
.tt-fate__who {
  position: absolute; left: 50%; top: calc(100% + 7px);
  transform: translateX(-50%);
  white-space: nowrap;
  font: 600 11.5px/1.15 var(--sans);
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(201, 188, 224, .95);
  text-shadow: 0 1px 6px rgba(3, 1, 10, .92);
}
/* имя аркана судьбы (строки 2–3) — ниже строки «кто» */
.tt-fate__label {
  position: absolute; left: 50%; top: calc(100% + 25px);
  transform: translateX(-50%);
  text-align: center; white-space: nowrap;
}
.tt-fate__label b {
  display: block;
  font: 600 13px/1.25 var(--serif); letter-spacing: .05em;
  color: var(--tt-gold-bright);
  text-shadow: 0 1px 8px rgba(3, 1, 10, .95);
}
.tt-fate__label span {
  display: block;
  font: 700 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: #ff9d4d; /* v51: краткая подпись аркана судьбы — оранжевая */
  text-shadow: 0 1px 6px rgba(3, 1, 10, .95), 0 0 10px rgba(255, 157, 77, .3);
}
/* заглушка «?» — дата рождения не заполнена, аркан не вычислен */
.tt-fate__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5.5% / 3.2%;
  border: 1.5px dashed rgba(226, 189, 124, .3);
  background: linear-gradient(170deg, rgba(66, 40, 118, .16), rgba(18, 11, 40, .34));
  box-shadow: inset 0 0 24px rgba(120, 60, 190, .1);
  font: 700 clamp(24.5px, 3vw, 38px)/1 var(--serif);
  color: rgba(226, 189, 124, .5);
}
@media (max-width: 560px) {
  .tt-fate__who { font-size: 10px; letter-spacing: .09em; }
  .tt-fate__label b { font-size: 11.5px; }
  .tt-fate__label span { font-size: 9.5px; }
}

/* ==========================================================================
   v27: «ДА ИЛИ НЕТ» — вердикт в толковании
   ----------------------------------------------------------------------------
   .tt-verdict печатается сразу под шапкой отчёта: метка «Ответ:»,
   крупное слово (ДА / НЕТ / РАВНОВЕСИЕ) и счёт голосов силы. Цвета
   продолжают тональную шкалу сайта (светлое → зелёное, напряжённое →
   красное, равновесие → аметист): тон вердикта читается без текста.
   ========================================================================== */
.tt-verdict {
  margin: 0 auto;
  max-width: 680px;
  padding: 15px 22px 17px;
  border-radius: 18px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(29px, 7.5vw, 54px);
  line-height: 1.08;
  letter-spacing: .12em;
  color: var(--tt-ink);
  text-shadow: 0 2px 20px rgba(3, 1, 10, .75);
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(196, 105, 232, .14), transparent 60%),
    linear-gradient(170deg, rgba(44, 27, 78, .5), rgba(18, 11, 40, .78));
  border: 1px solid rgba(226, 189, 124, .3);
  box-shadow: 0 14px 34px rgba(4, 2, 12, .5);
}
.tt-verdict b { /* метка «Ответ:» */
  display: block;
  font: 600 12px/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--tt-gold);
  margin-bottom: 7px;
}
.tt-verdict span { /* счёт голосов силы */
  display: block;
  margin-top: 9px;
  font: 500 14px/1.4 var(--sans);
  letter-spacing: .08em;
  color: var(--tt-muted);
}
/* «ДА» — светлая сторона весов (зелёная, как тон t-good) */
.tt-verdict--yes {
  color: #d7f3e3;
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(127, 207, 164, .2), transparent 62%),
    linear-gradient(170deg, rgba(44, 27, 78, .5), rgba(18, 11, 40, .78));
  border-color: rgba(127, 207, 164, .5);
  box-shadow: 0 0 30px rgba(127, 207, 164, .16), 0 14px 34px rgba(4, 2, 12, .5);
}
.tt-verdict--yes b { color: #9fe0bb; }
/* «НЕТ» — напряжённая сторона весов (красная, как тон t-hard) */
.tt-verdict--no {
  color: #f8dcd7;
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(224, 138, 132, .2), transparent 62%),
    linear-gradient(170deg, rgba(44, 27, 78, .5), rgba(18, 11, 40, .78));
  border-color: rgba(224, 138, 132, .5);
  box-shadow: 0 0 30px rgba(224, 138, 132, .16), 0 14px 34px rgba(4, 2, 12, .5);
}
.tt-verdict--no b { color: #eda49d; }
/* «РАВНОВЕСИЕ» — весы стоят ровно (аметист, как тон t-neutral) */
.tt-verdict--even {
  color: #e2d8f7;
  font-size: clamp(24.5px, 6vw, 44px); /* слово длинное — компактнее */
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(166, 120, 226, .2), transparent 62%),
    linear-gradient(170deg, rgba(44, 27, 78, .5), rgba(18, 11, 40, .78));
  border-color: rgba(166, 120, 226, .5);
  box-shadow: 0 0 30px rgba(166, 120, 226, .16), 0 14px 34px rgba(4, 2, 12, .5);
}
.tt-verdict--even b { color: #c3b4ef; }

/* ==========================================================================
   v28: «ДА ИЛИ НЕТ» — плашки рядов «ДА»/«НЕТ» (экран расклада)
   ----------------------------------------------------------------------------
   Ставит SpreadEngine.buildSlots в левое поле зоны (координаты — инлайн
   из JS): «ДА» по центру верхнего ряда, «НЕТ» — нижнего. Цвета согласованы
   с вердиктом толкования: «да» — зелёный, «нет» — красный.
   ========================================================================== */
.tt-rowlabel {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 8;            /* под картами расклада (placeCard даёт 10+) */
  /* вертикальная плашка: буквы столбиком — влезает в левое поле зоны
     (~0.49 ширины карты) на любом устройстве, не задевая колонку карт */
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 11px 7px;
  border-radius: 14px;
  background: rgba(16, 10, 36, .82);
  border: 1px solid rgba(226, 189, 124, .5);
  font: 700 14.5px/1 var(--serif);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--tt-gold-bright);
  text-shadow: 0 1px 8px rgba(3, 1, 10, .95);
  box-shadow: 0 6px 18px rgba(3, 1, 10, .55);
  pointer-events: none;
  white-space: nowrap;
}
/* «ДА» — светлая сторона весов (зелёный, как вердикт и тон t-good) */
.tt-rowlabel--yes {
  color: #bfeed6;
  border-color: rgba(127, 207, 164, .55);
  box-shadow: 0 0 18px rgba(127, 207, 164, .18), 0 6px 18px rgba(3, 1, 10, .55);
}
/* «НЕТ» — напряжённая сторона весов (красный, как вердикт и тон t-hard) */
.tt-rowlabel--no {
  color: #f6cdc9;
  border-color: rgba(237, 164, 157, .55);
  box-shadow: 0 0 18px rgba(237, 164, 157, .16), 0 6px 18px rgba(3, 1, 10, .55);
}

/* ==========================================================================
   v28: ПОДТВЕРЖДЕНИЕ ВЫХОДА ИЗ СТОЛА
   ----------------------------------------------------------------------------
   Крестик/Escape/«Закрыть» сначала спрашивают «Вы точно хотите выйти?»;
   «Да» — выход с полным сбросом стола, «Нет» — остаться. Кнопки — базовая
   золотая пилюля .tt-btn (у арт-кнопок надписи запечены в картинках).
   ========================================================================== */
.tt-exit {
  position: fixed; inset: 0; z-index: 220; /* выше топбара и презентации */
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(3, 1, 10, .66);
}
.tt-exit[hidden] { display: none; }
.tt-exit__box {
  width: min(400px, 88vw);
  padding: 28px 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(226, 189, 124, .45);
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(196, 105, 232, .12), transparent 60%),
    linear-gradient(170deg, rgba(30, 19, 64, .97), rgba(12, 8, 28, .97));
  box-shadow: 0 26px 64px rgba(0, 0, 0, .62), 0 0 44px rgba(120, 60, 190, .18);
  text-align: center;
}
.tt-exit__q {
  margin: 0 0 20px;
  font: 600 22.5px/1.3 var(--serif);
  letter-spacing: .05em;
  color: var(--tt-ink);
  text-shadow: 0 2px 14px rgba(3, 1, 10, .85);
}
.tt-exit__btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.tt-exit__btns .tt-btn { min-width: 128px; padding-left: 26px; padding-right: 26px; }
/* «Да» — тёплое золото базы; «Нет» — спокойный контур, «остаться» */
.tt-exit__no {
  background: linear-gradient(178deg, rgba(44, 27, 78, .92), rgba(24, 15, 52, .92));
  color: var(--tt-gold-bright);
  box-shadow: inset 0 0 0 1px rgba(226, 189, 124, .5), 0 10px 26px rgba(4, 2, 12, .6);
  text-shadow: 0 1px 8px rgba(3, 1, 10, .9);
}
.tt-exit__no::after { display: none; }
.tt-exit__no:hover {
  background: linear-gradient(178deg, rgba(52, 32, 90, .95), rgba(30, 19, 62, .95));
  box-shadow: inset 0 0 0 1px rgba(245, 216, 154, .7), 0 14px 30px rgba(4, 2, 12, .66);
}

/* ==========================================================================
   v42 (2026-11-29): окно «СОЧЕТАНИЕ И ВЫВОДЫ» — итог расклада по базам
   заказчика: карты в позициях, узнаваемые сочетания (spread_combinations),
   синтез по reading_algorithms (доля старших, стихии, повторы номиналов),
   выводы и практический шаг. Всплывает, когда все карты легли на стол;
   закрытие — крестик, «Закрыть», Esc, клик по фону; повторный вызов —
   кнопка .tt-combbtn на экране расклада.
   ========================================================================== */
.tt-comb {
  position: fixed; inset: 0; z-index: 210; /* выше карт/тоста, ниже выхода (220) */
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(3, 1, 10, .72);
}
.tt-comb[hidden] { display: none; }
.tt-comb__box {
  position: relative;
  width: min(560px, 94vw);
  max-height: 84vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(226, 189, 124, .45);
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(196, 105, 232, .14), transparent 60%),
    linear-gradient(170deg, rgba(30, 19, 64, .98), rgba(12, 8, 28, .98));
  box-shadow: 0 26px 64px rgba(0, 0, 0, .62), 0 0 44px rgba(120, 60, 190, .18);
  text-align: left;
}
.tt-comb__close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
}
.tt-comb__title {
  margin: 0 34px 14px 0;
  font: 600 24.5px/1.25 var(--serif);
  letter-spacing: .05em;
  color: var(--tt-ink);
  text-shadow: 0 2px 14px rgba(3, 1, 10, .85);
}
.tt-comb__cards {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 14px; padding: 9px 12px;
  border-radius: 12px;
  background: rgba(10, 6, 26, .55);
  border: 1px solid rgba(226, 189, 124, .22);
}
.tt-comb__cards span {
  font-size: 14px; color: rgba(244, 239, 230, .82);
}
.tt-comb__cards b { color: var(--tt-gold-bright); }
.tt-comb__h {
  margin: 16px 0 8px;
  font: 800 15px/1.15 var(--serif); /* v52: крупнее и жирнее */
  letter-spacing: .2em; text-transform: uppercase;
  color: #ffd98f; /* v52: ярче и насыщеннее */
  text-shadow: 0 0 14px rgba(255, 214, 140, .5), 0 1px 3px rgba(0, 0, 0, .85);
}
.tt-comb__item {
  margin: 0 0 8px; padding: 11px 13px;
  border-radius: 12px;
  background: rgba(42, 25, 76, .4);
  border: 1px solid rgba(226, 189, 124, .3);
  font-size: 15px; line-height: 1.5; color: rgba(244, 239, 230, .9);
}
.tt-comb__item b { color: var(--tt-gold-bright); }
.tt-comb__item--soft { font-style: italic; color: rgba(244, 239, 230, .66); }
/* v54 (2026-11-30, запрос заказчика): текст «узор не сложился» —
   ЗОЛОТАЯ КНОПКА .tt-comb__aihint во всю ширину контента («в размер»
   абзаца разбора с ИИ): та же золотая заливка, что у кнопок стола
   (.tt-btn), тёмно-коричневый шрифт без капса; клик = «Подробнее
   с ИИ» (биндинг tarot-table.js v61)
   v55 (2026-11-30, запрос заказчика): шрифт кнопки — как у ВСЕГО
   текста стола (var(--sans), Manrope — был серифный Cormorant),
   КРУПНЕЕ (14.5→16.5px) и ЖИРНЕЕ (600→700) */
.tt-comb__aihint {
  position: relative;
  display: block; width: 100%;
  margin: 0 0 8px; padding: 12px 16px 13px;
  border-radius: 12px; border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 700;
  font-size: 16.5px; line-height: 1.45;
  letter-spacing: .01em; text-align: center;
  color: #241303;
  background: linear-gradient(178deg, #fdf0c4 0%, #f0cf8c 26%, #d9ab5b 52%, #b17f34 78%, #e9c37c 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 252, 240, .85),
    inset 0 -3px 6px rgba(120, 78, 22, .55),
    0 0 0 1px rgba(122, 84, 30, .9),
    0 0 0 4px rgba(226, 189, 124, .14),
    0 10px 26px rgba(4, 2, 12, .66);
  text-shadow: 0 1px 0 rgba(255, 246, 220, .55);
  -webkit-appearance: none; appearance: none;
  -webkit-user-select: none; user-select: none;
}
.tt-comb__aihint::after { /* блик поверх — как у .tt-btn */
  content: ""; position: absolute; inset: 2px 3px 55% 3px;
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 252, 235, .5), rgba(255, 252, 235, 0));
  pointer-events: none;
}
.tt-comb__aihint:hover {
  box-shadow:
    inset 0 2px 2px rgba(255, 252, 240, .9),
    inset 0 -3px 6px rgba(120, 78, 22, .5),
    0 0 0 1px rgba(140, 98, 36, .95),
    0 0 0 4px rgba(226, 189, 124, .2),
    0 14px 30px rgba(4, 2, 12, .7);
}
.tt-comb__aihint:active { filter: saturate(.94); }
.tt-comb__advice {
  display: block; margin-top: 7px;
  font-style: italic; color: #d9c79b;
}
.tt-comb__synth p, .tt-comb__final p {
  margin: 0 0 8px;
  font-size: 15px; line-height: 1.55; color: rgba(244, 239, 230, .88);
}
.tt-comb__synth b, .tt-comb__final b { color: var(--tt-gold-bright); }
.tt-comb__final {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(178deg, rgba(78, 44, 132, .34), rgba(30, 18, 58, .5));
  border: 1px solid rgba(226, 189, 124, .42);
}
.tt-comb__final p:last-child { margin-bottom: 0; }
/* v53 (2026-11-30): блок «Как читать расклад» (guide расклада
   «Слепое пятно», tarot-data v17) — вводная фраза + список приёмов;
   стоит в конце окна «Сочетание и выводы» после «Выводов» и в разборе
   с ИИ (та же сборка combSectionsHTML) */
.tt-comb__guide {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 6, 26, .55);
  border: 1px solid rgba(226, 189, 124, .26);
}
.tt-comb__guide-intro {
  margin: 0 0 10px;
  font-size: 15px; line-height: 1.55; color: rgba(244, 239, 230, .88);
}
.tt-comb__guide-list {
  margin: 0; padding: 0 0 0 20px;
  list-style: none;
}
.tt-comb__guide-list li {
  position: relative;
  margin: 0 0 10px;
  font-size: 15px; line-height: 1.55; color: rgba(244, 239, 230, .88);
}
.tt-comb__guide-list li:last-child { margin-bottom: 0; }
/* золотая звёздочка-маркер вместо точки списка — в духе стола */
.tt-comb__guide-list li::before {
  content: "";
  position: absolute; left: -16px; top: 8px;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f5d89a, #d9a54e);
  box-shadow: 0 0 6px rgba(245, 216, 154, .5);
}
.tt-comb__foot {
  display: flex; justify-content: center;
  margin-top: 16px;
}
.tt-comb__foot .tt-btn { min-width: min(220px, 60vw); }
.tt-comb__foot .tt-btn.tt-btn--art5 { min-width: 0; width: min(210px, 56vw); } /* арт-«Закрыть» */

/* ==========================================================================
   v43 (2026-11-29): «ПОДРОБНЕЕ С ИИ» — платный разбор за 50 коинов.
   Шаг 1 — подтверждение .tt-aiask (Да/Нет + баланс, стиль подтверждения
   выхода); «Да» списывает 50 коинов и открывает Шаг 2 — окно разбора
   .tt-ai: вопрос, схема расклада, полный разбор позиций (базы заказчика),
   сочетания, синтез, выводы. Закрытие окна — крестик, «Закрыть», Esc,
   клик по фону; «Новый расклад» сбрасывает стол.
   ========================================================================== */
.tt-aiask {
  position: fixed; inset: 0; z-index: 230; /* выше окна ИИ и выхода */
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(3, 1, 10, .7);
}
.tt-aiask[hidden] { display: none; }
.tt-aiask__box {
  width: min(430px, 90vw);
  padding: 26px 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(226, 189, 124, .45);
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(196, 105, 232, .12), transparent 60%),
    linear-gradient(170deg, rgba(30, 19, 64, .97), rgba(12, 8, 28, .97));
  box-shadow: 0 26px 64px rgba(0, 0, 0, .62), 0 0 44px rgba(120, 60, 190, .18);
  text-align: center;
}
.tt-aiask__coin {
  display: block; width: 46px; height: 46px; margin: 0 auto 12px;
  filter: drop-shadow(0 0 12px rgba(240, 200, 120, .5));
}
.tt-aiask__coin svg { width: 100%; height: 100%; display: block; }
.tt-aiask__q {
  margin: 0 0 8px;
  font: 600 21.5px/1.35 var(--serif);
  letter-spacing: .03em;
  color: var(--tt-ink);
  text-shadow: 0 2px 14px rgba(3, 1, 10, .85);
}
.tt-aiask__q b { color: var(--tt-gold-bright); }
.tt-aiask__bal { margin: 0 0 18px; font-size: 14.5px; color: var(--tt-muted); }
.tt-aiask__bal b { color: var(--tt-gold-bright); }
.tt-aiask__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* v56 (2026-11-30, запрос заказчика): «Да»/«Нет» в окнах подтверждения
   50 коинов — шрифт как у всего остального текста сайта (Manrope),
   КРУПНЕЕ и ЖИРНЕЕ: обычный регистр вместо капса с широким разрядом
   (раньше — Cormorant Garamond 600, uppercase, letter-spacing .16em);
   насыщенность 700 — та же, что у жирного текста страницы */
.tt-aiask__btns .tt-btn {
  min-width: 128px; padding-left: 26px; padding-right: 26px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .01em;
  text-transform: none;
}
/* «Да» — тёплое золото базы; «Нет» — спокойный контур, «отмена» */
.tt-aiask__no {
  background: linear-gradient(178deg, rgba(44, 27, 78, .92), rgba(24, 15, 52, .92));
  color: var(--tt-gold-bright);
  box-shadow: inset 0 0 0 1px rgba(226, 189, 124, .5), 0 10px 26px rgba(4, 2, 12, .6);
  text-shadow: 0 1px 8px rgba(3, 1, 10, .9);
}
.tt-aiask__no::after { display: none; }
.tt-aiask__no:hover {
  background: linear-gradient(178deg, rgba(52, 32, 90, .95), rgba(30, 19, 62, .95));
  box-shadow: inset 0 0 0 1px rgba(245, 216, 154, .7), 0 14px 30px rgba(4, 2, 12, .66);
}
.tt-ai {
  position: fixed; inset: 0; z-index: 210; /* как окно «Сочетание и выводы» */
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(3, 1, 10, .72);
}
.tt-ai[hidden] { display: none; }
.tt-ai__box {
  position: relative;
  width: min(640px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(226, 189, 124, .45);
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(196, 105, 232, .14), transparent 60%),
    linear-gradient(170deg, rgba(30, 19, 64, .98), rgba(12, 8, 28, .98));
  box-shadow: 0 26px 64px rgba(0, 0, 0, .62), 0 0 44px rgba(120, 60, 190, .18);
  text-align: left;
}
.tt-ai__close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; }
.tt-ai__title {
  margin: 0 34px 4px 0;
  font: 600 24.5px/1.25 var(--serif);
  letter-spacing: .05em;
  color: var(--tt-ink);
  text-shadow: 0 2px 14px rgba(3, 1, 10, .85);
}
.tt-ai__sub {
  margin: 0 0 14px;
  font-size: 14px; line-height: 1.45;
  color: var(--tt-muted);
}
.tt-ai__q {
  margin: 0 0 12px; padding: 10px 13px;
  border-radius: 12px;
  background: rgba(10, 6, 26, .55);
  border: 1px solid rgba(226, 189, 124, .22);
  font-size: 15px; line-height: 1.5; color: rgba(244, 239, 230, .9);
}
.tt-ai__q b { color: var(--tt-gold-bright); }
.tt-ai__cards { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; }
.tt-ai__card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(42, 25, 76, .4);
  border: 1px solid rgba(226, 189, 124, .3);
}
.tt-ai__pos {
  font: 700 12.5px/1.35 var(--serif);
  letter-spacing: .16em; text-transform: uppercase;
  color: #c9ab72;
}
.tt-ai__pos i {
  font-style: italic; font-weight: 400;
  font-size: 13px; line-height: 1.35;
  letter-spacing: .02em; text-transform: none;
  color: rgba(201, 188, 224, .85);
}
.tt-ai__name {
  margin: 6px 0;
  font: 600 18.5px/1.3 var(--serif);
  color: var(--tt-gold-bright);
  text-shadow: 0 1px 10px rgba(3, 1, 10, .8);
}
.tt-ai__name i {
  font-style: italic; font-weight: 400;
  font-size: 13px; line-height: 1.3;
  margin-left: 8px; color: var(--tt-pink);
}
.tt-ai__text { margin: 0 0 7px; font-size: 15px; line-height: 1.55; color: rgba(244, 239, 230, .92); }
.tt-ai__kb { margin: 0 0 7px; font-size: 14.5px; line-height: 1.5; color: rgba(240, 166, 238, .9); }
.tt-ai__kb b { color: var(--tt-gold-bright); }
.tt-ai__full {
  margin: 0; padding-top: 9px;
  border-top: 1px dashed rgba(226, 189, 124, .28);
  font-size: 14.5px; line-height: 1.6;
  color: rgba(244, 239, 230, .86);
  white-space: pre-line; /* база 2: многострочный текст CARD_INFO */
}
.tt-ai__foot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.tt-ai__foot .tt-btn.tt-btn--art5 { min-width: 0; width: min(210px, 56vw); } /* арт-«Закрыть» */
/* v45 (2026-11-29): в окне форм «Своих карт» одна арт-кнопка «Далее»
   (картинка tt-btn-1098 — как на всех экранах стола) вместо пары
   «Закрыть»/«Новый расклад»; ширина — как у прежних арт-кнопок футера */
.tt-ai__foot .tt-btn.tt-btn--art { min-width: 0; width: min(210px, 56vw); }
@media (max-width: 640px) {
  .tt-ai { padding: 10px; }
  .tt-ai__box { padding: 20px 14px 16px; max-height: 90vh; }
  .tt-ai__title { font-size: 21.5px; }
  .tt-ai__name { font-size: 17.5px; }
  .tt-aiask__q { font-size: 19px; }
}

/* ==========================================================================
   v44 (2026-11-29): окно «Подробнее с ИИ» — ОТВЕТ РЕАЛЬНОЙ НЕЙРОСЕТИ
   (YandexGPT через воркер /api/tarot-ai). Экран ожидания .tt-ai__loading
   («Нейросеть читает ваши карты…», пульсирующий шар-кристалл), потоковый
   вывод ответа .tt-ai__answer (заголовки/абзацы/списки в стиле окна),
   каретка печати .tt-ai__caret, плашка ошибки .tt-ai__err с оффлайн-
   разбором по базам заказчика под ней.
   ========================================================================== */
.tt-ai__loading {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  text-align: center;
  padding: 34px 10px 30px;
}
.tt-ai__orb {
  width: 76px; height: 76px; border-radius: 50%;
  /* v54 (2026-11-30, запрос заказчика): шар загрузки ПЕРЕКРАШЕН
     В ЗОЛОТОЙ (тело было пурпурным), внешнее ПУРПУРНОЕ СВЕЧЕНИЕ
     сохранено — и в покое, и в пульсации (keyframes ниже) */
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 244, 208, .98), rgba(250, 224, 158, 0) 46%),
    radial-gradient(circle at 50% 58%, rgba(226, 174, 86, .96), rgba(76, 46, 14, .95) 80%);
  box-shadow: 0 0 34px rgba(196, 105, 232, .45), 0 0 60px rgba(120, 60, 190, .22), inset 0 0 20px rgba(255, 236, 180, .4);
  animation: ttAiOrb 1.9s ease-in-out infinite;
}
@keyframes ttAiOrb {
  0%, 100% { transform: scale(1); }
  50% {
    transform: scale(1.09);
    box-shadow: 0 0 46px rgba(196, 105, 232, .6), 0 0 76px rgba(120, 60, 190, .3), inset 0 0 26px rgba(255, 236, 180, .5);
  }
}
.tt-ai__loading b {
  font: 600 18.5px/1.35 var(--serif);
  letter-spacing: .04em;
  color: var(--tt-gold-bright);
  text-shadow: 0 2px 14px rgba(3, 1, 10, .85);
}
.tt-ai__hint {
  max-width: 400px;
  font-size: 14px; line-height: 1.55;
  color: var(--tt-muted);
}
/* — потоковый ответ нейросети — */
.tt-ai__answer { padding-top: 2px; }
.tt-ai__answer .tt-comb__h { margin: 17px 0 8px; }
.tt-ai__answer .tt-comb__h:first-child { margin-top: 4px; }
.tt-ai__p {
  margin: 0 0 10px;
  font-size: 15px; line-height: 1.62;
  color: rgba(244, 239, 230, .93);
}
.tt-ai__p b { color: var(--tt-gold-bright); }
.tt-ai__p i { color: rgba(240, 166, 238, .92); }
.tt-ai__ul {
  margin: 0 0 12px;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.tt-ai__ul li {
  position: relative;
  padding-left: 17px;
  font-size: 15px; line-height: 1.55;
  color: rgba(244, 239, 230, .9);
}
.tt-ai__ul li::before {
  content: ""; position: absolute; left: 1px; top: .5em;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #f5d89a, #c069e8);
  box-shadow: 0 0 8px rgba(196, 105, 232, .5);
}
.tt-ai__hr {
  margin: 14px 0; border: none; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 189, 124, .35), transparent);
}
.tt-ai__caret {
  display: inline-block; vertical-align: -.12em;
  width: 9px; height: 1.05em; margin-left: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f5d89a, #c9a3f0);
  animation: ttAiCaret 1s steps(2, start) infinite;
}
@keyframes ttAiCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
/* — ошибка нейросети + оффлайн-разбор под ней — */
.tt-ai__err {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(240, 110, 130, .45);
  background: rgba(90, 18, 40, .3);
  display: flex; flex-direction: column; gap: 5px;
  font-size: 14.5px; line-height: 1.5;
  color: rgba(255, 224, 228, .95);
}
.tt-ai__err b { color: #ffb7c2; }
.tt-ai__err span { color: rgba(255, 224, 228, .92); }
.tt-ai__errdetail {
  font-style: italic; font-size: 12.5px;
  color: rgba(255, 190, 200, .65);
}
@media (max-width: 640px) {
  .tt-ai__loading { padding: 26px 6px 22px; }
  .tt-ai__orb { width: 62px; height: 62px; }
  .tt-ai__loading b { font-size: 17px; }
  .tt-ai__p, .tt-ai__ul li { font-size: 14.5px; }
}

/* ==========================================================================
   v45 (2026-11-29): «СВОИ КАРТЫ» — платный разбор пользовательских карт
   нейросетью (50 коинов, как «Подробнее с ИИ»). Шаг 1 — то же окно
   подтверждения .tt-aiask (используется с id #ttLiveAsk, без новых стилей).
   Шаг 2 — окно ДВУХ ПОЛЕЙ .tt-liveform (внутри бокса .tt-ai__box):
   вопрос; название расклада (необязательно) и карты расклада (каждая
   с новой строки, можно с положением и позицией). Кнопка «Далее» (единственная
   кнопка окна, арт-картинка «Далее») → /api/tarot-ai (mode:"custom") →
   стрим ответа в окно разбора. Отмена/закрытие без отправки (крестик/
   Esc/фон) возвращает коины.
   ========================================================================== */
.tt-liveform { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 4px; }
.tt-liveform__group {
  display: flex; flex-direction: column; gap: 9px;
  padding: 13px 14px 15px;
  border-radius: 14px;
  background: rgba(10, 6, 26, .5);
  border: 1px solid rgba(226, 189, 124, .26);
}
.tt-liveform__grouptitle {
  font: 700 13px/1.3 var(--serif);
  letter-spacing: .14em; text-transform: uppercase;
  color: #c9ab72;
}
.tt-liveform__grouptitle i {
  font-style: italic; font-weight: 400;
  font-size: 12.5px; letter-spacing: .02em; text-transform: none;
  color: rgba(201, 188, 224, .8);
}
.tt-liveform__label { font-size: 13px; letter-spacing: .04em; color: var(--tt-muted); }
.tt-liveform__label i { font-style: italic; color: #9a8db8; }
.tt-liveform__ta, .tt-liveform__in {
  width: 100%;
  border-radius: 12px;
  background: rgba(6, 3, 18, .62);
  border: 1px solid rgba(226, 189, 124, .3);
  color: var(--tt-ink);
  font: 14px/1.5 var(--sans);
  padding: 10px 12px;
  outline: none;
}
.tt-liveform__ta { resize: vertical; min-height: 62px; }
.tt-liveform__ta--cards { min-height: 132px; }
.tt-liveform__ta:focus, .tt-liveform__in:focus {
  border-color: rgba(226, 189, 124, .7);
  box-shadow: 0 0 0 3px rgba(226, 189, 124, .12), 0 0 18px rgba(166, 120, 226, .18);
}
.tt-liveform__hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: #9a8db8; }
/* v3-правило полей: 16px на сенсорных/узких экранах — iOS не зумит */
@media (pointer: coarse), (max-width: 640px) {
  .tt-liveform__ta, .tt-liveform__in { font-size: 18px; }
  .tt-liveform__ta--cards { min-height: 112px; }
}

/* ==========================================================================
   v47 (2026-11-29): ЧАТ-УТОЧНЕНИЯ В ОКНЕ ТОЛКОВАНИЯ (1 коин за сообщение)
   Строка ввода .tt-ai__chat под телом окна. v48: арт-кнопка «Далее»
   убрана, поле — textarea на всю ширину окна высотой в 2 строки,
   стрелка отправки (золотая, →) — внутри поля справа. Реплики диалога идут
   лентой в тело окна: сообщение пользователя — «пузырь» справа (тёплое
   золото), ответ таролога — блок слева в стиле основного ответа.
   ========================================================================== */
.tt-ai__chat { margin-top: 14px; }
.tt-ai__chat[hidden] { display: none; }
.tt-ai__chatrow { display: flex; }
/* v48: обёртка поля — стрелка позиционируется внутри, справа */
.tt-ai__chatwrap { position: relative; flex: 1 1 auto; min-width: 0; }
.tt-ai__chatin {
  display: block; width: 100%;
  border-radius: 12px;
  background: rgba(6, 3, 18, .62);
  border: 1px solid rgba(226, 189, 124, .3);
  color: var(--tt-ink);
  font: 14px/1.5 var(--sans);
  padding: 9px 52px 9px 12px; /* справа — запас под стрелку */
  outline: none;
  resize: none;
  min-height: 62px; /* v48: вмещает 2 строки текста */
}
.tt-ai__chatin::placeholder { color: rgba(201, 188, 224, .5); }
.tt-ai__chatin:focus {
  border-color: rgba(226, 189, 124, .7);
  box-shadow: 0 0 0 3px rgba(226, 189, 124, .12), 0 0 18px rgba(166, 120, 226, .18);
}
.tt-ai__chatin:disabled { opacity: .55; }
/* v3-правило полей: 16px на сенсорных/узких экранах — iOS не зумит */
@media (pointer: coarse), (max-width: 640px) {
  .tt-ai__chatin { font-size: 18px; }
}
/* v48: стрелка отправки внутри строки справа (арт-кнопка «Далее» убрана) */
.tt-ai__chatsend {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
  border-radius: 11px;
  border: 1px solid rgba(226, 189, 124, .55);
  background: linear-gradient(180deg, #f6df9c, #d1a94f);
  color: #2a1c06;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.tt-ai__chatsend svg { width: 20px; height: 20px; display: block; }
.tt-ai__chatsend:hover { filter: brightness(1.08); }
.tt-ai__chatsend:active { transform: translateY(-50%) scale(.94); }
.tt-ai__chatsend:disabled { opacity: .38; cursor: default; filter: none; }
.tt-ai__chathint {
  margin: 7px 0 0; text-align: center;
  font-size: 12.5px; line-height: 1.4; color: #9a8db8;
}
.tt-ai__chathint b { /* v52: «1 коин» — ярко, жирно, чётко */
  font-weight: 800; color: #ffd98f;
  text-shadow: 0 0 8px rgba(255, 214, 140, .5);
}
/* реплики диалога: пользователь — справа, таролог — слева */
.tt-ai__msg { margin-top: 12px; }
.tt-ai__msg--user {
  margin-left: auto; max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(178deg, rgba(88, 48, 20, .5), rgba(48, 28, 12, .5));
  border: 1px solid rgba(226, 189, 124, .42);
  font: 400 15px/1.5 var(--sans);
  color: #f6e9cf;
  white-space: pre-wrap;
  text-align: left;
}
.tt-ai__msg--ai {
  padding: 12px 14px 10px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(42, 25, 76, .38);
  border: 1px solid rgba(226, 189, 124, .26);
}
.tt-ai__msg--ai .tt-ai__answer { margin: 0; }
.tt-ai__msg--ai .tt-ai__p, .tt-ai__msg--ai .tt-ai__ul li { font-size: 14.5px; }
@media (max-width: 640px) {
  .tt-ai__msg--user { max-width: 92%; }
}

/* ==========================================================================
   v51 (2026-11-29): полноэкранная карта-презентация — через 1 с после
   переворота лицом внизу медленно мигает крупное «Нажмите»
   ========================================================================== */
.tt-present__hint {
  position: absolute; left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom)); /* v52: над названием карты */
  transform: translateX(-50%);
  font: 700 15px/1 var(--serif); letter-spacing: .14em; /* v52: вдвое меньше */
  text-transform: uppercase;
  color: #fff3d6;
  text-shadow: 0 0 18px rgba(255, 214, 140, .45), 0 2px 12px rgba(0, 0, 0, .9);
  pointer-events: none;
  z-index: 6;
  animation: tt-blink 2s ease-in-out infinite; /* v52: полупрозрачная — см. keyframes */
}
.tt-present__hint[hidden] { display: none; }
@keyframes tt-blink { /* v52: полупрозрачная — верхняя планка .55 */
  0%, 100% { opacity: .1; }
  50%      { opacity: .55; }
}
