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

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

Материал из Horny Jail WIKI
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показано 25 промежуточных версий этого же участника)
Строка 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");


/* ================== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ================== */
body {
:root {
  font-family: "Comfortaa", cursive, sans-serif;
  --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-chaos-container {
   --hj-bg-card: #12121a;
   margin-bottom: 1.5em;
  --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 {
/* Ряд вкладок */
   font-family: 'Comfortaa', cursive, sans-serif;
.hj-chaos-tabs {
   background: var(--hj-bg-dark);
   display: flex;
   color: var(--hj-text);
   border-radius: 6px 6px 0 0;
   overflow: hidden;
}
}


/* ================== HERO СЕКЦИЯ ================== */
/* Кнопки-вкладки как большие карточки */
.hj-hero {
.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;
   position: relative;
  padding: 60px 20px 80px;
}
  text-align: center;
.hj-chaos-tab-button:last-child {
  background:
   border-right: none;
    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-tab-title {
   position: absolute;
   font-weight: bold;
  top: 0;
   font-size: 1em;
  left: 0;
}
   right: 0;
.hj-chaos-tab-desc {
  bottom: 0;
   font-size: 0.85em;
   background:
   opacity: 0.9;
    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-tab-button[data-chaos="overview"] {
   to { transform: translateY(-30px); }
   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[data-chaos="storytellers"] {
  background: #1f1c28;
}
}


.hj-hero-logo {
/* Активные цвета (фон) */
   position: relative;
.hj-chaos-tab-button.active[data-chaos="overview"] {
  z-index: 1;
   background: #2f3b4d;
   width: 180px;
}
   height: auto;
.hj-chaos-tab-button.active[data-chaos="calm"] {
  margin-bottom: 20px;
   background: #234526;
   filter: drop-shadow(0 0 30px rgba(255, 71, 87, 0.5));
}
  animation: hj-float 4s ease-in-out infinite;
.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[data-chaos="storytellers"] {
  background: #2a2238;
}
}


@keyframes hj-float {
/* Глобальный ресет рамок у активной вкладки,
   0%, 100% { transform: translateY(0); }
  чтобы режимные правила не конфликтовали */
   50% { transform: translateY(-10px); }
.hj-chaos-tab-button.active {
   border: none;
   border-bottom: none;
  margin-bottom: 0;
}
}


.hj-hero-title {
/* Блок контента — без верхней границы, только бока + низ */
   position: relative;
.hj-chaos-block {
   z-index: 1;
   display: none;
   font-family: 'Orbitron', sans-serif;
   padding: 16px 18px;
   font-size: 2.8em;
   border-style: solid;
   font-weight: 700;
   border-width: 0 3px 3px; /* top=0, left/right/bottom=3px */
   margin: 0 0 10px 0;
   border-color: transparent;
   background: linear-gradient(135deg, #ffffff 0%, #1e7a96 50%, #ff4757 100%);
   border-radius: 0 0 6px 6px;
  background-size: 200% 200%;
   background: #111;
  -webkit-background-clip: text;
}
  -webkit-text-fill-color: transparent;
.hj-chaos-block.active {
   background-clip: text;
   display: block;
  animation: hj-gradient 6s ease infinite;
}
}


@keyframes hj-gradient {
/* ------------------------------------------------------------------
   0%, 100% { background-position: 0% 50%; }
  OVERVIEW (СИНИЙ)
  50% { background-position: 100% 50%; }
------------------------------------------------------------------ */
 
.hj-chaos-container.chaos-overview .hj-chaos-tabs {
   border-bottom: none;
}
}


.hj-hero-subtitle {
/* рамка вокруг активной вкладки */
   position: relative;
.hj-chaos-container.chaos-overview
   z-index: 1;
   .hj-chaos-tab-button.active[data-chaos="overview"] {
   font-size: 1.1em;
   border: 3px solid #4b6284;
   color: var(--hj-text-muted);
   border-bottom: none;
  max-width: 600px;
   border-radius: 6px 6px 0 0;
   margin: 0 auto;
   margin-bottom: -3px; /* вкладка нависает над блоком */
   line-height: 1.6;
   z-index: 2;
}
}


.hj-hero-badge {
/* рамка и фон блока */
  display: inline-block;
.hj-chaos-container.chaos-overview .hj-chaos-block[data-chaos="overview"] {
  background: linear-gradient(135deg, var(--hj-primary), var(--hj-primary-light));
   border-color: #4b6284;
  color: white;
   background: #2f3b4d;
  padding: 6px 16px;
   border-radius: 20px;
   font-size: 0.85em;
  font-weight: 600;
  margin-top: 15px;
  box-shadow: var(--hj-glow);
}
}


/* ================== СЕКЦИИ КОНТЕЙНЕРЫ ================== */
/* нижняя линия у НЕактивных вкладок */
.hj-section {
.hj-chaos-container.chaos-overview .hj-chaos-tab-button:not(.active) {
   max-width: 1200px;
   border-bottom: 3px solid #4b6284;
  margin: 0 auto;
  padding: 40px 20px;
}
}


.hj-section-header {
/* ------------------------------------------------------------------
   text-align: center;
  CALM (ЗЕЛЁНЫЙ)
  margin-bottom: 30px;
------------------------------------------------------------------ */
 
.hj-chaos-container.chaos-calm .hj-chaos-tabs {
   border-bottom: none;
}
}


.hj-section-title {
.hj-chaos-container.chaos-calm .hj-chaos-tab-button.active[data-chaos="calm"] {
  font-family: 'Orbitron', sans-serif;
   border: 3px solid #3f7a47;
   font-size: 1.8em;
   border-bottom: none;
   font-weight: 600;
   border-radius: 6px 6px 0 0;
   color: var(--hj-text);
   margin-bottom: -3px;
  margin: 0 0 8px 0;
   z-index: 2;
   position: relative;
   display: inline-block;
}
}


.hj-section-title::after {
.hj-chaos-container.chaos-calm .hj-chaos-block[data-chaos="calm"] {
   content: '';
   border-color: #3f7a47;
  position: absolute;
   background: #234526;
  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 {
.hj-chaos-container.chaos-calm .hj-chaos-tab-button:not(.active) {
  color: var(--hj-text-muted);
   border-bottom: 3px solid #3f7a47;
  font-size: 0.95em;
   margin-top: 15px;
}
}


/* ================== НАВИГАЦИОННЫЕ КАРТОЧКИ ================== */
/* ------------------------------------------------------------------
.hj-nav-grid {
  MEDIUM (ЖЁЛТО-КОРИЧНЕВЫЙ)
  display: grid;
------------------------------------------------------------------ */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 
   gap: 20px;
.hj-chaos-container.chaos-medium .hj-chaos-tabs {
   border-bottom: none;
}
}


.hj-nav-card {
.hj-chaos-container.chaos-medium
   position: relative;
   .hj-chaos-tab-button.active[data-chaos="medium"] {
  background: var(--hj-bg-card);
   border: 3px solid #c9982b;
   border: 1px solid var(--hj-border);
   border-bottom: none;
   border-radius: 16px;
   border-radius: 6px 6px 0 0;
   padding: 28px 24px;
   margin-bottom: -3px;
  text-decoration: none;
   z-index: 2;
  color: var(--hj-text);
   transition: var(--hj-transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
   min-height: 140px;
}
}


.hj-nav-card::before {
.hj-chaos-container.chaos-medium .hj-chaos-block[data-chaos="medium"] {
  content: '';
   border-color: #c9982b;
  position: absolute;
   background: #5c4716;
  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 {
.hj-chaos-container.chaos-medium .hj-chaos-tab-button:not(.active) {
  background: var(--hj-bg-card-hover);
   border-bottom: 3px solid #c9982b;
  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);
  HIGH (КРАСНЫЙ)
------------------------------------------------------------------ */
 
.hj-chaos-container.chaos-high .hj-chaos-tabs {
   border-bottom: none;
}
}


.hj-nav-card-icon {
.hj-chaos-container.chaos-high .hj-chaos-tab-button.active[data-chaos="high"] {
   font-size: 2em;
   border: 3px solid #c33a3a;
   margin-bottom: 12px;
   border-bottom: none;
   filter: grayscale(0.2);
   border-radius: 6px 6px 0 0;
   transition: var(--hj-transition);
   margin-bottom: -3px;
  z-index: 2;
}
}


.hj-nav-card:hover .hj-nav-card-icon {
.hj-chaos-container.chaos-high .hj-chaos-block[data-chaos="high"] {
   transform: scale(1.1);
   border-color: #c33a3a;
   filter: grayscale(0);
   background: #5c1f1f;
}
}


.hj-nav-card-title {
.hj-chaos-container.chaos-high .hj-chaos-tab-button:not(.active) {
  font-family: 'Orbitron', sans-serif;
   border-bottom: 3px solid #c33a3a;
  font-size: 1.15em;
   font-weight: 600;
  margin: 0 0 8px 0;
}
}


.hj-nav-card-desc {
/* ------------------------------------------------------------------
  font-size: 0.9em;
  STORYTELLERS (ФИОЛЕТОВЫЙ)
  color: var(--hj-text-muted);
------------------------------------------------------------------ */
  line-height: 1.5;
 
   flex-grow: 1;
.hj-chaos-container.chaos-storytellers .hj-chaos-tabs {
   border-bottom: none;
}
}


.hj-nav-card-arrow {
.hj-chaos-container.chaos-storytellers
   position: absolute;
  .hj-chaos-tab-button.active[data-chaos="storytellers"] {
   bottom: 20px;
   border: 3px solid #6b5a8a;
  right: 20px;
   border-bottom: none;
   font-size: 1.2em;
   border-radius: 6px 6px 0 0;
  opacity: 0;
   margin-bottom: -3px;
   transform: translateX(-10px);
   z-index: 2;
   transition: var(--hj-transition);
}
}


.hj-nav-card:hover .hj-nav-card-arrow {
.hj-chaos-container.chaos-storytellers
   opacity: 1;
  .hj-chaos-block[data-chaos="storytellers"] {
   transform: translateX(0);
   border-color: #6b5a8a;
   background: #2a2238;
}
}


/* Цветовые варианты карточек */
.hj-chaos-container.chaos-storytellers .hj-chaos-tab-button:not(.active) {
.hj-nav-card--rules { --card-accent: #ff4757; --card-glow: rgba(255, 71, 87, 0.2); }
  border-bottom: 3px solid #6b5a8a;
.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 {
.hj-storyteller-row {
   display: flex;
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   gap: 12px;
  margin-bottom: 20px;
   justify-content: center;
   align-items: stretch;
   padding: 30px 20px;
}
   background: linear-gradient(180deg, transparent, rgba(22, 90, 112, 0.05));
.hj-storyteller-row.reverse {
   border-radius: 16px;
   flex-direction: row-reverse;
}
 
.hj-storyteller-card {
  flex: 3;
   padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
   background: rgba(0, 0, 0, 0.3);
}
.hj-storyteller-card h3 {
  margin: 0 0 4px 0;
  font-size: 1.3em;
}
.hj-storyteller-card .hj-st-subtitle {
  font-size: 0.9em;
  opacity: 0.7;
  margin-bottom: 10px;
}
.hj-storyteller-card .hj-st-quote {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 12px;
  font-size: 0.95em;
}
 
.hj-storyteller-art {
  flex: 2;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 280px;
  position: relative;
}
/* Nuke every MW wrapper inside the art block */
.hj-storyteller-art *:not(img) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  float: none !important;
  overflow: hidden !important;
  position: static !important;
  pointer-events: none;
}
.hj-storyteller-art .thumbcaption,
.hj-storyteller-art .magnify {
  display: none !important;
  height: 0 !important;
}
.hj-storyteller-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border: none !important;
   border-radius: 0;
  background: transparent !important;
}
}


.hj-quicklink {
/* Блоки параметров внутри карточки рассказчика */
   display: inline-flex;
.hj-st-stats {
   align-items: center;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 8px;
   gap: 8px;
   background: var(--hj-bg-card);
   margin-top: 12px;
   border: 1px solid var(--hj-border);
}
   border-radius: 30px;
.hj-st-stat {
   padding: 10px 20px;
   padding: 8px 10px;
   color: var(--hj-text);
   border-radius: 6px;
  text-decoration: none;
   background: rgba(255, 255, 255, 0.04);
   border: 1px solid rgba(255, 255, 255, 0.06);
   font-size: 0.9em;
   font-size: 0.9em;
   transition: var(--hj-transition);
}
.hj-st-stat b {
   display: block;
  font-size: 0.85em;
  opacity: 0.6;
  margin-bottom: 2px;
}
}


.hj-quicklink:hover {
/* Полноширинные блоки деталей */
   background: var(--hj-primary);
.hj-st-details {
   border-color: var(--hj-primary);
  margin-top: 12px;
   transform: translateY(-2px);
   padding: 12px 14px;
   box-shadow: var(--hj-glow);
   border-radius: 8px;
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid rgba(255, 255, 255, 0.06);
}
}
.hj-st-details h4 {
  margin: 0 0 6px 0;
  font-size: 0.95em;
}
.hj-st-details ul {
  margin: 4px 0 0 1.2em;
}
.hj-st-details li {
  margin-bottom: 3px;
}
/* Мобилки */
@media (max-width: 800px) {
  .hj-storyteller-row,
  .hj-storyteller-row.reverse {
    flex-direction: column;
  }
  .hj-storyteller-art {
    min-height: 200px;
    max-height: 300px;
  }
  .hj-st-stats {
    grid-template-columns: 1fr;
  }
}
/* ------------------------------------------------------------------ */


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


/* ================== НОВОСТИ / ОБНОВЛЕНИЯ ================== */
/* Заголовок внутри блока */
.hj-news-grid {
.hj-chaos-block h2 {
  margin-top: 0;
}
 
/* Карточки сеткой */
.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: 20px;
   gap: 12px;
  margin-top: 8px;
}
@media (max-width: 980px) {
  .hj-rule-cards {
    grid-template-columns: 1fr;
  }
}
}


.hj-news-card {
.hj-rule-card h3,
  background: var(--hj-bg-card);
.hj-rule-card h4 {
   border: 1px solid var(--hj-border);
   margin: 0 0 0.4em 0;
   border-radius: 12px;
}
  overflow: hidden;
.hj-rule-card p {
   transition: var(--hj-transition);
   margin: 0 0 0.6em 0;
}
.hj-rule-card ul {
   margin: 0.4em 0 0 1.2em;
}
}


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


.hj-news-image {
/* Убираем серый фон у всех миниатюр и одиночных картинок */
   width: 100%;
.thumbinner,
  height: 160px;
.thumb {
  object-fit: cover;
   background: none !important;
   border-bottom: 1px solid var(--hj-border);
   border: none !important;
}
}


.hj-news-content {
.inline-img {
   padding: 20px;
   background: none !important;
  vertical-align: middle;
}
}


.hj-news-date {
/* ===== Base dark theme overrides ===== */
   font-size: 0.8em;
html {
  color: var(--hj-primary-light);
   background: #060608 !important;
  margin-bottom: 8px;
}
}


.hj-news-title {
body {
   font-size: 1.1em;
   background: transparent !important;
  font-weight: 600;
  margin: 0 0 10px 0;
}
}


.hj-news-excerpt {
#mw-page-base {
   font-size: 0.9em;
   background: none !important;
  color: var(--hj-text-muted);
  line-height: 1.5;
}
}


/* ================== FEATURE БЛОКИ ================== */
#mw-head-base {
.hj-features {
   background: none !important;
   display: grid;
   border-bottom-color: rgba(255, 255, 255, 0.08) !important;
   grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
}


@media (max-width: 800px) {
#content {
   .hj-features {
   background: none !important;
    grid-template-columns: 1fr;
  border: none !important;
   }
   color: rgba(255, 255, 255, 0.8);
}
}


.hj-feature {
#bodyContent {
   padding: 30px 20px;
   position: relative;
  /* No z-index here — avoids creating a stacking context
    that traps the parallax layers inside it */
}
}


.hj-feature-icon {
/* ===== Parallax layers (structure only — visuals applied via JS) ===== */
   font-size: 2.5em;
#orbitalis-parallax-bg,
  margin-bottom: 15px;
.orb-parallax-layer,
#orbitalis-vignette {
   /* These divs are inserted via mainpage wikitext.
      JS in Common.js applies the actual styles.
      In case JS hasn't loaded yet, hide them to avoid layout issues. */
   display: block;
   display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
/* ===== Wiki content link colours for dark theme ===== */
#content a,
#content a:visited {
  color: rgba(130, 170, 255, 0.85);
}
}


.hj-feature-title {
#content a:hover {
   font-family: 'Orbitron', sans-serif;
  color: rgba(170, 200, 255, 1);
   font-size: 1.1em;
}
   font-weight: 600;
 
   margin: 0 0 10px 0;
/* ===== Main page: override Citizen skin link styles ===== */
/* CSS fallback — JS engine in Common.js also handles this via DOM */
#orb-content a,
#orb-content a:link,
#orb-content a:visited,
#orb-content a:hover,
#orb-content a:active,
#orb-content a:focus {
   background: none !important;
  background-color: transparent !important;
  background-image: none !important;
   box-shadow: none !important;
  border: none !important;
   border-bottom: none !important;
   padding: 0 !important;
  text-decoration: none !important;
  outline: none !important;
}
}


.hj-feature-desc {
#orb-content small {
   font-size: 0.9em;
   display: block;
  color: var(--hj-text-muted);
   margin-top: 3px;
   line-height: 1.5;
}
}


/* ================== ФУТЕР ================== */
[id^="orb-card-"] {
.hj-footer {
   transition:
   text-align: center;
    border-color 0.25s ease,
  padding: 40px 20px;
    box-shadow 0.25s ease,
  border-top: 1px solid var(--hj-border);
    background 0.25s ease;
  background: rgba(0, 0, 0, 0.3);
}
}


.hj-footer-links {
/* ===== Main page: Orbitalis visual design (CSS-first) ===== */
  display: flex;
 
  justify-content: center;
/* Description block */
  gap: 30px;
#orb-desc {
  margin-bottom: 20px;
   border-left: 2px solid rgba(91, 141, 239, 0.2) !important;
   flex-wrap: wrap;
}
}


.hj-footer-link {
/* Section titles */
   color: var(--hj-text-muted);
#orb-title-docs {
   text-decoration: none;
   color: rgba(91, 141, 239, 0.8) !important;
   font-size: 0.9em;
  text-shadow: 0 0 25px rgba(91, 141, 239, 0.2) !important;
   transition: var(--hj-transition);
}
#orb-title-play {
  color: rgba(180, 130, 255, 0.8) !important;
  text-shadow: 0 0 25px rgba(180, 130, 255, 0.2) !important;
}
/* Decorative underline bars */
#orb-title-docs::after,
#orb-title-play::after {
   content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 10px;
}
#orb-title-docs::after {
   background: rgba(91, 141, 239, 0.35);
   box-shadow: 0 0 12px rgba(91, 141, 239, 0.12);
}
#orb-title-play::after {
  background: rgba(180, 130, 255, 0.35);
  box-shadow: 0 0 12px rgba(180, 130, 255, 0.12);
}
}


