/* ==========================================================================
   U.M.A. TURF UI — единая дизайн-система UmaCity
   Аутентичный игровой/спортивный стиль Umamusume: газон, трофейное золото,
   морковные акценты и стеклянные поверхности с читаемостью поверх кастомного фона.
   Подключается последним, после app.css и fixes.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ТОКЕНЫ
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Поверхности */
  --bg-base: #0b1114;
  --bg-surface: rgba(20, 29, 35, 0.88);
  --bg-surface-solid: #141d23;
  --bg-elevated: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-subtle: #263545;

  /* Фирменные акценты */
  --uma-turf: #10b981;
  --uma-turf-dark: #059669;
  --uma-turf-deep: #047857;
  --uma-turf-soft: rgba(16, 185, 129, 0.14);
  --uma-gold: #f59e0b;
  --uma-gold-dark: #b45309;
  --uma-gold-soft: rgba(245, 158, 11, 0.14);
  --uma-carrot: #ff6b4a;
  --uma-carrot-soft: rgba(255, 107, 74, 0.14);
  --uma-silver: #94a3b8;
  --uma-bronze: #d97706;

  /* Характеристики */
  --stat-speed: #38bdf8;
  --stat-stamina: #fb7185;
  --stat-power: #f97316;
  --stat-guts: #f472b6;
  --stat-wit: #34d399;

  /* Геометрия и тени */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --turf-ring: 0 0 0 3px rgba(16, 185, 129, 0.22);
  --shadow-card: 0 14px 34px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --shadow-card-hover: 0 22px 46px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(16, 185, 129, 0.28);
  --shadow-panel: 0 26px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Совместимость с существующей системой переменных */
  --bg-color: var(--bg-base);
  --text-muted: var(--text-secondary);
  --card-bg: var(--bg-surface);
  --card-border: var(--border-subtle);
  --card-hover-border: rgba(16, 185, 129, 0.45);
  --muted-bg: rgba(30, 41, 59, 0.55);
  --panel-bg: var(--bg-surface);
  --panel-border: var(--border-subtle);
  --input-bg: #121a20;
  --input-border: #2b3b4a;
  --accent: var(--uma-turf);
  --accent-hover: #34d399;
  --accent-gold: var(--uma-gold);
  --accent-gold-light: #fbbf24;
  --accent-emerald: var(--uma-turf);
  --card-shadow: var(--shadow-card);
  --panel-shadow: var(--shadow-panel);

  --turf-header-bg: linear-gradient(180deg, rgba(11, 17, 20, 0.95), rgba(11, 17, 20, 0.84));
  --turf-dock-bg: linear-gradient(180deg, rgba(13, 20, 24, 0.94), rgba(9, 14, 17, 0.98));
  --turf-overlay: rgba(11, 17, 20, var(--overlay-alpha, 0.94));
  --turf-stripe: rgba(16, 185, 129, 0.028);
}

html[data-theme="light"] {
  color-scheme: light;

  --bg-base: #f4f7f5;
  --bg-surface: rgba(255, 255, 255, 0.92);
  --bg-surface-solid: #ffffff;
  --bg-elevated: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --border-subtle: #e2e8f0;

  --uma-turf-soft: rgba(16, 185, 129, 0.1);
  --uma-gold-soft: rgba(245, 158, 11, 0.12);
  --uma-carrot-soft: rgba(255, 107, 74, 0.1);

  --shadow-card: 0 12px 30px -22px rgba(15, 23, 42, 0.28), inset 0 1px 0 #ffffff;
  --shadow-card-hover: 0 20px 42px -24px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.35);
  --shadow-panel: 0 22px 50px -28px rgba(15, 23, 42, 0.24), inset 0 1px 0 #ffffff;

  --bg-color: var(--bg-base);
  --text-muted: var(--text-secondary);
  --card-bg: var(--bg-surface);
  --card-border: var(--border-subtle);
  --card-hover-border: rgba(5, 150, 105, 0.4);
  --muted-bg: rgba(241, 245, 249, 0.85);
  --panel-bg: var(--bg-surface);
  --panel-border: var(--border-subtle);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --accent: var(--uma-turf-dark);
  --accent-hover: #047857;

  --turf-header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 245, 0.9));
  --turf-dock-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 247, 245, 0.99));
  --turf-overlay: rgba(244, 247, 245, var(--overlay-alpha, 0.94));
  --turf-stripe: rgba(5, 150, 105, 0.035);
}

/* --------------------------------------------------------------------------
   2. БАЗА
   -------------------------------------------------------------------------- */
html,
body {
  background-color: var(--bg-base);
}

body {
  font-feature-settings: "ss01" 1, "cv11" 1;
}

.overlay-container {
  background-color: var(--turf-overlay) !important;
  background-image:
    radial-gradient(ellipse at 8% -6%, rgba(16, 185, 129, 0.14), transparent 46%),
    radial-gradient(ellipse at 96% 4%, rgba(245, 158, 11, 0.07), transparent 42%),
    radial-gradient(ellipse at 50% 108%, rgba(5, 150, 105, 0.09), transparent 52%),
    repeating-linear-gradient(90deg, var(--turf-stripe) 0 2px, transparent 2px 96px) !important;
  background-attachment: fixed;
}

html[data-theme="light"] .overlay-container {
  background-image:
    radial-gradient(ellipse at 8% -6%, rgba(16, 185, 129, 0.1), transparent 46%),
    radial-gradient(ellipse at 96% 4%, rgba(245, 158, 11, 0.08), transparent 42%),
    radial-gradient(ellipse at 50% 108%, rgba(16, 185, 129, 0.06), transparent 52%),
    repeating-linear-gradient(90deg, var(--turf-stripe) 0 2px, transparent 2px 96px) !important;
}

