MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
/**
/*************************************🎮**************************************
* MediaWiki common.css
                                                                              *
* Cleaned and Refactored Version
      ╔═══════════════════════════════════════════════════════════════════╗ 
* * TABLE OF CONTENTS
                                                        COMMON.CSS (vA0.1)                                                        
* 1.  EXTERNAL IMPORTS
                                                                ✦ M*n* B**** ✦                                                             
* 2. GLOBAL VARIABLES (:root)
      ╚═══════════════════════════════════════════════════════════════════╝ 
* 3.  THEME DEFINITIONS (Light & Dark)
                                                                              *
* 4.  BASE TYPOGRAPHY & ELEMENTS
  *******************************************************************************/
  * 5.  LAYOUT & STRUCTURE (Sidebar, Footer, Body)
* 6.  MAIN PAGE LAYOUT
* 7.  TABLE SYSTEM (Wikitable, Schedule, Fish, Artisan)
* 8.  INFOBOX SYSTEM (Portable, Weapon, Monster, Character)
* 9.  UI COMPONENTS (Navbox, Tabs, Notifications, Gallery)
* 10. TEMPLATE CUSTOMIZATIONS (Quotes, Chat, Race System)
* 11. UTILITY & ACCESSIBILITY
*/


/* ==========================================================================
/*
  1. EXTERNAL IMPORTS
*This page contains the entire stylesheet for the MB Wiki.
  ========================================================================== */
*We urge you "not to edit" this page "directly".
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Module:Documentation.css");
*Some of the code inherited from coralisland.wiki.
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Documentation.css");
*Any functional issue please report to our wiki-team at the official discord channel
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Tables.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:MessageBox.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CustomTabs.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Navbox.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Icons.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Dialogue.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Cards.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Tabbers.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Mobile.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Recipe.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Modal.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:AceEditor.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CodeMirror.css");


/* ==========================================================================
*Imports will be starting below this very line;
  2. GLOBAL VARIABLES
*/
  ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
:root {
/* Typography */
--font-size: 16px;
--font-size-small: 14px;
--font-size-large: 18px;
--font-size-h1: 32px;
--line-height: 1.6;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;


/* Spacing */
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 32px;


/* Shadows */
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);


/* Borders */
/* ============================================
--border-radius-sm: 4px;
  ALL @IMPORTS MUST BE AT THE VERY TOP
--border-radius-md: 8px;
  ============================================ */
--border-radius-lg: 2px;
--border-radius-full: 9999px;


/* Transitions */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
@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");


/* Z-Index Layers */
/* ============================================
--z-index-dropdown: 1000;
  TOKEN ROOT ARCHITECTURE
--z-index-modal: 1050;
  ============================================ */


/* Color Scales (Teal) */
/* ✦ THEME MANA (LIGHT) - DEFAULT ✦ */
--teal-050: #e6fffa;
:root {
--teal-100: #b2f5ea;
    /* 1. Core Color Palette */
--teal-200: #81e6d9;
    --color-primary: #88eee0;
--teal-300: #4fd1c7;
    --color-secondary: #d9ffe9;
--teal-400: #38b2ac;
    --color-accent: #87b4b7;
--teal-500: #319795;
   
--teal-600: #2c7a7b;
    /* 2. Semantic Backgrounds */
--teal-700: #285e61;
    --theme-body-bg: var(--color-secondary);
--teal-800: #234e52;
    --theme-card-bg: rgba(255, 255, 255, 0.85);  
--teal-900: #1d4044;
    --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 ✦ */
   3. THEME DEFINITIONS
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
   ============================================ */


/* Light Theme (Default) */
/* 1. Universal Box Sizing */
:root body:not(.skin-vector-dark) {
*, *::before, *::after {
--theme-page-text-color: #1a2a2a;
    box-sizing: border-box;
--theme-page-background-color: #f5fdfb;
--theme-page-background-color--secondary: #e8f5f3;
--theme-link-color: #007d7a;
--theme-link-color--hover: #005652;
--theme-accent-color: #38b2ac;
--theme-border-color: #a1e9dc;
--card-bg-main: #ffffff;
--table-header-bg: #e6fffa;
--focus-ring-color: rgba(79, 209, 199, 0.6);
}
}


/* Dark Theme */
/* 2. MediaWiki Body & Container Reset */
:root .skin-vector-dark {
body {
--theme-page-text-color: #e6f7f5;
    background-color: var(--theme-body-bg) !important;
--theme-page-background-color: rgba(22, 28, 36, 0.98);
    color: var(--theme-text-primary);
--theme-page-background-color--secondary: #2a363d;
    font-family: 'Fredoka', sans-serif;  
--theme-link-color: #5fd9cf;
    transition: background-color 0.3s ease, color 0.3s ease;
--theme-link-color--hover: #81e6d9;
--theme-accent-color: #5fd9cf;
--theme-border-color: #4d6872;
--card-bg-main: #2a363d;
--table-header-bg: #2d4a4d;
--focus-ring-color: rgba(79, 209, 199, 0.8);
}
}


/* ==========================================================================
/* Stripping native MediaWiki container styles  */
  4. BASE TYPOGRAPHY & ELEMENTS
.mw-body, #content {
  ========================================================================== */
    background: transparent !important;
body {
    border: none !important;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif !important;
    color: var(--theme-text-primary);
line-height: var(--line-height);
}
background-color: var(--theme-page-background-color) !important;
 
/* 3. Typography Normalization */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-heading-color);
    margin-top: 0;
    font-weight: 600;
}
}


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


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


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


