MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*************************************🎮**************************************
/*************************************🎮**************************************
                                                                              *
       ╔═══════════════════════════════════════════════════════════════════╗   
       ╔═══════════════════════════════════════════════════════════════════╗   
                                                         COMMON.CSS (vA0.1)                                                         
                                                         COMMON.CSS (vA0.1)                                                         
                                                                 ✦ M*n* B**** ✦                                                               
                                                                 ✦ M*n* B**** ✦                                                               
       ╚═══════════════════════════════════════════════════════════════════╝   
       ╚═══════════════════════════════════════════════════════════════════╝   
                                                                              *
  *******************************************************************************/
  *******************************************************************************/
/*
*This page contains the entire stylesheet for the MB Wiki.
*We urge you "not to edit" this page "directly".
*Some of the code inherited from coralisland.wiki.
*Any functional issue please report to our wiki-team at the official discord channel
*Imports will be starting below this very line;
*/
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');


/* ============================================
/* ============================================
   ALL @IMPORTS MUST BE AT THE VERY TOP
   ALL @IMPORTS MUST BE AT THE VERY TOP
   ============================================ */
   ============================================ */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
Line 29: Line 43:


/* ============================================
/* ============================================
  THEME DAYBREAK (Mana) – Default
  TOKEN ROOT ARCHITECTURE
   ============================================ */
   ============================================ */
/* ✦ THEME MANA (LIGHT) - DEFAULT ✦ */
:root {
:root {
     /* Primary gradient */
     /* 1. Core Color Palette */
     --theme-primary-start: #C8F1E4;
     --color-primary: #88eee0;
     --theme-primary-mid:   #B8DCE7;
    --color-secondary: #d9ffe9;
     --theme-primary-end:   #B9A9D5;
    --color-accent: #87b4b7;
     --theme-primary-gradient: linear-gradient(135deg, var(--theme-primary-start), var(--theme-primary-mid), var(--theme-primary-end));
   
    /* 2. Semantic Backgrounds */
    --theme-body-bg: var(--color-secondary);
    --theme-card-bg: rgba(255, 255, 255, 0.85);  
     --theme-card-bg-hover: #ffffff;
   
    /* 3. Semantic Text Colors */
     --theme-text-primary: #1a2b3c;
    --theme-text-muted: #4a5b6c;
     --theme-heading-color: #0d1b2a;
   
    /* 4. Borders & Interactive Elements */
    --theme-border-color: var(--color-accent);
    --theme-border-color-rgb: 135, 180, 183;
    --theme-link-color: #006b75;
    --theme-link-hover: #004a52;
   
    /* 5. Structures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
   
    /* Main Page Layout Layout */
    --main-page-layout--desktop: 'banner banner banner' 'about about updates' 'starts starts starts' 'items items items' 'characters characters characters' 'enemies enemies enemies' 'area area area';
    --main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
    --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
}


    /* Body / Text */
/* ✦ THEME BREAK (DARK) - TOGGLE ✦ */
    --theme-body-text:            #1A1A1A;
html.theme-break {
    --theme-body-text-rgb:        26,26,26;
     /* 1. Core Color Palette */
    --theme-body-text-muted:      #5A5A5A;
     --color-primary: #12435e;
    --theme-body-text-emphasized: #0F0F0F;
     --color-secondary: #0e344d;
    --theme-heading-color:        #1A1A1A;
     --color-accent: #7ff6e3;
 
      
     /* Links */
     /* 2. Semantic Backgrounds */
     --theme-link-color:         #005B9F;
     --theme-body-bg: var(--color-secondary);
     --theme-link-color-visited: #673AB7;
     --theme-card-bg: var(--color-primary);
     --theme-link-color-hover:   #003D6B;
     --theme-card-bg-hover: #164f6f;
     --theme-link-color-new:    #D32F2F;
      
 
     /* 3. Semantic Text Colors */
     /* Backgrounds */
     --theme-text-primary: #eaeef2;
     --theme-page-background:       #EAF2F5;
     --theme-text-muted: #87b4b7;
    --theme-page-background--secondary: rgba(255,255,255,0.6);
     --theme-heading-color: #ffffff;
     --theme-body-background:       #F5F9FC;
      
    --theme-widget-background:      rgba(255,255,255,0.75);
     /* 4. Borders & Interactive Elements */
     --theme-widget-background-solid:#FFFFFF;
     --theme-border-color: var(--color-accent);
    --theme-box-background:        rgba(255,255,255,0.6);
     --theme-border-color-rgb: 127, 246, 227;
     --theme-highlight-background:  rgba(0,0,0,0.05);
     --theme-link-color: var(--color-accent);
 
     --theme-link-hover: #aafff0;
     /* Glass / Overlay */
      
    --theme-glass-background:        rgba(255,255,255,0.4);
     /* 5. Structures */
    --theme-glass-background-solid:  #FFFFFF;
     --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.3);
 
    /* Accent & derived */
     --theme-accent-color:       #00A896;
     --theme-accent-color-light: #00F5D4;
     --theme-accent-color-dark: #007A6C;
     --accent: var(--theme-accent-color);
    --accent-light: var(--theme-accent-color-light);
    --accent-rgb: 0,168,150;  /* same as accent-color */
 
     /* Borders */
     --theme-border-color:           rgba(0,0,0,0.12);
    --theme-border-color-rgb:        0,0,0;
    --theme-border-color-accent:    rgba(0,0,0,0.25);
     --theme-border-color-light:     rgba(0,0,0,0.06);
     --theme-hr-color-top:           rgba(0,0,0,0.12);
    --theme-hr-color-bottom:        rgba(255,255,255,0.8);
    --theme-box-border-color:        var(--theme-border-color-accent);
     --theme-box-border-color-inner: var(--theme-border-color-accent);
    --theme-box-border-color-light:  var(--theme-border-color-light);
     --theme-box-border-radius:      6px;
    --theme-box-border-radius-inner: 4px;
 
     /* Widget shadows */
     --theme-shadow-small:   0 1px 3px  rgba(0,0,0,0.12);
    --theme-shadow-medium:  0 2px 6px rgba(0,0,0,0.15);
 
    /* Scrollbar */
    --theme-scrollbar-track:      rgba(0,0,0,0.05);
    --theme-scrollbar-thumb:      rgba(0,0,0,0.2);
    --theme-scrollbar-thumb-hover: rgba(0,0,0,0.3);
 
    /* Table of Contents */
    --theme-toc-background:        rgba(255,255,255,0.5);
    --theme-toc-border:            var(--theme-border-color-accent);
    --theme-toc-number-color:      var(--theme-body-text-muted);
    --theme-toc-link-color:        var(--theme-body-text);
 
    /* Message boxes */
    --theme-notice-blue-background:    #E3F2FD;
    --theme-notice-blue-border:        #90CAF9;
    --theme-notice-red-background:    #FFEBEE;
    --theme-notice-red-border:        #EF9A9A;
    --theme-notice-red-text:          #C62828;
    --theme-notice-yellow-background:  #FFF8E1;
    --theme-notice-yellow-border:      #FFE082;
    --theme-notice-orange-background:  #FFF3E0;
    --theme-notice-orange-border:      #FFCC80;
    --theme-notice-green-background:  #E8F5E9;
    --theme-notice-green-border:      #A5D6A7;
    --theme-notice-purple-background:  #F3E5F5;
    --theme-notice-purple-border:      #CE93D8;
 
    /* Diff */
    --theme-diff-added-bg:      #E6FFE6;
    --theme-diff-added-text:    #001700;
    --theme-diff-removed-bg:    #FFE6E6;
    --theme-diff-removed-text:  #1F0000;
 
    /* Chat */
    --theme-chat-player: #2E7D32;
    --theme-chat-npc:    #C62828;
 
    --gray-050: rgba(0,0,0,0.05);
}
}
/* ============================================
/* ============================================
   THEME BREAK (Deep Cosmos) – Dark
   BASE LAYOUT & STRUCTURAL RESET
   ============================================ */
   ============================================ */
