/* ============================================================================
   ============================================================================
   AltWorld — ОБЩИЙ ФАЙЛ СТИЛЕЙ
   ============================================================================
   Этот файл подключается ко ВСЕМ страницам:
     • index.html   — главная
     • readme.html  — правила
     • wiki.html    — вики
     • donate.html  — донат

   Структура файла:
     01. ПЕРЕМЕННЫЕ (цвета, тени, отступы) — меняй тут, применится везде
     02. СБРОС и БАЗА (body, шрифты, скролл)
     03. ОБЩЕЕ (шапка, футер, контейнеры, кнопки, карточки)
     04. КНОПКА ТЕМЫ (переключатель светлая/тёмная)
     05. ГЛАВНАЯ (.home-*)
     06. ПРАВИЛА (.rules-*)
     07. ВИКИ (.wiki-*)
     08. ДОНАТ (.donate-*)
     09. ТЁМНАЯ ТЕМА — переопределения
     10. АДАПТИВ — медиа-запросы
   ============================================================================
   ============================================================================ */


/* ============================================================================
   01. ПЕРЕМЕННЫЕ
   ============================================================================
   Меняй значения тут — применится на всех страницах сайта.

   Пример: поменяешь --accent на #ff0000 — все кнопки, ссылки и плашки станут
   красными автоматически.
   ============================================================================ */

:root {
  /* --- Основные цвета --- */
  --bg:              #e6f7ff;   /* фон всего сайта (голубой) */
  --bg-header:       rgba(255, 255, 255, 0.7); /* фон шапки (полупрозрачный) */
  --bg-card:         #ffffff;   /* фон карточек и блоков */
  --bg-card-soft:    #f8fafc;   /* фон "мягких" блоков внутри карточек */

  /* --- Акценты --- */
  --accent:          #2563eb;   /* главный акцент (синий) */
  --accent-hover:    #1d4ed8;   /* акцент при наведении */
  --accent-2:        #16a34a;   /* второй акцент (зелёный — для цен, галочек) */
  --accent-soft:     #eff6ff;   /* мягкий фон акцента (плашки, hover) */
  --accent-soft-2:   #dbeafe;   /* чуть более насыщенный фон акцента */
  --accent-gradient: linear-gradient(90deg, #FF3789, #FFAF7B);; /* градиент для заголовков */

  /* --- Текст --- */
  --text:            #333333;   /* основной текст */
  --text-strong:     #111827;   /* жирные заголовки */
  --text-muted:      #6b7280;   /* приглушённый (подписи, описания) */
  --text-soft:       #9ca3af;   /* очень мягкий (копирайт) */

  /* --- Границы --- */
  --border:          #e2e8f0;   /* обычная граница */
  --border-soft:     #eff6ff;   /* мягкая граница */
  --border-header:   #cfe9f5;   /* граница шапки и футера */

  /* --- Тени --- */
  --shadow-card:     0 5px 15px rgba(0, 0, 0, 0.06);
  --shadow-hover:    0 12px 28px rgba(37, 99, 235, 0.15);
  --shadow-accent:   0 8px 20px rgba(37, 99, 235, 0.35);

  /* --- Скругления --- */
  --radius:          12px;      /* стандартное скругление карточек */
  --radius-lg:       18px;      /* крупное (модалки) */
  --radius-sm:       8px;       /* мелкое (кнопки, бейджи) */
  --radius-pill:     100px;     /* пилюля */

  /* --- Размеры --- */
  --container:       1300px;    /* ширина основного контейнера */
  --header-height:   70px;      /* высота шапки */

  /* --- Переходы --- */
  --transition:      0.25s ease; /* стандартный переход */
  --transition-fast: 0.15s ease; /* быстрый переход */

  /* --- Цвета для плашек (теги новостей, бейджи) --- */
  --tag-blue-bg:     #eff6ff;   --tag-blue-text:  #2563eb;
  --tag-green-bg:    #dcfce7;   --tag-green-text: #16a34a;
  --tag-yellow-bg:   #fef3c7;   --tag-yellow-text:#d97706;
  --tag-orange-bg:   #fed7aa;   --tag-orange-text:#c2410c;

  /* --- Цвета подсветки --- */
  --highlight-bg:    linear-gradient(90deg, #fef3c7, #fef9e7); /* жёлтая плашка (Верстак крафтит) */
  --highlight-border:#d97706;
}


/* ============================================================================
   02. СБРОС и БАЗА
   ============================================================================ */

/* Сброс стандартных отступов браузера */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Базовые стили для всей страницы */
body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Плавная прокрутка при клике на якоря */
html {
  scroll-behavior: smooth;
}

/* Ссылки по умолчанию без подчёркивания */
a {
  text-decoration: none;
}

/* Картинки — не выходят за пределы родителя */
img {
  max-width: 100%;
  height: auto;
}


/* ============================================================================
   03. ОБЩЕЕ — используется на ВСЕХ страницах
   ============================================================================
   Шапка, навигация, логотип, футер, кнопки, карточки, соцсети.
   ============================================================================ */

/* --- ШАПКА --- */
header {
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-header);
}

/* Навигация внутри шапки: лого слева, меню справа */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

/* --- ЛОГОТИП --- */
.logo {
  font-size: 24px;
  font-weight: bold;
  color: black;
  transform: translateY(-500%);            /* стартовая позиция — улетел вверх */
  animation: slideDown 1.5s forwards;      /* анимация выпадения */
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Анимация выпадения логотипа сверху */
@keyframes slideDown {
  to { transform: translateY(0); }
}

/* --- ССЫЛКИ В МЕНЮ --- */
nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav a {
  color: black;
  font-weight: bold;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a:hover { color: var(--accent); }
nav a.active { color: var(--accent); }

/* --- ОСНОВНОЙ КОНТЕЙНЕР --- */
.commands-container {
  max-width: var(--container);
  margin: 30px auto;
  padding: 0 24px;
}

/* --- ЗАГОЛОВКИ СЕКЦИЙ (с синей полоской слева) --- */
.section-h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.section-h2::before {
  content: '';
  width: 5px;
  height: 24px;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
}

/* --- ФУТЕР --- */
.footer {
  max-width: var(--container);
  margin: 60px auto 0;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border-header);
}

.footer .copy {
  color: var(--text-soft);
  font-size: 13px;
}


/* ============================================================================
   04. КНОПКА ТЕМЫ
   ============================================================================
   Кнопка ☀/🌙 в шапке. Работает через theme.js, состояние хранится в localStorage.
   ============================================================================ */

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-family: inherit;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}


/* ============================================================================
   05. ГЛАВНАЯ СТРАНИЦА (.home-*)
   ============================================================================
   Hero, IP-бокс, инфо-панель, новости, тир-лист, карточки ресурсов и соцсетей.
   ============================================================================ */

/* --- HERO (большая карточка с приветствием) --- */
.home-hero-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 50px 40px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

/* Декоративные круги (пятна) внутри hero */
.home-hero-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,56,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero-card::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22,163,74,0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Бейдж над заголовком ("Minecraft Server • Сезон 1") */
.home-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.home-hero-card h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

/* Градиентный текст на "AltWorld" */
.home-hero-card h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-card p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* --- IP-БОКС (показывает IP сервера с кнопкой копирования) --- */
.home-ip-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.home-ip-box:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.home-ip-box .ip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-align: left;
}