/* Red Links (Teal variation) */
/* 5. Responsive Media & Selection */
.mw-body a.new {
img, video {
color: #00a3a3 !important;
    max-width: 100%;
border-bottom: 1px dashed rgba(0, 163, 163, 0.4) !important;
    height: auto;
background-color: rgba(0, 163, 163, 0.08) !important;
padding: 1px 3px;
border-radius: var(--border-radius-sm);
}
}


/* Code & Pre */
::selection {
code, pre {
    background: var(--color-primary);
background-color: var(--theme-page-background-color--secondary);
    color: #000;
color: var(--theme-page-text-color);
}
border: 1px solid var(--theme-border-color);
::-moz-selection {
padding: 2px 4px;
    background: var(--color-primary);
font-family: monospace;
    color: #000;
font-size: 13px;
}
 
/* ============================================
  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;  
}
}


/* ==========================================================================
  5. LAYOUT & STRUCTURE
  ========================================================================== */
.mw-body {
.mw-body {
margin-left: 11em;
    margin-top: -1px;
padding: 1.25em 1.5em;
    border: 1px solid var(--theme-border-color);
background-color: var(--theme-page-background-color) !important;
    border-radius: var(--radius-sm);
border-left: 3px solid var(--teal-400);
    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;
}
}


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


.mw-footer {
/* Tablet Layout */
margin-left: 11em;
@media (min-width: 768px) and (max-width: 1023px) {
background: var(--card-bg-main);
    #mp-container {
border-radius: var(--border-radius-md);
        grid-template-areas: var(--main-page-layout--tablet);
padding: 1.25em;
        grid-template-columns: repeat(2, 1fr);
    }
}
}


/* Sidebar Section Headers */
/* Mobile Layout */
#mw-panel .sidebar-section-title {
@media (max-width: 767px) {
background: linear-gradient(90deg, var(--teal-700), var(--teal-900));
    #mp-container {
color: white;
        grid-template-areas: var(--main-page-layout--mobile);
padding: 5px 10px;
        grid-template-columns: 1fr;
border-radius: 4px;
        gap: 1rem;
font-size: 0.9em;
    }
}
}


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


/* ==========================================================================
/* Staggered animations */
  6. MAIN PAGE LAYOUT
.mp-box:nth-child(1) { animation-delay: 0.05s; }
   ========================================================================== */
.mp-box:nth-child(2) { animation-delay: 0.1s; }
#mp-container {
.mp-box:nth-child(3) { animation-delay: 0.15s; }
display: grid;
.mp-box:nth-child(4) { animation-delay: 0.2s; }
gap: 20px;
.mp-box:nth-child(5) { animation-delay: 0.25s; }
margin: 20px 0;
.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 {
.game-intro-card {
background: var(--card-bg-main);
    background-color: var(--theme-card-bg);
border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-lg); /* From Step 1 */
border-radius: var(--border-radius-md);
    padding: 1.25rem;
box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-color);
overflow: hidden;
    box-shadow: var(--shadow-soft);
