MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================
/*************************************🎮**************************************
  MANA BREAK WIKI - MAIN STYLESHEET
                                                                              *
  ============================================
      ╔═══════════════════════════════════════════════════════════════════╗ 
  Table of Contents:
                                                        COMMON.CSS (vA0.1)                                                        
  1. Variables & Theme Definitions
                                                                ✦ M*n* B**** ✦                                                             
  2. Base Styles & Animations
      ╚═══════════════════════════════════════════════════════════════════╝ 
  3. Header & Navigation
                                                                              *
  4. Sidebar (mw-panel)
*******************************************************************************/
  5. Footer
  6. Content & Typography
  7. Tables & Infoboxes
  8. Components (Cards, Quotes, Social, etc.)
  9. Responsive Design
  ============================================ */


/* ===== 1. VARIABLES & THEME DEFINITIONS ===== */
/*
*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


:root {
*Imports will be starting below this very line;
/* Universal Base Styles */
*/
--font-size: 16px;
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
--font-size-small: 14px;
--font-size-large: 18px;
--font-size-h1: 32px;
--font-size-h2: 26px;
--font-size-h3: 22px;
--font-size-h4: 18px;


--line-height: 1.6;
--line-height-headings: 1.3;
--line-height-tight: 1.25;


--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;


/* Spacing */
/* ============================================
--spacing-xs: 4px;
  ALL @IMPORTS MUST BE AT THE VERY TOP
--spacing-sm: 8px;
  ============================================ */
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 32px;
--spacing-2xl: 48px;


/* Shadows */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
@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");


/* Borders */
/* ============================================
--border-radius-sm: 4px;
  TOKEN ROOT ARCHITECTURE
--border-radius-md: 8px;
  ============================================ */
--border-radius-lg: 12px;
--border-radius-full: 9999px;
--border-width: 1px;


/* Transitions */
/* ✦ THEME MANA (LIGHT) - DEFAULT ✦ */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
:root {
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    /* 1. Core Color Palette */
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --color-primary: #88eee0;
 
    --color-secondary: #d9ffe9;
/* Focus States */
    --color-accent: #87b4b7;
--focus-ring-color: rgba(79, 209, 199, 0.6);
   
--focus-ring-width: 3px;
    /* 2. Semantic Backgrounds */
--focus-ring-offset: 2px;
    --theme-body-bg: var(--color-secondary);
 
    --theme-card-bg: rgba(255, 255, 255, 0.85);  
/* Gray Scale */
    --theme-card-bg-hover: #ffffff;
--gray-950: #0f1419;
   
--gray-900: #1a202c;
    /* 3. Semantic Text Colors */
--gray-800: #2d3748;
    --theme-text-primary: #1a2b3c;  
--gray-700: #4a5568;
    --theme-text-muted: #4a5b6c;
--gray-600: #718096;
    --theme-heading-color: #0d1b2a;
--gray-500: #a0aec0;
   
--gray-400: #cbd5e0;
    /* 4. Borders & Interactive Elements */
--gray-300: #e2e8f0;
    --theme-border-color: var(--color-accent);
--gray-200: #edf2f7;
    --theme-border-color-rgb: 135, 180, 183;
--gray-100: #f7fafc;
    --theme-link-color: #006b75;
 
    --theme-link-hover: #004a52;
/* Teal Scale */
   
--teal-900: #1d4044;
    /* 5. Structures */
--teal-800: #234e52;
    --radius-sm: 4px;
--teal-700: #285e61;
    --radius-md: 8px;
--teal-600: #2c7a7b;
    --radius-lg: 12px;
--teal-500: #319795;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
--teal-400: #38b2ac;
   
--teal-300: #4fd1c7;
    /* Main Page Layout Layout */
--teal-200: #81e6d9;
    --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';
--teal-100: #b2f5ea;
    --main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
--teal-50: #e6fffa;
    --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
 
/* Navigation Variables */
--mb-navigation-left-spacing: 0px;
--mb-navigation-right-spacing: 0px;
--mb-navigation-tab-padding-top: 1.25em;
--mb-navigation-tab-padding-x: 0.75em;
--mb-navigation-tab-padding-bottom: 4px;
--mb-navigation-border-radius: 4px 4px 0 0;
--mb-navigation-font-size: 0.8125em;
}
}


