MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
m (Reverted edits by Ais (talk) to last revision by Tama07)
Tags: Rollback Reverted
mNo edit summary
 
(231 intermediate revisions by the same user not shown)
Line 1: Line 1:
.class { }/* needed for some reason for the @imports to work */
/*************************************🎮**************************************
                                                                              *
      ╔═══════════════════════════════════════════════════════════════════╗ 
                                                        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');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');


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


/* ===== TERRARIA-STYLE WIKI THEME ===== */
 
/* Reset and base styles */
/* ============================================
  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 {
:root {
     --primary-color: #1e3a5f;
    /* 1. Core Color Palette */
     --secondary-color: #2a4d7e;
     --color-primary: #88eee0;
     --accent-color: #4a9ae9;
    --color-secondary: #d9ffe9;
     --text-primary: #e0e0e0;
     --color-accent: #87b4b7;
     --text-secondary: #b0b0b0;
   
     --background-dark: #121212;
    /* 2. Semantic Backgrounds */
     --background-medium: #1a1a1a;
     --theme-body-bg: var(--color-secondary);
     --background-light: #242424;
    --theme-card-bg: rgba(255, 255, 255, 0.85);
     --border-color: #333;
    --theme-card-bg-hover: #ffffff;
     --success-color: #4caf50;
   
     --warning-color: #ff9800;
    /* 3. Semantic Text Colors */
     --danger-color: #f44336;
     --theme-text-primary: #1a2b3c;  
     --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
     --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';
}
}


/* Global body styling */
/* ✦ 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 {
body {
     background-color: var(--background-dark);
     background-color: var(--theme-body-bg) !important;
     color: var(--text-primary);
     color: var(--theme-text-primary);
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     font-family: 'Fredoka', sans-serif;  
     line-height: 1.6;
     transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
}
}


/* ===== HEADER RESTYLING ===== */
/* Stripping native MediaWiki container styles  */
#mw-page-base {
.mw-body, #content {
     background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
     background: transparent !important;
    height: 60px;
    border: none !important;
    color: var(--theme-text-primary);
}
}


#mw-head {
/* 3. Typography Normalization */
     position: relative;
h1, h2, h3, h4, h5, h6 {
     z-index: 1000;
    color: var(--theme-heading-color);
     margin-top: 0;
     font-weight: 600;
}
}


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


/* Header container */
/* 4. Hyperlink Standardization */
.mw-body, .parsoid-body {
a {
     margin: 0;
     color: var(--theme-link-color);
     padding: 0;
     text-decoration: none;
     background: var(--background-dark);
     transition: color 0.2s ease;
}
}


/* Logo area */
a:hover, a:focus {
#p-logo {
     color: var(--theme-link-hover);
     position: absolute;
     text-decoration: underline;
     left: 20px;
    top: 10px;
}
}


#p-logo a {
a:visited {
     display: block;
     color: var(--theme-link-color);  
    background: none;
    padding: 0;
}
}


/* Search box */
/* 5. Responsive Media & Selection */
#simpleSearch {
img, video {
     position: absolute;
     max-width: 100%;
    right: 200px;
     height: auto;
    top: 15px;
    width: 300px;
     border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
}


#searchInput {
::selection {
    width: 100%;
     background: var(--color-primary);
    padding: 10px 45px 10px 20px;
     color: #000;
     background: var(--background-medium);
}
     border: 2px solid var(--accent-color);
::-moz-selection {
     color: var(--text-primary);
     background: var(--color-primary);
     font-size: 14px;
     color: #000;
    border-radius: 20px;
    transition: all 0.3s ease;
}
}


#searchInput:focus {
/* ============================================
     outline: none;
  BASE LAYOUT (MAPPED TO TOKENS)
     border-color: var(--accent-color);
  ============================================ */
     box-shadow: 0 0 0 3px rgba(74, 154, 233, 0.3);
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;  
}
}


#searchButton, #mw-searchButton {
.mw-body {
     position: absolute;
     margin-top: -1px;
    right: 0;
     border: 1px solid var(--theme-border-color);
    top: 0;
     border-radius: var(--radius-sm);
     height: 100%;
     background-color: transparent;
    width: 40px;
    background: var(--accent-color);
     border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
     transition: background 0.3s ease;
}
}


#searchButton:hover, #mw-searchButton:hover {
/* Hide default elements */
     background: #3a89d9;
.mobileHide, .mobile-only, .no-desktop {
     display: none !important;
}
}