transition: transform var(--transition-base);
    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 {
.game-intro-card:hover {
transform: translateY(-2px);
    background-color: var(--theme-card-bg-hover);
box-shadow: var(--shadow-lg);
    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 {
background: linear-gradient(90deg, var(--teal-700), var(--teal-900));
    margin-bottom: 1rem;
padding: var(--spacing-md);
    position: relative;
color: white;
}
 
.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 Bar */
/* Social links */
.social {
.social {
display: flex;
    display: flex;
flex-wrap: wrap;
    justify-content: center;
justify-content: center;
    gap: 1rem;
gap: 15px;
    flex-wrap: wrap;
background: var(--theme-page-background-color--secondary);
    margin-top: 2rem;
padding: 15px;
}
border-radius: 12px;
 
border: 1px solid var(--theme-border-color);
.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 */
  7. TABLE SYSTEM
.wikiEditor-ui-text > .ui-resizable {
  ========================================================================== */
    width: 100% !important;
.wikitable, .scheduletable, .fishtable {
    max-width: 100%;
width: 100%;
margin: 1.5em 0;
border-collapse: separate;
border-spacing: 0;
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 th, .scheduletable th {
ul { list-style: disc; }
background: linear-gradient(135deg, var(--teal-600), var(--teal-700)) !important;
 
color: white !important;
h2 .mw-headline, h3 .mw-headline, h4 .mw-headline { font-weight: 500; }
padding: 12px !important;
.vector-body h3, .vector-body h4, .vector-body h5, .vector-body h6 { margin-bottom: 4px; }
text-align: center;
 
/* Categories */
.catlinks {
    border-color: var(--theme-border-color);
    border-radius: var(--radius-md);
    background-color: var(--theme-card-bg);
    padding: 10px;
}
}


.wikitable td, .scheduletable td {
/* Code blocks */
padding: 10px !important;
code, pre {
border-bottom: 1px solid var(--theme-border-color);
    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;
}
}


.wikitable tr:nth-child(even) {
code.code-block-table { display: table; line-height: 21px; padding: 8px; }
background-color: rgba(56, 178, 172, 0.03);
.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);
}
}


/* Schedule Specifics */
.toctogglelabel { color: var(--theme-link-color); }
.scheduletable td:first-child {
.tocnumber { color: var(--theme-text-muted); }
background-color: rgba(56, 178, 172, 0.08);
.vector-body .toc h2 { font-family: 'Fredoka', sans-serif; }
font-weight: 600;
 
width: 150px;
/* Hatnote */
border-right: 2px solid var(--teal-300);
.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 */
  8. INFOBOX SYSTEM
span.variable { opacity: 0.65; }
  ========================================================================== */
span.variable::after { opacity: 0.65; content: ">"; }
.portable-infobox {
span.variable::before { opacity: 0.65; content: "<"; }
float: right;
 
width: 300px;
/* Pull quotes */
margin: 0 0 15px 15px;
.pull-quote { font-style: italic; margin: 0; padding: 0 30px 8px !important; }
border: 1px solid var(--theme-border-color);
.pull-quote::before {
border-radius: 8px;
    color: var(--color-accent);
background-color: var(--card-bg-main);
    content: "“";
font-size: 14px;
    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; }
}
}


.pi-title {
/* 4. CUSTOM SCROLLBAR */
background: var(--teal-600);
::-webkit-scrollbar { width: 10px; height: 10px; }
color: white;
::-webkit-scrollbar-track {
padding: 10px;
    background: var(--theme-body-bg);
text-align: center;
    border-radius: 0px;  
font-weight: bold;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
}
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--theme-link-hover); }


.pi-item {
/* 5. UTILITY CLASSES */
display: flex;
.text-center { text-align: center; }
justify-content: space-between;
.mt-2 { margin-top: 0.5rem; }
padding: 8px;
.mb-2 { margin-bottom: 0.5rem; }
border-bottom: 1px dotted var(--theme-border-color);
.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);
}
}


.pi-data-label {
table.wikitable > tr > th,
font-weight: 500;
table.wikitable > tr > td,
color: var(--theme-page-text-color);
table.wikitable > * > tr > th,
opacity: 0.8;
table.wikitable > * > tr > td {
    border: 1px solid var(--theme-border-color);
    padding: 0.5em 0.75em;
}
}