/* Light Theme */
/* ✦ THEME BREAK (DARK) - TOGGLE ✦ */
:root body:not(.skin-vector-dark) {
html.theme-break {
--theme-page-text-color: #1a2a2a;
    /* 1. Core Color Palette */
--theme-page-background-color: #f5fdfb;
    --color-primary: #12435e;
--theme-page-background-color--secondary: #e8f5f3;
    --color-secondary: #0e344d;
--theme-link-color: #007d7a;
    --color-accent: #7ff6e3;
--theme-link-color--hover: #005652;
   
--theme-accent-color: #38b2ac;
    /* 2. Semantic Backgrounds */
--theme-accent-color--hover: #2c9c96;
    --theme-body-bg: var(--color-secondary);
--theme-accent-label-color: #ffffff;
    --theme-card-bg: var(--color-primary);
--theme-border-color: #a1e9dc;
    --theme-card-bg-hover: #164f6f;
--theme-border-color--subtle: #d1f5ee;
   
--card-bg-main: #ffffff;
    /* 3. Semantic Text Colors */
--card-bg-elevated: #ffffff;
    --theme-text-primary: #eaeef2;
--input-bg: #ffffff;
    --theme-text-muted: #87b4b7;
--input-border: #cbd5e0;
    --theme-heading-color: #ffffff;
}
   
 
    /* 4. Borders & Interactive Elements */
/* Dark Theme */
    --theme-border-color: var(--color-accent);
:root .skin-vector-dark {
    --theme-border-color-rgb: 127, 246, 227;
--theme-page-text-color: #e6f7f5;
    --theme-link-color: var(--color-accent);
--theme-page-background-color: rgba(22, 28, 36, 0.98);
    --theme-link-hover: #aafff0;
--theme-page-background-color--secondary: #2a363d;
   
--theme-link-color: #5fd9cf;
    /* 5. Structures */
--theme-link-color--hover: #81e6d9;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.3);
--theme-accent-color: #5fd9cf;
--theme-accent-color--hover: #81e6d9;
--theme-accent-label-color: #1a202c;
--theme-border-color: #4d6872;
--theme-border-color--subtle: #3a5059;
--card-bg-main: #2a363d;
--card-bg-elevated: #34444d;
--input-bg: #2d3748;
--input-border: #4a5568;
}
 
/* ===== 2. BASE STYLES & ANIMATIONS ===== */
 
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
 
@keyframes shimmer {
0% { background-position: 100% 0; }
100% { background-position: -100% 0; }
}
 
*:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
outline-offset: var(--focus-ring-offset) !important;
border-radius: var(--border-radius-sm) !important;
}
}
/* ============================================
  BASE LAYOUT & STRUCTURAL RESET
  ============================================ */


@media (prefers-reduced-motion: reduce) {
/* 1. Universal Box Sizing */
:root {
*, *::before, *::after {
--transition-fast: 0ms;
    box-sizing: border-box;
--transition-base: 0ms;
--transition-slow: 0ms;
}
* {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
}


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


.mw-body,
/* Stripping native MediaWiki container styles  */
.parsoid-body {
.mw-body, #content {
background-color: var(--theme-page-background-color) !important;
    background: transparent !important;
color: var(--theme-page-text-color);
    border: none !important;
padding: 1em;
    color: var(--theme-text-primary);
margin-left: 10em;
border-left: 3px solid var(--teal-400);
}
}


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


/* ===== 3. HEADER & NAVIGATION ===== */
/* Remove MediaWiki's harsh default underline on H1/H2 */
 
.mw-body h1, .mw-body h2 {
/* Header Container */
    border-bottom: 2px solid var(--theme-border-color);  
#mw-head {
    padding-bottom: 0.25em;
position: absolute;
top: 0;
right: 0;
width: 100%;
z-index: 100;
}
}


#mw-head-base {
/* 4. Hyperlink Standardization */
position: relative;
a {
margin-top: -5em;
    color: var(--theme-link-color);
margin-left: 10em;
    text-decoration: none;
height: 5em;
    transition: color 0.2s ease;
}
}


/* Left Navigation (Page Tabs) */
a:hover, a:focus {
#left-navigation {
    color: var(--theme-link-hover);
position: absolute;
    text-decoration: underline;
left: 10em;
top: 2.5em;
}
}