/* ===== SIDEBAR (LEFT NAVIGATION) ===== */
/* Fix for hidden H1 on main page */
#mw-panel {
body.page-Main_Page.action-view h1.firstHeading,
    background: var(--background-medium);
body.page-Main_Page.action-submit h1.firstHeading {
    border-right: 1px solid var(--border-color);
     display: none;
    width: 220px;
     padding-top: 80px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}
}


.portal {
/* ============================================
     margin: 0;
  MAIN PAGE GRID LAYOUT
     padding: 15px 0;
  ============================================ */
     border-bottom: 1px solid var(--border-color);
#mp-container {
     display: grid;
    gap: 2rem;
     padding: 1rem;
     max-width: 1400px;
    margin: 0 auto;
}
}


.portal h3 {
/* Desktop Layout */
     font-size: 16px;
@media (min-width: 1024px) {
    color: var(--accent-color);
     #mp-container {
    margin: 0 0 10px 15px;
        grid-template-areas: var(--main-page-layout--desktop);
    padding: 0;
        grid-template-columns: repeat(3, 1fr);
    font-weight: 600;
     }
    text-transform: uppercase;
     letter-spacing: 0.5px;
}
}


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


.portal .body ul {
/* Mobile Layout */
     list-style: none;
@media (max-width: 767px) {
    margin: 0;
     #mp-container {
    padding: 0;
        grid-template-areas: var(--main-page-layout--mobile);
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
}


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


.portal .body li a {
/* Staggered animations */
    display: block;
.mp-box:nth-child(1) { animation-delay: 0.05s; }
    padding: 8px 20px;
.mp-box:nth-child(2) { animation-delay: 0.1s; }
    color: var(--text-secondary);
.mp-box:nth-child(3) { animation-delay: 0.15s; }
    text-decoration: none;
.mp-box:nth-child(4) { animation-delay: 0.2s; }
    transition: all 0.3s ease;
.mp-box:nth-child(5) { animation-delay: 0.25s; }
     font-size: 14px;
.mp-box:nth-child(6) { animation-delay: 0.3s; }
     border-left: 3px solid transparent;
.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);
    }
}
}


.portal .body li a:hover {
/* ============================================
     background: rgba(74, 154, 233, 0.1);
  MAIN PAGE CARDS & GRIDS
     color: var(--accent-color);
  ============================================ */
     border-left-color: var(--accent-color);
 
     padding-left: 25px;
/* Main Grid Wrapper  */
.main-page-card-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 20px;
     margin-top: 1rem;
}
}


.portal .body li a:active {
/* 1. Game Intro Cards */
     background: rgba(74, 154, 233, 0.2);
.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;
}
}


/* ===== MAIN CONTENT AREA ===== */
.game-intro-card:hover {
#content {
     background-color: var(--theme-card-bg-hover);
     margin-left: 240px;
     transform: translateY(-4px);  
    margin-right: 0;
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
     padding: 20px 40px;
     border-color: var(--color-primary);  
     max-width: none;
     background: var(--background-dark);
}
}


.mw-body {
/* 2. Header Elements */
     border: none;
.game-header {
     margin: 0;
     margin-bottom: 1rem;
     position: relative;
}
}


.mw-body .firstHeading {
.mana-text {
     font-size: 36px;
    font-family: 'Fredoka', sans-serif;
     color: var(--accent-color);
     font-size: 1.5rem;
     margin: 0 0 20px 0;
    font-weight: 600;
     padding-bottom: 15px;
    margin: 0;
     border-bottom: 3px solid var(--accent-color);
      
     font-weight: 700;
    /* Gradient */
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    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;
}
}


/* Content styling */
.mana-line {
.mw-body-content {
    height: 3px;
     font-size: 16px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
     line-height: 1.7;
     margin-top: 0.5rem;
    width: 100%;
     border-radius: 2px;
}
}


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


.mw-body-content h2 {
.heading-char {
    color: var(--text-primary);
     font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    margin: 30px 0 20px 0;
     font-size: 24px;
     font-weight: 600;
     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;
}
}


.mw-body-content h3 {
.heading-char a {
     color: var(--accent-color);
     color: var(--theme-heading-color);
     margin: 25px 0 15px 0;
     text-decoration: none;
    font-size: 20px;
     transition: color 0.2s ease;
     font-weight: 600;
}
}


.mw-body-content h4 {
.heading-char a:hover {
     color: var(--text-secondary);
     color: var(--color-accent);
    margin: 20px 0 10px 0;
    font-size: 18px;
}
}