/* Weapon & Monster Infobox Variations */
/* Table Headers */
.weapon-infobox { border-color: #1a6a7a; }
table.wikitable > tr > th,
.weapon-header { background: #1a6a7a; color: white; }
table.wikitable > * > tr > th {
    background-color: var(--color-primary);
    color: var(--theme-heading-color);
    font-weight: 600;
    text-align: center;
}


.monster-infobox { border-color: #7a1a1a; }
.monster-header { background: #7a1a1a; color: white; }


/* ==========================================================================
table.wikitable > tbody > tr:hover {
  9. UI COMPONENTS
    background-color: rgba(127, 127, 127, 0.05);
  ========================================================================== */
}


/* Navbox Styling */
/* 2. INFOBOXES  */
.navbox {
.infobox {
border: 1px solid var(--theme-border-color);
    float: right;
background: var(--card-bg-main);
    clear: right;
border-radius: 8px;
    margin: 0 0 1em 1em;
padding: 5px;
    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;
}
}


.navbox-title {
/* Infobox Headers */
background: var(--teal-100) !important;
.infobox th {
padding: 10px;
    background-color: var(--color-secondary);
font-weight: bold;
    color: var(--theme-heading-color);
    text-align: center;
    padding: 5px;
    border-radius: var(--radius-sm);
}
}


/* Notifications */
.infobox td {
.mw-notification {
    padding: 4px 5px;
background: var(--card-bg-main) !important;
    border-bottom: 1px solid rgba(127, 127, 127, 0.1);  
border: 1px solid var(--theme-border-color) !important;
color: var(--theme-page-text-color) !important;
}
}


/* ==========================================================================
  10. TEMPLATE CUSTOMIZATIONS
  ========================================================================== */


/* Quotes Box */
.infobox tr:last-child td {
.quotes-box {
    border-bottom: none;
border-left: 8px solid #eab759 !important;
background: rgba(255, 255, 255, 0.05);
padding: 15px;
margin: 1em auto;
font-style: italic;
max-width: 500px;
}
}


/* Race System Tooltips */
/* 3. NAVBOXES  */
.race-tooltip {
.navbox {
background-color: #2c3e50;
    background-color: var(--theme-card-bg);
color: #ecf0f1;
    border: 1px solid var(--theme-border-color);
padding: 12px;
    border-radius: var(--radius-md);
border-radius: 8px;
    margin: 1.5em 0;
box-shadow: var(--shadow-lg);
    padding: 2px;
font-size: 0.9em;
    text-align: center;
    box-shadow: var(--shadow-soft);
    width: 100%;
    clear: both;
}
}


/* ==========================================================================
.navbox th {
  11. UTILITY & ACCESSIBILITY
    background-color: var(--color-primary);
  ========================================================================== */
    color: var(--theme-heading-color);
.visually-hidden {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
position: absolute !important;
    padding: 6px;
width: 1px;
    font-weight: 600;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
}


.text-truncate {
/* Group Headers inside Navbox */
overflow: hidden;
.navbox .navbox-group {
text-overflow: ellipsis;
    background-color: var(--color-secondary);
white-space: nowrap;
    color: var(--theme-text-primary);
    font-weight: 600;
    padding: 4px 8px;
    white-space: nowrap;
    border-right: 2px solid var(--theme-body-bg);  
}
}
.mw-parser-output img {
 
     transition: transform var(--transition-fast), box-shadow var(--transition-fast);
.navbox .navbox-list {
     border-radius: var(--border-radius-sm);
     text-align: left;
     padding: 4px 8px;
}
}


.mw-parser-output img:hover {
/* Striping for Navbox lists */
     transform: translateY(-2px);
.navbox .navbox-even {
    box-shadow: var(--shadow-md);
     background-color: rgba(127, 127, 127, 0.03);
}
}
/* Reduced Motion */
/* ============================================
@media (prefers-reduced-motion: reduce) {
  THEME TOGGLE BUTTON
* {
  ============================================ */
animation-duration: 0.01ms !important;
.floating-theme-toggle {
transition-duration: 0.01ms !important;
    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);
}
}


/* Mobile Fixes */
.floating-theme-toggle:hover {
@media screen and (max-width: 768px) {
    background-color: var(--color-primary);
.mw-body { margin-left: 0; padding: 10px; }
    border-color: var(--color-accent);
#mw-panel { display: none; }
    transform: translateY(-4px);  
.portable-infobox { float: none; width: 100%; margin-left: 0; }
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
.wikitable { display: block; overflow-x: auto; }
    color: #000;  
}
}

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