/* features_guide.css — гайд «Фишки платформы».
   Bottom-sheet в стиле .skill-tree-sheet (те же токены темы). */

.features-guide-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9000;
  display: none;
  align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}
.features-guide-overlay.visible { display: flex; opacity: 1; visibility: visible; }

.features-guide-sheet {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  max-height: 85vh; width: 100%; max-width: 560px;
  display: flex; flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.25s var(--ease);
}
.features-guide-overlay.visible .features-guide-sheet { transform: translateY(0); }

.features-guide-header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.features-guide-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.features-guide-close {
  width: 40px; height: 40px; border: none; background: transparent;
  font-size: 1.5rem; color: var(--text-secondary); cursor: pointer;
  border-radius: var(--radius-sm); line-height: 1; padding: 0;
}
.features-guide-close:hover { background: var(--bg); color: var(--text); }

.features-guide-body {
  overflow-y: auto;
  padding: 8px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.fg-empty { color: var(--text-secondary); text-align: center; padding: 24px 0; }

.fg-group { margin-top: 16px; }
.fg-group-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-secondary);
  margin: 0 0 8px;
}

.fg-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.fg-item:last-child { border-bottom: none; }
.fg-emoji { font-size: 1.35rem; line-height: 1.4; flex-shrink: 0; width: 1.6em; text-align: center; }
.fg-body { flex: 1; min-width: 0; }
.fg-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.fg-lock { font-size: 0.85em; }
.fg-desc { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.45; margin-top: 2px; }
.fg-locked { opacity: 0.65; }

.fg-show {
  margin-top: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--accent); font-size: 0.8125rem; font-weight: 600;
  padding: 5px 12px; border-radius: var(--radius-sm); cursor: pointer;
}
.fg-show:hover { background: var(--bg); }
.fg-tag {
  display: inline-block; margin-top: 8px;
  font-size: 0.75rem; color: var(--text-secondary);
  background: var(--bg); border-radius: var(--radius-sm); padding: 3px 8px;
}

/* Вспышка подсветки блока после «Показать» (класс ставит cabinet.js). */
.cab-reveal-flash {
  animation: cabRevealFlash 1.8s var(--ease);
  border-radius: var(--radius);
}
@keyframes cabRevealFlash {
  0%   { box-shadow: 0 0 0 0 rgba(190, 24, 93, 0); }
  15%  { box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(190, 24, 93, 0); }
}

/* Прячем мобильный таб-бар, пока открыт гайд (как для skill-tree/onboarding). */
body.cab-tabbar-on:has(.features-guide-overlay.visible) #cabTabBar { display: none; }