/* Числа — строго табличные */
.leaderboard-stat-num,
.leaderboard-rank-score,
.career-stat-value,
.career-max-score,
.stat-col-val,
.stat-hero-val,
.stat-vet-num,
.stat-winrate-pct,
.umayuru-progress-numbers,
.umayuru-progress-percent,
.chapter-views-pill,
.comic-views-badge,
.year-chip-num,
.year-chip-meta,
.pp-plan-number-input,
.tabular-nums,
[data-tabular],
.font-mono,
time,
kbd {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   3. ПОВЕРХНОСТИ И КАРТОЧКИ
   -------------------------------------------------------------------------- */
.theme-card,
.theme-panel,
.uma-card,
.settings-group-card,
.sync-status-card,
.home-nav-card,
.site-card,
.meta-card-row,
.chapter-compact-row,
.artday-compact-row,
.support-card-card,
.article-promo-card,
.home-planner-promo,
.leaderboard-row,
.recommend-panel,
.trainer-hero-card,
.horse-hall-card,
.profile-roster-card {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

.theme-card,
.theme-panel,
.uma-card {
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.theme-panel {
  box-shadow: var(--shadow-panel);
}

/* Лёгкая верхняя изумрудная кромка у крупных панелей */
.tab-intro-panel,
.home-hero {
  border: 1.5px solid var(--border-subtle) !important;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(16, 185, 129, 0.16), transparent 52%),
    radial-gradient(ellipse at 0% 100%, rgba(245, 158, 11, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 58%) !important;
}

.tab-intro-panel::before {
  background: linear-gradient(90deg, var(--uma-turf), var(--uma-gold)) !important;
  height: 3px !important;
}

.site-card,
.meta-card-row,
.chapter-compact-row,
.artday-compact-row,
.support-card-card,
.article-promo-card,
.home-nav-card,
.leaderboard-row,
.horse-hall-card,
.profile-roster-card {
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}

.site-card:hover,
.meta-card-row:hover,
.chapter-compact-row:hover,
.artday-compact-row:hover,
.support-card-card:hover,
.article-promo-card:hover,
.home-nav-card:hover,
.home-nav-card:focus-visible,
.horse-hall-card:hover,
.profile-roster-card:hover,
.leaderboard-row:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

html[data-theme="light"] .site-card,
html[data-theme="light"] .meta-card-row,
html[data-theme="light"] .chapter-compact-row,
html[data-theme="light"] .artday-compact-row,
html[data-theme="light"] .support-card-card,
html[data-theme="light"] .article-promo-card,
html[data-theme="light"] .leaderboard-row {
  background: var(--bg-surface) !important;
}

/* --------------------------------------------------------------------------
   4. КНОПКИ (игровая тактильная грань)
   -------------------------------------------------------------------------- */
.compact-read-btn,
.pagination-btn-primary,
.hero-btn-primary,
.home-planner-promo-button,
.back-to-home-btn.uma-cta {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border: 1px solid var(--uma-turf-dark) !important;
  border-bottom: 4px solid var(--uma-turf-dark) !important;
  color: #ffffff !important;
  border-radius: var(--radius-md) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px -14px rgba(5, 150, 105, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: transform 0.12s ease, border-bottom-width 0.12s ease, filter 0.2s ease !important;
}

.compact-read-btn:hover,
.pagination-btn-primary:hover,
.hero-btn-primary:hover,
.home-planner-promo-button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.compact-read-btn:active,
.pagination-btn-primary:active,
.hero-btn-primary:active,
.home-planner-promo-button:active {
  border-bottom-width: 0 !important;
  transform: translateY(3px);
  box-shadow: 0 2px 8px -6px rgba(5, 150, 105, 0.8) !important;
}

/* Золотая кнопка поддержки */
.header-donate-btn,
.uma-btn--gold,
.home-planner-promo-button--gold {
  background: linear-gradient(180deg, #fbbf24, var(--uma-gold)) !important;
  border: 1px solid var(--uma-gold-dark) !important;
  border-bottom: 4px solid var(--uma-gold-dark) !important;
  color: #201305 !important;
  border-radius: var(--radius-md) !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px -14px rgba(180, 83, 9, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.header-donate-btn:active {
  border-bottom-width: 0 !important;
  transform: translateY(2px);
}

/* Вторичные кнопки / ghost */
.pagination-btn-secondary,
.reader-next-ch-btn--secondary,
.recommend-ghost-btn,
.uma-btn--ghost {
  background: var(--bg-elevated) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700;
}

.pagination-btn-secondary:hover,
.reader-next-ch-btn--secondary:hover,
.recommend-ghost-btn:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--uma-turf) !important;
}

/* Универсальные классы для новых элементов */
.uma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.2s ease, border-color 0.2s ease;
}
.uma-btn--primary {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf));
  border: 1px solid var(--uma-turf-dark);
  border-bottom: 4px solid var(--uma-turf-dark);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(5, 150, 105, 0.75);
}
.uma-btn--primary:active { border-bottom-width: 0; transform: translateY(3px); }
.uma-btn--gold {
  background: linear-gradient(180deg, #fbbf24, var(--uma-gold));
  border: 1px solid var(--uma-gold-dark);
  border-bottom: 4px solid var(--uma-gold-dark);
  color: #201305;
}
.uma-btn--gold:active { border-bottom-width: 0; transform: translateY(3px); }
.uma-btn--ghost {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   5. БЕЙДЖИ И ЧИПСЫ
   -------------------------------------------------------------------------- */
.site-badge,
.changelog-badge,
.settings-row-badge,
.comic-character-badge,
.comic-views-badge,
.chapter-new-badge,
.chapter-views-pill,
.related-badge-count,
.filter-pill-count,
.pp-scenario-count,
.year-chip,
.skill-chip,
.uma-badge {
  border-radius: 999px !important;
  padding: 2px 9px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: 1.45;
  border: 1px solid var(--border-subtle);
  background: var(--muted-bg);
  color: var(--text-secondary);
}

.site-badge,
.uma-badge--turf {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
  color: #34d399 !important;
}

.uma-badge--gold,
.badge-cat-guide {
  background: var(--uma-gold-soft) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
  color: var(--uma-gold) !important;
}

.uma-badge--carrot,
.chapter-new-badge {
  background: var(--uma-carrot-soft) !important;
  border-color: rgba(255, 107, 74, 0.36) !important;
  color: #ff8a70 !important;
}

.comic-character-badge {
  background: var(--uma-gold-soft) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  color: #fbbf24 !important;
  border-radius: 10px !important;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700 !important;
}

.comic-views-badge {
  background: var(--muted-bg) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-subtle) !important;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stat-badge-ssr {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(251, 191, 36, 0.12)) !important;
  border-color: rgba(245, 158, 11, 0.55) !important;
  color: #fbbf24 !important;
}
.stat-badge-sr {
  background: rgba(167, 139, 250, 0.16) !important;
  border-color: rgba(167, 139, 250, 0.42) !important;
  color: #c4b5fd !important;
}
.stat-badge-r {
  background: rgba(148, 163, 184, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #cbd5e1 !important;
}

/* Цвета статов */
.type-speed { border-left-color: var(--stat-speed) !important; }
.type-stamina { border-left-color: var(--stat-stamina) !important; }
.type-power { border-left-color: var(--stat-power) !important; }
.type-guts { border-left-color: var(--stat-guts) !important; }
.type-wit { border-left-color: var(--stat-wit) !important; }

.stat-btn-speed { --type-filter-rgb: 56, 189, 248; }
.stat-btn-stamina { --type-filter-rgb: 251, 113, 133; }
.stat-btn-power { --type-filter-rgb: 249, 115, 22; }
.stat-btn-guts { --type-filter-rgb: 244, 114, 182; }
.stat-btn-wit { --type-filter-rgb: 52, 211, 153; }

.stat-col-speed .stat-col-hdr { color: var(--stat-speed) !important; }
.stat-col-stamina .stat-col-hdr { color: var(--stat-stamina) !important; }
.stat-col-power .stat-col-hdr { color: var(--stat-power) !important; }
.stat-col-guts .stat-col-hdr { color: var(--stat-guts) !important; }
.stat-col-wit .stat-col-hdr { color: var(--stat-wit) !important; }

/* --------------------------------------------------------------------------
   6. ВЕРХНИЙ ХЕДЕР
   -------------------------------------------------------------------------- */
.sticky-header {
  background: var(--turf-header-bg) !important;
  border-bottom: 1.5px solid var(--border-subtle) !important;
  box-shadow: 0 12px 34px -24px rgba(0, 0, 0, 0.9) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
}

.sticky-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(16, 185, 129, 0.55) 22%,
    rgba(16, 185, 129, 0.85) 50%,
    rgba(245, 158, 11, 0.6) 78%,
    transparent 100%);
  pointer-events: none;
  opacity: 0.75;
}

.sticky-header-inner {
  max-width: 72rem !important;
  gap: 10px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  margin-right: 2px;
}

.header-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: var(--uma-turf-dark);
  overflow: hidden;
  box-shadow: 0 6px 16px -10px rgba(16, 185, 129, 0.9);
}

.header-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-brand-mark .icon {
  width: 18px;
  height: 18px;
}

.header-brand-text {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.header-brand:hover .header-brand-mark {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .header-brand-text { display: inline; font-size: 12.5px; }
  .header-brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .sticky-header-inner {
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .sticky-header-inner > div:first-of-type {
    margin-left: 0 !important;
  }
  .sticky-header-inner > div:last-child {
    margin-left: 0 !important;
  }
  .header-brand { gap: 6px; }
}

@media (max-width: 380px) {
  .header-brand-text { display: none; }
}

.header-quick-search-btn {
  background: var(--muted-bg) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-md) !important;
}

.header-quick-search-btn:hover {
  border-color: rgba(16, 185, 129, 0.48) !important;
  background: var(--uma-turf-soft) !important;
  color: var(--text-primary) !important;
}

.header-quick-search-btn .icon { color: var(--uma-turf) !important; }

.header-notif-btn,
.header-tg-login-btn,
.header-trainer-search-btn {
  background: var(--muted-bg) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
}

.header-notif-btn:hover,
.header-tg-login-btn:hover,
.header-trainer-search-btn:hover {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--uma-turf) !important;
}

.header-notif-btn.has-unread {
  border-color: rgba(255, 107, 74, 0.55) !important;
  color: var(--uma-carrot) !important;
}

.notif-badge {
  background: var(--uma-carrot) !important;
  border-color: var(--bg-base) !important;
  font-variant-numeric: tabular-nums;
}

.header-notif-btn[title="Игровой клуб UmaCity"] {
  background: var(--uma-gold-soft) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: var(--uma-gold) !important;
}

/* --------------------------------------------------------------------------
   7. НИЖНИЙ ТАБ-БАР
   -------------------------------------------------------------------------- */
.bottom-nav-bar {
  background: var(--turf-dock-bg) !important;
  border-top: 1.5px solid var(--border-subtle) !important;
  box-shadow: 0 -14px 40px -24px rgba(0, 0, 0, 0.9) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.bottom-nav-inner,
.bottom-nav-inner--v11 {
  max-width: 680px !important;
}

.bottom-nav-btn {
  position: relative;
  color: var(--text-secondary) !important;
}

.bottom-nav-icon-wrap {
  border-radius: 9999px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.bottom-nav-btn.active {
  color: var(--uma-turf) !important;
}

.bottom-nav-btn.active .bottom-nav-icon-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.bottom-nav-btn.active .bottom-nav-icon {
  transform: translateY(-1px) scale(1.14);
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.55));
}

.bottom-nav-btn.active .bottom-nav-label {
  color: var(--uma-turf) !important;
  font-weight: 800 !important;
}

.bottom-nav-btn.active::before {
  display: none !important;
}

@media (min-width: 768px) {
  .bottom-nav-bar {
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    width: min(680px, calc(100vw - 48px)) !important;
    transform: translateX(-50%) !important;
    border: 1.5px solid var(--border-subtle) !important;
    border-radius: var(--radius-xl) !important;
    padding-bottom: 0 !important;
    overflow: hidden;
  }
}

#app {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  #app { padding-bottom: 104px; }
}

/* --------------------------------------------------------------------------
   8. ГЛАВНАЯ: HUB-КАРТОЧКИ
   -------------------------------------------------------------------------- */
.home-hero {
  border-radius: var(--radius-2xl) !important;
  background-image:
    radial-gradient(ellipse at 92% 0%, rgba(16, 185, 129, 0.2), transparent 52%),
    radial-gradient(ellipse at 4% 100%, rgba(245, 158, 11, 0.1), transparent 46%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.04), transparent 60%) !important;
  box-shadow: var(--shadow-panel) !important;
}

.home-mascot-glow {
  background: radial-gradient(circle,
    rgba(16, 185, 129, 0.3) 0%,
    rgba(245, 158, 11, 0.16) 46%,
    transparent 72%) !important;
}

.home-mascot-fallback {
  color: var(--uma-turf) !important;
}

.home-mascot-fallback-icon {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.12)) !important;
  box-shadow: 0 16px 34px -18px rgba(16, 185, 129, 0.65), inset 0 1px rgba(255, 255, 255, 0.12) !important;
  font-size: 0 !important;
}

.home-mascot-fallback-icon .icon {
  width: 48px;
  height: 48px;
  color: var(--uma-turf);
}

.home-nav-card {
  min-height: 76px;
  border-radius: var(--radius-lg) !important;
  background: var(--bg-surface) !important;
  box-shadow: var(--shadow-card) !important;
}

.home-nav-card::before {
  top: 12px !important;
  bottom: 12px !important;
  width: 3px !important;
  background: linear-gradient(180deg, var(--uma-turf), var(--uma-turf-dark)) !important;
  opacity: 0.55 !important;
}

.home-nav-card:hover::before,
.home-nav-card:focus-visible::before {
  opacity: 1 !important;
}

.home-nav-card:hover,
.home-nav-card:focus-visible {
  background: var(--bg-elevated) !important;
}

.home-nav-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  background: linear-gradient(150deg, var(--uma-turf-soft), rgba(5, 150, 105, 0.06)) !important;
  color: var(--uma-turf) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.home-nav-icon .icon,
.home-nav-icon svg {
  color: var(--uma-turf) !important;
  width: 22px;
  height: 22px;
}

