Перейти к содержанию

MediaWiki:Common.css: различия между версиями

Материал из Horny Jail WIKI
Нет описания правки
Метка: отменено
Отмена версии 1464, сделанной Mei Day (обсуждение)
Метка: отмена
 
Строка 1: Строка 1:
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');
 
/* ================== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ================== */
:root {
  --hj-primary: #165a70;
  --hj-primary-light: #1e7a96;
  --hj-primary-dark: #0d3d4d;
  --hj-accent: #ff4757;
  --hj-accent-glow: rgba(255, 71, 87, 0.4);
  --hj-bg-dark: #0a0a0f;
  --hj-bg-card: #12121a;
  --hj-bg-card-hover: #1a1a26;
  --hj-text: #e8e8e8;
  --hj-text-muted: #8a8a9a;
  --hj-border: rgba(255, 255, 255, 0.08);
  --hj-glow: 0 0 20px rgba(22, 90, 112, 0.3);
  --hj-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


body {
body {
   font-family: 'Comfortaa', cursive, sans-serif;
   font-family: 'Comfortaa', cursive, sans-serif;
  background: var(--hj-bg-dark);
  color: var(--hj-text);
}
}


/* ================== HERO СЕКЦИЯ ================== */
/* ================== СИСТЕМА ХАОСА: ТАБЫ И БЛОКИ ================== */
.hj-hero {
  position: relative;
  padding: 60px 20px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(22, 90, 112, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #0d1015 100%);
  border-bottom: 1px solid var(--hj-border);
  overflow: hidden;
}


.hj-hero::before {
/* Контейнер */
   content: '';
.hj-chaos-container {  
  position: absolute;
   margin-bottom: 1.5em;  
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 30px 30px;
  animation: hj-stars 60s linear infinite;
  pointer-events: none;
}
}


@keyframes hj-stars {
/* Ряд вкладок */
   from { transform: translateY(0); }
.hj-chaos-tabs {
   to { transform: translateY(-30px); }
   display: flex;
  border-radius: 6px 6px 0 0;
   overflow: hidden;
}
}


.hj-hero-logo {
/* Кнопки-вкладки как большие карточки */
  position: relative;
.hj-chaos-tab-button {
  z-index: 1;
   flex: 1 1 0;
  width: 180px;
   padding: 10px 14px;
  height: auto;
   cursor: pointer;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(255, 71, 87, 0.5));
  animation: hj-float 4s ease-in-out infinite;
}
 
@keyframes hj-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
 
.hj-hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8em;
  font-weight: 700;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ffffff 0%, #1e7a96 50%, #ff4757 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hj-gradient 6s ease infinite;
}
 
@keyframes hj-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
 
.hj-hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.1em;
  color: var(--hj-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
 
.hj-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--hj-primary), var(--hj-primary-light));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 15px;
  box-shadow: var(--hj-glow);
}
 
/* ================== СЕКЦИИ КОНТЕЙНЕРЫ ================== */
.hj-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
 
.hj-section-header {
   text-align: center;
  margin-bottom: 30px;
}
 
.hj-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8em;
  font-weight: 600;
  color: var(--hj-text);
  margin: 0 0 8px 0;
  position: relative;
  display: inline-block;
}
 
.hj-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hj-primary), transparent);
  border-radius: 2px;
}
 
.hj-section-desc {
  color: var(--hj-text-muted);
  font-size: 0.95em;
  margin-top: 15px;
}
 
/* ================== НАВИГАЦИОННЫЕ КАРТОЧКИ ================== */
.hj-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
 