/* Right Navigation (View History, Search, etc.) */
a:visited {
#right-navigation {
    color: var(--theme-link-color);  
position: absolute;
right: 1em;
top: 2.5em;
}
}


/* Search Box */
/* 5. Responsive Media & Selection */
#p-search {
img, video {
float: left;
    max-width: 100%;
margin: 0 0.5em;
    height: auto;
position: relative;
}
}


.vector-search-box-input {
::selection {
background-color: var(--input-bg);
    background: var(--color-primary);
border: 1px solid var(--input-border);
    color: #000;  
border-radius: var(--border-radius-md);
padding: 6px 28px 6px 8px;
font-size: 0.85em;
width: 200px;
transition: all var(--transition-fast) ease;
}
}
 
::-moz-selection {
.vector-search-box-input:focus {
    background: var(--color-primary);
border-color: var(--theme-accent-color);
    color: #000;
outline: none;
width: 250px;
}
}


.vector-search-box-button {
/* ============================================
background: transparent;
  BASE LAYOUT (MAPPED TO TOKENS)
border: none;
  ============================================ */
cursor: pointer;
html, body {
margin-left: -28px;
    background-color: var(--theme-body-bg) !important;
position: relative;
    background-image: none !important;  
z-index: 1;
    color: var(--theme-text-primary);
color: var(--theme-page-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;  
opacity: 0.7;
}
}


.vector-search-box-button:hover {
.mw-body {
opacity: 1;
    margin-top: -1px;
color: var(--theme-accent-color);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-sm);
    background-color: transparent;
}
}


/* Personal Tools (User Menu) */
/* Hide default elements */
#p-personal {
.mobileHide, .mobile-only, .no-desktop {
position: absolute;
    display: none !important;
top: 0.5em;
right: 1em;
z-index: 1000;
}
}


#p-personal .vector-menu-content-list {
/* Fix for hidden H1 on main page */
display: flex;
body.page-Main_Page.action-view h1.firstHeading,
flex-wrap: wrap;
body.page-Main_Page.action-submit h1.firstHeading {
gap: 0.5em;
    display: none;
list-style: none;
margin: 0;
padding: 0;
}
}


#p-personal .mw-list-item a {
/* ============================================
padding: 0.25em 0.5em;
  MAIN PAGE GRID LAYOUT
color: var(--theme-link-color);
  ============================================ */
text-decoration: none;
#mp-container {
border-radius: var(--border-radius-sm);
    display: grid;
transition: all var(--transition-fast) ease;
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}
}


#p-personal .mw-list-item a:hover {
/* Desktop Layout */
background: rgba(79, 209, 199, 0.1);
@media (min-width: 1024px) {
color: var(--theme-link-color--hover);
    #mp-container {
        grid-template-areas: var(--main-page-layout--desktop);
        grid-template-columns: repeat(3, 1fr);
    }
}
}


/* Navigation Tabs */
/* Tablet Layout */
.vector-menu-tabs ul {
@media (min-width: 768px) and (max-width: 1023px) {
display: flex;
    #mp-container {
flex-direction: row;
        grid-template-areas: var(--main-page-layout--tablet);
list-style: none;
        grid-template-columns: repeat(2, 1fr);
margin: 0;
    }
padding: 0;
}
}