.hj-footer-link:hover {
/* Doc cards — blue accent */
   color: var(--hj-primary-light);
#orb-card-1 {
  border-left: 2px solid rgba(91, 141, 239, 0.3) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.04) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-2 {
   border-left: 2px solid rgba(91, 141, 239, 0.25) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.032) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-3 {
  border-left: 2px solid rgba(91, 141, 239, 0.2) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.024) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-4 {
  border-left: 2px solid rgba(91, 141, 239, 0.15) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.016) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
}


.hj-footer-text {
/* Play cards — purple accent */
   color: var(--hj-text-muted);
#orb-card-5 {
   font-size: 0.85em;
  border-left: 2px solid rgba(180, 130, 255, 0.3) !important;
   opacity: 0.7;
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.04) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-6 {
   border-left: 2px solid rgba(180, 130, 255, 0.25) !important;
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.032) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-7 {
  border-left: 2px solid rgba(180, 130, 255, 0.2) !important;
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.024) 0%,
    transparent 70%
  ) !important;
   border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-8 {
  border-left: 2px solid rgba(180, 130, 255, 0.15) !important;
   background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.016) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
}


.hj-footer-heart {
/* Card hover — blue docs */
   color: var(--hj-accent);
#orb-card-1:hover,
   animation: hj-heartbeat 1.5s ease infinite;
#orb-card-2:hover,
#orb-card-3:hover,
#orb-card-4:hover {
   background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.08) 0%,
    rgba(91, 141, 239, 0.02) 60%,
    transparent 100%
  ) !important;
  border-left-color: rgba(91, 141, 239, 0.6) !important;
  box-shadow:
    inset 3px 0 20px -4px rgba(91, 141, 239, 0.15),
    0 0 25px rgba(91, 141, 239, 0.04) !important;
}
/* Card hover — purple play */
#orb-card-5:hover,
#orb-card-6:hover,
#orb-card-7:hover,
#orb-card-8:hover {
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.08) 0%,
    rgba(180, 130, 255, 0.02) 60%,
    transparent 100%
  ) !important;
  border-left-color: rgba(180, 130, 255, 0.6) !important;
   box-shadow:
    inset 3px 0 20px -4px rgba(180, 130, 255, 0.15),
    0 0 25px rgba(180, 130, 255, 0.04) !important;
}
}