html.theme-break {
    --theme-primary-start: #0B3D3D;
    --theme-primary-mid:  #1A1B4B;
    --theme-primary-end:  #311B92;
    --theme-primary-gradient: linear-gradient(135deg, var(--theme-primary-start), var(--theme-primary-mid), var(--theme-primary-end));


    --theme-body-text:           #F2F2F2;
/* 1. Universal Box Sizing */
    --theme-body-text-rgb:       242,242,242;
*, *::before, *::after {
     --theme-body-text-muted:     #A0A0A0;
     box-sizing: border-box;
    --theme-body-text-emphasized: #FFFFFF;
}
    --theme-heading-color:        #FFFFFF;


     --theme-link-color:        #00F5D4;
/* 2. MediaWiki Body & Container Reset */
     --theme-link-color-visited: #B388FF;
body {
     --theme-link-color-hover:  #76FFEB;
     background-color: var(--theme-body-bg) !important;
     --theme-link-color-new:    #FF5252;
     color: var(--theme-text-primary);
     font-family: 'Fredoka', sans-serif;  
     transition: background-color 0.3s ease, color 0.3s ease;
}


    --theme-page-background:        #0F0F19;
/* Stripping native MediaWiki container styles  */
    --theme-page-background--secondary: rgba(255,255,255,0.08);
.mw-body, #content {
    --theme-body-background:        #121420;
     background: transparent !important;
     --theme-widget-background:     rgba(20,20,35,0.75);
     border: none !important;
     --theme-widget-background-solid:#1A1B2F;
     color: var(--theme-text-primary);
     --theme-box-background:         rgba(255,255,255,0.05);
}
    --theme-highlight-background:  rgba(255,255,255,0.08);


     --theme-glass-background:       rgba(15,15,25,0.6);
/* 3. Typography Normalization */
     --theme-glass-background-solid: #151622;
h1, h2, h3, h4, h5, h6 {
     color: var(--theme-heading-color);
    margin-top: 0;
     font-weight: 600;
}


    --theme-accent-color:      #00F5D4;
/* Remove MediaWiki's harsh default underline on H1/H2 */
    --theme-accent-color-light: #76FFEB;
.mw-body h1, .mw-body h2 {
    --theme-accent-color-dark:  #009C87;
     border-bottom: 2px solid var(--theme-border-color);  
     --accent: var(--theme-accent-color);
     padding-bottom: 0.25em;
     --accent-light: var(--theme-accent-color-light);
}
    --accent-rgb: 0,245,212;


    --theme-border-color:            rgba(255,255,255,0.12);
/* 4. Hyperlink Standardization */
    --theme-border-color-rgb:        255,255,255;
a {
     --theme-border-color-accent:     rgba(255,255,255,0.25);
     color: var(--theme-link-color);
    --theme-border-color-light:      rgba(255,255,255,0.07);
     text-decoration: none;
     --theme-hr-color-top:           rgba(255,255,255,0.08);
     transition: color 0.2s ease;
     --theme-hr-color-bottom:        rgba(0,0,0,0.3);
}
    --theme-box-border-color:        var(--theme-border-color-accent);
    --theme-box-border-color-inner:  var(--theme-border-color-accent);
    --theme-box-border-color-light:  var(--theme-border-color-light);


     --theme-shadow-small:  0 1px 3px  rgba(0,0,0,0.4);