.vector-menu-tabs li {
/* Mobile Layout */
float: left;
@media (max-width: 767px) {
margin: 0 2px;
    #mp-container {
padding: 0;
        grid-template-areas: var(--main-page-layout--mobile);
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
}


.vector-menu-tabs .mw-list-item a {
/* MP Box styling */
padding: 12px 16px;
.mp-box {
display: inline-block;
    animation: fadeInUp 0.5s ease forwards;
font-weight: var(--font-weight-medium);
    opacity: 0;
transition: all var(--transition-fast) ease;
border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
color: var(--theme-page-text-color);
text-decoration: none;
}
}


.vector-menu-tabs .mw-list-item a:hover {
/* Staggered animations */
background: rgba(79, 209, 199, 0.1);
.mp-box:nth-child(1) { animation-delay: 0.05s; }
color: var(--theme-link-color);
.mp-box:nth-child(2) { animation-delay: 0.1s; }
text-decoration: none;
.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; }


.vector-menu-tabs .selected a {
@keyframes fadeInUp {
background: var(--theme-page-background-color);
    from {
color: var(--theme-accent-color);
        opacity: 0;
font-weight: var(--font-weight-semibold);
        transform: translateY(20px);
border-bottom: 3px solid var(--theme-accent-color);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}


/* ===== 4. SIDEBAR (mw-panel) ===== */
/* ============================================
  MAIN PAGE CARDS & GRIDS
  ============================================ */


#mw-panel {
/* Main Grid Wrapper  */
position: absolute;
.main-page-card-grid {
top: 0;
    display: grid;
left: 0;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
width: 10em;
    gap: 20px;
padding: 0 0 1em 0;
    margin-top: 1rem;
background: var(--theme-page-background-color--secondary);
height: 100%;
overflow-y: auto;
z-index: 10;
border-right: 1px solid var(--theme-border-color);
}
}


/* Scrollbar Styling */
/* 1. Game Intro Cards */
#mw-panel::-webkit-scrollbar {
.game-intro-card {
width: 4px;
    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;
}
}


#mw-panel::-webkit-scrollbar-track {
.game-intro-card:hover {
background: var(--theme-page-background-color--secondary);
    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);  
}
}


#mw-panel::-webkit-scrollbar-thumb {
/* 2. Header Elements */
background: var(--teal-300);
.game-header {
border-radius: var(--border-radius-full);
    margin-bottom: 1rem;
    position: relative;
}
}


/* Logo */
.mana-text {
#p-logo {
    font-family: 'Fredoka', sans-serif;
position: absolute;
    font-size: 1.5rem;
top: 0;
    font-weight: 600;
left: 0;
    margin: 0;
width: 10em;
   
height: 160px;
    /* Gradient */
margin: 0;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
padding: 0;
    -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;
}
}


#p-logo a {
.mana-line {
display: block;
    height: 3px;
width: 10em;
    background: linear-gradient(90deg, var(--color-accent), transparent);
height: 160px;
    margin-top: 0.5rem;
background-repeat: no-repeat;
    width: 100%;
background-position: center center;
    border-radius: 2px;
background-size: contain;
}
}


/* Sidebar Sections */
/* 3. Card Content & Headings */
.mw-portlet {
.game-content {
margin: 0 0 1.5em 0;
    color: var(--theme-text-primary);
    line-height: 1.6;
    flex-grow: 1;  
}
}


.vector-menu-heading {
.heading-char {
padding: 8px 12px;
    font-size: 1.1rem;
margin: 5px 0;
    font-weight: 600;
font-size: 0.85em;
    margin: 0.5rem 0;
font-weight: var(--font-weight-semibold);
    padding-bottom: 0.25rem;
text-transform: uppercase;
    border-bottom: 2px solid var(--theme-border-color);
letter-spacing: 0.5px;
    display: inline-block;
background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
    transition: border-color 0.3s ease;
color: white;
border-radius: var(--border-radius-md);
}
}


/* Sidebar Links */
.heading-char a {
.vector-menu-content-list {
    color: var(--theme-heading-color);
list-style: none;
    text-decoration: none;
margin: 4px 0;
    transition: color 0.2s ease;
padding: 4px 0;
}
}


.vector-menu-content-list .mw-list-item {
.heading-char a:hover {
margin: 0;
    color: var(--color-accent);
padding: 0;
}
}


.vector-menu-content-list .mw-list-item a {
/* 4. Auto Grid Lists (The Links) */
display: block;
.auto-grid {
padding: 6px 12px;
    display: grid;
color: var(--theme-link-color);
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));  
font-size: 0.85em;
    gap: 0.5rem;
text-decoration: none;
    list-style: none;
transition: all var(--transition-fast) ease;
    padding: 0;
border-radius: var(--border-radius-sm);
    margin: 0.75rem 0 0 0;
margin: 1px 4px;
}
}


.vector-menu-content-list .mw-list-item a:hover {
.auto-grid li {
background: rgba(79, 209, 199, 0.1);
    padding: 0;
padding-left: 20px;
color: var(--theme-link-color--hover);
}
}
 