.home-ip-box .ip-value {
  font-family: 'Consolas', monospace;
  font-weight: 700;
  color: #000;
  font-size: 20px;
}

.home-ip-box button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.home-ip-box button:hover { background: var(--accent-hover); }
.home-ip-box button:active { transform: scale(0.96); }
.home-ip-box button.copied { background: var(--accent-2); }

/* --- ИНФО-ПАНЕЛЬ (Версия / Ядро / Тип / Лицензия) --- */
.home-server-info {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.home-server-info .info-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid var(--border-soft);
}

.home-server-info .info-item:last-child { border-right: none; }

.home-server-info .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.home-server-info .info-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
}

/* --- НОВОСТИ (карточки) --- */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}

.home-news-card {
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Цветные теги (Обновление / Ивент / Новость) */
.home-news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--tag-blue-bg);
  color: var(--tag-blue-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-news-tag.update { background: var(--tag-green-bg);  color: var(--tag-green-text); }
.home-news-tag.event  { background: var(--tag-yellow-bg); color: var(--tag-yellow-text); }

.home-news-date {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.home-news-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--text-strong);
  letter-spacing: -0.3px;
}

.home-news-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* --- СЕТКА КАРТОЧЕК-ССЫЛОК (тир-лист, ресурсы, соцсети) --- */
.home-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.home-service {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.home-service:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.home-service h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.home-service li {
  list-style: none;
  text-align: center;
}

.home-service a {
  display: block;
}

.home-service img {
  max-width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.home-service:hover img {
  transform: scale(1.06);
}


/* ============================================================================
   06. ПРАВИЛА (.rules-*)
   ============================================================================
   Sidebar с главами, hero, карточки глав, бейджи номеров, выделенные правила.
   ============================================================================ */

/* Раскладка: sidebar слева, контент справа */
.rules-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: var(--container);
  margin: 30px auto;
  padding: 0 24px;
  align-items: flex-start;
}

/* --- SIDEBAR (список глав, липнет при скролле) --- */
.rules-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.rules-sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* Поиск по главам */
.rules-search {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg-card-soft);
  color: var(--text);
}

.rules-search:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
}