@keyframes hj-heartbeat {
/* Server block */
   0%, 100% { transform: scale(1); }
#orb-server {
   50% { transform: scale(1.1); }
   border-left: 2px solid rgba(100, 220, 180, 0.3) !important;
  border-radius: 0 4px 4px 0 !important;
}
#orb-online {
  color: rgba(100, 220, 180, 0.55);
   text-shadow: 0 0 15px rgba(100, 220, 180, 0.15);
}
}


/* ================== БАННЕР ПРЕДУПРЕЖДЕНИЯ ================== */
/* Buttons */
.hj-banner {
#orb-addr {
   background: linear-gradient(90deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
  border: 1px solid rgba(100, 220, 180, 0.25) !important;
   border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 4px !important;
   border-radius: 12px;
   background: rgba(100, 220, 180, 0.06) !important;
   padding: 16px 24px;
  color: rgba(100, 220, 180, 0.7) !important;
   display: flex;
  cursor: pointer !important;
   align-items: center;
}
   gap: 15px;
#orb-addr:hover {
   margin-bottom: 30px;
  background: rgba(100, 220, 180, 0.12) !important;
  border-color: rgba(100, 220, 180, 0.4) !important;
}
#orb-btn-proxy {
   border: 1px solid rgba(100, 220, 180, 0.2) !important;
   border-radius: 4px !important;
   background: rgba(100, 220, 180, 0.04) !important;
}
#orb-btn-proxy:hover {
   background: rgba(100, 220, 180, 0.1) !important;
   border-color: rgba(100, 220, 180, 0.35) !important;
}
#orb-btn-byond {
   border: 1px solid rgba(255, 255, 255, 0.05) !important;
   border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.015) !important;
}
}