.hj-nav-card {
  position: relative;
  background: var(--hj-bg-card);
  border: 1px solid var(--hj-border);
  border-radius: 16px;
   padding: 28px 24px;
  text-decoration: none;
  color: var(--hj-text);
  transition: var(--hj-transition);
   overflow: hidden;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
  min-height: 140px;
}
.hj-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--hj-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--hj-transition);
}
.hj-nav-card:hover {
  background: var(--hj-bg-card-hover);
  border-color: var(--card-accent, var(--hj-primary));
  transform: translateY(-4px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 30px var(--card-glow, rgba(22, 90, 112, 0.2));
}
.hj-nav-card:hover::before {
  transform: scaleX(1);
}
.hj-nav-card-icon {
  font-size: 2em;
  margin-bottom: 12px;
  filter: grayscale(0.2);
  transition: var(--hj-transition);
}
.hj-nav-card:hover .hj-nav-card-icon {
  transform: scale(1.1);
  filter: grayscale(0);
}
.hj-nav-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15em;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.hj-nav-card-desc {
  font-size: 0.9em;
  color: var(--hj-text-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.hj-nav-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.2em;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--hj-transition);
}
.hj-nav-card:hover .hj-nav-card-arrow {
  opacity: 1;
  transform: translateX(0);
}
/* Цветовые варианты карточек */
.hj-nav-card--rules { --card-accent: #ff4757; --card-glow: rgba(255, 71, 87, 0.2); }
.hj-nav-card--guide { --card-accent: #2ecc71; --card-glow: rgba(46, 204, 113, 0.2); }
.hj-nav-card--lore { --card-accent: #9b59b6; --card-glow: rgba(155, 89, 182, 0.2); }
.hj-nav-card--jobs { --card-accent: #f39c12; --card-glow: rgba(243, 156, 18, 0.2); }
.hj-nav-card--discord { --card-accent: #5865f2; --card-glow: rgba(88, 101, 242, 0.2); }
.hj-nav-card--sop { --card-accent: #1abc9c; --card-glow: rgba(26, 188, 156, 0.2); }
.hj-nav-card--law { --card-accent: #e74c3c; --card-glow: rgba(231, 76, 60, 0.2); }
/* ================== БЫСТРЫЕ ССЫЛКИ ================== */
.hj-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
   justify-content: center;
   justify-content: center;
   padding: 30px 20px;
   gap: 4px;
   background: linear-gradient(180deg, transparent, rgba(22, 90, 112, 0.05));
   background: #191919;
   border-radius: 16px;
   border: none;
  position: relative;
}
}
.hj-chaos-tab-button:last-child { border-right: none; }


.hj-quicklink {
/* Заголовок/подзаголовок кнопки */
  display: inline-flex;
.hj-chaos-tab-title { font-weight: bold; font-size: 1em; }
  align-items: center;
.hj-chaos-tab-desc  { font-size: 0.85em; opacity: 0.9; }
  gap: 8px;
  background: var(--hj-bg-card);
  border: 1px solid var(--hj-border);
  border-radius: 30px;
  padding: 10px 20px;
  color: var(--hj-text);
  text-decoration: none;
  font-size: 0.9em;
  transition: var(--hj-transition);
}


.hj-quicklink:hover {
/* Базовые цвета вкладок (не активные) */
  background: var(--hj-primary);
.hj-chaos-tab-button[data-chaos="overview"] { background: #222833; }
  border-color: var(--hj-primary);
.hj-chaos-tab-button[data-chaos="calm"]    { background: #1e2b20; }
   transform: translateY(-2px);
.hj-chaos-tab-button[data-chaos="medium"]   { background: #2b2615; }
  box-shadow: var(--hj-glow);
.hj-chaos-tab-button[data-chaos="high"]    { background: #2b1818; }
}


.hj-quicklink-icon {
/* Активные цвета (фон) */
  font-size: 1.1em;
.hj-chaos-tab-button.active[data-chaos="overview"] { background: #2f3b4d; }
}
.hj-chaos-tab-button.active[data-chaos="calm"]    { background: #234526; }
.hj-chaos-tab-button.active[data-chaos="medium"]  { background: #5c4716; }
.hj-chaos-tab-button.active[data-chaos="high"]    { background: #5c1f1f; }


/* ================== НОВОСТИ / ОБНОВЛЕНИЯ ================== */
/* Глобальный ресет рамок у активной вкладки,
.hj-news-grid {
  чтобы режимные правила не конфликтовали */
   display: grid;
.hj-chaos-tab-button.active {
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   border: none;
   gap: 20px;
   border-bottom: none;
   margin-bottom: 0;
}
}


.hj-news-card {
/* Блок контента — без верхней границы, только бока + низ */
   background: var(--hj-bg-card);
.hj-chaos-block {
   border: 1px solid var(--hj-border);
   display: none;
   border-radius: 12px;
   padding: 16px 18px;
  overflow: hidden;
   border-style: solid;
  transition: var(--hj-transition);
   border-width: 0 3px 3px; /* top=0, left/right/bottom=3px */
}
   border-color: transparent;
 
   border-radius: 0 0 6px 6px;
.hj-news-card:hover {
   background: #111;
   border-color: var(--hj-primary);
  transform: translateY(-2px);
}
 
.hj-news-image {
  width: 100%;
   height: 160px;
  object-fit: cover;
   border-bottom: 1px solid var(--hj-border);
}
 
.hj-news-content {
  padding: 20px;
}
 
.hj-news-date {
  font-size: 0.8em;
   color: var(--hj-primary-light);
  margin-bottom: 8px;
}
}
.hj-chaos-block.active { display: block; }


.hj-news-title {
/* ------------------------------------------------------------------
  font-size: 1.1em;
  OVERVIEW (СИНИЙ)
  font-weight: 600;
------------------------------------------------------------------ */
  margin: 0 0 10px 0;
}


.hj-news-excerpt {
.hj-chaos-container.chaos-overview .hj-chaos-tabs {
  font-size: 0.9em;
   border-bottom: none;
  color: var(--hj-text-muted);
   line-height: 1.5;
}
}


/* ================== FEATURE БЛОКИ ================== */
/* рамка вокруг активной вкладки */
.hj-features {
.hj-chaos-container.chaos-overview .hj-chaos-tab-button.active[data-chaos="overview"] {
   display: grid;
   border: 3px solid #4b6284;
   grid-template-columns: repeat(3, 1fr);
   border-bottom: none;
   gap: 30px;
  border-radius: 6px 6px 0 0;
   text-align: center;
   margin-bottom: -3px; /* вкладка нависает над блоком */
   z-index: 2;
}
}


@media (max-width: 800px) {
/* рамка и фон блока */
  .hj-features {
.hj-chaos-container.chaos-overview .hj-chaos-block[data-chaos="overview"] {
    grid-template-columns: 1fr;
  border-color: #4b6284;
   }
   background: #2f3b4d;
}
}


.hj-feature {
/* нижняя линия у НЕактивных вкладок */
   padding: 30px 20px;
.hj-chaos-container.chaos-overview .hj-chaos-tab-button:not(.active) {
   border-bottom: 3px solid #4b6284;
}
}


.hj-feature-icon {
/* ------------------------------------------------------------------
  font-size: 2.5em;
  CALM (ЗЕЛЁНЫЙ)
  margin-bottom: 15px;
------------------------------------------------------------------ */
  display: block;
}
 
.hj-feature-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 10px 0;
}


.hj-feature-desc {
.hj-chaos-container.chaos-calm .hj-chaos-tabs {
  font-size: 0.9em;
   border-bottom: none;
  color: var(--hj-text-muted);
   line-height: 1.5;
}
}


/* ================== ФУТЕР ================== */
.hj-chaos-container.chaos-calm .hj-chaos-tab-button.active[data-chaos="calm"] {
.hj-footer {
   border: 3px solid #3f7a47;
   text-align: center;
   border-bottom: none;
   padding: 40px 20px;
   border-radius: 6px 6px 0 0;
   border-top: 1px solid var(--hj-border);
  margin-bottom: -3px;
   background: rgba(0, 0, 0, 0.3);
   z-index: 2;
}
}


.hj-footer-links {
.hj-chaos-container.chaos-calm .hj-chaos-block[data-chaos="calm"] {
   display: flex;
   border-color: #3f7a47;
  justify-content: center;
   background: #234526;
  gap: 30px;
  margin-bottom: 20px;
   flex-wrap: wrap;
}
}


.hj-footer-link {
.hj-chaos-container.chaos-calm .hj-chaos-tab-button:not(.active) {
  color: var(--hj-text-muted);
   border-bottom: 3px solid #3f7a47;
  text-decoration: none;
   font-size: 0.9em;
  transition: var(--hj-transition);
}
}


.hj-footer-link:hover {
/* ------------------------------------------------------------------
  color: var(--hj-primary-light);
  MEDIUM (ЖЁЛТО-КОРИЧНЕВЫЙ)
}
------------------------------------------------------------------ */


.hj-footer-text {
.hj-chaos-container.chaos-medium .hj-chaos-tabs {
  color: var(--hj-text-muted);
   border-bottom: none;
   font-size: 0.85em;
  opacity: 0.7;
}
}


.hj-footer-heart {
.hj-chaos-container.chaos-medium .hj-chaos-tab-button.active[data-chaos="medium"] {
   color: var(--hj-accent);
   border: 3px solid #c9982b;
   animation: hj-heartbeat 1.5s ease infinite;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
   z-index: 2;
}
}


@keyframes hj-heartbeat {
.hj-chaos-container.chaos-medium .hj-chaos-block[data-chaos="medium"] {
   0%, 100% { transform: scale(1); }
   border-color: #c9982b;
   50% { transform: scale(1.1); }
   background: #5c4716;
}
}


/* ================== БАННЕР ПРЕДУПРЕЖДЕНИЯ ================== */
.hj-chaos-container.chaos-medium .hj-chaos-tab-button:not(.active) {
.hj-banner {
   border-bottom: 3px solid #c9982b;
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
  border: 1px solid rgba(255, 71, 87, 0.3);
   border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
}


.hj-banner--info {
/* ------------------------------------------------------------------
  background: linear-gradient(90deg, rgba(22, 90, 112, 0.15), rgba(22, 90, 112, 0.05));
  HIGH (КРАСНЫЙ)
  border-color: rgba(22, 90, 112, 0.4);
------------------------------------------------------------------ */
}


.hj-banner-icon {
.hj-chaos-container.chaos-high .hj-chaos-tabs {
  font-size: 1.5em;
   border-bottom: none;
   flex-shrink: 0;
}
}


.hj-banner-text {
.hj-chaos-container.chaos-high .hj-chaos-tab-button.active[data-chaos="high"] {
   font-size: 0.95em;
   border: 3px solid #c33a3a;
   line-height: 1.5;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
   z-index: 2;
}
}


/* ================== РАЗДЕЛИТЕЛЬ ================== */
.hj-chaos-container.chaos-high .hj-chaos-block[data-chaos="high"] {
.hj-divider {
   border-color: #c33a3a;
  height: 1px;
   background: #5c1f1f;
  background: linear-gradient(90deg, transparent, var(--hj-border), var(--hj-primary), var(--hj-border), transparent);
   margin: 40px auto;
   max-width: 600px;
}
}


/* ================== СТАТИСТИКА ================== */
.hj-chaos-container.chaos-high .hj-chaos-tab-button:not(.active) {
.hj-stats {
   border-bottom: 3px solid #c33a3a;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 30px 20px;
   flex-wrap: wrap;
}
}


.hj-stat {
/* ------------------------------------------------------------------ */
  text-align: center;
}


.hj-stat-value {
/* Оформление самих карточек */
  font-family: 'Orbitron', sans-serif;
.hj-rule-card {
  font-size: 2.5em;
   padding: 14px 16px;
  font-weight: 700;
   border-radius: 8px;
  background: linear-gradient(135deg, var(--hj-primary-light), var(--hj-accent));
   border: 1px solid #00000055;
  -webkit-background-clip: text;
   background: rgba(0, 0, 0, .22); /* дефолтный фон, потом JS его подкрашивает */
  -webkit-text-fill-color: transparent;
   box-shadow:
  background-clip: text;
     inset 0 1px 0 #ffffff10,
}
    0 0 0 1px #00000022;
 
.hj-stat-label {
  font-size: 0.9em;
  color: var(--hj-text-muted);
  margin-top: 5px;
}
 
/* ================== СИСТЕМА ХАОСА: ТАБЫ И БЛОКИ (ОБНОВЛЕНО) ================== */
 
.hj-chaos-container {
   margin-bottom: 1.5em;
   border-radius: 16px;
  overflow: hidden;
}
 
.hj-chaos-tabs {
  display: flex;
   border-radius: 12px 12px 0 0;
  overflow: hidden;
   background: var(--hj-bg-card);
}
 
.hj-chaos-tab-button {
  flex: 1 1 0;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: var(--hj-bg-card);
  border: none;
  position: relative;
  transition: var(--hj-transition);
  color: var(--hj-text);
}
 
.hj-chaos-tab-button:hover {
  background: var(--hj-bg-card-hover);
}
 
.hj-chaos-tab-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.95em;
}
 
.hj-chaos-tab-desc {
  font-size: 0.8em;
  opacity: 0.7;
}
 
/* Цвета вкладок */
.hj-chaos-tab-button[data-chaos="overview"] { border-top: 3px solid transparent; }
.hj-chaos-tab-button[data-chaos="calm"]    { border-top: 3px solid transparent; }
.hj-chaos-tab-button[data-chaos="medium"]   { border-top: 3px solid transparent; }
.hj-chaos-tab-button[data-chaos="high"]     { border-top: 3px solid transparent; }
 
.hj-chaos-tab-button.active[data-chaos="overview"] {
  background: #2f3b4d;
  border-top-color: #4b6284;
}
.hj-chaos-tab-button.active[data-chaos="calm"] {
  background: #1e3d22;
  border-top-color: #3f7a47;
}
.hj-chaos-tab-button.active[data-chaos="medium"] {
  background: #3d3215;
  border-top-color: #c9982b;
}
.hj-chaos-tab-button.active[data-chaos="high"] {
  background: #3d1818;
  border-top-color: #c33a3a;
}
 
.hj-chaos-block {
  display: none;
  padding: 24px;
  background: var(--hj-bg-card);
  border-radius: 0 0 12px 12px;
}
}


.hj-chaos-block.active {
/* Заголовок внутри блока */
  display: block;
.hj-chaos-block h2 { margin-top: 0; }
}


.hj-chaos-block[data-chaos="overview"] { background: #2f3b4d; }
/* Карточки сеткой */
.hj-chaos-block[data-chaos="calm"]    { background: #1e3d22; }
.hj-chaos-block[data-chaos="medium"]  { background: #3d3215; }
.hj-chaos-block[data-chaos="high"]    { background: #3d1818; }
 
/* Карточки правил */
.hj-rule-cards {
.hj-rule-cards {
   display: grid;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 16px;
   gap: 12px;
   margin-top: 16px;
   margin-top: 8px;
}
 
.hj-rule-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--hj-transition);
}
 
.hj-rule-card:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
}
@media (max-width: 980px) { .hj-rule-cards { grid-template-columns: 1fr; } }


.hj-rule-card h3,
.hj-rule-card h3,
.hj-rule-card h4 {
.hj-rule-card h4 { margin: 0 0 .4em 0; }
  font-family: 'Orbitron', sans-serif;
.hj-rule-card p  { margin: 0 0 .6em 0; }
  margin: 0 0 10px 0;
.hj-rule-card ul { margin: .4em 0 0 1.2em; }
  font-size: 1em;
}


.hj-rule-card p {
/* Архив (как было) */
   margin: 0;
.hj-legacy {  
   font-size: 0.9em;
   margin-top: 20px;  
   line-height: 1.6;
   padding: 0;  
   color: rgba(255, 255, 255, 0.85);
   background: transparent;  
   border: 0;
}
}
.hj-legacy .wikitable { background: #111; color: inherit; }


.hj-rule-card ul {
/* Убираем серый фон у всех миниатюр и одиночных картинок */
  margin: 10px 0 0 0;
  padding-left: 20px;
  font-size: 0.9em;
  line-height: 1.6;
}
 
/* ================== АДАПТИВНОСТЬ ================== */
@media (max-width: 768px) {
  .hj-hero-title {
    font-size: 2em;
  }
 
  .hj-nav-grid {
    grid-template-columns: 1fr;
  }
 
  .hj-stats {
    gap: 30px;
  }
 
  .hj-chaos-tabs {
    flex-direction: column;
  }
 
  .hj-chaos-tab-button {
    border-top: none !important;
    border-left: 3px solid transparent;
  }
 
  .hj-chaos-tab-button.active {
    border-left-color: inherit;
  }
}
 
/* ================== УТИЛИТЫ ================== */
.hj-text-center { text-align: center; }
.hj-text-muted { color: var(--hj-text-muted); }
.hj-mt-0 { margin-top: 0; }
.hj-mb-0 { margin-bottom: 0; }
.hj-glow-text {
  text-shadow: 0 0 10px var(--hj-primary), 0 0 20px var(--hj-primary);
}
 
/* Скрываем серый фон у стандартных элементов MediaWiki */
.thumbinner,
.thumbinner,
.thumb {
.thumb {
  background: none !important;
    background: none !important;
  border: none !important;
    border: none !important;
}
}


.inline-img {
.inline-img {
  background: none !important;
    background: none !important;
  vertical-align: middle;
    vertical-align: middle;
}
 
/* Стилизация стандартных таблиц */
.wikitable {
  background: var(--hj-bg-card) !important;
  border: 1px solid var(--hj-border) !important;
  border-radius: 12px;
  overflow: hidden;
}
 
.wikitable th {
  background: rgba(22, 90, 112, 0.3) !important;
  border-color: var(--hj-border) !important;
}
 
.wikitable td {
  border-color: var(--hj-border) !important;
}
}

Текущая версия от 15:33, 27 февраля 2026

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Comfortaa', cursive, sans-serif;
}

/* ================== СИСТЕМА ХАОСА: ТАБЫ И БЛОКИ ================== */

/* Контейнер */
.hj-chaos-container { 
  margin-bottom: 1.5em; 
}

/* Ряд вкладок */
.hj-chaos-tabs {
  display: flex;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

/* Кнопки-вкладки как большие карточки */
.hj-chaos-tab-button {
  flex: 1 1 0;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: #191919;
  border: none;
  position: relative;
}
.hj-chaos-tab-button:last-child { border-right: none; }

/* Заголовок/подзаголовок кнопки */
.hj-chaos-tab-title { font-weight: bold; font-size: 1em; }
.hj-chaos-tab-desc  { font-size: 0.85em; opacity: 0.9; }

/* Базовые цвета вкладок (не активные) */
.hj-chaos-tab-button[data-chaos="overview"] { background: #222833; }
.hj-chaos-tab-button[data-chaos="calm"]     { background: #1e2b20; }
.hj-chaos-tab-button[data-chaos="medium"]   { background: #2b2615; }
.hj-chaos-tab-button[data-chaos="high"]     { background: #2b1818; }

/* Активные цвета (фон) */
.hj-chaos-tab-button.active[data-chaos="overview"] { background: #2f3b4d; }
.hj-chaos-tab-button.active[data-chaos="calm"]     { background: #234526; }
.hj-chaos-tab-button.active[data-chaos="medium"]   { background: #5c4716; }
.hj-chaos-tab-button.active[data-chaos="high"]     { background: #5c1f1f; }

/* Глобальный ресет рамок у активной вкладки,
   чтобы режимные правила не конфликтовали */
.hj-chaos-tab-button.active {
  border: none;
  border-bottom: none;
  margin-bottom: 0;
}

/* Блок контента — без верхней границы, только бока + низ */
.hj-chaos-block {
  display: none;
  padding: 16px 18px;
  border-style: solid;
  border-width: 0 3px 3px; /* top=0, left/right/bottom=3px */
  border-color: transparent;
  border-radius: 0 0 6px 6px;
  background: #111;
}
.hj-chaos-block.active { display: block; }

/* ------------------------------------------------------------------
   OVERVIEW (СИНИЙ)
------------------------------------------------------------------ */

.hj-chaos-container.chaos-overview .hj-chaos-tabs {
  border-bottom: none;
}

/* рамка вокруг активной вкладки */
.hj-chaos-container.chaos-overview .hj-chaos-tab-button.active[data-chaos="overview"] {
  border: 3px solid #4b6284;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px; /* вкладка нависает над блоком */
  z-index: 2;
}

/* рамка и фон блока */
.hj-chaos-container.chaos-overview .hj-chaos-block[data-chaos="overview"] {
  border-color: #4b6284;
  background: #2f3b4d;
}

/* нижняя линия у НЕактивных вкладок */
.hj-chaos-container.chaos-overview .hj-chaos-tab-button:not(.active) {
  border-bottom: 3px solid #4b6284;
}

/* ------------------------------------------------------------------
   CALM (ЗЕЛЁНЫЙ)
------------------------------------------------------------------ */

.hj-chaos-container.chaos-calm .hj-chaos-tabs {
  border-bottom: none;
}

.hj-chaos-container.chaos-calm .hj-chaos-tab-button.active[data-chaos="calm"] {
  border: 3px solid #3f7a47;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
  z-index: 2;
}

.hj-chaos-container.chaos-calm .hj-chaos-block[data-chaos="calm"] {
  border-color: #3f7a47;
  background: #234526;
}

.hj-chaos-container.chaos-calm .hj-chaos-tab-button:not(.active) {
  border-bottom: 3px solid #3f7a47;
}

/* ------------------------------------------------------------------
   MEDIUM (ЖЁЛТО-КОРИЧНЕВЫЙ)
------------------------------------------------------------------ */

.hj-chaos-container.chaos-medium .hj-chaos-tabs {
  border-bottom: none;
}

.hj-chaos-container.chaos-medium .hj-chaos-tab-button.active[data-chaos="medium"] {
  border: 3px solid #c9982b;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
  z-index: 2;
}

.hj-chaos-container.chaos-medium .hj-chaos-block[data-chaos="medium"] {
  border-color: #c9982b;
  background: #5c4716;
}

.hj-chaos-container.chaos-medium .hj-chaos-tab-button:not(.active) {
  border-bottom: 3px solid #c9982b;
}

/* ------------------------------------------------------------------
   HIGH (КРАСНЫЙ)
------------------------------------------------------------------ */

.hj-chaos-container.chaos-high .hj-chaos-tabs {
  border-bottom: none;
}

.hj-chaos-container.chaos-high .hj-chaos-tab-button.active[data-chaos="high"] {
  border: 3px solid #c33a3a;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
  z-index: 2;
}

.hj-chaos-container.chaos-high .hj-chaos-block[data-chaos="high"] {
  border-color: #c33a3a;
  background: #5c1f1f;
}

.hj-chaos-container.chaos-high .hj-chaos-tab-button:not(.active) {
  border-bottom: 3px solid #c33a3a;
}

/* ------------------------------------------------------------------ */

/* Оформление самих карточек */
.hj-rule-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #00000055;
  background: rgba(0, 0, 0, .22); /* дефолтный фон, потом JS его подкрашивает */
  box-shadow:
    inset 0 1px 0 #ffffff10,
    0 0 0 1px #00000022;
}

/* Заголовок внутри блока */
.hj-chaos-block h2 { margin-top: 0; }

/* Карточки сеткой */
.hj-rule-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 980px) { .hj-rule-cards { grid-template-columns: 1fr; } }

.hj-rule-card h3,
.hj-rule-card h4 { margin: 0 0 .4em 0; }
.hj-rule-card p  { margin: 0 0 .6em 0; }
.hj-rule-card ul { margin: .4em 0 0 1.2em; }

/* Архив (как было) */
.hj-legacy { 
  margin-top: 20px; 
  padding: 0; 
  background: transparent; 
  border: 0;
}
.hj-legacy .wikitable { background: #111; color: inherit; }

/* Убираем серый фон у всех миниатюр и одиночных картинок */
.thumbinner,
.thumb {
    background: none !important;
    border: none !important;
}

.inline-img {
    background: none !important;
    vertical-align: middle;
}