/* Список ссылок */
.rules-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-sidebar li { margin-bottom: 4px; }

.rules-sidebar a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  border-radius: 6px;
  font-size: 14px;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.rules-sidebar a:hover {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent);
}

.rules-sidebar a.active {
  background: var(--accent-soft-2);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: bold;
}

/* --- HERO страницы правил --- */
.rules-hero {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rules-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rules-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.rules-hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules-hero .motto {
  color: var(--text-muted);
  font-size: 16px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* --- КАРТОЧКА ГЛАВЫ (сворачиваемая) --- */
.rules-chapter {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  scroll-margin-top: 100px; /* отступ при переходе по якорю */
  transition: box-shadow var(--transition);
}

.rules-chapter:hover {
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

/* Шапка главы — кликабельная */
.rules-chapter-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-soft);
  cursor: pointer;
  user-select: none;
}

.rules-chapter-head h2 {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.3px;
  text-align: left;
}

/* Номер главы (0-7) — квадратик с градиентом */
.rules-chapter-head .chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Стрелка сворачивания */
.rules-chapter-head .chapter-toggle {
  font-size: 14px;
  color: var(--accent);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
  flex-shrink: 0;
  font-weight: bold;
}

/* Свёрнутое состояние */
.rules-chapter.collapsed .rules-chapter-head .chapter-toggle {
  transform: rotate(-90deg);
}

.rules-chapter.collapsed .rules-chapter-body {
  display: none;
}

/* --- СПИСОК ПРАВИЛ --- */
.rules-chapter-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-chapter-body ul li {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rules-chapter-body ul li:last-child { border-bottom: none; }

/* Номер пункта (0.1.0, 1.2.3...) — моно-бейдж */
.rules-chapter-body ul li .num {
  display: inline-block;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  margin-top: 1px;
}

/* --- ВЫДЕЛЕННОЕ ПРАВИЛО (Верстак крафтит) --- */
.rules-highlight {
  background: var(--highlight-bg);
  border-left: 4px solid var(--highlight-border) !important;
  padding: 14px 16px !important;
  border-radius: var(--radius-sm);
  margin: 10px 0 !important;
}

.rules-highlight .num {
  background: #fde68a !important;
  color: #92400e !important;
}

.rules-highlight .answer {
  display: inline-block;
  font-family: 'Consolas', monospace;
  font-weight: 800;
  background: var(--highlight-border);
  color: #fff;
  padding: 2px 10px;
  border-radius: 6px;
  margin: 0 4px;
}

/* --- ЗАМЕТКА под главой --- */
.rules-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-card-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
}


/* ============================================================================
   07. ВИКИ (.wiki-*)
   ============================================================================
   Раскладка sidebar + контент, карточки секций, таблицы команд, лайтбокс.
   ============================================================================ */

.wiki-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: var(--container);
  margin: 30px auto;
  padding: 0 24px;
  align-items: flex-start;
}

/* --- SIDEBAR --- */
.wiki-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.wiki-sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
  text-align: left;
}

.wiki-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wiki-sidebar li { margin-bottom: 4px; }

.wiki-sidebar a {
  display: block;
  padding: 7px 10px;
  color: var(--text);
  border-radius: 6px;
  font-size: 14px;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.wiki-sidebar a:hover {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent);
}

.wiki-sidebar a.active {
  background: var(--accent-soft-2);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: bold;
}

/* Поиск в сайдбаре вики */
.wiki-search {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
  background: var(--bg-card-soft);
  color: var(--text);
}

.wiki-search:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
}

/* --- КОНТЕНТ --- */
.wiki-content { min-width: 0; }

.wiki-breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.wiki-breadcrumbs a {
  color: var(--accent);
}

.wiki-breadcrumbs a:hover { text-decoration: underline; }

.wiki-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  color: var(--text-strong);
}

.wiki-subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 15px;
}

/* --- КАРТОЧКА СЕКЦИИ --- */
.wiki-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 100px;
}

.wiki-card h2 {
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--text-strong);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.wiki-card h2 .wiki-toggle {
  margin-left: auto;
  font-size: 18px;
  color: var(--text-soft);
  transition: transform var(--transition);
}

.wiki-card.collapsed h2 .wiki-toggle { transform: rotate(-90deg); }
.wiki-card.collapsed .wiki-card-body { display: none; }

.wiki-card h3 {
  font-size: 17px;
  margin: 22px 0 10px;
  color: var(--accent);
}

.wiki-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.wiki-card ul li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--text);
  font-size: 15px;
}

/* Синяя точка перед каждым пунктом списка */
.wiki-card ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Заметки и ссылки */
.wiki-note {
  color: #c2410c;
  font-weight: bold;
}

.wiki-link {
  color: var(--accent);
  font-weight: bold;
}