.home-nav-card--club .home-nav-icon {
  border-color: rgba(245, 158, 11, 0.38) !important;
  background: linear-gradient(150deg, var(--uma-gold-soft), rgba(180, 83, 9, 0.06)) !important;
}
.home-nav-card--club .home-nav-icon .icon,
.home-nav-card--club .home-nav-icon svg {
  color: var(--uma-gold) !important;
}
.home-nav-card--club::before {
  background: linear-gradient(180deg, var(--uma-gold), var(--uma-gold-dark)) !important;
}
.home-nav-card--club {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: linear-gradient(150deg, var(--uma-gold-soft), var(--bg-surface) 70%) !important;
}
.home-nav-card--club:hover,
.home-nav-card--club:focus-visible {
  border-color: rgba(245, 158, 11, 0.55) !important;
  background: linear-gradient(150deg, rgba(245, 158, 11, 0.18), var(--bg-elevated) 72%) !important;
}

.home-nav-title {
  color: var(--text-primary) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.home-nav-card--club .home-nav-title {
  color: var(--uma-gold) !important;
}

.home-nav-sub {
  color: var(--text-secondary) !important;
}

.home-nav-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--muted-bg);
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

.home-nav-card:hover .home-nav-arrow {
  background: var(--uma-turf);
  border-color: var(--uma-turf);
  color: #fff !important;
  transform: translateX(2px);
}

.home-nav-card--club:hover .home-nav-arrow {
  background: var(--uma-gold);
  border-color: var(--uma-gold);
  color: #201305 !important;
}

.home-mascot-img[hidden] {
  display: none !important;
}

/* Промо входа через Telegram */
.home-login-promo {
  border: 1.5px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: var(--radius-lg) !important;
  background: linear-gradient(110deg, var(--uma-turf-soft), var(--bg-surface) 62%) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-login-promo-icon {
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  background: var(--uma-turf-soft) !important;
  color: var(--uma-turf) !important;
  border-radius: var(--radius-md) !important;
}

.home-login-promo-icon .icon {
  width: 20px;
  height: 20px;
}

.home-login-promo-title {
  color: var(--text-primary) !important;
  letter-spacing: -0.01em;
}

.home-login-promo-description {
  color: var(--text-secondary) !important;
}

.home-login-promo-button {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border: 1px solid var(--uma-turf-dark) !important;
  border-bottom: 3px solid var(--uma-turf-dark) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  font-weight: 800 !important;
}

.home-login-promo-button:active {
  border-bottom-width: 0 !important;
  transform: translateY(2px);
}

.header-tg-login-btn {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border: 1px solid var(--uma-turf-dark) !important;
  border-bottom: 3px solid var(--uma-turf-dark) !important;
  color: #fff !important;
}

.header-tg-login-btn .icon {
  color: #fff !important;
}

.header-tg-login-btn:active {
  border-bottom-width: 0 !important;
  transform: translateY(2px);
}

html[data-theme="dark"] .header-donate-btn,
html[data-theme="light"] .header-donate-btn {
  color: #201305 !important;
}

@media (min-width: 640px) {
  .header-notif-btn.sm\:hidden {
    display: none !important;
  }
}

/* Промо-баннеры */
.home-planner-promo {
  border-radius: var(--radius-lg) !important;
  border-left: 3px solid var(--uma-gold) !important;
  background-image: linear-gradient(120deg, var(--uma-gold-soft), transparent 55%) !important;
}

.home-planner-promo-icon {
  background: var(--uma-gold-soft) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: var(--uma-gold) !important;
}

.home-planner-promo-kicker {
  color: var(--uma-gold) !important;
}

.home-planner-promo-title {
  color: var(--text-primary) !important;
  letter-spacing: -0.015em;
}

.home-planner-promo-description {
  color: var(--text-secondary) !important;
}

.home-planner-promo-button {
  white-space: nowrap;
}

.article-promo-card {
  border-radius: var(--radius-lg) !important;
}

.article-promo-card:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.article-promo-glow {
  top: -70px !important;
  right: -70px !important;
  width: 280px !important;
  height: 280px !important;
  filter: blur(18px);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 62%) !important;
}

.home-hachimi-icon {
  background: linear-gradient(150deg, var(--uma-gold), var(--uma-gold-dark)) !important;
  color: #201305 !important;
  box-shadow: 0 10px 24px -14px rgba(245, 158, 11, 0.8);
}

.article-promo-btn {
  background: var(--bg-elevated) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.article-promo-btn:hover {
  border-color: rgba(245, 158, 11, 0.55) !important;
  color: var(--uma-gold) !important;
}

/* Фильтры-чипсы каталога */
.uma-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

@media (max-width: 640px) {
  .uma-filter-chip {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12.5px;
  }
}

.uma-filter-chip .icon {
  width: 14px;
  height: 14px;
}

.uma-filter-chip:hover {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.uma-filter-chip.is-active {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf));
  border-color: var(--uma-turf-dark);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(16, 185, 129, 0.8);
}

/* Баннер поддержки в футере */
.turf-support-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(245, 158, 11, 0.16), transparent 55%),
    var(--bg-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.turf-support-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--uma-gold), var(--uma-gold-dark));
}

.turf-support-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: var(--uma-gold-soft);
  color: var(--uma-gold);
}

.turf-support-icon .icon {
  width: 21px;
  height: 21px;
}

.turf-support-copy {
  min-width: 0;
  flex: 1;
}

.turf-support-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--uma-gold);
}

.turf-support-title {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.turf-support-text {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.turf-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.turf-support-actions .icon:last-child {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .turf-support-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .turf-support-actions {
    width: 100%;
  }
  .turf-support-actions .uma-btn {
    flex: 1;
  }
}

/* Переключатель подразделов «Инструменты тренера» */
.tools-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.tools-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tools-tab:hover {
  background: var(--muted-bg);
  color: var(--text-primary);
}

.tools-tab.is-active {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf));
  border-color: var(--uma-turf-dark);
  color: #fff;
  box-shadow: 0 8px 20px -14px rgba(16, 185, 129, 0.9);
}

.tools-tab.is-active-gold {
  background: linear-gradient(180deg, #fbbf24, var(--uma-gold));
  border-color: var(--uma-gold-dark);
  color: #201305;
  font-weight: 900;
  box-shadow: 0 8px 20px -14px rgba(245, 158, 11, 0.9);
}

@media (max-width: 640px) {
  .tools-tab {
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    padding: 8px 4px;
  }
}

.filter-pill-btn {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

.filter-pill-btn:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: var(--text-primary) !important;
}

/* --------------------------------------------------------------------------
   9. КАТАЛОГ ПЕРЕВОДОВ
   -------------------------------------------------------------------------- */
.section-head {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--border-subtle) !important;
  background: var(--bg-surface) !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.section-head:hover {
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.section-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  padding-left: 10px;
  border-left: 3px solid var(--uma-turf);
  line-height: 1.25;
}

.section-icon {
  width: 18px !important;
  height: 18px !important;
  color: var(--uma-turf) !important;
  flex-shrink: 0;
}

.tab-intro-panel h1,
.tab-intro-panel h2 {
  border-left: 3px solid var(--uma-turf);
  padding-left: 12px;
  line-height: 1.2;
}

.section-count {
  background: var(--uma-turf-soft) !important;
  border: 1px solid rgba(16, 185, 129, 0.32) !important;
  color: var(--uma-turf) !important;
  border-radius: 999px !important;
  font-variant-numeric: tabular-nums;
}

.section-chevron { color: var(--uma-turf) !important; }

.comic-row > article {
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg);
  padding: 14px 16px !important;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.comic-row > article:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.comic-row > article img {
  border-radius: var(--radius-md) !important;
}

.comic-row > article .tilt-card {
  width: 84px !important;
  height: 112px !important;
  border-radius: var(--radius-md) !important;
}

.comic-row > article .tilt-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(5, 20, 15, 0.55), transparent);
  pointer-events: none;
}

.comic-row .badge-slanted {
  background: var(--uma-turf) !important;
  color: #fff !important;
  border: 0 !important;
}

.translations-tabs-bar {
  border-color: var(--border-subtle) !important;
  background: var(--bg-surface) !important;
  box-shadow: var(--shadow-card) !important;
}

.trans-tab-btn.active {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -12px rgba(16, 185, 129, 0.7) !important;
}

.filter-pill-btn.is-active-blue,
.filter-pill-btn.is-active {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #fff !important;
}

.filter-pill-btn.is-active-amber {
  background: linear-gradient(180deg, #fbbf24, var(--uma-gold)) !important;
  border-color: var(--uma-gold-dark) !important;
  color: #201305 !important;
}

/* --------------------------------------------------------------------------
   10. ЧИТАЛКА
   -------------------------------------------------------------------------- */
.reader-bar,
.reader-bottom-hud,
.reader-top-btn,
.reader-chapter-select,
.reader-hud-page-select,
.reader-settings-drawer,
.reader-comments-drawer,
.page-comments-bar,
.reader-floating-counter {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
}

.reader-bar {
  border-bottom: 1.5px solid var(--border-subtle) !important;
}

.reader-top-btn {
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
}

.reader-top-btn:hover,
.reader-hud-step-btn:hover,
.reader-zoom-btn:hover {
  border-color: rgba(16, 185, 129, 0.55) !important;
  color: var(--uma-turf) !important;
}

.reader-next-ch-btn--primary,
.reader-next-ch-btn {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border: 1px solid var(--uma-turf-dark) !important;
  border-bottom: 3px solid var(--uma-turf-dark) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
}

.reader-segmented {
  background: var(--muted-bg) !important;
  border: 1px solid var(--border-subtle) !important;
}

.reader-seg-btn.active {
  background: var(--uma-turf) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -10px rgba(16, 185, 129, 0.8) !important;
}

.reader-bg-swatch.is-active {
  border-color: var(--uma-turf) !important;
  box-shadow: var(--turf-ring);
}

.reader-switch-track.is-on {
  background: var(--uma-turf) !important;
}

/* --------------------------------------------------------------------------
   11. МЕТА-КАРТЫ
   -------------------------------------------------------------------------- */
.meta-card-row {
  border-radius: var(--radius-lg) !important;
}

.meta-card-detail-btn,
.card-detail-action-btn {
  background: var(--bg-elevated) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
}

.meta-card-detail-btn:hover,
.card-detail-action-btn:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--uma-turf) !important;
}