.hj-banner--info {
/* Footer */
  background: linear-gradient(90deg, rgba(22, 90, 112, 0.15), rgba(22, 90, 112, 0.05));
#orb-footer {
   border-color: rgba(22, 90, 112, 0.4);
   border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}
}


.hj-banner-icon {
/* ===== Heading styles ===== */
   font-size: 1.5em;
#content h1,
   flex-shrink: 0;
#content h2,
#content h3,
#content h4 {
   color: rgba(255, 255, 255, 0.85);
   border-bottom-color: rgba(255, 255, 255, 0.1);
}
}


.hj-banner-text {
#firstHeading {
   font-size: 0.95em;
   color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
}


/* ================== РАЗДЕЛИТЕЛЬ ================== */
/* ===== Navigation / sidebar dark overrides ===== */
.hj-divider {
#mw-panel .portal h3 {
   height: 1px;
   color: rgba(255, 255, 255, 0.5) !important;
  background: linear-gradient(90deg, transparent, var(--hj-border), var(--hj-primary), var(--hj-border), transparent);
  margin: 40px auto;
  max-width: 600px;
}
}


/* ================== СТАТИСТИКА ================== */
#mw-panel .portal .body a {
.hj-stats {
   color: rgba(200, 200, 200, 0.7) !important;
   display: flex;
  justify-content: center;
  gap: 60px;
  padding: 30px 20px;
  flex-wrap: wrap;
}
}


.hj-stat {
#mw-panel .portal .body a:hover {
   text-align: center;
   color: rgba(255, 255, 255, 0.95) !important;
}
}


.hj-stat-value {
/* ===== Top navigation bar ===== */
   font-family: 'Orbitron', sans-serif;
#mw-head a {
  font-size: 2.5em;
   color: rgba(200, 200, 200, 0.7) !important;
  font-weight: 700;
  background: linear-gradient(135deg, var(--hj-primary-light), var(--hj-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
}


.hj-stat-label {
#mw-head a:hover {
   font-size: 0.9em;
   color: rgba(255, 255, 255, 0.95) !important;
  color: var(--hj-text-muted);
  margin-top: 5px;
}
}


/* ================== СИСТЕМА ХАОСА: ТАБЫ И БЛОКИ (ОБНОВЛЕНО) ================== */
/* ===== Page action tabs (Edit, View source, History, etc.) ===== */
/* Vector skin */
.vector-menu-tabs li a,
.vector-menu-tabs li a:visited,
#p-views li a,
#p-cactions li a,
#p-namespaces li a {
  color: rgba(200, 200, 200, 0.7) !important;
}


.hj-chaos-container {
.vector-menu-tabs li a:hover,
  margin-bottom: 1.5em;
#p-views li a:hover,
  border-radius: 16px;
#p-cactions li a:hover,
   overflow: hidden;
#p-namespaces li a:hover {
   color: rgba(255, 255, 255, 0.95) !important;
}
}