.vector-menu-content-list .mw-list-item.selected a {
/* Elevated List Link Styling */
background: rgba(79, 209, 199, 0.15);
.auto-grid li a {
font-weight: var(--font-weight-semibold);
    display: block;
border-left: 3px solid var(--theme-accent-color);
    padding: 0.35rem 0.5rem;
padding-left: 16px;
    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;
}
}


/* ===== 5. FOOTER ===== */
.auto-grid li a:hover {
 
    color: var(--theme-link-hover);
.mw-footer {
    background-color: var(--theme-body-bg);
margin-left: 10em;
    border-color: var(--theme-border-color);
margin-top: 2em;
    transform: translateX(3px);  
padding: 1.5em 2em;
background: var(--theme-page-background-color--secondary) !important;
border-top: 3px solid var(--teal-300);
position: relative;
clear: both;
}
}
/* ============================================
  BANNER, WIKI COMPONENTS & SCROLLBAR
  ============================================ */


/* Animated Top Border */
/* 1. BANNER SECTION */
.mw-footer:before {
#mp-box-banner .mp-body {
content: "";
    background: linear-gradient(135deg, var(--color-secondary), var(--theme-body-bg));
position: absolute;
    border-radius: var(--radius-lg);
top: 0;
    padding: 2rem;
left: 0;
    text-align: center;
right: 0;
    border: 1px solid var(--theme-border-color);
height: 3px;
    box-shadow: var(--shadow-soft);
background: linear-gradient(90deg,
    transition: background 0.3s ease, border-color 0.3s ease;
var(--teal-400),
var(--teal-300),
var(--teal-200),
var(--teal-300),
var(--teal-400));
background-size: 200% 100%;
animation: shimmer 3s infinite linear;
}
}


/* Footer Info Section */
/* Social links */
#footer-info {
.social {
display: flex;
    display: flex;
flex-wrap: wrap;
    justify-content: center;
gap: 16px;
    gap: 1rem;
justify-content: center;
    flex-wrap: wrap;
margin-bottom: 24px;
    margin-top: 2rem;
padding-bottom: 16px;
border-bottom: 1px solid var(--theme-border-color--subtle);
}
}


#footer-info li {
.iconname {
color: var(--theme-page-text-color) !important;
    display: flex;
font-size: 0.85em;
    align-items: center;
line-height: 1.4;
    gap: 0.5rem;
padding: 0 8px;
    background: var(--theme-card-bg);
border-right: 1px solid var(--theme-border-color--subtle);
    border: 1px solid var(--theme-border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}
}


#footer-info li:last-child {
.iconname:hover {
border-right: none;
    background: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}
}


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


#footer-info li a:hover {
/* 2. WIKI FIXES & IMPROVEMENTS */
color: var(--theme-link-color--hover);
.wikiEditor-ui-text > .ui-resizable {
text-decoration: underline;
    width: 100% !important;
    max-width: 100%;
}
}


/* Footer Places */
ul { list-style: disc; }
#footer-places {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
margin: 16px 0;
padding: 12px 0;
}


#footer-places li a {
h2 .mw-headline, h3 .mw-headline, h4 .mw-headline { font-weight: 500; }
color: var(--theme-page-text-color);
.vector-body h3, .vector-body h4, .vector-body h5, .vector-body h6 { margin-bottom: 4px; }
text-decoration: none;
opacity: 0.7;
font-size: 0.8em;
}


#footer-places li a:hover {
/* Categories */
opacity: 1;
.catlinks {
color: var(--theme-link-color);
    border-color: var(--theme-border-color);
text-decoration: underline;
    border-radius: var(--radius-md);
    background-color: var(--theme-card-bg);
    padding: 10px;
}
}


/* Copyright */
/* Code blocks */
#footer-copyright {
code, pre {
text-align: center;
    background-color: var(--theme-card-bg);
font-size: 0.75em;
    color: var(--theme-text-primary);
color: var(--gray-600);
    border: 1px solid var(--theme-border-color);
padding: 16px 0 8px;
    border-radius: var(--radius-sm);
border-top: 1px solid var(--theme-border-color--subtle);
    padding: 2px 6px;
margin-top: 8px;
    font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
}


/* ===== 6. CONTENT & TYPOGRAPHY ===== */
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; }