/* Links */
/* 4. Auto Grid Lists (The Links) */
.mw-body-content a {
.auto-grid {
     color: var(--accent-color);
     display: grid;
     text-decoration: none;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
     border-bottom: 1px dashed var(--accent-color);
    gap: 0.5rem;
     transition: all 0.3s ease;
     list-style: none;
     padding: 0;
     margin: 0.75rem 0 0 0;
}
}


.mw-body-content a:hover {
.auto-grid li {
     color: #7ab8ff;
     padding: 0;
    border-bottom: 1px solid #7ab8ff;
}
}
 
.mw-body-content a:visited {
/* Elevated List Link Styling */
     color: #9d6cd8;
.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;
}
}


/* ===== FOOTER ===== */
.auto-grid li a:hover {
#footer {
     color: var(--theme-link-hover);
     background: var(--background-medium);
     background-color: var(--theme-body-bg);
     border-top: 3px solid var(--accent-color);
     border-color: var(--theme-border-color);
     margin: 40px 0 0 240px;
    transform: translateX(3px);  
    padding: 30px 40px;
    color: var(--text-secondary);
}
}
/* ============================================
  BANNER, WIKI COMPONENTS & SCROLLBAR
  ============================================ */


.footer-icons {
/* 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;
     text-align: center;
     margin-bottom: 20px;
     border: 1px solid var(--theme-border-color);
    box-shadow: var(--shadow-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}
}


.footer-places, .footer-info {
/* Social links */
.social {
     display: flex;
     display: flex;
    justify-content: center;
    gap: 1rem;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 20px;
    margin-top: 2rem;
     justify-content: center;
}
     margin: 15px 0;
 
.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;
}
}


.footer-places li, .footer-info li {
.iconname:hover {
     list-style: none;
    background: var(--color-primary);
     margin: 5px 0;
     border-color: var(--color-accent);
     transform: translateY(-2px);
}
}


.footer-places a, .footer-info a {
.iconname a {
     color: var(--text-secondary);
     color: var(--theme-text-primary) !important;
     text-decoration: none;
     text-decoration: none;
     padding: 5px 10px;
     font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}
}


.footer-places a:hover, .footer-info a:hover {
/* 2. WIKI FIXES & IMPROVEMENTS */
     color: var(--accent-color);
.wikiEditor-ui-text > .ui-resizable {
     background: rgba(74, 154, 233, 0.1);
     width: 100% !important;
     max-width: 100%;
}
}


/* ===== TABLES ===== */
ul { list-style: disc; }
.mw-body-content table {
 
     width: 100%;
h2 .mw-headline, h3 .mw-headline, h4 .mw-headline { font-weight: 500; }
     border-collapse: collapse;
.vector-body h3, .vector-body h4, .vector-body h5, .vector-body h6 { margin-bottom: 4px; }
     margin: 20px 0;
 
     background: var(--background-light);
/* Categories */
     border-radius: 8px;
.catlinks {
     overflow: hidden;
    border-color: var(--theme-border-color);
     box-shadow: var(--shadow);
     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);
}
}


.mw-body-content table.wikitable {
.toctogglelabel { color: var(--theme-link-color); }
     border: 1px solid var(--border-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;
}
}


.mw-body-content table.wikitable > tr > th,
/* Variables styling */
.mw-body-content table.wikitable > * > tr > th {
span.variable { opacity: 0.65; }
     background: var(--primary-color);
span.variable::after { opacity: 0.65; content: ">"; }
     color: white;
span.variable::before { opacity: 0.65; content: "<"; }
     font-weight: 600;
 
     border: 1px solid var(--border-color);
/* Pull quotes */
     padding: 12px 15px;
.pull-quote { font-style: italic; margin: 0; padding: 0 30px 8px !important; }
     text-align: left;
.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; }


.mw-body-content table.wikitable > tr > td,
/* 3. RESPONSIVE IMPROVEMENTS */
.mw-body-content table.wikitable > * > tr > td {
@media (max-width: 768px) {
     border: 1px solid var(--border-color);
    .game-intro-card { padding: 1rem; }
     padding: 10px 15px;
    .mana-text { font-size: 1.25rem; }
     color: var(--text-primary);
     .social { gap: 0.5rem; }
     .iconname { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
     #mp-box-banner .mp-body { padding: 1rem; }
}
}


.mw-body-content table.wikitable > tr:nth-child(even) {
/* 4. CUSTOM SCROLLBAR */
     background: rgba(255, 255, 255, 0.05);
::-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); }