a:hover, a:focus {
     --theme-shadow-medium: 0 2px 6px  rgba(0,0,0,0.6);
     color: var(--theme-link-hover);
     text-decoration: underline;
}


    --theme-scrollbar-track:       rgba(255,255,255,0.05);
a:visited {
     --theme-scrollbar-thumb:       rgba(255,255,255,0.15);
     color: var(--theme-link-color);  
    --theme-scrollbar-thumb-hover: rgba(255,255,255,0.25);
}


    --theme-toc-background:        rgba(255,255,255,0.05);
/* 5. Responsive Media & Selection */
     --theme-toc-border:           var(--theme-border-color-accent);
img, video {
     --theme-toc-number-color:     var(--theme-body-text-muted);
     max-width: 100%;
    --theme-toc-link-color:        var(--theme-body-text);
     height: auto;
}


    --theme-notice-blue-background:   #1A2B3B;
::selection {
    --theme-notice-blue-border:       #2F4F6F;
     background: var(--color-primary);
     --theme-notice-red-background:     #3B1A1A;
     color: #000;  
    --theme-notice-red-border:        #6F2F2F;
}
     --theme-notice-red-text:           #FF8A8A;
::-moz-selection {
    --theme-notice-yellow-background:  #3B361A;
     background: var(--color-primary);
    --theme-notice-yellow-border:     #6F652F;
     color: #000;
    --theme-notice-orange-background: #3B2D1A;
    --theme-notice-orange-border:      #6F552F;
     --theme-notice-green-background:   #1A3B2A;
    --theme-notice-green-border:      #2F6F4F;
    --theme-notice-purple-background:  #2A1A3B;
    --theme-notice-purple-border:      #4F2F6F;
 
    --theme-diff-added-bg:      #1A2E1A;
    --theme-diff-added-text:    #B8FFB8;
    --theme-diff-removed-bg:    #2E1A1A;
    --theme-diff-removed-text:  #FFB8B8;
 
    --theme-chat-player: #66BB6A;
     --theme-chat-npc:   #EF5350;
 
    --gray-050: rgba(255,255,255,0.05);
}
}


/* ============================================
/* ============================================
   BASE LAYOUT FIXES
   BASE LAYOUT (MAPPED TO TOKENS)
   ============================================ */
   ============================================ */
html, body {
    background-color: var(--theme-body-bg) !important;
    background-image: none !important;
    color: var(--theme-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.mw-body {
.mw-body {
     margin-top: -1px;
     margin-top: -1px;
     border: 1px solid var(--theme-body-text-emphasized);
     border: 1px solid var(--theme-border-color);
     border-radius: 1px;
     border-radius: var(--radius-sm);
     background-color: transparent;
     background-color: transparent;
}
body.skin-vector {
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}
body.skin-vector-dark {
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}
}


Line 252: Line 214:
}
}


/* Desktop Layout */
@media (min-width: 1024px) {
@media (min-width: 1024px) {
     #mp-container {
     #mp-container {
Line 259: Line 222:
}
}


/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
@media (min-width: 768px) and (max-width: 1023px) {
     #mp-container {
     #mp-container {
Line 266: Line 230:
}
}


/* Mobile Layout */
@media (max-width: 767px) {
@media (max-width: 767px) {
     #mp-container {
     #mp-container {
Line 274: Line 239:
}
}


/* MP Box styling */
.mp-box {
.mp-box {
     animation: fadeInUp 0.5s ease forwards;
     animation: fadeInUp 0.5s ease forwards;
Line 279: Line 245:
}
}


/* Staggered animations */
.mp-box:nth-child(1) { animation-delay: 0.05s; }
.mp-box:nth-child(1) { animation-delay: 0.05s; }
.mp-box:nth-child(2) { animation-delay: 0.1s; }
.mp-box:nth-child(2) { animation-delay: 0.1s; }
Line 289: Line 256:


@keyframes fadeInUp {
@keyframes fadeInUp {
     from { opacity: 0; transform: translateY(20px); }
     from {
     to   { opacity: 1; transform: translateY(0); }
        opacity: 0;
        transform: translateY(20px);
    }
     to {
        opacity: 1;
        transform: translateY(0);
    }
}
}


/* ============================================
/* ============================================
  GAME INTRO CARDS
  MAIN PAGE CARDS & GRIDS
   ============================================ */
   ============================================ */
/* Main Grid Wrapper  */
.main-page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}
/* 1. Game Intro Cards */
.game-intro-card {
.game-intro-card {
     background: var(--theme-page-background--secondary);
     background-color: var(--theme-card-bg);
     border-radius: 12px;
     border-radius: var(--radius-lg); /* From Step 1 */
     padding: 1.25rem;
     padding: 1.25rem;
     border: 1px solid var(--theme-border-color);
     border: 1px solid var(--theme-border-color);
     transition: transform 0.2s ease, box-shadow 0.2s ease;
     box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
     height: 100%;
     height: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
}
}


.game-intro-card:hover {
.game-intro-card:hover {
     transform: translateY(-2px);
    background-color: var(--theme-card-bg-hover);
     box-shadow: var(--theme-shadow-medium);
     transform: translateY(-4px);  
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);  
}
}


/* 2. Header Elements */
.game-header {
.game-header {
     margin-bottom: 1rem;
     margin-bottom: 1rem;
Line 319: Line 308:
     font-size: 1.5rem;
     font-size: 1.5rem;
     font-weight: 600;
     font-weight: 600;
     background: linear-gradient(135deg, var(--accent), var(--accent-light));
    margin: 0;
   
    /* Gradient */
     background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
     -webkit-background-clip: text;
     -webkit-background-clip: text;
     background-clip: text;
     background-clip: text;
     color: transparent;
     color: transparent;
     display: inline-block;
   
    /* Flexbox aligning the icon perfectly */
     display: flex;
    align-items: center;
    gap: 8px;  
     letter-spacing: 0.5px;
     letter-spacing: 0.5px;
    margin: 0 !important;
}
.mana-text img {
    vertical-align: middle;
    margin-left: 8px;
}
}