.hj-chaos-tabs {
.vector-menu-tabs li.selected a,
  display: flex;
#p-views li.selected a,
  border-radius: 12px 12px 0 0;
#p-namespaces li.selected a {
   overflow: hidden;
   color: rgba(255, 255, 255, 0.9) !important;
  background: var(--hj-bg-card);
}
}


.hj-chaos-tab-button {
/* Vector tab underline/border */
  flex: 1 1 0;
.vector-menu-tabs li {
  padding: 16px 20px;
   background: none !important;
  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 {
.vector-menu-tabs li.selected {
   background: var(--hj-bg-card-hover);
   background: none !important;
  border-bottom-color: rgba(140, 180, 255, 0.6) !important;
}
}


.hj-chaos-tab-title {
/* Citizen skin page actions */
   font-family: 'Orbitron', sans-serif;
.citizen-header,
  font-weight: 600;
.citizen-page-header {
  font-size: 0.95em;
   background: transparent !important;
}
}


.hj-chaos-tab-desc {
.page-actions a,
  font-size: 0.8em;
.page-actions button,
   opacity: 0.7;
.citizen-page-heading__actions a,
.citizen-page-heading__actions button {
   color: rgba(200, 200, 200, 0.7) !important;
}
}


/* Цвета вкладок */
.page-actions a:hover,
.hj-chaos-tab-button[data-chaos="overview"] { border-top: 3px solid transparent; }
.page-actions button:hover,
.hj-chaos-tab-button[data-chaos="calm"]    { border-top: 3px solid transparent; }
.citizen-page-heading__actions a:hover,
.hj-chaos-tab-button[data-chaos="medium"]  { border-top: 3px solid transparent; }
.citizen-page-heading__actions button:hover {
.hj-chaos-tab-button[data-chaos="high"]    { border-top: 3px solid transparent; }
  color: rgba(255, 255, 255, 0.95) !important;
}


.hj-chaos-tab-button.active[data-chaos="overview"] {  
/* ===== Section edit links [edit] ===== */
   background: #2f3b4d;
.mw-editsection,
  border-top-color: #4b6284;
.mw-editsection a,
.mw-editsection-bracket {
   color: rgba(140, 180, 255, 0.5) !important;
}
}
.hj-chaos-tab-button.active[data-chaos="calm"] {  
 
   background: #1e3d22;
.mw-editsection a:hover {
  border-top-color: #3f7a47;
   color: rgba(180, 210, 255, 0.9) !important;
}
}
.hj-chaos-tab-button.active[data-chaos="medium"] {  
 
   background: #3d3215;  
/* ===== Dropdown menus / portlets (More, Tools, etc.) ===== */
   border-top-color: #c9982b;
.vector-menu-content,
.vector-menu-content ul,
#p-cactions .vector-menu-content,
.mw-portlet .mw-portlet-body {
   background: #14141a !important;
   border-color: rgba(255, 255, 255, 0.1) !important;
}
}
.hj-chaos-tab-button.active[data-chaos="high"] {  
 
   background: #3d1818;
.vector-menu-content li a,
  border-top-color: #c33a3a;
.mw-portlet .mw-portlet-body a {
   color: rgba(200, 200, 200, 0.7) !important;
}
}


.hj-chaos-block {
.vector-menu-content li a:hover,
  display: none;
.mw-portlet .mw-portlet-body a:hover {
  padding: 24px;
   color: rgba(255, 255, 255, 0.95) !important;
   background: var(--hj-bg-card);
   background: rgba(255, 255, 255, 0.06) !important;
   border-radius: 0 0 12px 12px;
}
}


.hj-chaos-block.active {
/* ===== Citizen skin sidebar ===== */
   display: block;
.citizen-drawer,
.citizen-drawer__content,
.citizen-menu__card {
   background: #14141a !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
}


.hj-chaos-block[data-chaos="overview"] { background: #2f3b4d; }
.citizen-menu__card a {
.hj-chaos-block[data-chaos="calm"]    { background: #1e3d22; }
  color: rgba(200, 200, 200, 0.7) !important;
.hj-chaos-block[data-chaos="medium"]  { background: #3d3215; }
}
.hj-chaos-block[data-chaos="high"]    { background: #3d1818; }


/* Карточки правил */
.citizen-menu__card a:hover {
.hj-rule-cards {
   color: rgba(255, 255, 255, 0.95) !important;
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
}


.hj-rule-card {
/* Citizen top header bar */
   padding: 20px;
.citizen-header__logo,
  border-radius: 12px;
.citizen-header__inner {
  background: rgba(0, 0, 0, 0.25);
   color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--hj-transition);
}
}


.hj-rule-card:hover {
/* ===== Notifications / user menu ===== */
   background: rgba(0, 0, 0, 0.35);
#pt-notifications-alert a,
  transform: translateY(-2px);
#pt-notifications-notice a,
#p-personal li a,
.mw-header-notifications a {
   color: rgba(200, 200, 200, 0.7) !important;
}
}


.hj-rule-card h3,
#p-personal li a:hover,
.hj-rule-card h4 {
.mw-header-notifications a:hover {
   font-family: 'Orbitron', sans-serif;
   color: rgba(255, 255, 255, 0.95) !important;
  margin: 0 0 10px 0;
  font-size: 1em;
}
}


.hj-rule-card p {
/* ===== Edit page / form elements ===== */
   margin: 0;
textarea,
   font-size: 0.9em;
input[type="text"],
  line-height: 1.6;
input[type="search"],
   color: rgba(255, 255, 255, 0.85);
input[type="password"],
select {
   background: rgba(255, 255, 255, 0.06) !important;
   border-color: rgba(255, 255, 255, 0.12) !important;
   color: rgba(255, 255, 255, 0.85) !important;
}
}


.hj-rule-card ul {
/* Edit toolbar */
   margin: 10px 0 0 0;
.oo-ui-toolbar-bar {
  padding-left: 20px;
   background: #14141a !important;
   font-size: 0.9em;
   border-color: rgba(255, 255, 255, 0.1) !important;
  line-height: 1.6;
}
}


/* ================== АДАПТИВНОСТЬ ================== */
.oo-ui-toolbar-bar .oo-ui-buttonElement-button {
@media (max-width: 768px) {
   color: rgba(200, 200, 200, 0.7) !important;
  .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;
  }
}
}


/* ================== УТИЛИТЫ ================== */
/* ===== Diff / special pages ===== */
.hj-text-center { text-align: center; }
.diff-context {
.hj-text-muted { color: var(--hj-text-muted); }
  background: rgba(255, 255, 255, 0.03) !important;
.hj-mt-0 { margin-top: 0; }
   color: rgba(255, 255, 255, 0.7) !important;
.hj-mb-0 { margin-bottom: 0; }
.hj-glow-text {
   text-shadow: 0 0 10px var(--hj-primary), 0 0 20px var(--hj-primary);
}
}


/* Скрываем серый фон у стандартных элементов MediaWiki */
.diff-addedline {
.thumbinner,
   background: rgba(50, 120, 50, 0.15) !important;
.thumb {
   background: none !important;
  border: none !important;
}
}


.inline-img {
.diff-deletedline {
   background: none !important;
   background: rgba(120, 50, 50, 0.15) !important;
  vertical-align: middle;
}
}


/* Стилизация стандартных таблиц */
/* ===== Tables (wikitable) ===== */
.wikitable {
.wikitable {
   background: var(--hj-bg-card) !important;
   background: rgba(255, 255, 255, 0.03) !important;
   border: 1px solid var(--hj-border) !important;
   color: rgba(255, 255, 255, 0.8) !important;
   border-radius: 12px;
   border-color: rgba(255, 255, 255, 0.12) !important;
  overflow: hidden;
}
}


.wikitable th {
.wikitable th {
   background: rgba(22, 90, 112, 0.3) !important;
   background: rgba(255, 255, 255, 0.06) !important;
   border-color: var(--hj-border) !important;
   border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}
}


.wikitable td {
.wikitable td {
   border-color: var(--hj-border) !important;
   border-color: rgba(255, 255, 255, 0.08) !important;
}
 
/* ===== Infobox / messagebox ===== */
.mbox-small,
.ambox,
.tmbox,
.ombox,
.cmbox,
.fmbox {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
 
/* ===== Search box ===== */
#simpleSearch {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
 
#searchInput {
  color: rgba(255, 255, 255, 0.8) !important;
}
 
/* ===== Footer ===== */
#footer {
  color: rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
 
#footer a {
  color: rgba(140, 180, 255, 0.6) !important;
}
 
/* ===== Category links ===== */
#catlinks {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
 
/* ===== Table of Contents (native fallback) ===== */
#toc,
.toc {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
 
/* ===== Orbitalis custom TOC ===== */
/* Opt-in: add <div id="orb-toc"></div> to page wikitext to activate.
  JS creates #orb-toc-sidebar in document.body (outside any skin container). */
 
/* Hide the marker div */
#orb-toc {
  display: none !important;
}
 
/* The actual sidebar (appended to body by JS) */
#orb-toc-sidebar {
  position: fixed;
  left: 0;
  top: 56px;
  width: 220px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  background: transparent;
  border-right: none;
  padding: 20px 12px 20px 16px;
  pointer-events: auto;
  font-family: "Comfortaa", sans-serif;
  font-size: 0.82em;
  line-height: 1.45;
  transition: opacity 0.3s ease;
}
 
/* Title */
#orb-toc-sidebar .orb-toc-head {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
 
#orb-toc-sidebar .orb-toc-head::before {
  display: none;
}
 
/* List reset */
#orb-toc-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
 
/* All items */
#orb-toc-sidebar li {
  margin: 0;
  padding: 0;
}
 
#orb-toc-sidebar li a {
  display: block;
  padding: 5px 0 5px 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none !important;
  transition:
    color 0.2s,
    background 0.2s;
  background: none !important;
  box-shadow: none !important;
}
 
#orb-toc-sidebar li a:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(91, 141, 239, 0.04) !important;
}
 
/* Active section (works for all heading levels) */
#orb-toc-sidebar li.orb-toc-active > a {
  color: rgba(140, 180, 255, 0.95);
  background: rgba(91, 141, 239, 0.06) !important;
}
 