.wiki-link:hover { text-decoration: underline; }

/* Картинки в вики */
.wiki-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
}

.wiki-images img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  cursor: zoom-in;
}

.wiki-images img:hover { transform: scale(1.03); }

/* --- ТАБЛИЦА КОМАНД --- */
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wiki-table thead {
  background: var(--accent);
  color: #fff;
}

.wiki-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wiki-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  font-size: 15px;
  color: var(--text);
}

.wiki-table tr:nth-child(even) td { background: var(--bg-card-soft); }
.wiki-table tr:hover td { background: var(--accent-soft); }
.wiki-table tr:last-child td { border-bottom: none; }

/* Команда в таблице (кликабельная, копируется) */
.wiki-cmd {
  font-family: 'Consolas', 'Courier New', monospace;
  background: #f1f5f9;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  font-size: 13px;
  cursor: copy;
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
}

.wiki-cmd:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Команда после копирования — зелёная */
.wiki-cmd.copied {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

.wiki-cmd.copied::after { content: ' ✓'; }

/* --- ЛАЙТБОКС (клик по картинке — на весь экран) --- */
.wiki-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  padding: 24px;
}

.wiki-lightbox.open { display: flex; }

.wiki-lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* ============================================================================
   08. ДОНАТ (.donate-*)
   ============================================================================
   Заголовок, разделы с горизонтальной лентой плиток, модальное окно.
   ============================================================================ */

/* --- ЗАГОЛОВОК СТРАНИЦЫ (как hero) --- */
.donate-title {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donate-title::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.donate-title h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.donate-title h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.donate-title .lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
}

.donate-title .lead strong { color: var(--accent); }

/* --- РАЗДЕЛ ДОНАТА --- */
.donate-section {
  margin-bottom: 40px;
}

.donate-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Стрелки прокрутки ленты */
.donate-arrows {
  display: flex;
  gap: 8px;
}

.donate-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.donate-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.08);
}

.donate-arrow:active { transform: scale(0.95); }

.donate-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.donate-arrow:disabled:hover {
  background: var(--bg-card);
  color: var(--accent);
  border-color: var(--border);
}

/* --- ЛЕНТА ПЛИТОК (горизонтальный скролл) --- */
.donate-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; /* плитки "прилипают" при остановке */
}

/* Кастомный скроллбар */
.donate-row::-webkit-scrollbar { height: 8px; }
.donate-row::-webkit-scrollbar-track { background: var(--accent-soft-2); border-radius: 10px; }
.donate-row::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
.donate-row::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* --- ПЛИТКА ДОНАТА --- */
.donate-tile {
  flex: 0 0 240px;
  background: var(--bg-card);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Градиентная полоска сверху при наведении */
.donate-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.donate-tile:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.donate-tile:hover::before { transform: scaleX(1); }

/* Название сверху */
.donate-tile .tile-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.35;
  margin-bottom: 14px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.2px;
}

/* Картинка по центру */
.donate-tile .tile-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 6px 0 16px;
}

.donate-tile .tile-image img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s;
  background: var(--bg-card-soft);
  padding: 6px;
}

.donate-tile:hover .tile-image img { transform: scale(1.08); }

/* Цена внизу */
.donate-tile .tile-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-2);
  background: var(--tag-green-bg);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.2px;
  align-self: center;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.donate-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.25s;
}

.donate-modal-overlay.open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.donate-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  color: var(--text);
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Кнопка закрытия */
.donate-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #555;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
  z-index: 2;
}

.donate-modal-close:hover {
  background: #e11d48;
  color: #fff;
  transform: rotate(90deg);
}

