/* ==========================================================================
   DESTINY HUB LUXURY TYPOGRAPHY 2026/2027
   Playfair Display (Editorial Mystic Serif) + Golos Text (Modern UI Grotesque)
   ========================================================================== */
/* Google Fonts loaded asynchronously in <head> / header.js to avoid blocking FCP */

:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: var(--font-sans);
  --input-height-desktop: 58px;
  --input-height-mobile: 56px;
  --input-radius: 16px;
}

h1, h2, .hero-title, .hero-luxury-title, .features-title, .page-title, .section-title {
  font-family: var(--font-serif);
}

/* Шрифты Google Fonts подключаются неблокирующим <link> в <head> / portal_ui.js */

/* ── Фикс иконки Gold — coin emoji плохо рендерится на части устройств.
   Используем псевдо-класс: заменяем на CSS-звезду через data-атрибут или
   просто добавляем запасной шрифт-фолбэк для эмодзи монеты ── */
@font-face {
  font-family: 'EmojiCompat';
  src: local('Apple Color Emoji'), local('Segoe UI Emoji'), local('Noto Color Emoji');
}
.gold-icon::before { content: '✦'; color: var(--gold); font-style: normal; }

/* ── Spotlight Tour — неблокирующий интерактивный тур по страницам ── */
#destiny-tour-overlay,
#destiny-tour-mask {
  display: none !important;
  pointer-events: none !important;
}

/* Неблокирующее сияющее кольцо + приглушение фона вокруг активного элемента */
#destiny-tour-ring {
  position: fixed;
  z-index: 100001;
  pointer-events: none;
  border: 2px solid rgba(226, 184, 83, 0.95);
  border-radius: 18px;
  box-shadow:
    0 0 0 9999px rgba(4, 3, 12, 0.88),
    0 0 0 4px rgba(226, 184, 83, 0.20),
    0 0 36px rgba(226, 184, 83, 0.45);
}

#destiny-tour-ring.is-step-anim,
#destiny-tour-tooltip.is-step-anim {
  transition:
    top 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Активный целевой элемент остаётся кликабельным без дубля рамки */
.destiny-tour-highlight {
  border-radius: 14px;
}

/* Тултип тура */
#destiny-tour-tooltip {
  position: fixed;
  z-index: 100002;
  background: linear-gradient(155deg, rgba(22, 14, 42, 0.98), rgba(11, 8, 22, 0.99));
  border: 1px solid rgba(226, 184, 83, 0.55);
  border-radius: 18px;
  padding: 15px 18px;
  max-width: 288px;
  width: calc(100vw - 24px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(226, 184, 83, 0.16) inset;
  backdrop-filter: blur(18px);
  pointer-events: all;
  box-sizing: border-box;
}
@media (min-width: 1180px) and (max-width: 1410px) {
  #destiny-tour-tooltip {
    max-width: 266px;
    padding: 14px 16px;
  }
}
#destiny-tour-tooltip .tt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
#destiny-tour-tooltip .tt-step {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold, #e2b853);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0;
}
#destiny-tour-tooltip .tt-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#destiny-tour-tooltip .tt-close:hover {
  color: #ffffff;
  border-color: rgba(226, 184, 83, 0.55);
}
#destiny-tour-tooltip .tt-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text, #f8fafc);
}
#destiny-tour-tooltip .tt-desc {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.5;
  margin-bottom: 14px;
}
#destiny-tour-tooltip .tt-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(18, 12, 36, 0.99);
  border: 1px solid rgba(226, 184, 83, 0.55);
  transform: rotate(45deg);
  pointer-events: none;
}
#destiny-tour-tooltip .tt-arrow[data-dir="left"] {
  left: -7px;
  border-right: none;
  border-top: none;
}
#destiny-tour-tooltip .tt-arrow[data-dir="right"] {
  right: -7px;
  border-left: none;
  border-bottom: none;
}
#destiny-tour-tooltip .tt-arrow[data-dir="top"] {
  top: -7px;
  border-bottom: none;
  border-right: none;
}
#destiny-tour-tooltip .tt-arrow[data-dir="bottom"] {
  bottom: -7px;
  border-top: none;
  border-left: none;
}
#destiny-tour-tooltip .tt-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 8px;
}
#destiny-tour-tooltip .tt-dots {
  display: flex; gap: 5px; flex: 1; min-width: 44px;
}
#destiny-tour-tooltip .tt-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.2s;
}
#destiny-tour-tooltip .tt-dot.active {
  width: 16px; border-radius: 3px;
  background: var(--gold, #e2b853);
}
#destiny-tour-tooltip .tt-btn-prev {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 184, 83, 0.32);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
#destiny-tour-tooltip .tt-btn-prev:hover {
  background: rgba(226, 184, 83, 0.16);
  border-color: rgba(226, 184, 83, 0.65);
  color: #ffffff;
}
#destiny-tour-tooltip .tt-btn-skip {
  background: none; border: none;
  color: var(--muted, #94a3b8); font-size: 0.78rem;
  cursor: pointer; font-family: var(--font);
  padding: 6px; transition: color 0.2s;
  white-space: nowrap;
}
#destiny-tour-tooltip .tt-btn-skip:hover { color: var(--text, #fff); }
#destiny-tour-tooltip .tt-btn-next {
  background: linear-gradient(135deg, #f3ce66, #d99c2b);
  border: none; color: #160c04;
  font-size: 0.82rem; font-weight: 800;
  min-height: 32px;
  padding: 7px 15px; border-radius: 999px;
  cursor: pointer; font-family: var(--font);
  transition: all 0.2s; white-space: nowrap;
}
#destiny-tour-tooltip .tt-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(226, 184, 83, 0.4);
}
.dh-game-tour-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 11, 29, 0.9);
  border: 1px solid rgba(226, 184, 83, 0.55);
  color: #fde68a;
  font-family: var(--font, inherit);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(226, 184, 83, 0.14) inset;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.dh-game-tour-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 206, 102, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 18px rgba(226, 184, 83, 0.25);
}
.dh-game-tour-fab .dh-gt-mob {
  display: none;
}
@media (max-width: 639px) {
  .dh-game-tour-fab {
    right: 12px;
    bottom: 78px;
    width: 38px;
    height: 38px;
    padding: 0;
  }
  .dh-game-tour-fab .dh-gt-desk {
    display: none;
  }
  .dh-game-tour-fab .dh-gt-mob {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
  }
  body.durak-club-page .dh-game-tour-fab,
  body.games-page.dh-in-game-tour .dh-game-tour-fab {
    top: 56px;
    right: 10px;
    bottom: auto;
  }
}
body.dh-tour-open .dh-game-tour-fab {
  display: none !important;
}