.meta-card-ext-btn {
  color: var(--uma-turf) !important;
}

.card-skill-row,
.card-skill-box {
  border-color: var(--border-subtle) !important;
}

.card-note-box {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
}

.support-card-card.ssr {
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18), var(--shadow-card) !important;
}

.support-card-card.sr {
  border-color: rgba(167, 139, 250, 0.4) !important;
}

.support-card-footer {
  background: var(--bg-surface-solid) !important;
}

/* --------------------------------------------------------------------------
   12. АРТ-ДНИ
   -------------------------------------------------------------------------- */
.artday-compact-row {
  border-radius: var(--radius-md) !important;
}

.artday-compact-row:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.artday-date-badge {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
  border-radius: 999px !important;
  font-variant-numeric: tabular-nums;
}

.artday-date-badge.soon,
.artday-date-badge.is-today {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: var(--uma-turf) !important;
}

.artday-date-badge.today,
.artday-compact-row.is-today {
  border-color: rgba(245, 158, 11, 0.55) !important;
  background: linear-gradient(120deg, var(--uma-gold-soft), var(--bg-surface) 60%) !important;
}

/* --------------------------------------------------------------------------
   13. КЛУБ И ЛИДЕРБОРД
   -------------------------------------------------------------------------- */
.leaderboard-table-header {
  background: var(--bg-surface-solid) !important;
  border-bottom: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.leaderboard-row {
  border-radius: var(--radius-md) !important;
}

.leaderboard-row--top1 {
  border-left: 3px solid var(--uma-gold) !important;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.13) 0%, var(--bg-surface) 72%) !important;
}
.leaderboard-row--top2 {
  border-left: 3px solid var(--uma-silver) !important;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0%, var(--bg-surface) 72%) !important;
}
.leaderboard-row--top3 {
  border-left: 3px solid var(--uma-bronze) !important;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.1) 0%, var(--bg-surface) 72%) !important;
}

.leaderboard-pos {
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.leaderboard-crown-badge,
.rank-shimmer-gold {
  color: #201305 !important;
}

.leaderboard-id-pill,
.trainer-id-pill {
  background: var(--muted-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 999px !important;
}

.leaderboard-stat-num,
.leaderboard-rank-score {
  color: var(--uma-turf) !important;
}

/* Клуб: табло и карточки статистики */
.club-tabs-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 560px;
}

.club-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.tools-tab:not(.is-active):not(.is-active-gold) .club-tab-count {
  background: var(--muted-bg);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.club-stat-card {
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.club-stat-card--rank {
  border-color: rgba(245, 158, 11, 0.34) !important;
  background: linear-gradient(150deg, var(--uma-gold-soft), var(--bg-surface) 72%) !important;
}

.club-stat-card--fans,
.club-stat-card--members {
  border-color: rgba(16, 185, 129, 0.32) !important;
  background: linear-gradient(150deg, var(--uma-turf-soft), var(--bg-surface) 72%) !important;
}

.club-stat-card--fans .font-mono,
.club-stat-card--members .font-mono {
  color: var(--uma-turf) !important;
}

.club-stat-card--minimum {
  border-color: var(--border-subtle) !important;
}

.club-find-trainer-btn {
  background: var(--bg-elevated) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
}

.club-find-trainer-btn:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--uma-turf) !important;
}

/* --------------------------------------------------------------------------
   14. UMAYURU / БАЗЫ И ГАЙДЫ
   -------------------------------------------------------------------------- */
.site-card {
  border-radius: var(--radius-lg) !important;
}

.site-card:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.site-card-title {
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.site-domain-pill,
.site-visit-btn {
  border-radius: 999px !important;
}

.site-visit-btn {
  background: var(--uma-turf-soft) !important;
  border: 1px solid rgba(16, 185, 129, 0.34) !important;
  color: var(--uma-turf) !important;
  font-weight: 800 !important;
}

.site-visit-btn:hover {
  background: var(--uma-turf) !important;
  color: #fff !important;
}

/* Переключатель вида «Сетка / Список» */
.sites-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1.5px solid var(--border-subtle);
  background: var(--muted-bg);
}

.sites-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.sites-view-btn:hover { color: var(--text-primary); }

.sites-view-btn.active {
  background: var(--uma-turf);
  color: #fff;
  box-shadow: 0 6px 14px -10px rgba(16, 185, 129, 0.9);
}

/* Единый акцент для служебных подписей внутри панелей */
.theme-panel .text-blue-400,
.theme-panel .text-sky-400,
.theme-panel .text-indigo-400,
.theme-card .text-blue-400,
.theme-card .text-sky-400 {
  color: var(--uma-turf) !important;
}

.site-desc-text {
  color: var(--text-secondary) !important;
}

.episode-player-dialog,
.episode-player-media {
  border-radius: var(--radius-lg) !important;
  border: 1.5px solid var(--border-subtle) !important;
}

.player-source-btn {
  border-radius: 999px !important;
  border: 1px solid var(--border-subtle) !important;
  background: var(--muted-bg) !important;
}

.player-source-btn.is-active {
  background: var(--uma-turf) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #fff !important;
}

.umayuru-progress-track {
  background: var(--muted-bg) !important;
}

.umayuru-progress-icon {
  color: var(--uma-turf) !important;
}

.umayuru-progress-icon .icon {
  width: 16px;
  height: 16px;
}

.episode-play-btn {
  background: var(--uma-turf);
  border: 1px solid var(--uma-turf-dark);
  box-shadow: 0 8px 18px -10px rgba(16, 185, 129, 0.9);
}

.episode-play-btn:hover {
  background: #34d399;
}

.umayuru-progress-bar {
  background: linear-gradient(90deg, var(--uma-turf-dark), var(--uma-turf)) !important;
}

/* --------------------------------------------------------------------------
   15. ШТОРКА НАСТРОЕК
   -------------------------------------------------------------------------- */
.tools-sheet {
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-bottom: none !important;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0 !important;
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.9) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

.tools-sheet-header {
  border-bottom: 1.5px solid var(--border-subtle) !important;
}

.tools-sheet-close {
  background: var(--muted-bg) !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-secondary) !important;
}

.tools-sheet-close:hover {
  color: var(--uma-carrot) !important;
  border-color: rgba(255, 107, 74, 0.45) !important;
}

.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.settings-tab-btn:hover { color: var(--text-primary); background: var(--muted-bg); }
.settings-tab-btn.is-active {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf));
  border-color: var(--uma-turf-dark);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(16, 185, 129, 0.8);
}
.settings-tab-btn.is-active-gold {
  background: linear-gradient(180deg, #fbbf24, var(--uma-gold));
  border-color: var(--uma-gold-dark);
  color: #201305;
  font-weight: 900;
  box-shadow: 0 8px 18px -12px rgba(245, 158, 11, 0.8);
}

.settings-section-wrap {
  margin-bottom: 16px;
}

.settings-general-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-general-body > .settings-section-wrap:nth-child(1) { order: 2; }
.settings-general-body > .settings-section-wrap:nth-child(2) { order: 1; }
.settings-general-body > .settings-section-wrap:nth-child(3) { order: 3; }
.settings-general-body > .settings-admin-block { order: 4; }

.settings-admin-block {
  margin-top: -8px;
}

.settings-section-title {
  position: relative;
  padding-left: 14px !important;
  margin-bottom: 8px !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.09em !important;
}

.settings-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--uma-turf), var(--uma-gold));
}

.settings-section-title .icon {
  width: 14px;
  height: 14px;
  color: var(--uma-turf);
}

.settings-group-card {
  border-radius: var(--radius-lg) !important;
  border: 1.5px solid var(--border-subtle) !important;
  overflow: hidden;
  background: var(--bg-surface) !important;
}

.settings-group-card > * + * {
  border-top: 1px solid var(--border-subtle) !important;
}

.settings-row-item {
  color: var(--text-primary) !important;
  text-align: left !important;
}

.settings-row-left {
  text-align: left !important;
}

.settings-row-label {
  text-align: left !important;
  align-items: flex-start !important;
}

.settings-row-label > * {
  text-align: left !important;
}

.settings-row-item:hover {
  background: var(--uma-turf-soft) !important;
}

.settings-row-sub {
  color: var(--text-secondary) !important;
  text-align: left !important;
}

.settings-row-icon {
  background: var(--uma-turf-soft) !important;
  color: var(--uma-turf) !important;
  border: 1px solid rgba(16, 185, 129, 0.24) !important;
  border-radius: var(--radius-sm) !important;
}

.settings-row-badge {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
  color: var(--uma-turf) !important;
  text-transform: none;
  letter-spacing: 0;
}

.settings-row-arrow {
  color: var(--text-secondary) !important;
}

.settings-row-item:hover .settings-row-arrow {
  color: var(--uma-turf) !important;
}

.sync-status-card {
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  padding: 12px !important;
}

.sync-badge--active {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
}

.sync-dot,
.sync-dot--sky {
  background: var(--uma-turf) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16) !important;
}

.tools-item-btn {
  border-radius: var(--radius-md) !important;
}

.tools-item-btn.from-purple-800,
.tools-item-btn {
  background: linear-gradient(135deg, #6d28d9, #4338ca) !important;
}

.tools-auth-btn {
  background: var(--muted-bg) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
}

.tools-auth-btn:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
}

/* --------------------------------------------------------------------------
   16. ПРОЧЕЕ: модалки, тултипы, прогресс, таблицы
   -------------------------------------------------------------------------- */