/* h2 (sub-section under h1) */
#orb-toc-sidebar li.orb-toc-h2 a {
  padding-left: 12px;
}
 
/* h3 indent */
#orb-toc-sidebar li.orb-toc-h3 a {
  padding-left: 24px;
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.35);
}
 
#orb-toc-sidebar li.orb-toc-h3.orb-toc-active > a {
  color: rgba(140, 180, 255, 0.95);
}
 
/* h4 indent */
#orb-toc-sidebar li.orb-toc-h4 a {
  padding-left: 36px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.28);
}
 
#orb-toc-sidebar li.orb-toc-h4.orb-toc-active > a {
  color: rgba(140, 180, 255, 0.95);
}
 
/* Custom scrollbar */
#orb-toc-sidebar::-webkit-scrollbar {
  width: 3px;
}
#orb-toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#orb-toc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(91, 141, 239, 0.15);
  border-radius: 2px;
}
 
/* Mobile: hide fixed sidebar */
@media (max-width: 1100px) {
  #orb-toc-sidebar {
    display: none !important;
  }
}
}

Текущая версия от 16:13, 10 апреля 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[data-chaos="storytellers"] {
  background: #1f1c28;
}

/* Активные цвета (фон) */
.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[data-chaos="storytellers"] {
  background: #2a2238;
}

/* Глобальный ресет рамок у активной вкладки,
   чтобы режимные правила не конфликтовали */
.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;
}

/* ------------------------------------------------------------------
   STORYTELLERS (ФИОЛЕТОВЫЙ)
------------------------------------------------------------------ */

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

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

.hj-chaos-container.chaos-storytellers
  .hj-chaos-block[data-chaos="storytellers"] {
  border-color: #6b5a8a;
  background: #2a2238;
}

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

/* --- Шахматный макет для рассказчиков --- */
.hj-storyteller-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}
.hj-storyteller-row.reverse {
  flex-direction: row-reverse;
}

.hj-storyteller-card {
  flex: 3;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}
.hj-storyteller-card h3 {
  margin: 0 0 4px 0;
  font-size: 1.3em;
}
.hj-storyteller-card .hj-st-subtitle {
  font-size: 0.9em;
  opacity: 0.7;
  margin-bottom: 10px;
}
.hj-storyteller-card .hj-st-quote {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 12px;
  font-size: 0.95em;
}

.hj-storyteller-art {
  flex: 2;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 280px;
  position: relative;
}
/* Nuke every MW wrapper inside the art block */
.hj-storyteller-art *:not(img) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  float: none !important;
  overflow: hidden !important;
  position: static !important;
  pointer-events: none;
}
.hj-storyteller-art .thumbcaption,
.hj-storyteller-art .magnify {
  display: none !important;
  height: 0 !important;
}
.hj-storyteller-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
}

/* Блоки параметров внутри карточки рассказчика */
.hj-st-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.hj-st-stat {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9em;
}
.hj-st-stat b {
  display: block;
  font-size: 0.85em;
  opacity: 0.6;
  margin-bottom: 2px;
}