.mana-line {
.mana-line {
     height: 3px;
     height: 3px;
     background: linear-gradient(90deg, var(--accent), transparent);
     background: linear-gradient(90deg, var(--color-accent), transparent);
     margin-top: 0.5rem;
     margin-top: 0.5rem;
     width: 100%;
     width: 100%;
    border-radius: 2px;
}
}


/* 3. Card Content & Headings */
.game-content {
.game-content {
     color: var(--theme-body-text);
     color: var(--theme-text-primary);
     line-height: 1.6;
     line-height: 1.6;
    flex-grow: 1;
}
}


/* ============================================
  HEADING STYLES
  ============================================ */
.heading-char {
.heading-char {
     font-size: 1.1rem;
     font-size: 1.1rem;
     font-weight: 600;
     font-weight: 600;
    color: var(--accent-light);
     margin: 0.5rem 0;
     margin: 1rem 0 0.5rem 0;
     padding-bottom: 0.25rem;
     padding-bottom: 0.25rem;
     border-bottom: 2px solid var(--accent);
     border-bottom: 2px solid var(--theme-border-color);
     display: inline-block;
     display: inline-block;
    transition: border-color 0.3s ease;
}
}


.heading-char a {
.heading-char a {
     color: var(--accent-light);
     color: var(--theme-heading-color);
     text-decoration: none;
     text-decoration: none;
    transition: color 0.2s ease;
}
}


.heading-char a:hover {
.heading-char a:hover {
     text-decoration: underline;
     color: var(--color-accent);
}
}


/* ============================================
/* 4. Auto Grid Lists (The Links) */
  AUTO GRID LISTS
  ============================================ */
.auto-grid {
.auto-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));  
     gap: 0.5rem;
     gap: 0.5rem;
     list-style: none;
     list-style: none;
     padding: 0;
     padding: 0;
     margin: 0.5rem 0;
     margin: 0.75rem 0 0 0;
}
}


.auto-grid li {
.auto-grid li {
     padding: 0.25rem 0;
     padding: 0;
}
}
 
/* Elevated List Link Styling */
.auto-grid li a {
.auto-grid li a {
    display: block;
    padding: 0.35rem 0.5rem;
     color: var(--theme-link-color);
     color: var(--theme-link-color);
     text-decoration: none;
     text-decoration: none;
     transition: color 0.2s ease;
     border-radius: var(--radius-sm);
     display: inline-block;
    background-color: rgba(127, 127, 127, 0.05);
    border: 1px solid transparent;
     transition: all 0.2s ease;
}
}


.auto-grid li a:hover {
.auto-grid li a:hover {
     color: var(--accent-light);
     color: var(--theme-link-hover);
     text-decoration: underline;
     background-color: var(--theme-body-bg);
    border-color: var(--theme-border-color);
    transform: translateX(3px);  
}
}
/* ============================================
/* ============================================
   BANNER SECTION
   BANNER, WIKI COMPONENTS & SCROLLBAR
   ============================================ */
   ============================================ */
/* 1. BANNER SECTION */
#mp-box-banner .mp-body {
#mp-box-banner .mp-body {
     background: var(--theme-primary-gradient);
     background: linear-gradient(135deg, var(--color-secondary), var(--theme-body-bg));
     border-radius: 16px;
     border-radius: var(--radius-lg);
     padding: 2rem;
     padding: 2rem;
     text-align: center;
     text-align: center;
     backdrop-filter: blur(10px);
     border: 1px solid var(--theme-border-color);
    box-shadow: var(--shadow-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}
}


Line 419: Line 418:
     align-items: center;
     align-items: center;
     gap: 0.5rem;
     gap: 0.5rem;
     background: var(--theme-highlight-background);
     background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
     padding: 0.5rem 1rem;
     padding: 0.5rem 1rem;
     border-radius: 8px;
     border-radius: var(--radius-md);
     transition: all 0.2s ease;
     transition: all 0.2s ease;
}
}


.iconname:hover {
.iconname:hover {
     background: rgba(var(--accent-rgb), 0.3);
     background: var(--color-primary);
    border-color: var(--color-accent);
     transform: translateY(-2px);
     transform: translateY(-2px);
}
}


.iconname a {
.iconname a {
     color: var(--theme-body-text-emphasized) !important;
     color: var(--theme-text-primary) !important;
     text-decoration: none;
     text-decoration: none;
     font-weight: 500;
     font-weight: 500;
}
}


/* ============================================
/* 2. WIKI FIXES & IMPROVEMENTS */
  WIKI FIXES & IMPROVEMENTS
  ============================================ */
.wikiEditor-ui-text > .ui-resizable {
.wikiEditor-ui-text > .ui-resizable {
     width: 100% !important;
     width: 100% !important;
Line 444: Line 443:
}
}


ul {
ul { list-style: disc; }
    list-style: disc;
}


h2 .mw-headline,
h2 .mw-headline, h3 .mw-headline, h4 .mw-headline { font-weight: 500; }
h3 .mw-headline,
.vector-body h3, .vector-body h4, .vector-body h5, .vector-body h6 { margin-bottom: 4px; }
h4 .mw-headline {
    font-weight: 500;
}
 
.vector-body h3,
.vector-body h4,
.vector-body h5,
.vector-body h6 {
    margin-bottom: 4px;
}
 
a, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    color: var(--theme-link-color);
}
 
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
    color: var(--theme-body-text);
}
 
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
    color: var(--theme-link-color);
}
 