.notif-popover,
.tg-profile-popover,
.recommend-backdrop-wrap > div,
.changelog-release-card,
.changelog-ver-tag,
.related-comics-dropdown,
.reply-popup-card,
.tag-tooltip-box,
.trainer-modal-dialog {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.changelog-release-card {
  border-radius: var(--radius-lg) !important;
}

.changelog-node-dot {
  background: var(--uma-turf) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18) !important;
}

.changelog-ver-tag.major,
.changelog-version-pill {
  background: var(--uma-gold-soft) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: var(--uma-gold) !important;
}

.changelog-latest-pill,
.changelog-new-dot {
  background: var(--uma-turf) !important;
  color: #fff !important;
}

.read-progress {
  background: linear-gradient(90deg, var(--uma-turf-dark), var(--uma-turf), var(--uma-gold)) !important;
}

.pagination-counter,
.filter-pill-count,
.reader-zoom-val {
  font-variant-numeric: tabular-nums;
}

.toast-item {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--border-subtle) !important;
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* --------------------------------------------------------------------------
   16. СТРАНИЦА ПРОФИЛЯ ТРЕНЕРА (profile.html)
   -------------------------------------------------------------------------- */
html body .profile-nav-header {
  background: var(--turf-header-bg) !important;
  border-bottom: 1.5px solid var(--border-subtle) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

html body .profile-header-action--search {
  --profile-action-bg: var(--uma-turf-soft);
  --profile-action-border: rgba(16, 185, 129, 0.38);
  --profile-action-color: #34d399;
  --profile-action-hover-bg: rgba(16, 185, 129, 0.24);
  --profile-action-hover-border: rgba(16, 185, 129, 0.65);
  --profile-action-hover-color: #ecfdf5;
  --profile-action-shadow: rgba(16, 185, 129, 0.2);
}

html body .profile-header-action--leaderboard {
  --profile-action-bg: var(--uma-gold-soft);
  --profile-action-border: rgba(245, 158, 11, 0.38);
  --profile-action-color: #fbbf24;
  --profile-action-hover-bg: rgba(245, 158, 11, 0.24);
  --profile-action-hover-border: rgba(245, 158, 11, 0.65);
  --profile-action-hover-color: #fef3c7;
  --profile-action-shadow: rgba(245, 158, 11, 0.2);
}

html body .profile-header-action--theme {
  --profile-action-bg: var(--muted-bg);
  --profile-action-border: var(--border-subtle);
  --profile-action-color: var(--text-secondary);
  --profile-action-hover-bg: var(--uma-turf-soft);
  --profile-action-hover-border: rgba(16, 185, 129, 0.5);
  --profile-action-hover-color: var(--uma-turf);
  --profile-action-shadow: rgba(16, 185, 129, 0.14);
}

html body .profile-header-action--home {
  --profile-action-bg: var(--muted-bg);
  --profile-action-border: var(--border-subtle);
  --profile-action-color: var(--text-primary);
  --profile-action-hover-bg: var(--uma-turf-soft);
  --profile-action-hover-border: rgba(16, 185, 129, 0.5);
  --profile-action-hover-color: var(--uma-turf);
  --profile-action-shadow: rgba(16, 185, 129, 0.14);
}

html body .profile-header-action--me {
  --profile-action-bg: var(--uma-turf-soft);
  --profile-action-border: rgba(16, 185, 129, 0.4);
  --profile-action-color: #34d399;
  --profile-action-hover-bg: rgba(16, 185, 129, 0.24);
  --profile-action-hover-border: rgba(16, 185, 129, 0.7);
  --profile-action-hover-color: #ecfdf5;
  --profile-action-shadow: rgba(16, 185, 129, 0.2);
}

.profile-empty-card {
  background: var(--bg-surface) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.34) !important;
  border-radius: var(--radius-xl) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-panel);
}

.profile-empty-icon {
  color: var(--uma-gold) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: var(--uma-gold-soft) !important;
}

.profile-empty-icon .icon {
  width: 32px;
  height: 32px;
}