/* Картинка в модалке */
.donate-modal-image {
  width: 100%;
  height: 200px;
  background: var(--bg-card-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.donate-modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.donate-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.donate-modal-price {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--tag-green-bg);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.donate-modal-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  padding-top: 20px;
  border-top: 2px solid var(--border-soft);
}

.donate-modal-body p { margin-bottom: 10px; }
.donate-modal-body p:last-child { margin-bottom: 0; }

.donate-modal-body a {
  color: var(--accent);
  font-weight: 700;
}

.donate-modal-body a:hover { text-decoration: underline; }




/* ============================================================================
   09. КНОПКА "НАВЕРХ"
   ============================================================================
   Появляется на всех страницах, где есть длинная прокрутка.
   ============================================================================ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  font-size: 20px;
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}


/* ============================================================================
   10. ТЁМНАЯ ТЕМА
   ============================================================================
   Переопределяем только переменные. Работает через data-theme="dark" на <html>.
   Управляется через theme.js и кнопку .theme-toggle.
   ============================================================================ */



[data-theme="dark"] .gradient-warning {
  background: #3a2415;
  color: #ff9b6c;
  border-left-color: #ff9b6c;
}

[data-theme="dark"] .gradient-warning {
  background: #3a2415;
  color: #ff9b6c;
  border-left-color: #ff9b6c;
}

[data-theme="dark"] {
  /* Фоны */
  --bg:              #0d1117;
  --bg-header:       rgba(13, 17, 23, 0.85);
  --bg-card:         #161b22;
  --bg-card-soft:    #1c2128;

  /* Акценты остаются те же (можно поменять) */
  --accent:          #58a6ff;
  --accent-hover:    #79b8ff;
  --accent-2:        #3fb950;
  --accent-soft:     #1c2b3f;
  --accent-soft-2:   #1e3a5f;
  --accent-gradient: linear-gradient(90deg, #FF4D94, #FFB88A);

  /* Текст */
  --text:            #c9d1d9;
  --text-strong:     #e6edf3;
  --text-muted:      #8b949e;
  --text-soft:       #6e7681;

  /* Границы */
  --border:          #30363d;
  --border-soft:     #21262d;
  --border-header:   #21262d;

  /* Тени */
  --shadow-card:     0 5px 15px rgba(0, 0, 0, 0.4);
  --shadow-hover:    0 12px 28px rgba(88, 166, 255, 0.15);
  --shadow-accent:   0 8px 20px rgba(88, 166, 255, 0.35);

  /* Плашки */
  --tag-blue-bg:     #1c2b3f;   --tag-blue-text:  #58a6ff;
  --tag-green-bg:    #1a2e1f;   --tag-green-text: #3fb950;
  --tag-yellow-bg:   #3a2e15;   --tag-yellow-text:#d29922;
  --tag-orange-bg:   #3a2415;   --tag-orange-text:#db6d28;

  /* Подсветка */
  --highlight-bg:    linear-gradient(90deg, #3a2e15, #2a1f10);
  --highlight-border:#d29922;
}

/* В тёмной теме логотип и ссылки в шапке — светлые */
[data-theme="dark"] .logo { color: #e6edf3; }
[data-theme="dark"] nav a { color: #c9d1d9; }
[data-theme="dark"] nav a:hover { color: var(--accent); }
[data-theme="dark"] nav a.active { color: var(--accent); }

/* В тёмной теме таблицы в вики — тёмный фон */
[data-theme="dark"] .wiki-table td { border-bottom-color: #21262d; }
[data-theme="dark"] .wiki-table tr:nth-child(even) td { background: #1c2128; }
[data-theme="dark"] .wiki-cmd { background: #21262d; color: #79b8ff; }
[data-theme="dark"] .apply-warning strong { color: #fde68a; }

/* В тёмной теме выделенное правило — приглушённая жёлтая */
[data-theme="dark"] .rules-highlight .num {
  background: #5c4813 !important;
  color: #fde68a !important;
}

[data-theme="dark"] .admin-cmd {
  background: #21262d;
  color: #79b8ff;
}
[data-theme="dark"] .admin-inline code,
[data-theme="dark"] .admin-action code {
  background: #21262d;
  color: #79b8ff;
}
[data-theme="dark"] .admin-code-block code {
  color: #79b8ff;
}
[data-theme="dark"] .admin-list li {
  border-bottom-color: #21262d;
}

[data-theme="dark"] .brew-note { color: #ff9b6c; }

/* Модалка закрытия — светлее в тёмной теме */
[data-theme="dark"] .donate-modal-close {
  background: #30363d;
  color: #c9d1d9;
}


/* ============================================================================
   11. АДАПТИВ (мобильные устройства)
   ============================================================================
   На экранах до 900px и 768px:
     • шапка складывается в столбик
     • sidebar'ы уходят наверх
     • сетки становятся в одну колонку
     • плитки доната уменьшаются
   ============================================================================ */

/* --- Планшеты и меньше (до 900px) --- */
@media (max-width: 900px) {
  header { padding: 1rem; }

  nav {
    flex-direction: column;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* Правила и вики — sidebar уходит наверх */
  .rules-layout,
  .wiki-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .rules-sidebar,
  .wiki-sidebar {
    position: static;
    max-height: none;
  }

  /* Карточки правил и вики — компактнее */
  .rules-chapter,
  .wiki-card {
    padding: 22px 20px;
  }

  .rules-chapter-head h2,
  .wiki-card h2 {
    font-size: 17px;
  }

  .rules-chapter-head .chapter-num {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  /* Правила на мобилке — номер над текстом */
  .rules-chapter-body ul li {
    flex-direction: column;
    gap: 6px;
  }

  .rules-chapter-body ul li .num {
    min-width: auto;
    align-self: flex-start;
  }

  .wiki-title { font-size: 24px; }
}

/* --- Телефоны (до 768px) --- */
@media (max-width: 768px) {
  .commands-container { padding: 0 16px; }

  /* Hero главной */
  .home-hero-card { padding: 36px 20px; }

  .home-ip-box {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 18px;
  }

  .home-ip-box .ip-label { text-align: center; }
  .home-ip-box .ip-value {
    font-size: 17px;
    word-break: break-all;
    text-align: center;
  }

  .home-ip-box button { width: 100%; }

  /* Инфо-панель — в столбик */
  .home-server-info { padding: 18px; }

  .home-server-info .info-item {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 14px;
  }

  .home-server-info .info-item:last-child { border-bottom: none; }

  /* Новости — в одну колонку */
  .home-news-grid { grid-template-columns: 1fr; }

  /* Карточки ресурсов — меньше */
  .home-services {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .home-service img { height: 70px; }

  /* --- Донат --- */
  .donate-title { padding: 30px 20px; }

  .donate-section-head .section-h2 { font-size: 18px; }

  /* На мобилке стрелки не нужны — свайп работает */
  .donate-arrows { display: none; }

  .donate-tile {
    flex: 0 0 180px;
    min-height: 260px;
    padding: 16px 12px;
  }

  .donate-tile .tile-title {
    font-size: 13px;
    min-height: 38px;
  }

  .donate-tile .tile-image img {
    max-width: 90px;
    max-height: 90px;
  }

  .donate-tile .tile-price {
    font-size: 13px;
    padding: 6px 12px;
  }

  .donate-modal { padding: 24px 20px; }
  .donate-modal-title { font-size: 18px; }
  .donate-modal-image { height: 160px; }
}

/* ============================================================================
   08.5. ЗАЯВКА (.apply-*)
   ============================================================================
   Страница "Подать заявку". Использует общие стили шапки, футера, контейнера.
   Свои: hero, карточки способов, кнопка, предупреждение.
   ============================================================================ */

/* --- HERO страницы заявки --- */
.apply-hero {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apply-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.apply-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.apply-hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apply-hero .lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- СЕТКА ДВУХ СПОСОБОВ (заявка / проходка) --- */
.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* --- КАРТОЧКА СПОСОБА --- */
.apply-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.apply-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.apply-card-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 4px;
}

.apply-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.3px;
}

.apply-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --- СПИСОК ПУНКТОВ В КАРТОЧКЕ (для "проходки") --- */
.apply-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  text-align: left;
}

.apply-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--text);
  font-size: 14.5px;
}

.apply-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- КНОПКА В КАРТОЧКЕ --- */
.apply-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s;
  background: var(--accent);
  color: #fff;
  margin-top: auto;
  align-self: center;
  border: 2px solid var(--accent);
}

.apply-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Прозрачная кнопка (для "написать владельцу") */
.apply-btn-outline {
  background: transparent;
  color: var(--accent);
}

.apply-btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* --- ПРЕДУПРЕЖДЕНИЕ --- */
.apply-warning {
  background: var(--tag-yellow-bg);
  border-left: 4px solid var(--highlight-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 22px;
  color: var(--tag-yellow-text);
  font-size: 15px;
  line-height: 1.6;
}

.apply-warning strong {
  color: #92400e;
}

.apply-warning a {
  color: var(--highlight-border);
  font-weight: 700;
  text-decoration: none;
}

.apply-warning a:hover {
  text-decoration: underline;
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
  .apply-hero { padding: 30px 20px; }
  .apply-card { padding: 24px 20px; }
  .apply-card h2 { font-size: 17px; }
  .apply-card-icon { font-size: 36px; }
}

/* ============================================================================
   08.7. СИМВОЛЫ (.sym-*)
   ============================================================================
   Страница "Символы". Hero + категории символов, каждый символ кликабелен
   и копируется в буфер обмена. При клике — подсветка + уведомление.
   ============================================================================ */

/* --- HERO страницы символов --- */
.sym-hero {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sym-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sym-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.sym-hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sym-hero .lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- КАТЕГОРИЯ СИМВОЛОВ --- */
.sym-category {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}

.sym-category h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- СЕТКА СИМВОЛОВ --- */
.sym-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 26px;
  line-height: 1;
  color: var(--text-strong);
}

/* Один символ */
.sym-grid .sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  font-size: 26px;
  background: var(--bg-card-soft);
  border: 1px solid transparent;
}

.sym-grid .sym:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(1.15);
  z-index: 1;
}

/* Символ только что скопирован — зелёная вспышка */
.sym-grid .sym.copied {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
  transform: scale(1.2);
}

/* --- УВЕДОМЛЕНИЕ О КОПИРОВАНИИ --- */
.sym-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
}

.sym-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
  .sym-hero { padding: 30px 20px; }
  .sym-category { padding: 20px 18px; }
  .sym-category h2 { font-size: 16px; }

  .sym-grid {
    font-size: 22px;
    gap: 4px;
  }

  .sym-grid .sym {
    min-width: 38px;
    height: 38px;
    font-size: 22px;
    padding: 2px 6px;
  }
}

/* ============================================================================
   08.8. АДМИН-СТРАНИЦА (.admin-*)
   ============================================================================
   Страница "Для админчиков". Hero, секции, таблицы (значки/команды),
   списки правил, блоки с кодом и примерами.
   ============================================================================ */

/* --- HERO --- */
.admin-hero {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.admin-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.admin-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.admin-hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-hero .lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- СЕКЦИЯ --- */
.admin-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.admin-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
  letter-spacing: -0.3px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 22px 0 10px;
  text-align: left;
}

.admin-section p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
}

/* --- СПИСОК (правила/обязанности) --- */
.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.admin-list li:last-child { border-bottom: none; }

.admin-list li .num {
  display: inline-block;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
  margin-top: 1px;
}

/* --- ТАБЛИЦА --- */
.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-table thead {
  background: var(--accent);
  color: #fff;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  font-size: 15px;
  color: var(--text);
}

.admin-table tr:nth-child(even) td { background: var(--bg-card-soft); }
.admin-table tr:hover td { background: var(--accent-soft); }
.admin-table tr:last-child td { border-bottom: none; }

/* Картинка-значок в таблице */
.admin-table td img {
  max-height: 40px;
  width: auto;
  border-radius: 6px;
  display: block;
}

/* Для таблиц команд — верхнее выравнивание */
.admin-table-cmds td { vertical-align: top; }

/* --- КОМАНДА (моно-бейдж) --- */
.admin-cmd {
  font-family: 'Consolas', 'Courier New', monospace;
  background: #f1f5f9;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  font-size: 13px;
  border: 1px solid var(--border);
  cursor: copy;
  transition: all var(--transition-fast);
}

.admin-cmd:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Inline-код в таблице параметров */
.admin-inline code {
  font-family: 'Consolas', monospace;
  background: #f1f5f9;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  margin: 0 2px;
  display: inline-block;
}

/* --- БЛОК С КОДОМ --- */
.admin-code-block {
  background: var(--bg-card-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 12px 0;
  font-family: 'Consolas', monospace;
}

.admin-code-block code {
  font-family: inherit;
  color: #1e40af;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.admin-code-desc {
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
  font-style: italic;
}

/* --- GRID ТИПОВ ДЕЙСТВИЙ (a:) --- */
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.admin-action {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition-fast);
}

.admin-action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.admin-action code {
  font-family: 'Consolas', monospace;
  color: #1e40af;
  font-weight: 700;
  font-size: 13.5px;
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
  .admin-hero { padding: 30px 20px; }
  .admin-section { padding: 22px 18px; }
  .admin-section h2 { font-size: 17px; }

  .admin-table { font-size: 14px; }
  .admin-table th,
  .admin-table td { padding: 10px 12px; }
  .admin-table td img { max-height: 32px; }

  .admin-list li {
    flex-direction: column;
    gap: 6px;
  }

  .admin-code-block {
    padding: 12px 14px;
    font-size: 13px;
  }

  .admin-code-block code {
    font-size: 13px;
  }

  .admin-action-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   08.9. BREWERY (.brew-*)
   ============================================================================
   Страница "Brewery | Алкоголь". Hero, секции с рецептами, списки,
   картинки бочек, колонки для таблицы древесины.
   ============================================================================ */

/* --- HERO --- */
.brew-hero {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.brew-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brew-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.brew-hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brew-hero .lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- СЕКЦИЯ --- */
.brew-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}

.brew-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
  letter-spacing: -0.3px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brew-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 22px 0 10px;
  text-align: left;
}

/* --- СПИСКИ --- */
.brew-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.brew-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

/* Синяя точка перед пунктом */
.brew-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Выделенная заметка (важное) */
.brew-note {
  color: #c2410c;
  font-weight: bold;
}

/* Колонки для списка (таблица древесины) */
.brew-list-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 20px;
}

.brew-list-cols li {
  padding-left: 20px;
}

.brew-list-cols li::before {
  top: 16px;
}

/* --- КАРТИНКИ БОЧЕК --- */
.brew-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
}

.brew-images img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  cursor: zoom-in;
}

.brew-images img:hover {
  transform: scale(1.03);
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
  .brew-hero { padding: 30px 20px; }
  .brew-section { padding: 22px 18px; }
  .brew-section h2 { font-size: 17px; }
  .brew-section h3 { font-size: 14px; }

  .brew-list li {
    font-size: 14.5px;
    padding-left: 20px;
  }

  .brew-list-cols {
    grid-template-columns: 1fr;
  }

  .brew-images img {
    max-height: 240px;
  }
}

/* ============================================================================
   08.10. ГЕНЕРАТОР ГРАДИЕНТА (.gradient-*)
   ============================================================================
   Страница "Генератор градиента". Hero, поля ввода, палитра цветов,
   превью, вывод кода. Работает совместно с script_gradient.js.
   ============================================================================ */

/* --- HERO --- */
.gradient-hero {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gradient-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gradient-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.gradient-hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-hero .lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- КОНТЕЙНЕР ГЕНЕРАТОРА --- */
.gradient-generator {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.gradient-generator h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-soft);
  letter-spacing: -0.3px;
  text-align: left;
}

/* --- СЕКЦИЯ ВНУТРИ ГЕНЕРАТОРА --- */
.gradient-section {
  margin-bottom: 22px;
}

.gradient-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* --- ПОЛЕ ВВОДА ТЕКСТА --- */
.gradient-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-card-soft);
  color: var(--text);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.gradient-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
}