.mw-parser-output a.external {
    padding-right: 0;
    font-size: inherit;
}


/* Categories */
.catlinks {
.catlinks {
     border-color: var(--theme-border-color);
     border-color: var(--theme-border-color);
     border-radius: 6px;
     border-radius: var(--radius-md);
     background-color: var(--gray-050);
     background-color: var(--theme-card-bg);
    padding: 10px;
}
}


/* Code blocks */
code, pre {
code, pre {
     background-color: var(--theme-page-background--secondary);
     background-color: var(--theme-card-bg);
     color: var(--theme-body-text);
     color: var(--theme-text-primary);
     border: 1px solid var(--theme-border-color);
     border: 1px solid var(--theme-border-color);
     border-radius: 2px;
     border-radius: var(--radius-sm);
     padding: 1px 4px;
     padding: 2px 6px;
     font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
     font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
}


.code-block-table * {
code.code-block-table { display: table; line-height: 21px; padding: 8px; }
    font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
.code-block-table * { font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace; }
}
.code-block { display: inline-block; line-height: 21px; }


/* Table of Contents */
.toc {
.toc {
     padding: 8px 12px;
     padding: 12px 16px;
     border-radius: 4px;
     border-radius: var(--radius-md);
     background-color: var(--theme-page-background--secondary);
     background-color: var(--theme-card-bg);
     border: 1px solid var(--theme-border-color);
     border: 1px solid var(--theme-border-color);
     margin-top: 16px;
     margin-top: 16px;
    box-shadow: var(--shadow-soft);
}
}


.toctogglelabel {
.toctogglelabel { color: var(--theme-link-color); }
    color: var(--theme-link-color);
.tocnumber { color: var(--theme-text-muted); }
}
.vector-body .toc h2 { font-family: 'Fredoka', sans-serif; }
 
.tocnumber {
    color: var(--theme-body-text);
}
 
.vector-body .toc h2 {
    font-family: 'Fredoka', sans-serif;
}


/* Hatnote */
.hatnote {
.hatnote {
     border-left: 4px solid var(--theme-border-color);
     border-left: 4px solid var(--color-accent);
     padding: 6px 12px;
     padding: 8px 12px;
     border-radius: 4px;
     border-radius: var(--radius-sm);
    background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb), 0.30) 0%, rgba(var(--theme-border-color-rgb), 0) 100%);
    background-color: var(--theme-card-bg);
     margin: 8px 0;
     margin: 8px 0;
}
}


/* Variables styling */
span.variable { opacity: 0.65; }
span.variable { opacity: 0.65; }
span.variable::after { opacity: 0.65; content: ">"; }
span.variable::after { opacity: 0.65; content: ">"; }
span.variable::before { opacity: 0.65; content: "<"; }
span.variable::before { opacity: 0.65; content: "<"; }


.pull-quote {
/* Pull quotes */
    font-style: italic;
.pull-quote { font-style: italic; margin: 0; padding: 0 30px 8px !important; }
    margin: 0;
    padding: 0 30px 8px !important;
}
 
.pull-quote::before {
.pull-quote::before {
     color: var(--accent);
     color: var(--color-accent);
     content: "“";
     content: "“";
     display: block;
     display: block;
Line 545: Line 509:
     margin: 4px 0 -45px -5px;
     margin: 4px 0 -45px -5px;
}
}
.pull-quote__source::before { content: "— "; margin-bottom: 8px; }
.pull-quote__text { margin-bottom: 4px; }


.pull-quote__source::before {
/* Gallery & Changelist */
     content: "— ";
.gallerytext { text-align: center; font-size: 100%; }
     margin-bottom: 8px;
.changelist-header { display: flex; justify-content: space-between; align-items: center; font-size: 88%; margin: 0.3em 0; }
.changelist-content { overflow: auto; max-height: 384px; padding: 1em; box-sizing: border-box; border-radius: var(--radius-md); }
.changelist-border { border: 1px solid var(--theme-border-color); border-left: 6px solid var(--color-accent); }
 
/* Chat wrapper */
.chat-wrapper { display: flex; flex-direction: column; }
.chat-player, .chat-npc { display: flex; flex-direction: row; gap: 0.5em; }
.chat-player-speaker { white-space: nowrap; min-width: 70px; color: #43b581; font-weight: 600; }
.chat-npc-speaker { white-space: nowrap; min-width: 70px; color: #f04747; font-weight: 600; }
 
/* 3. RESPONSIVE IMPROVEMENTS */
@media (max-width: 768px) {
     .game-intro-card { padding: 1rem; }
    .mana-text { font-size: 1.25rem; }
    .social { gap: 0.5rem; }
    .iconname { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
     #mp-box-banner .mp-body { padding: 1rem; }
}
}


.pull-quote__text {
/* 4. CUSTOM SCROLLBAR */
     margin-bottom: 4px;
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
     background: var(--theme-body-bg);
    border-radius: 0px;  
}
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--theme-link-hover); }


.gallerytext {
/* 5. UTILITY CLASSES */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-2 { padding: 0.5rem; }
/* ============================================
  WIKI COMPONENTS
  ============================================ */
 
/* 1. WIKITABLES  */
table.wikitable {
    background-color: var(--theme-card-bg);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-border-color);
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%; /* Encourages responsive behavior */
    box-shadow: var(--shadow-soft);
}
 
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
    border: 1px solid var(--theme-border-color);
    padding: 0.5em 0.75em;
}
 
/* Table Headers */
table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color: var(--color-primary);
    color: var(--theme-heading-color);
    font-weight: 600;
     text-align: center;
     text-align: center;
    font-size: 100%;
}
}