/* Полноширинные блоки деталей */
.hj-st-details {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hj-st-details h4 {
  margin: 0 0 6px 0;
  font-size: 0.95em;
}
.hj-st-details ul {
  margin: 4px 0 0 1.2em;
}
.hj-st-details li {
  margin-bottom: 3px;
}

/* Мобилки */
@media (max-width: 800px) {
  .hj-storyteller-row,
  .hj-storyteller-row.reverse {
    flex-direction: column;
  }
  .hj-storyteller-art {
    min-height: 200px;
    max-height: 300px;
  }
  .hj-st-stats {
    grid-template-columns: 1fr;
  }
}

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

/* Оформление самих карточек */
.hj-rule-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #00000055;
  background: rgba(
    0,
    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 0.4em 0;
}
.hj-rule-card p {
  margin: 0 0 0.6em 0;
}
.hj-rule-card ul {
  margin: 0.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;
}

/* ===== Base dark theme overrides ===== */
html {
  background: #060608 !important;
}

body {
  background: transparent !important;
}

#mw-page-base {
  background: none !important;
}

#mw-head-base {
  background: none !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

#content {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.8);
}

#bodyContent {
  position: relative;
  /* No z-index here — avoids creating a stacking context
     that traps the parallax layers inside it */
}

/* ===== Parallax layers (structure only — visuals applied via JS) ===== */
#orbitalis-parallax-bg,
.orb-parallax-layer,
#orbitalis-vignette {
  /* These divs are inserted via mainpage wikitext.
       JS in Common.js applies the actual styles.
       In case JS hasn't loaded yet, hide them to avoid layout issues. */
  display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ===== Wiki content link colours for dark theme ===== */
#content a,
#content a:visited {
  color: rgba(130, 170, 255, 0.85);
}

#content a:hover {
  color: rgba(170, 200, 255, 1);
}

/* ===== Main page: override Citizen skin link styles ===== */
/* CSS fallback — JS engine in Common.js also handles this via DOM */
#orb-content a,
#orb-content a:link,
#orb-content a:visited,
#orb-content a:hover,
#orb-content a:active,
#orb-content a:focus {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  outline: none !important;
}

#orb-content small {
  display: block;
  margin-top: 3px;
}

[id^="orb-card-"] {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* ===== Main page: Orbitalis visual design (CSS-first) ===== */

/* Description block */
#orb-desc {
  border-left: 2px solid rgba(91, 141, 239, 0.2) !important;
}

/* Section titles */
#orb-title-docs {
  color: rgba(91, 141, 239, 0.8) !important;
  text-shadow: 0 0 25px rgba(91, 141, 239, 0.2) !important;
}
#orb-title-play {
  color: rgba(180, 130, 255, 0.8) !important;
  text-shadow: 0 0 25px rgba(180, 130, 255, 0.2) !important;
}
/* Decorative underline bars */
#orb-title-docs::after,
#orb-title-play::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 10px;
}
#orb-title-docs::after {
  background: rgba(91, 141, 239, 0.35);
  box-shadow: 0 0 12px rgba(91, 141, 239, 0.12);
}
#orb-title-play::after {
  background: rgba(180, 130, 255, 0.35);
  box-shadow: 0 0 12px rgba(180, 130, 255, 0.12);
}

/* Doc cards — blue accent */
#orb-card-1 {
  border-left: 2px solid rgba(91, 141, 239, 0.3) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.04) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-2 {
  border-left: 2px solid rgba(91, 141, 239, 0.25) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.032) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-3 {
  border-left: 2px solid rgba(91, 141, 239, 0.2) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.024) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-4 {
  border-left: 2px solid rgba(91, 141, 239, 0.15) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.016) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}

/* Play cards — purple accent */
#orb-card-5 {
  border-left: 2px solid rgba(180, 130, 255, 0.3) !important;
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.04) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-6 {
  border-left: 2px solid rgba(180, 130, 255, 0.25) !important;
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.032) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-7 {
  border-left: 2px solid rgba(180, 130, 255, 0.2) !important;
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.024) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}
#orb-card-8 {
  border-left: 2px solid rgba(180, 130, 255, 0.15) !important;
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.016) 0%,
    transparent 70%
  ) !important;
  border-radius: 0 4px 4px 0 !important;
  cursor: pointer;
}

/* Card hover — blue docs */
#orb-card-1:hover,
#orb-card-2:hover,
#orb-card-3:hover,
#orb-card-4:hover {
  background: linear-gradient(
    90deg,
    rgba(91, 141, 239, 0.08) 0%,
    rgba(91, 141, 239, 0.02) 60%,
    transparent 100%
  ) !important;
  border-left-color: rgba(91, 141, 239, 0.6) !important;
  box-shadow:
    inset 3px 0 20px -4px rgba(91, 141, 239, 0.15),
    0 0 25px rgba(91, 141, 239, 0.04) !important;
}
/* Card hover — purple play */
#orb-card-5:hover,
#orb-card-6:hover,
#orb-card-7:hover,
#orb-card-8:hover {
  background: linear-gradient(
    90deg,
    rgba(180, 130, 255, 0.08) 0%,
    rgba(180, 130, 255, 0.02) 60%,
    transparent 100%
  ) !important;
  border-left-color: rgba(180, 130, 255, 0.6) !important;
  box-shadow:
    inset 3px 0 20px -4px rgba(180, 130, 255, 0.15),
    0 0 25px rgba(180, 130, 255, 0.04) !important;
}

/* Server block */
#orb-server {
  border-left: 2px solid rgba(100, 220, 180, 0.3) !important;
  border-radius: 0 4px 4px 0 !important;
}
#orb-online {
  color: rgba(100, 220, 180, 0.55);
  text-shadow: 0 0 15px rgba(100, 220, 180, 0.15);
}

/* Buttons */
#orb-addr {
  border: 1px solid rgba(100, 220, 180, 0.25) !important;
  border-radius: 4px !important;
  background: rgba(100, 220, 180, 0.06) !important;
  color: rgba(100, 220, 180, 0.7) !important;
  cursor: pointer !important;
}
#orb-addr:hover {
  background: rgba(100, 220, 180, 0.12) !important;
  border-color: rgba(100, 220, 180, 0.4) !important;
}
#orb-btn-proxy {
  border: 1px solid rgba(100, 220, 180, 0.2) !important;
  border-radius: 4px !important;
  background: rgba(100, 220, 180, 0.04) !important;
}
#orb-btn-proxy:hover {
  background: rgba(100, 220, 180, 0.1) !important;
  border-color: rgba(100, 220, 180, 0.35) !important;
}
#orb-btn-byond {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.015) !important;
}

/* Footer */
#orb-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* ===== Heading styles ===== */
#content h1,
#content h2,
#content h3,
#content h4 {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