.profile-search-input {
  background: var(--input-bg) !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

.profile-search-input:focus {
  border-color: var(--uma-turf) !important;
  box-shadow: var(--turf-ring);
}

.profile-search-btn {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border: 1px solid var(--uma-turf-dark) !important;
  border-bottom: 3px solid var(--uma-turf-dark) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
}

.profile-search-btn:active {
  border-bottom-width: 0 !important;
  transform: translateY(2px);
}

/* --------------------------------------------------------------------------
   17. СВЕТЛАЯ ТЕМА: читаемость утилитарных цветов Tailwind
   -------------------------------------------------------------------------- */
html[data-theme="light"] .overlay-container .text-white:not([class*="bg-"]),
html[data-theme="light"] .overlay-container .text-slate-100:not([class*="bg-"]),
html[data-theme="light"] .overlay-container .text-slate-200:not([class*="bg-"]),
html[data-theme="light"] .overlay-container .text-slate-300:not([class*="bg-"]) {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .overlay-container .text-slate-400,
html[data-theme="light"] .overlay-container .text-slate-500 {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .bg-white\/5,
html[data-theme="light"] .bg-white\/10,
html[data-theme="light"] .bg-slate-900\/90,
html[data-theme="light"] .bg-slate-900\/60 {
  background-color: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/5 {
  border-color: var(--border-subtle) !important;
}

/* --------------------------------------------------------------------------
   19. НОРМАЛИЗАЦИЯ СТАРОЙ ПАЛИТРЫ (Tailwind blue/indigo/purple/slate)
   Покрывает турниры, планировщик, статьи и телепортированные модальные окна.
   -------------------------------------------------------------------------- */

/* Акцентный текст */
.text-blue-300,
.text-blue-400,
.text-blue-500,
.text-indigo-200,
.text-indigo-300,
.text-indigo-400,
.text-sky-300,
.text-sky-400,
.text-cyan-300,
.text-cyan-400 {
  color: var(--uma-turf) !important;
}

.text-purple-300,
.text-purple-400,
.text-violet-300,
.text-violet-400,
.text-fuchsia-300,
.text-fuchsia-400 {
  color: var(--uma-gold) !important;
}

/* Нейтральный текст: одинаково читаем в обеих темах */
.text-slate-100,
.text-slate-200 {
  color: var(--text-primary) !important;
}

.text-slate-300 {
  color: #cbd5e1 !important;
}

.text-slate-400,
.text-slate-500 {
  color: var(--text-secondary) !important;
}

/* Сплошные акцентные фоны */
.bg-blue-500,
.bg-blue-600,
.bg-indigo-400,
.bg-indigo-500,
.bg-indigo-600,
.bg-sky-500,
.bg-sky-600,
.bg-cyan-500,
.bg-cyan-600 {
  background-color: var(--uma-turf) !important;
}

.bg-purple-500,
.bg-purple-600,
.bg-violet-500,
.bg-violet-600,
.bg-fuchsia-500,
.bg-fuchsia-600 {
  background-color: var(--uma-gold) !important;
}

/* Полупрозрачные акцентные фоны */
.bg-blue-500\/10,
.bg-blue-500\/15,
.bg-blue-500\/20,
.bg-blue-500\/25,
.bg-blue-500\/30,
.bg-blue-600\/20,
.bg-indigo-500\/10,
.bg-indigo-500\/15,
.bg-indigo-500\/20,
.bg-indigo-500\/25,
.bg-indigo-500\/30,
.bg-sky-500\/10,
.bg-sky-500\/15,
.bg-sky-500\/20,
.bg-sky-500\/25,
.bg-cyan-500\/10,
.bg-cyan-500\/15,
.bg-cyan-500\/20 {
  background-color: var(--uma-turf-soft) !important;
}

.bg-purple-500\/10,
.bg-purple-500\/15,
.bg-purple-500\/20,
.bg-purple-500\/25,
.bg-purple-500\/30,
.bg-violet-500\/10,
.bg-violet-500\/15,
.bg-violet-500\/20,
.bg-fuchsia-500\/10,
.bg-fuchsia-500\/15,
.bg-fuchsia-500\/20 {
  background-color: var(--uma-gold-soft) !important;
}

/* Нейтральные поверхности старых карточек и модалок */
.bg-slate-950,
.bg-slate-950\/30,
.bg-slate-950\/40,
.bg-slate-950\/50,
.bg-slate-950\/60,
.bg-slate-950\/70,
.bg-slate-950\/80,
.bg-slate-950\/90 {
  background-color: var(--input-bg) !important;
}

.bg-slate-900,
.bg-slate-900\/50,
.bg-slate-900\/60,
.bg-slate-900\/70,
.bg-slate-900\/80,
.bg-slate-900\/85,
.bg-slate-900\/90,
.bg-slate-900\/95 {
  background-color: var(--bg-surface-solid) !important;
}

.bg-slate-800,
.bg-slate-800\/60,
.bg-slate-800\/70,
.bg-slate-800\/80,
.bg-slate-800\/90,
.bg-slate-700,
.bg-slate-700\/50,
.bg-slate-600 {
  background-color: var(--muted-bg) !important;
}

/* Градиентные кнопки/активные табы старой палитры */
.from-blue-500,
.from-blue-600,
.from-indigo-500,
.from-indigo-600,
.from-sky-500,
.from-violet-500,
.from-violet-600,
.from-purple-500,
.from-purple-600 {
  background-image: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  color: #fff !important;
}

/* Рамки */
.border-blue-500\/30,
.border-blue-500\/40,
.border-blue-400\/30,
.border-blue-400\/40,
.border-indigo-500\/30,
.border-indigo-400\/30,
.border-indigo-400\/40,
.border-sky-500\/30,
.border-sky-400\/40 {
  border-color: rgba(16, 185, 129, 0.42) !important;
}

.border-purple-500\/30,
.border-purple-500\/40,
.border-violet-500\/30,
.border-violet-500\/40,
.border-fuchsia-500\/30,
.border-fuchsia-500\/40 {
  border-color: rgba(245, 158, 11, 0.42) !important;
}

/* Кольца фокуса и декоративные ring-обводки */
[class*="ring-blue-"],
[class*="ring-indigo-"],
[class*="ring-sky-"],
[class*="ring-cyan-"] {
  --tw-ring-color: rgba(16, 185, 129, 0.5) !important;
}

[class*="ring-purple-"],
[class*="ring-violet-"],
[class*="ring-fuchsia-"] {
  --tw-ring-color: rgba(245, 158, 11, 0.5) !important;
}

/* Тени старого акцента */
[class*="shadow-blue-"],
[class*="shadow-indigo-"] {
  --tw-shadow-color: rgba(16, 185, 129, 0.28) !important;
}

/* Градиентные подложки турниров */
.pvp-page [class*="via-purple-"] {
  --tw-gradient-via: rgba(16, 185, 129, 0.1) !important;
}

.pvp-page .bg-purple-500\/20 {
  background-color: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: var(--uma-turf) !important;
}

/* Инпуты и селекты старой палитры */
input.bg-slate-950\/80,
input.bg-slate-900\/80,
input.bg-slate-900\/90,
select.bg-slate-900\/80,
textarea.bg-slate-900\/80 {
  background-color: var(--input-bg) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Категорийные бейджи сайтов */
.site-badge.badge-cat-guide,
.site-badge.badge-cat-calc {
  background: var(--uma-gold-soft) !important;
  color: var(--uma-gold) !important;
  border-color: rgba(245, 158, 11, 0.38) !important;
}

.site-badge.badge-cat-database,
.site-badge.badge-cat-settings {
  background: var(--uma-turf-soft) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
}

.site-badge.badge-cat-media {
  background: var(--uma-carrot-soft) !important;
  color: #ff8a70 !important;
  border-color: rgba(255, 107, 74, 0.38) !important;
}

/* --------------------------------------------------------------------------
   19.1 Точечные перекраски старых фирменных элементов
   -------------------------------------------------------------------------- */
.article-promo-btn {
  box-shadow: 0 8px 20px -14px rgba(16, 185, 129, 0.45) !important;
}

.changelog-hero,
html[data-theme="light"] .changelog-hero {
  background: radial-gradient(circle at top right,
    rgba(245, 158, 11, 0.16),
    rgba(16, 185, 129, 0.12) 55%,
    transparent 100%) !important;
}

.changelog-badge.badge-improved {
  background: var(--uma-turf-soft) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.changelog-badge.badge-new {
  background: var(--uma-turf-soft) !important;
  color: var(--uma-turf) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.changelog-badge.badge-fixed {
  background: var(--uma-gold-soft) !important;
  color: var(--uma-gold) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.scroll-top-btn {
  background: linear-gradient(150deg, #12c48b, var(--uma-turf-dark)) !important;
  border: 1px solid var(--uma-turf-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 26px -12px rgba(16, 185, 129, 0.6) !important;
}

.scroll-top-btn:hover {
  box-shadow: 0 14px 30px -12px rgba(16, 185, 129, 0.7) !important;
}

/* --------------------------------------------------------------------------
   19.2 Кастомные классы fixes.css со старой палитрой
   -------------------------------------------------------------------------- */
.theme-input:focus,
.comic-filter-input:focus {
  border-color: var(--uma-turf) !important;
  box-shadow: var(--turf-ring) !important;
}

.meta-card-detail-btn,
.meta-card-ext-btn,
.meta-card-detail-date,
.translation-author {
  color: var(--text-secondary) !important;
  border-color: var(--border-subtle) !important;
}

.meta-card-ext-btn:hover,
.translation-author:hover {
  color: var(--uma-turf) !important;
}

.card-skill-box,
.card-note-box {
  border-color: var(--border-subtle) !important;
}

.card-note-text .card-desc-h1,
.card-skill-text .card-desc-h1 {
  color: var(--uma-gold) !important;
}

.episode-comments-login,
.episode-comments-login:hover {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: var(--uma-turf) !important;
}

.view-toggle-btn:hover,
.sites-view-btn:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.share-link-btn,
.share-link-btn:hover {
  color: var(--uma-turf) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.year-chip:hover,
.year-chip.active {
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--uma-turf) !important;
  background: var(--uma-turf-soft) !important;
}

.timeline-year-badge,
.timeline-period-badge {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: var(--uma-turf) !important;
}

.timeline-year-divider-text,
.timeline-year-divider-line {
  color: var(--uma-turf) !important;
  background: rgba(16, 185, 129, 0.35) !important;
}

.uma-timeline-dot.dot-speed {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2) !important;
}

.authors-stat-icon,
.author-monogram {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
  color: var(--uma-turf) !important;
}

.author-card:hover,
.author-card.is-open,
.author-card-head:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.author-chevron.rotate-180 {
  color: var(--uma-turf) !important;
}

.related-comics-trigger,
.related-badge-count {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
  color: var(--uma-turf) !important;
}

.related-comics-trigger:hover {
  border-color: rgba(16, 185, 129, 0.55) !important;
}

.related-dropdown-item:hover {
  background: var(--uma-turf-soft) !important;
}

.related-item-section,
.related-item-arrow {
  color: var(--uma-turf) !important;
}

.related-dropdown-item:hover .related-order-badge {
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: var(--uma-turf) !important;
}

.comic-target-highlight {
  box-shadow: 0 0 0 2px var(--uma-turf), 0 0 24px -6px rgba(16, 185, 129, 0.5) !important;
}

/* Читалка */
.reader-cta,
.reader-top-btn.is-active,
.reader-opt-btn.active,
.reader-preset-chip.active,
.reader-bg-swatch.active {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--uma-turf) !important;
}

.reader-top-btn--comments:hover,
.reader-top-btn--comments.is-active,
.reader-hud-step-btn:hover:not(:disabled),
.reader-hud-page-select:hover,
.reader-chapter-select:hover,
.reader-zoom-btn-pill:hover,
.reader-opt-btn:hover,
.reader-preset-chip:hover,
.reader-nav-ch-btn:hover:not(:disabled) {
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--uma-turf) !important;
}

.reader-switch-track.is-checked {
  background: var(--uma-turf) !important;
}

.reader-next-ch-btn--primary {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #fff !important;
}

/* Комментарии, ответы, уведомления */
.comment-username-link,
.comment-tg-login-banner,
.reply-comment-btn,
.reply-comment-btn:hover,
.reply-target-banner,
.comment-item.is-reply::before,
.comment-reply-badge,
.reply-popup-tag,
.reply-popup-chapter,
.notif-header-icon,
.notif-mark-read-btn,
.notif-card-chapter-pill,
.notif-card-action-hint {
  color: var(--uma-turf) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.reply-target-banner,
.comment-item.is-reply,
.reply-popup-card,
.notif-card-item.is-unread {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
}

.notif-header-icon,
.notif-card-avatar-fallback,
.notif-card-subicon,
.comment-avatar-fallback,
.reply-popup-dot {
  background: var(--uma-turf-soft) !important;
  color: var(--uma-turf) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.notif-popover,
.reply-popup-card {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.notif-card-item:hover {
  background: var(--muted-bg) !important;
}

.tg-profile-action-btn,
.tg-profile-action-btn:hover {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Клуб */
.club-page .club-member-segment-btn.is-active {
  background: var(--uma-turf) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #fff !important;
}

.club-page .club-roster-tag {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: var(--uma-turf) !important;
}

.club-page .club-member-gain-total {
  color: var(--uma-turf) !important;
}

.club-page .club-roster-glyph,
.club-page .club-member-avatar {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* UmaYuru */
#app .umayuru-progress-widget {
  border: 1.5px solid rgba(16, 185, 129, 0.3) !important;
  background: var(--uma-turf-soft) !important;
}

/* Планировщик и календарь карт */
.pp-banner-title,
.pp-catalog-banner-title {
  color: var(--text-primary) !important;
}

.pp-scenario-header {
  background: var(--bg-surface-solid) !important;
  border-color: var(--border-subtle) !important;
}

.pp-scenario-header:hover {
  background: var(--bg-elevated) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.pp-scenario-icon {
  background: var(--uma-turf-soft) !important;
  color: var(--uma-turf) !important;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pp-scenario-count {
  background: var(--muted-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

.leaderboard-rank-pill {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
}

.ext-link-btn {
  background: var(--uma-gold-soft) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: var(--uma-gold) !important;
}

.ext-link-btn:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fbbf24 !important;
}

.admin-pill-btn.admin-pill-blue,
.admin-pill-btn.admin-pill-blue:hover {
  background: var(--uma-turf) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #fff !important;
}

/* Баннер рекомендации на главной */
.recommend-panel::before {
  background: linear-gradient(90deg, var(--uma-turf), var(--uma-gold)) !important;
}

.recommend-cover:not(:disabled):hover {
  border-color: var(--uma-turf) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45) !important;
}

.recommend-cover-ph,
.recommend-read-btn {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: var(--uma-turf) !important;
}

.recommend-pick-row:hover {
  background: var(--uma-turf-soft) !important;
}

/* Арт-дни: сохраняем отдельный раздел, но в палитре U.M.A. Turf UI */
.artdays-page .text-pink-400,
.artdays-page .text-pink-300,
.artdays-page .text-rose-400,
.artdays-page .text-fuchsia-400 {
  color: var(--uma-gold) !important;
}

.artdays-page .bg-pink-500,
.artdays-page .bg-pink-600,
.artdays-page .bg-rose-500,
.artdays-page .bg-fuchsia-500 {
  background-color: var(--uma-gold) !important;
  color: #201305 !important;
}

.artdays-page .bg-pink-500\/15,
.artdays-page .bg-pink-500\/20,
.artdays-page .bg-pink-600\/20 {
  background-color: var(--uma-gold-soft) !important;
}

.artdays-page .border-pink-500\/40,
.artdays-page .border-pink-500\/30,
.artdays-page .border-rose-500\/40 {
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Баннерные изображения — без теней и свечения */
.pp-banner-thumb,
.meta-card-left img,
.support-card-card img,
.support-card-media img,
.card-detail-imgbox img {
  box-shadow: none !important;
  -webkit-filter: none !important;
  filter: none !important;
}

/* Профиль: акцентные элементы в цветах основной системы */
.hero-accent-bar {
  background: linear-gradient(90deg, var(--uma-turf), var(--uma-gold)) !important;
}

.profile-hero-avatar-frame {
  background: linear-gradient(135deg, var(--uma-gold), var(--uma-turf)) !important;
}

/* Профиль: рекорд, ID и Telegram */
.hero-max-rank-pill {
  background: var(--bg-surface) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.hero-rank-tag {
  background: var(--muted-bg) !important;
  color: var(--text-secondary) !important;
}

.trainer-id-pill {
  background: var(--bg-surface) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: var(--uma-turf) !important;
}

.trainer-id-pill:hover {
  background: var(--uma-turf-soft) !important;
  border-color: var(--uma-turf) !important;
  color: var(--uma-turf) !important;
}

.trainer-id-pill [class*="bg-sky"] {
  background: var(--uma-turf-soft) !important;
  color: var(--uma-turf) !important;
}

.hero-tg-badge {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
  color: var(--uma-turf) !important;
}

.trainer-hero-card::after {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%) !important;
}

/* Ключевые стат-плитки профиля */
.stat-hero-box {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
}

.stat-hero-box:hover {
  background: var(--bg-elevated) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.stat-hero-box .text-pink-400 {
  color: var(--uma-turf) !important;
}

.stat-vet-num,
.stat-vet-badge,
.stat-vet-star {
  color: var(--uma-turf) !important;
}

.stat-badge-sr {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: var(--uma-turf) !important;
}

.stat-winrate-num,
.stat-winrate-pct {
  color: var(--uma-turf) !important;
}

/* Поповер Telegram-профиля */
.tg-profile-popover {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  box-shadow: var(--shadow-panel) !important;
}

.tg-profile-stat {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
}

.tg-profile-stat:hover {
  background: var(--bg-elevated) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.tg-profile-stat-value {
  color: var(--uma-turf) !important;
}

.tg-profile-action-btn:not([style]) {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
  color: var(--uma-turf) !important;
  box-shadow: none !important;
}

.tg-profile-action-btn:not([style]):hover {
  background: var(--uma-turf) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #ffffff !important;
}

.tg-profile-action-btn--danger {
  background: var(--uma-carrot-soft) !important;
  border-color: rgba(255, 107, 74, 0.38) !important;
  color: #ff8a70 !important;
}

.tg-profile-action-btn--danger:hover {
  background: var(--uma-carrot) !important;
  border-color: var(--uma-carrot) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .recommend-inner {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px 12px !important;
    align-items: start !important;
    padding: 16px !important;
  }

  .recommend-cover {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 104px !important;
    align-self: start;
  }

  .recommend-body {
    display: contents !important;
  }

  .recommend-kicker-row {
    grid-column: 2;
    grid-row: 1;
  }

  .recommend-title-row {
    grid-column: 2;
    grid-row: 2;
    align-items: flex-start;
  }

  .recommend-title {
    font-size: 1.15rem;
    -webkit-line-clamp: 4;
  }

  .recommend-meta {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  .recommend-note {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .recommend-actions {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

.leaderboard-player-line1 {
  flex-wrap: wrap;
  gap: 2px 6px;
}

.leaderboard-player-name {
  max-width: none !important;
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}

.leaderboard-handle {
  color: var(--uma-turf) !important;
  flex: 0 0 100%;
  order: 3;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .leaderboard-handle {
    font-size: 0.78rem;
  }
}

.leaderboard-crown-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  line-height: 1;
}

.leaderboard-crown-badge .icon {
  width: 11px;
  height: 11px;
  color: #fbbf24;
}

/* --------------------------------------------------------------------------
   20. СТАТЬИ И ОГЛАВЛЕНИЕ
   -------------------------------------------------------------------------- */.article-page .theme-card,
.article-page article {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
}

.article-h1 {
  color: var(--uma-turf) !important;
  letter-spacing: -0.02em;
}

.article-h2 {
  color: var(--uma-gold) !important;
  letter-spacing: -0.015em;
}

.article-h3 {
  color: #fbbf24 !important;
}

.article-toc {
  background: var(--bg-surface-solid) !important;
  border: 1.5px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-card) !important;
}

.article-toc > div:first-child {
  border-color: var(--border-subtle) !important;
}

.article-toc > div:first-child span:first-child {
  color: var(--text-primary) !important;
}

.article-toc a {
  color: var(--text-secondary);
}

.article-toc a:hover {
  color: var(--uma-turf) !important;
}

.article-toc .text-blue-300,
.article-toc .text-blue-400 {
  color: var(--uma-turf) !important;
}

.article-num-li > span:first-child,
.article-bullet-li > span:first-child {
  color: var(--uma-turf) !important;
}

.article-img-wrap {
  background: var(--bg-surface-solid) !important;
  border-color: var(--border-subtle) !important;
}

.article-inline-code {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
}

.article-code-window {
  border-color: var(--border-subtle) !important;
  background: var(--bg-surface-solid) !important;
}

.article-code-header {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
}

.article-code-copy-btn {
  background: var(--bg-elevated) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

.article-code-copy-btn:hover {
  color: var(--uma-turf) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.article-btn-wrap .article-promo-btn {
  border-bottom: 3px solid var(--uma-turf-dark) !important;
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   21. ПЛАНИРОВЩИК: переключатели и акцентные бейджи
   -------------------------------------------------------------------------- */
[role="switch"].bg-blue-600 {
  background-color: var(--uma-turf) !important;
}

[role="switch"].bg-slate-700 {
  background-color: var(--muted-bg) !important;
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   22. СВЕТЛАЯ ТЕМА: нейтральные утилиты вне .overlay-container (модалки)
   -------------------------------------------------------------------------- */
html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-slate-500 {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .theme-panel .text-white:not([class*="bg-"]),
html[data-theme="light"] .theme-card .text-white:not([class*="bg-"]) {
  color: var(--text-primary) !important;
}

/* Семантические цвета в светлой теме: контрастнее */
html[data-theme="light"] .text-emerald-300,
html[data-theme="light"] .text-emerald-400,
html[data-theme="light"] .text-green-300,
html[data-theme="light"] .text-green-400,
html[data-theme="light"] .text-teal-300,
html[data-theme="light"] .text-teal-400 {
  color: #047857 !important;
}

html[data-theme="light"] .text-red-300,
html[data-theme="light"] .text-red-400 {
  color: #b91c1c !important;
}

html[data-theme="light"] .text-amber-200,
html[data-theme="light"] .text-amber-300 {
  color: #b45309 !important;
}

html[data-theme="light"] .text-sky-300,
html[data-theme="light"] .text-sky-400 {
  color: #047857 !important;
}

html[data-theme="light"] .bg-red-950\/40,
html[data-theme="light"] .bg-red-950\/50,
html[data-theme="light"] .bg-red-950\/60,
html[data-theme="light"] .bg-red-900\/50 {
  background-color: rgba(220, 38, 38, 0.08) !important;
}

html[data-theme="light"] .border-red-500\/30,
html[data-theme="light"] .border-red-500\/40 {
  border-color: rgba(220, 38, 38, 0.28) !important;
}

:focus-visible {
  outline: 2px solid var(--uma-turf);
  outline-offset: 2px;
}

::selection {
  background: rgba(16, 185, 129, 0.28);
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  .home-nav-card,
  .comic-row > article,
  .site-card,
  .meta-card-row,
  .chapter-compact-row,
  .artday-compact-row,
  .leaderboard-row {
    transition: none !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   23. ПРАВКИ ПО РЕВЬЮ: рекомендация, лидерборд, сайты, профиль, карточки, план
   -------------------------------------------------------------------------- */

/* --- Блок рекомендации --- */
.recommend-panel::before {
  left: 16px !important;
  right: 16px !important;
  top: 0 !important;
  height: 3px !important;
  border-radius: 0 0 999px 999px !important;
  background: linear-gradient(90deg, var(--uma-turf), var(--uma-gold)) !important;
  opacity: 0.9 !important;
}

.recommend-backdrop-wrap {
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.13), transparent 72%) !important;
}

.recommend-panel::after {
  background: linear-gradient(90deg,
    rgba(11, 17, 20, 0.2) 0%,
    rgba(11, 17, 20, 0.76) 45%,
    rgba(11, 17, 20, 0.94) 100%) !important;
}

html[data-theme="light"] .recommend-panel::after {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.82) 45%,
    rgba(255, 255, 255, 0.95) 100%) !important;
}

.recommend-kicker.is-manual {
  color: var(--uma-gold) !important;
  background: var(--uma-gold-soft) !important;
  border-color: rgba(245, 158, 11, 0.38) !important;
}

.recommend-kicker.is-daily {
  color: var(--uma-turf) !important;
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.36) !important;
}

.recommend-cover-new {
  color: var(--uma-turf) !important;
  background: rgba(2, 44, 34, 0.85) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

/* --- Бейджи и места в лидерборде --- */
.badge-slanted {
  border-radius: 999px !important;
  padding: 2px 9px !important;
  border: 1px solid transparent;
  font-weight: 800;
}

.badge-slanted.rank-shimmer-gold {
  background: linear-gradient(90deg, #f59e0b 0%, #fef08a 50%, #f59e0b 100%) !important;
  color: #201305 !important;
  border-color: rgba(245, 158, 11, 0.55) !important;
  background-size: 200% auto;
}

.rank-shimmer-gold {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%) !important;
  color: #201305 !important;
  border: 1px solid rgba(245, 158, 11, 0.55) !important;
  background-size: 200% auto;
}

.rank-shimmer-gold .icon {
  color: #201305 !important;
}

.badge-slanted.rank-shimmer-silver {
  background: linear-gradient(90deg, #94a3b8 0%, #ffffff 50%, #94a3b8 100%) !important;
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
  background-size: 200% auto;
}

.badge-slanted.rank-shimmer-bronze {
  background: linear-gradient(90deg, #d97706 0%, #fdba74 50%, #d97706 100%) !important;
  color: #201305 !important;
  border-color: rgba(217, 119, 6, 0.55) !important;
  background-size: 200% auto;
}

/* --- Сайты: описания и галерея --- */
.site-desc-text .site-desc-h1 {
  color: var(--uma-turf) !important;
}

.site-desc-text .site-desc-h2 {
  color: var(--uma-gold) !important;
}

.site-desc-text .site-desc-h3 {
  color: #fbbf24 !important;
}

.site-desc-text strong {
  color: var(--text-primary) !important;
}

.site-desc-expand-btn {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
  color: var(--uma-turf) !important;
}

.site-desc-expand-btn:hover {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: var(--uma-turf) !important;
}

.site-gallery-info {
  background: var(--bg-surface-solid) !important;
  border-color: var(--border-subtle) !important;
  box-shadow: var(--shadow-panel) !important;
}

.site-gallery-info .site-desc-text {
  color: var(--text-secondary) !important;
}

/* --- Профиль: вкладки и фильтры в цветах основной системы --- */
html body .profile-tab-btn.active,
html body .profile-subfilter-btn.active,
html body .honor-filter-chip.active {
  background: linear-gradient(180deg, #12c48b, var(--uma-turf)) !important;
  border-color: var(--uma-turf-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px -8px rgba(16, 185, 129, 0.7) !important;
}

html body .profile-tab-btn:hover,
html body .profile-subfilter-btn:hover {
  background: var(--uma-turf-soft) !important;
  color: var(--text-primary) !important;
}

html body .profile-tabs-grid {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  box-shadow: var(--shadow-card) !important;
}

html body .honor-badge-pill.is-active {
  outline: 2px solid var(--uma-turf) !important;
}

/* --- Карточки ветеранов и раскрытые детали (Aptitudes, Skills, Stats) --- */
html body .veteran-item {
  border-color: var(--border-subtle, #263545) !important;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(16, 185, 129, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(20, 29, 35, 0.98), rgba(11, 17, 20, 0.96)) !important;
  box-shadow: 0 12px 26px -20px rgba(0, 0, 0, 0.9), inset 0 1px rgba(255, 255, 255, 0.045) !important;
}

html body .veteran-item:hover {
  border-color: rgba(16, 185, 129, 0.38) !important;
}

html body .veteran-quick-stats {
  border-color: var(--border-subtle, rgba(38, 53, 69, 0.65)) !important;
  background: rgba(11, 17, 20, 0.75) !important;
}

html body .veteran-item .border-t {
  background: rgba(11, 17, 20, 0.96) !important;
  border-top-color: var(--border-subtle, rgba(38, 53, 69, 0.65)) !important;
}

html body .aptitudes-panel {
  background: rgba(20, 29, 35, 0.88) !important;
  border: 1px solid var(--border-subtle, rgba(38, 53, 69, 0.65)) !important;
}

html body .skill-chip {
  background: rgba(20, 29, 35, 0.9) !important;
  border: 1px solid var(--border-subtle, rgba(38, 53, 69, 0.75)) !important;
  color: #f1f5f9 !important;
}

html body .skill-chip:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px) !important;
}

html body .skill-chip-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(20, 29, 35, 0.95)) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fef08a !important;
}

html body .skill-chip-unique {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.16), rgba(20, 29, 35, 0.95)) !important;
  border-color: rgba(244, 114, 182, 0.45) !important;
  color: #fbcfe8 !important;
}

html body .skills-toggle-btn {
  color: #34d399 !important;
}

html body .skills-toggle-btn:hover {
  color: #6ee7b7 !important;
}

/* --- Детальное окно карты --- */
.card-skills-list .card-skill-row {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
}

.card-skill-row:hover {
  background: var(--bg-elevated) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.card-note-box {
  background: var(--muted-bg) !important;
  border-color: var(--border-subtle) !important;
  border-left: 3px solid var(--uma-turf) !important;
}

.card-note-header {
  color: var(--uma-turf) !important;
}

.card-detail-action-btn--art {
  background: var(--uma-turf-soft) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: var(--uma-turf) !important;
}

/* --- Планировщик: заголовок баннера и порядок в карточке плана --- */
.pp-banner-title {
  background: var(--uma-turf-soft) !important;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.22) !important;
  color: var(--text-primary) !important;
}

.pp-plan-desktop-header-info,
.pp-plan-desktop-header-title,
.pp-plan-desktop-header-date {
  text-align: left !important;
  justify-content: flex-start !important;
}

.pp-plan-desktop-start {
  justify-content: flex-start !important;
  text-align: left !important;
}

.pp-plan-desktop-between {
  justify-content: flex-start !important;
  text-align: left !important;
}

.pp-plan-resources-label {
  align-self: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pp-plan-control-grid {
  gap: 10px !important;
}

@media (min-width: 1024px) {
  .pp-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.pp-plan-desktop-header .pp-banner-thumb {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

@media (max-width: 639px) {
  .pp-plan-desktop-header {
    align-items: flex-start !important;
  }
  .pp-banner-title {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .pp-plan-badge-strip {
    background: transparent !important;
    padding: 2px 0 !important;
  }
  .pp-plan-desktop-header .sm\:hidden {
    align-items: flex-start !important;
    width: 100% !important;
  }
  .pp-plan-desktop-header .sm\:hidden .justify-center {
    justify-content: flex-start !important;
    width: 100%;
  }
}
.pp-income-nowrap {
  white-space: nowrap !important;
}

/* ==========================================================================
   IMPECCABLE TURF UI SYSTEM ENHANCEMENTS
   ========================================================================== */

/* 1. Подиум Лидерборда: высококонтрастные спортивные венки и чипсы */
.rank-shimmer-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fde047 50%, #d97706 100%) !important;
  color: #0b1114 !important;
  font-weight: 900 !important;
  border: 1px solid rgba(254, 240, 138, 0.7) !important;
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.45) !important;
}
.rank-shimmer-gold *,
.rank-shimmer-gold .icon {
  color: #0b1114 !important;
  font-weight: 900 !important;
}

.rank-shimmer-silver {
  background: linear-gradient(135deg, #94a3b8 0%, #f1f5f9 50%, #64748b 100%) !important;
  color: #0b1114 !important;
  font-weight: 900 !important;
  border: 1px solid rgba(241, 245, 249, 0.75) !important;
  box-shadow: 0 4px 14px -2px rgba(148, 163, 184, 0.4) !important;
}
.rank-shimmer-silver *,
.rank-shimmer-silver .icon {
  color: #0b1114 !important;
  font-weight: 900 !important;
}

.rank-shimmer-bronze {
  background: linear-gradient(135deg, #b45309 0%, #fbbf24 50%, #92400e 100%) !important;
  color: #1a0f05 !important;
  font-weight: 900 !important;
  border: 1px solid rgba(251, 191, 36, 0.65) !important;
  box-shadow: 0 4px 14px -2px rgba(217, 119, 6, 0.4) !important;
}
.rank-shimmer-bronze *,
.rank-shimmer-bronze .icon {
  color: #1a0f05 !important;
  font-weight: 900 !important;
}

/* 2. Сегментированные pill-переключатели сортировки лидерборда */
.leaderboard-th-cell--sortable {
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.leaderboard-th-cell--sortable:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}
.leaderboard-th-cell--sortable.is-active {
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #fef08a !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2) !important;
}

/* 3. Планировщик круток: тактильный прогресс-бар и бейджи */
.pp-plan-progress-wrap {
  background: rgba(11, 17, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
}
.pp-plan-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.pp-plan-status-pill.is-covered {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  box-shadow: 0 2px 12px -2px rgba(16, 185, 129, 0.25);
}
.pp-plan-status-pill.is-deficit {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  box-shadow: 0 2px 12px -2px rgba(239, 68, 68, 0.25);
}

/* 4. Зал Славы и карточки ветеранов: турнирная эстетика */
.horse-hall-card {
  background: rgba(20, 29, 35, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.horse-hall-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(16, 185, 129, 0.25) !important;
}
.stat-col-box {
  border-radius: 10px !important;
  background: rgba(11, 17, 20, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 4px 2px !important;
  transition: background 0.15s ease;
}
.stat-col-box:hover {
  background: rgba(11, 17, 20, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* 5. Читалка глав: парящий бар и плавный авто-скрытие */
.reader-bar {
  background: rgba(11, 17, 20, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
}
.reader-floating-counter {
  border-radius: 9999px !important;
  background: rgba(11, 17, 20, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* 6. Карточки манги: cover-first доминанта и легкий подъем */
.tilt-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.7) !important;
}
.comic-row:hover .tilt-card {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(16, 185, 129, 0.35) !important;
}

/* ==========================================================================
   IMPECCABLE FIX: READER NO-DOUBLE-SCROLLBAR & ELEGANT TOP BAR
   ========================================================================== */
html.reader-active,
html.reader-active body {
  overflow: hidden !important;
  height: 100% !important;
}
.reader-modal {
  position: fixed !important;
  inset: 0 !important;
  overflow-y: scroll !important;
  scrollbar-gutter: stable !important;
}
.reader-bar {
  background: rgba(11, 17, 20, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8) !important;
  padding: 8px 14px !important;
}
.reader-top-btn {
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  transition: all 0.15s ease !important;
}
.reader-top-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
.reader-top-btn--close {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
}
.reader-top-btn--close:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #ffffff !important;
}
.reader-chapter-select {
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(20, 29, 35, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 0 10px !important;
}
.reader-chapter-select:focus {
  border-color: var(--uma-turf) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}
.reader-nav-ch-btn {
  width: 32px !important;
  height: 34px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  transition: all 0.15s ease !important;
}
.reader-nav-ch-btn:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: var(--uma-turf) !important;
}

/* ==========================================================================
   PLANNER CARD VISUAL CALM & DE-CLUTTER (POINT 6)
   ========================================================================== */
.pp-plan-badge-strip {
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}
.pp-plan-resources-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
}
.pp-plan-control-grid select {
  padding-left: 6px !important;
  padding-right: 22px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}


@media (max-width: 768px) {
  .sticky-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--turf-header-bg) !important;
  }
}