.changelist-header {
 
     display: flex;
table.wikitable > tbody > tr:hover {
     justify-content: space-between;
    background-color: rgba(127, 127, 127, 0.05);
     align-items: center;
}
     font-size: 88%;
 
     margin: 0.3em 0;
/* 2. INFOBOXES  */
.infobox {
     float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
     border-radius: var(--radius-md);
     padding: 10px;
    box-shadow: var(--shadow-soft);
     font-size: 0.9em;
     color: var(--theme-text-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
}


.changelist-content {
/* Infobox Headers */
     overflow: auto;
.infobox th {
     max-height: 384px;
     background-color: var(--color-secondary);
     padding: 1em;
     color: var(--theme-heading-color);
     box-sizing: border-box;
     text-align: center;
     border-radius: 6px;
     padding: 5px;
     border-radius: var(--radius-sm);
}
}


.changelist-border {
.infobox td {
     border: 1px solid var(--theme-border-color);
     padding: 4px 5px;
     border-left: 6px solid var(--accent);
     border-bottom: 1px solid rgba(127, 127, 127, 0.1);  
}
}


.chat-wrapper {
 
     display: flex;
.infobox tr:last-child td {
    flex-direction: column;
     border-bottom: none;
}
}


.chat-player,
/* 3. NAVBOXES  */
.chat-npc {
.navbox {
     display: flex;
     background-color: var(--theme-card-bg);
     flex-direction: row;
     border: 1px solid var(--theme-border-color);
     gap: 0.5em;
    border-radius: var(--radius-md);
     margin: 1.5em 0;
    padding: 2px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    width: 100%;
    clear: both;
}
}


.chat-player-speaker {
.navbox th {
     white-space: nowrap;
     background-color: var(--color-primary);
     min-width: 70px;
     color: var(--theme-heading-color);
     color: var(--theme-chat-player);
     border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 6px;
    font-weight: 600;
}
}


.chat-npc-speaker {
/* Group Headers inside Navbox */
.navbox .navbox-group {
    background-color: var(--color-secondary);
    color: var(--theme-text-primary);
    font-weight: 600;
    padding: 4px 8px;
     white-space: nowrap;
     white-space: nowrap;
     min-width: 70px;
     border-right: 2px solid var(--theme-body-bg);  
    color: var(--theme-chat-npc);
}
}


/* ============================================
.navbox .navbox-list {
  RESPONSIVE IMPROVEMENTS
     text-align: left;
  ============================================ */
     padding: 4px 8px;
@media (max-width: 768px) {
    .auto-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .game-intro-card {
        padding: 1rem;
    }
     .mana-text {
        font-size: 1.25rem;
     }
    .social {
        gap: 0.5rem;
    }
    .iconname {
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
    }
    #mp-box-banner .mp-body {
        padding: 1rem;
    }
}
}


/* Striping for Navbox lists */
.navbox .navbox-even {
    background-color: rgba(127, 127, 127, 0.03);
}
/* ============================================
/* ============================================
   CUSTOM SCROLLBAR
   THEME TOGGLE BUTTON
   ============================================ */
   ============================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
.floating-theme-toggle {
::-webkit-scrollbar-track { background: var(--theme-scrollbar-track); border-radius: 5px; }
    position: fixed;
::-webkit-scrollbar-thumb { background: var(--theme-scrollbar-thumb); border-radius: 5px; }
    bottom: 20px;
::-webkit-scrollbar-thumb:hover { background: var(--theme-scrollbar-thumb-hover); }
    right: 20px;
    z-index: 9999;
    padding: 10px 16px;
    background-color: var(--theme-card-bg);
    color: var(--theme-heading-color);
    border: 2px solid var(--theme-border-color);
    border-radius: var(--radius-lg);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);  
}


/* ============================================
.floating-theme-toggle:hover {
  UTILITY CLASSES
    background-color: var(--color-primary);
  ============================================ */
    border-color: var(--color-accent);
.text-center { text-align: center; }
    transform: translateY(-4px);  
.mt-2 { margin-top: 0.5rem; }
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
.mb-2 { margin-bottom: 0.5rem; }
    color: #000;  
.p-2  { padding: 0.5rem; }
}

Latest revision as of 06:46, 19 May 2026

/*************************************🎮**************************************
                                                                               *
       ╔═══════════════════════════════════════════════════════════════════╗   
                                                         COMMON.CSS (vA0.1)                                                         
                                                                 ✦ M*n* B**** ✦                                                              
       ╚═══════════════════════════════════════════════════════════════════╝   
                                                                              *
 *******************************************************************************/

/*
*This page contains the entire stylesheet for the MB Wiki.
*We urge you "not to edit" this page "directly".
*Some of the code inherited from coralisland.wiki.
*Any functional issue please report to our wiki-team at the official discord channel

*Imports will be starting below this very line;
*/
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');



/* ============================================
   ALL @IMPORTS MUST BE AT THE VERY TOP
   ============================================ */

@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");   
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");

/* ============================================
  TOKEN ROOT ARCHITECTURE
   ============================================ */

/* ✦ THEME MANA (LIGHT) - DEFAULT ✦ */
:root {
    /* 1. Core Color Palette */
    --color-primary: #88eee0;
    --color-secondary: #d9ffe9;
    --color-accent: #87b4b7;
    
    /* 2. Semantic Backgrounds */
    --theme-body-bg: var(--color-secondary);
    --theme-card-bg: rgba(255, 255, 255, 0.85); 
    --theme-card-bg-hover: #ffffff;
    
    /* 3. Semantic Text Colors */
    --theme-text-primary: #1a2b3c; 
    --theme-text-muted: #4a5b6c;
    --theme-heading-color: #0d1b2a;
    
    /* 4. Borders & Interactive Elements */
    --theme-border-color: var(--color-accent);
    --theme-border-color-rgb: 135, 180, 183;
    --theme-link-color: #006b75;
    --theme-link-hover: #004a52;
    
    /* 5. Structures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
    
    /* Main Page Layout Layout */
    --main-page-layout--desktop: 'banner banner banner' 'about about updates' 'starts starts starts' 'items items items' 'characters characters characters' 'enemies enemies enemies' 'area area area';
    --main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
    --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
}