.mw-body a:not(.new) {
/* Table of Contents */
text-decoration: none;
.toc {
color: var(--theme-link-color);
    padding: 12px 16px;
transition: color var(--transition-fast) ease;
    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);
}
}


.mw-body a:not(.new):hover {
.toctogglelabel { color: var(--theme-link-color); }
text-decoration: underline;
.tocnumber { color: var(--theme-text-muted); }
text-decoration-thickness: 2px;
.vector-body .toc h2 { font-family: 'Fredoka', sans-serif; }
text-underline-offset: 2px;
color: var(--theme-link-color--hover);
}


.mw-body a.new {
/* Hatnote */
color: var(--teal-500) !important;
.hatnote {
font-weight: var(--font-weight-semibold) !important;
    border-left: 4px solid var(--color-accent);
border-bottom: 1px dashed rgba(0, 163, 163, 0.4) !important;
    padding: 8px 12px;
background-color: rgba(0, 163, 163, 0.08) !important;
    border-radius: var(--radius-sm);
padding: 1px 3px !important;
    background-color: var(--theme-card-bg);
border-radius: var(--border-radius-sm) !important;
    margin: 8px 0;
}
}


.mw-body a.new:hover {
/* Variables styling */
background-color: rgba(0, 163, 163, 0.15) !important;
span.variable { opacity: 0.65; }
border-bottom-style: solid !important;
span.variable::after { opacity: 0.65; content: ">"; }
text-decoration: none !important;
span.variable::before { opacity: 0.65; content: "<"; }
}


h1, h2, h3, h4, h5, h6 {
/* Pull quotes */
color: var(--theme-page-text-color);
.pull-quote { font-style: italic; margin: 0; padding: 0 30px 8px !important; }
}
.pull-quote::before {
 
    color: var(--color-accent);
.toc {
    content: "“";
padding: 8px 12px;
    display: block;
border-radius: 4px;
    font-size: 96px;
background-color: var(--theme-page-background-color--secondary);
    font-style: normal;
border: 1px solid var(--theme-border-color);
    line-height: 72px;
margin-top: 16px;
    margin: 4px 0 -45px -5px;
}
}
.pull-quote__source::before { content: "— "; margin-bottom: 8px; }
.pull-quote__text { margin-bottom: 4px; }


/* ===== 7. TABLES & INFOBOXES ===== */
/* 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); }


.wikitable {
/* Chat wrapper */
width: 100%;
.chat-wrapper { display: flex; flex-direction: column; }
margin: 1.5em 0;
.chat-player, .chat-npc { display: flex; flex-direction: row; gap: 0.5em; }
border-collapse: separate;
.chat-player-speaker { white-space: nowrap; min-width: 70px; color: #43b581; font-weight: 600; }
border-spacing: 0;
.chat-npc-speaker { white-space: nowrap; min-width: 70px; color: #f04747; font-weight: 600; }
border: 1px solid var(--theme-border-color);
background-color: var(--card-bg-main);
border-radius: var(--border-radius-md);
overflow: hidden;
box-shadow: var(--shadow-sm);
}


.wikitable > tr > th,
/* 3. RESPONSIVE IMPROVEMENTS */
.wikitable > * > tr > th {
@media (max-width: 768px) {
background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%) !important;
    .game-intro-card { padding: 1rem; }
color: var(--theme-accent-label-color) !important;
    .mana-text { font-size: 1.25rem; }
font-weight: var(--font-weight-semibold);
    .social { gap: 0.5rem; }
padding: 0.75rem 1rem !important;
    .iconname { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
text-align: center;
    #mp-box-banner .mp-body { padding: 1rem; }
}
}


.wikitable > tr > td,
/* 4. CUSTOM SCROLLBAR */
.wikitable > * > tr > td {
::-webkit-scrollbar { width: 10px; height: 10px; }
padding: 0.75rem 1rem !important;
::-webkit-scrollbar-track {
border-bottom: 1px solid var(--theme-border-color--subtle);
    background: var(--theme-body-bg);
color: var(--theme-page-text-color);
    border-radius: 0px;  
}
}
 
::-webkit-scrollbar-thumb {
.wikitable > tr:nth-child(even):not(:first-child),
    background: var(--color-accent);
.wikitable > * > tr:nth-child(even):not(:first-child) {
    border-radius: 5px;
background-color: rgba(56, 178, 172, 0.03);
}
}
::-webkit-scrollbar-thumb:hover { background: var(--theme-link-hover); }


.wikitable > tr:hover:not(:first-child),
/* 5. UTILITY CLASSES */
.wikitable > * > tr:hover:not(:first-child) {
.text-center { text-align: center; }
background-color: rgba(56, 178, 172, 0.08) !important;
.mt-2 { margin-top: 0.5rem; }
}
.mb-2 { margin-bottom: 0.5rem; }
 
.p-2 { padding: 0.5rem; }
/* Portable Infobox */
/* ============================================
.portable-infobox {
  WIKI COMPONENTS
float: right;
  ============================================ */
clear: right;
margin: 0 0 15px 15px;
max-width: 300px;
width: 100%;
border: 1px solid var(--theme-border-color);
border-radius: 8px;
background-color: var(--card-bg-main);
font-size: 14px;
}
 