/* --- ПАЛИТРА ЦВЕТОВ --- */
.gradient-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--bg-card-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  min-height: 80px;
}

.gradient-colors .color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.gradient-colors .color-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.gradient-colors .color-picker {
  width: 64px;
  height: 64px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.gradient-colors .color-hex {
  width: 90px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  text-align: center;
  color: var(--text);
  background: var(--bg-card);
}

.gradient-colors .color-hex:focus {
  outline: none;
  border-color: var(--accent);
}

/* --- КНОПКИ ДЕЙСТВИЙ --- */
.gradient-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gradient-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.gradient-btn:hover {
  background: var(--bg-card-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.gradient-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.gradient-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* --- КНОПКИ СТИЛЕЙ --- */
.gradient-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gradient-style-btn {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition-fast);
  min-width: 90px;
}

.gradient-style-btn:hover {
  background: var(--bg-card-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Активный стиль (когда выбран) */
.gradient-style-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- ПРЕВЬЮ --- */
.gradient-preview {
  background: var(--bg-card-soft);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 24px;
  margin: 24px 0;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradient-preview-text {
  font-family: 'Minecraft', 'Consolas', 'Courier New', monospace;
  font-size: 28px;
  line-height: 1.5;
  word-wrap: break-word;
  color: var(--text-strong);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* --- ВЫВОД КОДА --- */
.gradient-output {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.gradient-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  flex-wrap: wrap;
}

.gradient-output-code {
  background: var(--bg-card);
  padding: 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  word-wrap: break-word;
  border: 1px solid var(--border);
  max-height: 140px;
  overflow-y: auto;
  user-select: all;
  line-height: 1.6;
}

/* --- КНОПКА КОПИРОВАНИЯ --- */
.gradient-copy-btn {
  padding: 8px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gradient-copy-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.gradient-copy-btn:active {
  transform: translateY(0);
}

/* --- ПРЕДУПРЕЖДЕНИЕ (слишком длинный текст) --- */
.gradient-warning {
  background: var(--tag-orange-bg);
  color: var(--tag-orange-text);
  padding: 12px 18px;
  margin: 10px 0 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--tag-orange-text);
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- ПОДПИСЬ ВНИЗУ --- */
.gradient-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
  .gradient-hero { padding: 30px 20px; }
  .gradient-generator { padding: 22px 18px; }
  .gradient-generator h2 { font-size: 18px; }

  .gradient-colors .color-picker {
    width: 52px;
    height: 52px;
  }
  .gradient-colors .color-hex {
    width: 76px;
    font-size: 12px;
  }

  .gradient-style-btn {
    min-width: auto;
    padding: 8px 14px;
    font-size: 13px;
  }

  .gradient-preview-text {
    font-size: 22px;
  }

  .gradient-output-header {
    font-size: 13px;
  }

  .gradient-copy-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .gradient-output-code {
    font-size: 12px;
    padding: 10px;
  }
}

/* ============================================================================
   00. ПОДКЛЮЧЕНИЕ ШРИФТОВ
   ============================================================================
   Кастомный майнкрафт-шрифт для превью градиента и других элементов.
   Файл minecraft.ttf должен лежать в корне сайта рядом с index.html.
   ============================================================================ */

@font-face {
  font-family: 'Minecraft';
  src: url('minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Кнопка «Удалить» рядом с цветом */
.gradient-colors .remove-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.gradient-colors .remove-btn:hover:not(:disabled) {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

.gradient-colors .remove-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Мерцание для «Магии» — символы резко меняются */
@keyframes minecraftObfuscate {
  0%   { opacity: 1;    filter: blur(0);     }
  50%  { opacity: 0.85; filter: blur(0.4px); }
  100% { opacity: 1;    filter: blur(0);     }
}

/* Применяется к символам превью при включённой «Магии» */
.gradient-preview-text span {
  display: inline-block;
  animation: minecraftObfuscate 0.16s infinite;
}