/* ✦ THEME BREAK (DARK) - TOGGLE ✦ */
html.theme-break {
    /* 1. Core Color Palette */
    --color-primary: #12435e;
    --color-secondary: #0e344d;
    --color-accent: #7ff6e3;
    
    /* 2. Semantic Backgrounds */
    --theme-body-bg: var(--color-secondary);
    --theme-card-bg: var(--color-primary);
    --theme-card-bg-hover: #164f6f;
    
    /* 3. Semantic Text Colors */
    --theme-text-primary: #eaeef2;
    --theme-text-muted: #87b4b7;
    --theme-heading-color: #ffffff;
    
    /* 4. Borders & Interactive Elements */
    --theme-border-color: var(--color-accent);
    --theme-border-color-rgb: 127, 246, 227;
    --theme-link-color: var(--color-accent);
    --theme-link-hover: #aafff0;
    
    /* 5. Structures */
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.3);
}
/* ============================================
   BASE LAYOUT & STRUCTURAL RESET
   ============================================ */

/* 1. Universal Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. MediaWiki Body & Container Reset */
body {
    background-color: var(--theme-body-bg) !important;
    color: var(--theme-text-primary);
    font-family: 'Fredoka', sans-serif; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Stripping native MediaWiki container styles  */
.mw-body, #content {
    background: transparent !important;
    border: none !important;
    color: var(--theme-text-primary);
}

/* 3. Typography Normalization */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-heading-color);
    margin-top: 0;
    font-weight: 600;
}

/* Remove MediaWiki's harsh default underline on H1/H2 */
.mw-body h1, .mw-body h2 {
    border-bottom: 2px solid var(--theme-border-color); 
    padding-bottom: 0.25em;
}

/* 4. Hyperlink Standardization */
a {
    color: var(--theme-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--theme-link-hover);
    text-decoration: underline;
}

a:visited {
    color: var(--theme-link-color); 
}

/* 5. Responsive Media & Selection */
img, video {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--color-primary);
    color: #000; 
}
::-moz-selection {
    background: var(--color-primary);
    color: #000;
}

/* ============================================
   BASE LAYOUT (MAPPED TO TOKENS)
   ============================================ */
html, body {
    background-color: var(--theme-body-bg) !important;
    background-image: none !important; 
    color: var(--theme-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.mw-body {
    margin-top: -1px;
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-sm);
    background-color: transparent;
}

/* Hide default elements */
.mobileHide, .mobile-only, .no-desktop {
    display: none !important;
}

/* Fix for hidden H1 on main page */
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-submit h1.firstHeading {
    display: none;
}

/* ============================================
   MAIN PAGE GRID LAYOUT
   ============================================ */
#mp-container {
    display: grid;
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--desktop);
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--tablet);
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--mobile);
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* MP Box styling */
.mp-box {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Staggered animations */
.mp-box:nth-child(1) { animation-delay: 0.05s; }
.mp-box:nth-child(2) { animation-delay: 0.1s; }
.mp-box:nth-child(3) { animation-delay: 0.15s; }
.mp-box:nth-child(4) { animation-delay: 0.2s; }
.mp-box:nth-child(5) { animation-delay: 0.25s; }
.mp-box:nth-child(6) { animation-delay: 0.3s; }
.mp-box:nth-child(7) { animation-delay: 0.35s; }
.mp-box:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
  MAIN PAGE CARDS & GRIDS
   ============================================ */

/* Main Grid Wrapper  */
.main-page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

/* 1. Game Intro Cards */
.game-intro-card {
    background-color: var(--theme-card-bg);
    border-radius: var(--radius-lg); /* From Step 1 */
    padding: 1.25rem;
    border: 1px solid var(--theme-border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
}

.game-intro-card:hover {
    background-color: var(--theme-card-bg-hover);
    transform: translateY(-4px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary); 
}

/* 2. Header Elements */
.game-header {
    margin-bottom: 1rem;
    position: relative;
}

.mana-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    
    /* Gradient */
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    /* Flexbox aligning the icon perfectly */
    display: flex;
    align-items: center;
    gap: 8px; 
    letter-spacing: 0.5px;
}

.mana-line {
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 2px;
}

/* 3. Card Content & Headings */
.game-content {
    color: var(--theme-text-primary);
    line-height: 1.6;
    flex-grow: 1; 
}

.heading-char {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--theme-border-color);
    display: inline-block;
    transition: border-color 0.3s ease;
}