.mw-body-content table.wikitable > tr:hover {
/* 5. UTILITY CLASSES */
     background: rgba(74, 154, 233, 0.1);
.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);
}
}


/* ===== CODE & PRE ===== */
table.wikitable > tr > th,
.mw-body-content pre,
table.wikitable > tr > td,
.mw-body-content code {
table.wikitable > * > tr > th,
    background: var(--background-light);
table.wikitable > * > tr > td {
     border: 1px solid var(--border-color);
     border: 1px solid var(--theme-border-color);
     border-radius: 6px;
     padding: 0.5em 0.75em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
}


.mw-body-content pre {
/* Table Headers */
     padding: 15px;
table.wikitable > tr > th,
     overflow-x: auto;
table.wikitable > * > tr > th {
     margin: 20px 0;
    background-color: var(--color-primary);
     color: var(--theme-heading-color);
     font-weight: 600;
     text-align: center;
}
}


.mw-body-content code {
 
     padding: 2px 6px;
table.wikitable > tbody > tr:hover {
     font-size: 14px;
    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;
}
}


/* ===== NAVBOXES & TEMPLATES ===== */
/* Infobox Headers */
.navbox {
.infobox th {
     background: var(--background-light);
     background-color: var(--color-secondary);
     border: 1px solid var(--border-color);
     color: var(--theme-heading-color);
     border-radius: 8px;
     text-align: center;
    margin: 20px 0;
     padding: 5px;
     padding: 15px;
     border-radius: var(--radius-sm);
     box-shadow: var(--shadow);
}
}


.navbox-title {
.infobox td {
    background: var(--primary-color);
     padding: 4px 5px;
    color: white;
     border-bottom: 1px solid rgba(127, 127, 127, 0.1);  
     padding: 10px 15px;
    margin: -15px -15px 15px -15px;
     border-radius: 8px 8px 0 0;
    font-weight: 600;
}
}


/* ===== BUTTONS ===== */
 
.mw-ui-button {
.infobox tr:last-child td {
     background: var(--accent-color);
     border-bottom: none;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
}


.mw-ui-button:hover {
/* 3. NAVBOXES  */
     background: #3a89d9;
.navbox {
     transform: translateY(-2px);
    background-color: var(--theme-card-bg);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     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;
}
}


.mw-ui-button:active {
.navbox th {
     transform: translateY(0);
    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;
}
}


/* ===== SPECIAL PAGES ===== */
/* Group Headers inside Navbox */
.catlinks {
.navbox .navbox-group {
     background: var(--background-light);
     background-color: var(--color-secondary);
     border: 1px solid var(--border-color);
     color: var(--theme-text-primary);
     border-radius: 8px;
     font-weight: 600;
     padding: 15px;
    padding: 4px 8px;
     margin: 20px 0;
     white-space: nowrap;
     border-right: 2px solid var(--theme-body-bg);  
}
}


/* ===== MEDIA QUERIES ===== */
.navbox .navbox-list {
@media (max-width: 1024px) {
     text-align: left;
     #mw-panel {
     padding: 4px 8px;
        width: 200px;
    }
   
    #content {
        margin-left: 220px;
     }
   
    #footer {
        margin-left: 220px;
    }
}
}


@media (max-width: 768px) {
/* Striping for Navbox lists */
    #mw-panel {
.navbox .navbox-even {
        display: none;
    background-color: rgba(127, 127, 127, 0.03);
     }
}
      
/* ============================================
     #content {
  THEME TOGGLE BUTTON
        margin-left: 0;
  ============================================ */
        padding: 15px;
.floating-theme-toggle {
     }
    position: fixed;
      
     bottom: 20px;
     #footer {
     right: 20px;
        margin-left: 0;
     z-index: 9999;
        padding: 20px 15px;
    padding: 10px 16px;
     }
     background-color: var(--theme-card-bg);
      
     color: var(--theme-heading-color);
     #simpleSearch {
     border: 2px solid var(--theme-border-color);
        right: 15px;
    border-radius: var(--radius-lg);
        width: 200px;
    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);
}
}


@media (max-width: 480px) {
.floating-theme-toggle:hover {
     .mw-body .firstHeading {
     background-color: var(--color-primary);
        font-size: 28px;
    border-color: var(--color-accent);
     }
     transform: translateY(-4px);
      
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
     #simpleSearch {
     color: #000;  
        width: 150px;
    }
}
}

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