.portable-infobox .pi-title {
background: var(--teal-600);
color: var(--theme-accent-label-color);
padding: 8px 10px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
text-align: center;
font-weight: bold;
font-size: 1.2em;
}


.portable-infobox .pi-item {
/* 1. WIKITABLES  */
display: flex;
table.wikitable {
justify-content: space-between;
    background-color: var(--theme-card-bg);
padding: 5px 10px;
    color: var(--theme-text-primary);
border-bottom: 1px dotted var(--theme-border-color--subtle);
    border: 1px solid var(--theme-border-color);
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%; /* Encourages responsive behavior */
    box-shadow: var(--shadow-soft);
}
}


.portable-infobox .pi-data-label {
table.wikitable > tr > th,
font-weight: 500;
table.wikitable > tr > td,
color: var(--gray-700);
table.wikitable > * > tr > th,
min-width: 40%;
table.wikitable > * > tr > td {
    border: 1px solid var(--theme-border-color);
    padding: 0.5em 0.75em;
}
}


.portable-infobox .pi-data-value {
/* Table Headers */
text-align: right;
table.wikitable > tr > th,
flex-grow: 1;
table.wikitable > * > tr > th {
    background-color: var(--color-primary);
    color: var(--theme-heading-color);
    font-weight: 600;
    text-align: center;
}
}


/* ===== 8. COMPONENTS ===== */


/* Cards */
table.wikitable > tbody > tr:hover {
.card {
    background-color: rgba(127, 127, 127, 0.05);
background-color: var(--card-bg-main);
border-radius: var(--border-radius-md);
border: 1px solid var(--theme-border-color);
box-shadow: var(--shadow-sm);
transition: all var(--transition-base) ease;
}
}


.card:hover {
/* 2. INFOBOXES  */
box-shadow: var(--shadow-md);
.infobox {
transform: translateY(-2px);
    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;
}
}


/* Status Messages */
/* Infobox Headers */
.status-alert {
.infobox th {
background-color: rgba(213, 63, 63, 0.1);
    background-color: var(--color-secondary);
color: var(--theme-alert-color);
    color: var(--theme-heading-color);
border-left: 4px solid var(--theme-alert-color);
    text-align: center;
padding: 12px;
    padding: 5px;
    border-radius: var(--radius-sm);
}
}


.status-warning {
.infobox td {
background-color: rgba(192, 86, 33, 0.1);
    padding: 4px 5px;
color: var(--theme-warning-color);
    border-bottom: 1px solid rgba(127, 127, 127, 0.1);  
border-left: 4px solid var(--theme-warning-color);
padding: 12px;
}
}


.status-success {
background-color: rgba(46, 139, 87, 0.1);
color: var(--theme-success-color);
border-left: 4px solid var(--theme-success-color);
padding: 12px;
}


/* Social Links */
.infobox tr:last-child td {
.social {
    border-bottom: none;
position: relative;
z-index: 999;
text-align: center;
margin: 20px auto;
padding: 15px 0;
max-width: 85%;
background: var(--theme-page-background-color--secondary);
border-radius: 12px;
border: 1px solid var(--theme-border-color);
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 15px;
}
}