.heading-char a {
    color: var(--theme-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.heading-char a:hover {
    color: var(--color-accent);
}

/* 4. Auto Grid Lists (The Links) */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.auto-grid li {
    padding: 0;
}
 
/* Elevated List Link Styling */
.auto-grid li a {
    display: block; 
    padding: 0.35rem 0.5rem;
    color: var(--theme-link-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    background-color: rgba(127, 127, 127, 0.05); 
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.auto-grid li a:hover {
    color: var(--theme-link-hover);
    background-color: var(--theme-body-bg);
    border-color: var(--theme-border-color);
    transform: translateX(3px); 
}
/* ============================================
   BANNER, WIKI COMPONENTS & SCROLLBAR
   ============================================ */

/* 1. BANNER SECTION */
#mp-box-banner .mp-body {
    background: linear-gradient(135deg, var(--color-secondary), var(--theme-body-bg));
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--theme-border-color);
    box-shadow: var(--shadow-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Social links */
.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.iconname {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.iconname:hover {
    background: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.iconname a {
    color: var(--theme-text-primary) !important;
    text-decoration: none;
    font-weight: 500;
}

/* 2. WIKI FIXES & IMPROVEMENTS */
.wikiEditor-ui-text > .ui-resizable {
    width: 100% !important;
    max-width: 100%;
}

ul { list-style: disc; }

h2 .mw-headline, h3 .mw-headline, h4 .mw-headline { font-weight: 500; }
.vector-body h3, .vector-body h4, .vector-body h5, .vector-body h6 { margin-bottom: 4px; }

/* Categories */
.catlinks {
    border-color: var(--theme-border-color);
    border-radius: var(--radius-md);
    background-color: var(--theme-card-bg);
    padding: 10px;
}

/* Code blocks */
code, pre {
    background-color: var(--theme-card-bg);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}

code.code-block-table { display: table; line-height: 21px; padding: 8px; }
.code-block-table * { font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace; }
.code-block { display: inline-block; line-height: 21px; }

/* Table of Contents */
.toc {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    margin-top: 16px;
    box-shadow: var(--shadow-soft);
}

.toctogglelabel { color: var(--theme-link-color); }
.tocnumber { color: var(--theme-text-muted); }
.vector-body .toc h2 { font-family: 'Fredoka', sans-serif; }

/* Hatnote */
.hatnote {
    border-left: 4px solid var(--color-accent);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--theme-card-bg);
    margin: 8px 0;
}

/* Variables styling */
span.variable { opacity: 0.65; }
span.variable::after { opacity: 0.65; content: ">"; }
span.variable::before { opacity: 0.65; content: "<"; }

/* Pull quotes */
.pull-quote { font-style: italic; margin: 0; padding: 0 30px 8px !important; }
.pull-quote::before {
    color: var(--color-accent);
    content: "“";
    display: block;
    font-size: 96px;
    font-style: normal;
    line-height: 72px;
    margin: 4px 0 -45px -5px;
}
.pull-quote__source::before { content: "— "; margin-bottom: 8px; }
.pull-quote__text { margin-bottom: 4px; }

/* Gallery & Changelist */
.gallerytext { text-align: center; font-size: 100%; }
.changelist-header { display: flex; justify-content: space-between; align-items: center; font-size: 88%; margin: 0.3em 0; }
.changelist-content { overflow: auto; max-height: 384px; padding: 1em; box-sizing: border-box; border-radius: var(--radius-md); }
.changelist-border { border: 1px solid var(--theme-border-color); border-left: 6px solid var(--color-accent); }

/* Chat wrapper */
.chat-wrapper { display: flex; flex-direction: column; }
.chat-player, .chat-npc { display: flex; flex-direction: row; gap: 0.5em; }
.chat-player-speaker { white-space: nowrap; min-width: 70px; color: #43b581; font-weight: 600; } 
.chat-npc-speaker { white-space: nowrap; min-width: 70px; color: #f04747; font-weight: 600; }

/* 3. RESPONSIVE IMPROVEMENTS */
@media (max-width: 768px) {
    .game-intro-card { padding: 1rem; }
    .mana-text { font-size: 1.25rem; }
    .social { gap: 0.5rem; }
    .iconname { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
    #mp-box-banner .mp-body { padding: 1rem; }
}

/* 4. CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
    background: var(--theme-body-bg);
    border-radius: 0px; 
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--theme-link-hover); }

/* 5. UTILITY CLASSES */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-2 { padding: 0.5rem; }
/* ============================================
   WIKI COMPONENTS
   ============================================ */

/* 1. WIKITABLES  */
table.wikitable {
    background-color: var(--theme-card-bg);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-border-color);
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%; /* Encourages responsive behavior */
    box-shadow: var(--shadow-soft);
}

table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
    border: 1px solid var(--theme-border-color);
    padding: 0.5em 0.75em;
}

/* Table Headers */
table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color: var(--color-primary);
    color: var(--theme-heading-color);
    font-weight: 600;
    text-align: center;
}


table.wikitable > tbody > tr:hover {
    background-color: rgba(127, 127, 127, 0.05);
}

/* 2. INFOBOXES  */
.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-soft);
    font-size: 0.9em;
    color: var(--theme-text-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Infobox Headers */
.infobox th {
    background-color: var(--color-secondary);
    color: var(--theme-heading-color);
    text-align: center;
    padding: 5px;
    border-radius: var(--radius-sm);
}

.infobox td {
    padding: 4px 5px;
    border-bottom: 1px solid rgba(127, 127, 127, 0.1); 
}


.infobox tr:last-child td {
    border-bottom: none;
}

/* 3. NAVBOXES  */
.navbox {
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    padding: 2px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    width: 100%;
    clear: both;
}

.navbox th {
    background-color: var(--color-primary);
    color: var(--theme-heading-color);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 6px;
    font-weight: 600;
}

/* Group Headers inside Navbox */
.navbox .navbox-group {
    background-color: var(--color-secondary);
    color: var(--theme-text-primary);
    font-weight: 600;
    padding: 4px 8px;
    white-space: nowrap;
    border-right: 2px solid var(--theme-body-bg); 
}

.navbox .navbox-list {
    text-align: left;
    padding: 4px 8px;
}

/* Striping for Navbox lists */
.navbox .navbox-even {
    background-color: rgba(127, 127, 127, 0.03);
}
/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.floating-theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 16px;
    background-color: var(--theme-card-bg);
    color: var(--theme-heading-color);
    border: 2px solid var(--theme-border-color);
    border-radius: var(--radius-lg);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px); 
}

.floating-theme-toggle:hover {
    background-color: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-4px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #000; 
}