#firstHeading {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Navigation / sidebar dark overrides ===== */
#mw-panel .portal h3 {
  color: rgba(255, 255, 255, 0.5) !important;
}

#mw-panel .portal .body a {
  color: rgba(200, 200, 200, 0.7) !important;
}

#mw-panel .portal .body a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== Top navigation bar ===== */
#mw-head a {
  color: rgba(200, 200, 200, 0.7) !important;
}

#mw-head a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== Page action tabs (Edit, View source, History, etc.) ===== */
/* Vector skin */
.vector-menu-tabs li a,
.vector-menu-tabs li a:visited,
#p-views li a,
#p-cactions li a,
#p-namespaces li a {
  color: rgba(200, 200, 200, 0.7) !important;
}

.vector-menu-tabs li a:hover,
#p-views li a:hover,
#p-cactions li a:hover,
#p-namespaces li a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}

.vector-menu-tabs li.selected a,
#p-views li.selected a,
#p-namespaces li.selected a {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Vector tab underline/border */
.vector-menu-tabs li {
  background: none !important;
}

.vector-menu-tabs li.selected {
  background: none !important;
  border-bottom-color: rgba(140, 180, 255, 0.6) !important;
}

/* Citizen skin page actions */
.citizen-header,
.citizen-page-header {
  background: transparent !important;
}

.page-actions a,
.page-actions button,
.citizen-page-heading__actions a,
.citizen-page-heading__actions button {
  color: rgba(200, 200, 200, 0.7) !important;
}

.page-actions a:hover,
.page-actions button:hover,
.citizen-page-heading__actions a:hover,
.citizen-page-heading__actions button:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== Section edit links [edit] ===== */
.mw-editsection,
.mw-editsection a,
.mw-editsection-bracket {
  color: rgba(140, 180, 255, 0.5) !important;
}

.mw-editsection a:hover {
  color: rgba(180, 210, 255, 0.9) !important;
}

/* ===== Dropdown menus / portlets (More, Tools, etc.) ===== */
.vector-menu-content,
.vector-menu-content ul,
#p-cactions .vector-menu-content,
.mw-portlet .mw-portlet-body {
  background: #14141a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.vector-menu-content li a,
.mw-portlet .mw-portlet-body a {
  color: rgba(200, 200, 200, 0.7) !important;
}

.vector-menu-content li a:hover,
.mw-portlet .mw-portlet-body a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* ===== Citizen skin sidebar ===== */
.citizen-drawer,
.citizen-drawer__content,
.citizen-menu__card {
  background: #14141a !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.citizen-menu__card a {
  color: rgba(200, 200, 200, 0.7) !important;
}

.citizen-menu__card a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Citizen top header bar */
.citizen-header__logo,
.citizen-header__inner {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== Notifications / user menu ===== */
#pt-notifications-alert a,
#pt-notifications-notice a,
#p-personal li a,
.mw-header-notifications a {
  color: rgba(200, 200, 200, 0.7) !important;
}

#p-personal li a:hover,
.mw-header-notifications a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== Edit page / form elements ===== */
textarea,
input[type="text"],
input[type="search"],
input[type="password"],
select {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Edit toolbar */
.oo-ui-toolbar-bar {
  background: #14141a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.oo-ui-toolbar-bar .oo-ui-buttonElement-button {
  color: rgba(200, 200, 200, 0.7) !important;
}

/* ===== Diff / special pages ===== */
.diff-context {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.diff-addedline {
  background: rgba(50, 120, 50, 0.15) !important;
}

.diff-deletedline {
  background: rgba(120, 50, 50, 0.15) !important;
}

/* ===== Tables (wikitable) ===== */
.wikitable {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.wikitable th {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.wikitable td {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ===== Infobox / messagebox ===== */
.mbox-small,
.ambox,
.tmbox,
.ombox,
.cmbox,
.fmbox {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== Search box ===== */
#simpleSearch {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

#searchInput {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ===== Footer ===== */
#footer {
  color: rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

#footer a {
  color: rgba(140, 180, 255, 0.6) !important;
}

/* ===== Category links ===== */
#catlinks {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ===== Table of Contents (native fallback) ===== */
#toc,
.toc {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== Orbitalis custom TOC ===== */
/* Opt-in: add <div id="orb-toc"></div> to page wikitext to activate.
   JS creates #orb-toc-sidebar in document.body (outside any skin container). */

/* Hide the marker div */
#orb-toc {
  display: none !important;
}

/* The actual sidebar (appended to body by JS) */
#orb-toc-sidebar {
  position: fixed;
  left: 0;
  top: 56px;
  width: 220px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  background: transparent;
  border-right: none;
  padding: 20px 12px 20px 16px;
  pointer-events: auto;
  font-family: "Comfortaa", sans-serif;
  font-size: 0.82em;
  line-height: 1.45;
  transition: opacity 0.3s ease;
}

/* Title */
#orb-toc-sidebar .orb-toc-head {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#orb-toc-sidebar .orb-toc-head::before {
  display: none;
}

/* List reset */
#orb-toc-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* All items */
#orb-toc-sidebar li {
  margin: 0;
  padding: 0;
}

#orb-toc-sidebar li a {
  display: block;
  padding: 5px 0 5px 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none !important;
  transition:
    color 0.2s,
    background 0.2s;
  background: none !important;
  box-shadow: none !important;
}

#orb-toc-sidebar li a:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(91, 141, 239, 0.04) !important;
}

/* Active section (works for all heading levels) */
#orb-toc-sidebar li.orb-toc-active > a {
  color: rgba(140, 180, 255, 0.95);
  background: rgba(91, 141, 239, 0.06) !important;
}

/* h2 (sub-section under h1) */
#orb-toc-sidebar li.orb-toc-h2 a {
  padding-left: 12px;
}

/* h3 indent */
#orb-toc-sidebar li.orb-toc-h3 a {
  padding-left: 24px;
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.35);
}

#orb-toc-sidebar li.orb-toc-h3.orb-toc-active > a {
  color: rgba(140, 180, 255, 0.95);
}

/* h4 indent */
#orb-toc-sidebar li.orb-toc-h4 a {
  padding-left: 36px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.28);
}

#orb-toc-sidebar li.orb-toc-h4.orb-toc-active > a {
  color: rgba(140, 180, 255, 0.95);
}

/* Custom scrollbar */
#orb-toc-sidebar::-webkit-scrollbar {
  width: 3px;
}
#orb-toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#orb-toc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(91, 141, 239, 0.15);
  border-radius: 2px;
}

/* Mobile: hide fixed sidebar */
@media (max-width: 1100px) {
  #orb-toc-sidebar {
    display: none !important;
  }
}