.social .iconname {
/* 3. NAVBOXES  */
display: inline-flex;
.navbox {
align-items: center;
    background-color: var(--theme-card-bg);
justify-content: center;
    border: 1px solid var(--theme-border-color);
min-width: 180px;
    border-radius: var(--radius-md);
padding: 12px 20px;
    margin: 1.5em 0;
background: var(--theme-page-background-color);
    padding: 2px;
border-radius: 8px;
    text-align: center;
border: 1px solid var(--theme-border-color);
    box-shadow: var(--shadow-soft);
transition: all 0.3s ease;
    width: 100%;
    clear: both;
}
}


.social .iconname:hover {
.navbox th {
background: var(--teal-50) !important;
    background-color: var(--color-primary);
transform: translateY(-2px);
    color: var(--theme-heading-color);
border-color: var(--theme-accent-color);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 6px;
    font-weight: 600;
}
}


/* Quotes */
/* Group Headers inside Navbox */
.pull-quote {
.navbox .navbox-group {
font-style: italic;
    background-color: var(--color-secondary);
margin: 0;
    color: var(--theme-text-primary);
padding: 0 30px 8px !important;
    font-weight: 600;
    padding: 4px 8px;
    white-space: nowrap;
    border-right: 2px solid var(--theme-body-bg);  
}
}


.pull-quote::before {
.navbox .navbox-list {
color: var(--teal-400);
    text-align: left;
content: "“";
    padding: 4px 8px;
display: block;
font-size: 96px;
font-style: normal;
line-height: 72px;
margin: 4px 0 -45px -5px;
}
}


/* ===== 9. RESPONSIVE DESIGN ===== */
/* Striping for Navbox lists */
 
.navbox .navbox-even {
@media screen and (max-width: 1024px) {
    background-color: rgba(127, 127, 127, 0.03);
.mw-body,
#mw-data-after-content,
.mw-footer {
margin-left: 0;
}
#mw-panel {
display: none;
}
#left-navigation {
left: 1em;
}
#mw-head-base {
margin-left: 0;
}
.wikitable {
font-size: 0.95em;
}
.wikitable > tr > th,
.wikitable > * > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > td {
padding: 0.625rem 0.75rem !important;
}
}
}
 
/* ============================================
@media screen and (max-width: 768px) {
  THEME TOGGLE BUTTON
.mw-body {
  ============================================ */
padding: 0.75em;
.floating-theme-toggle {
}
    position: fixed;
    bottom: 20px;
#left-navigation,
    right: 20px;
#right-navigation {
    z-index: 9999;
position: static;
    padding: 10px 16px;
float: none;
    background-color: var(--theme-card-bg);
margin: 0;
    color: var(--theme-heading-color);
}
    border: 2px solid var(--theme-border-color);
    border-radius: var(--radius-lg);
#mw-head {
    font-family: 'Fredoka', sans-serif;
position: relative;
    font-size: 0.95rem;
height: auto;
    font-weight: 600;
}
    cursor: pointer;
    box-shadow: var(--shadow-soft);
.vector-menu-tabs ul {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
flex-wrap: wrap;
    backdrop-filter: blur(8px);  
}
.vector-search-box-input {
width: 100%;
}
.vector-search-box-input:focus {
width: 100%;
}
.wikitable {
display: block;
overflow-x: auto;
}
.portable-infobox {
float: none;
max-width: 100%;
margin: 0 0 16px 0;
}
.portable-infobox .pi-item {
flex-direction: column;
}
.portable-infobox .pi-data-label,
.portable-infobox .pi-data-value {
min-width: 100%;
text-align: left;
}
.social {
flex-direction: column;
gap: 8px;
}
.social .iconname {
width: 100%;
max-width: 100%;
}
#footer-info,
#footer-places {
flex-direction: column;
align-items: center;
gap: 8px;
}
#footer-info li {
border-right: none;
text-align: center;
}
}
}


@media print {
.floating-theme-toggle:hover {
:root {
    background-color: var(--color-primary);
--theme-page-text-color: #000000;
    border-color: var(--color-accent);
--theme-page-background-color: #ffffff;
    transform: translateY(-4px);  
}
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #000;  
a {
color: #000000 !important;
text-decoration: underline !important;
}
#mw-panel,
#p-personal,
.social {
display: none !important;
}
}
}

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; 
}