MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Tag: Reverted
Line 1: Line 1:
.class { }/* needed for some reason for the @imports to work */
/* * MANA BREAK - OFFICIAL WIKI SKIN
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
* Theme: Modern Adventure (Teal & Gold)
* Version: 2.0.0
*/


/* Imports caching */
/* 1. IMPORTS
  ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Montserrat:wght@400;500;600&display=swap');
/* Consolidated Wiki Modules */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki: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: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: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");
/* ... other imports should be combined into a single ResourceLoader module for performance ... */
@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");


.mw-body {
/* 2. VARIABLES & COLOR SYSTEM
     margin-top: -1px;
  ========================================================================== */
     border: 1px solid azure;
:root {
     border-radius: 1px;
     /* Primary Teal Palette (#1a6a7a) */
}
    --primary-100: #e8f0f2;
body.skin-vector {
    --primary-200: #b9d1d6;
background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
     --primary-300: #8ab2ba;
}
     --primary-400: #5b939e;
body.skin-vector-dark {
    --primary-500: #1a6a7a; /* Base */
background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
    --primary-600: #155562;
}
    --primary-700: #10404a;
    --primary-800: #0a2a31;
    --primary-900: #051519;
 
    /* Accent Gold Palette (#eab759) */
    --gold-soft: #fdf6e9;
    --gold-base: #eab759;
    --gold-dark: #c9932e;


.mobileHide, .mobile-only, .no-desktop {
    /* Status Colors (WCAG AA Compliant) */
display: none!important;
    --status-success: #2d8a57;
}
    --status-error: #c53030;
    --status-warning: #b7791f;
    --status-info: #2b6cb0;


/* || FIXES */
    /* Light Theme Base */
.wikiEditor-ui-text > .ui-resizable {
    --bg-page: #f8fafc;
width: 100% !important;
    --bg-content: #ffffff;
max-width: 100%;
    --bg-secondary: #f1f5f9;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
}
}
ul {
list-style: disc;
}


h2 .mw-headline,
/* Dark Theme Variables */
h3 .mw-headline,
.skin-vector-dark {
h4 .mw-headline {
    --bg-page: #0f172a;
font-weight: 500;
    --bg-content: #1e293b;
    --bg-secondary: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --primary-100: #0f2d33;
    --primary-500: #5eead4;
    --gold-soft: #2d261a;
}
}


.vector-body h3 , .vector-body h4 , .vector-body h5 , .vector-body h6 {
/* 3. BASE ELEMENTS
margin-bottom: 4px;
  ========================================================================== */
body {
    font-family: 'Cinzel', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page) !important;
    color: var(--text-main);
    line-height: 1.6;
}
}


a, a:visited, a:active,
h1, h2, h3, h4 {
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    font-family: 'Montserrat', sans-serif;
color: var(--theme-link-color);
    color: var(--primary-500);
}
    font-weight: 600;
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
color: var(--theme-page-text-color);
}
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
color: var(--theme-link-color);
}
}


.mw-parser-output a.external {
a {
padding-right: 0;
    color: var(--primary-500);
font-size: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
}


.catlinks {
a:hover {
border-color: var(--theme-border-color);
    color: var(--primary-700);
border-radius: 6px;
    text-decoration: underline;
background-color: var(--gray-050);
}
}


.CodeMirror-lines span {
/* Focus States */
font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace /* Source Editor */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--primary-300);
    outline-offset: 2px;
    border-radius: 4px;
}
}


.wikiEditor-ui .ace_editor * {
/* 4. WIKI COMPONENTS
font-size: 13px;
  ========================================================================== */
font-family: monospace, monospace; /* Module */
}


.mw-input .mw-abusefilter-editor * {
/* Modernized Wikitable */
font-size: 13px;
.wikitable {
font-family: monospace, monospace;
    width: 100% !important;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; /* Clips corners for radius */
    background: var(--bg-content);
}
}


/* Hide default TOOLBOX nav section on sidebar */
.wikitable th {
#mw-navigation > #mw-panel > #p-tb {
    background-color: var(--primary-500) !important;
display: none;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-weight: 600;
    text-align: left;
}
}


/* Column template fix */
.wikitable td {
.columntemplate ul,
    padding: 10px 15px;
.columntemplate ol {
    border-bottom: 1px solid var(--border-color);
margin-top: 0;
}
}


/* RC */
.wikitable tr:last-child td { border-bottom: none; }
.mw-changeslist table {
width: unset;
}


.gift-table .icon-list-container {
.wikitable tr:nth-child(even) { background-color: var(--bg-page); }
width: auto;
}


/* Quote template */
.wikitable tr:hover { background-color: var(--primary-100); }
.quotetable {
width: auto;
}


.Bug6200 {
/* Responsive Table Wrapper */
margin-bottom: 0.75em;
@media (max-width: 768px) {
    .mw-parser-output { overflow-x: auto; }
    .wikitable { min-width: 600px; }
}
}


/* Code block */
/* Modern Navbox (Chip Style) */
code, pre {
.navbox {
background-color: var(--theme-page-background-color--secondary);
    background: var(--bg-content) !important;
color: var(--theme-page-text-color);
    border: 1px solid var(--primary-500) !important;
border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-md);
border-radius: 2px;
    padding: 5px;
padding: 1px 4px;
font-family: Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
}
}


code.code-block-table {
.navbox-title {
display: table;
    background: var(--primary-500) !important;
line-height: 21px;
    color: white !important;
padding:8px;
    border-radius: 6px 6px 0 0;
    padding: 8px !important;
}
}


.code-block-table * {
.navbox-group {
font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
    background: var(--primary-100) !important;
    color: var(--primary-700) !important;
    font-weight: 600 !important;
    width: 15%;
}
}


.code-block {
.navbox-list ul {
display: inline-block;
    display: flex;
line-height: 21px;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    margin: 0 !important;
    padding: 10px !important;
}
}


/* || MAIN PAGE */
.navbox-list li {
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
    background: var(--bg-secondary);
body.page-Main_Page.action-view .main-page-top {
    padding: 4px 12px;
background-image: url(https://mbwiki.stairwaygames.work/w/images/c/c2/441Cover_image_only.png);
    border-radius: 20px;
background-repeat: no-repeat;
    font-size: 0.9em;
background-size: cover;
    border: 1px solid var(--border-color);
width: 100%;
display: flex;
flex-direction: column;
gap: 4px;
color: rgb(67, 64, 61); /*fixed color due to bg image*/
text-align: center;
align-items: center;
}
}


 
/* Table of Contents */
/* ||TABLE OF CONTENTS */
.toc {
.toc {
padding: 8px 12px;
    background: var(--bg-content);
border-radius: 4px;
    border: 1px solid var(--border-color);
background-color: var(--theme-page-background-color--secondary);
    border-radius: var(--radius-md);
border: 1px solid var(--theme-border-color);
    padding: 15px !important;
margin-top: 16px;
    box-shadow: var(--shadow-sm);
}
}
.toctogglelabel {
 
color: var(--theme-link-color);
.toc h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
}
.tocnumber {
 
color: var(--theme-page-text-color);
/* 5. INFOBOXES & PORTABLE INFOBOXES
  ========================================================================== */
.portable-infobox, .infobox {
    float: right;
    clear: right;
    width: 300px;
    margin: 0 0 1rem 1rem;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
}


.vector-body .toc h2 {
.pi-title {
font-family: Fredoka, sans-serif;
    background: var(--primary-500);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
}
}


/* TOC hide headings */
.pi-item {
.toclimit-2 .toclevel-1 ul,
    display: flex;
.toclimit-3 .toclevel-2 ul,
    justify-content: space-between;
.toclimit-4 .toclevel-3 ul,
    padding: 8px 15px;
.toclimit-5 .toclevel-4 ul,
    border-bottom: 1px solid var(--border-color);
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
}


/* For Template:Changelist */
.pi-data-label { font-weight: 600; color: var(--text-muted); }
.changelist-header {
 
display: flex;
@media (max-width: 768px) {
justify-content: space-between;
    .portable-infobox, .infobox {
align-items: center;
        float: none;
font-size: 88%;
        width: 100%;
margin: 0.3em 0;
        margin: 1rem 0;
    }
}
}


.changelist-content {
/* 6. MAIN PAGE LAYOUT (#mp-container)
overflow: auto;
  ========================================================================== */
max-height: 384px;
.mp-grid {
padding: 1em;
    display: grid;
box-sizing: border-box;
    gap: 20px;
-moz-box-sizing: border-box;
    margin: 20px 0;
-moz-border-radius-topleft: 0.5em;
background: transparent;
border-radius: 6px;
}
}


.changelist-border {
.game-intro-card {
border: 1px solid var(--theme-border-color);
    background: var(--bg-content);
border-left: 6px solid var(--accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}


 
.game-intro-card:hover {
/* For Template:Chat */
    transform: translateY(-4px);
.chat-wrapper {
    box-shadow: var(--shadow-md);
display: flex;
    border-color: var(--primary-300);
flex-direction: column;
}
}


.chat-player,
.game-header {
.chat-npc {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
display: flex;
    color: white;
flex-direction: row;
    padding: 15px 20px;
gap: 0.5em;
}
}


.chat-player-speaker {
.mana-line {
white-space: nowrap;
    height: 3px;
min-width: 70px;
    width: 50px;
color: rgb(105, 172, 82);
    background: var(--gold-base);
    margin-top: 8px;
    border-radius: 2px;
}
}


.chat-npc-speaker {
/* Social Links Layout */
white-space: nowrap;
.social-container {
min-width: 70px;
    display: flex;
color: rgb(237, 123, 103);
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: -30px; /* Overlap effect */
    position: relative;
    z-index: 10;
}
}


/* Hatnote */
.social-pill {
.hatnote {
    background: var(--bg-content);
border-left: 4px solid var(--theme-border-color);
    padding: 10px 20px;
padding: 6px 12px;
    border-radius: 50px;
border-radius: 4px;
    box-shadow: var(--shadow-md);
background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb),0.30) 0%, rgba(var(--theme-border-color-rgb),0) 100%);%);
    display: flex;
margin: 8px 0;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
}
}


/* For [[Module:Formatting]] */
/* 7. UTILITIES & ANIMATIONS
code.code-block {
  ========================================================================== */
display: inline-block;
.text-primary { color: var(--primary-500) !important; }
line-height: 21px;
.bg-primary { background-color: var(--primary-500) !important; color: white; }
}
.text-gold { color: var(--gold-base) !important; }
code.code-block-table {
.bg-gold-soft { background-color: var(--gold-soft) !important; }
display: table;
line-height: 21px;
}
span.variable {
opacity: 0.65;
}
span.variable::after {
opacity: 0.65;
content: ">";
}
span.variable::before {
opacity: 0.65;
content: "<";
}


/* Quote */
.shadow-lg { box-shadow: var(--shadow-md); }
.rounded-full { border-radius: 9999px; }


.pull-quote {
/* Animations */
font-style: italic;
@media (prefers-reduced-motion: no-preference) {
margin: 0;
    .animate-fade-in {
padding: 0 30px 8px !important
        animation: fadeIn 0.5s ease-out forwards;
    }
}
}


.pull-quote::before {
@keyframes fadeIn {
color: var(--accent);
    from { opacity: 0; transform: translateY(10px); }
content: "“";
    to { opacity: 1; transform: translateY(0); }
display: block;
font-size: 96px;
font-style: normal;
line-height: 72px;
margin: 4px 0 -45px -5px;;
}
}


.pull-quote__source::before {
/* Loading Skeletons */
content: "— ";
.skeleton {
margin-bottom:8px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
}


.pull-quote__text {
@keyframes skeleton-loading {
margin-bottom:4px;
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
}


/* Gallery */
/* 8. MESSAGE BOXES (Hatnotes)
.gallerytext {
  ========================================================================== */
text-align: center;
.messagebox {
font-size:100%;
    margin: 1rem 0;
    padding: 15px 20px;
    border-left: 5px solid;
    border-radius: 4px;
    background: var(--bg-secondary);
}
}


/* Fix to Template Data */
.messagebox-success { border-color: var(--status-success); color: var(--status-success); }
.mw-templatedata-doc-params > * > tr > th {
.messagebox-error { border-color: var(--status-error); color: var(--status-error); }
width: 150px;
.messagebox-warning { border-color: var(--status-warning); background: var(--gold-soft); }
 
/* 9. PRINT STYLES
  ========================================================================== */
@media print {
    #mw-panel, #p-personal, #p-search, #footer, .social-container {
        display: none !important;
    }
    .mw-body {
        margin: 0 !important;
        border: none !important;
    }
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
}


.mw-templatedata-doc-params {
/* 10. VECTOR OVERRIDES (Personal Tools, Search)
width: auto;
  ========================================================================== */
max-width: 100%;
#p-personal {
    top: 5px !important;
    right: 15px !important;
}
}


/* Space sidebar arrows properly */
#p-personal li a {
#mw-panel.collapsible-nav .portal:is(.collapsed, .expanded) .vector-menu-heading {
    color: var(--primary-500) !important;
background-position: 95% center;
    font-weight: 500;
}
}


/* Theme toggle */
.vector-search-box-input {
.wds-icon {
    border: 1px solid var(--border-color) !important;
align-self: center;
    border-radius: 20px !important;
margin: 0 6px;
    background-color: var(--bg-secondary) !important;
pointer-events: none;
fill: currentColor;
}
}
.wds-icon-small {
 
height: 18px;
/* 11. CSS-ONLY THEME TOGGLE CONCEPT
min-width: 18px;
  (Note: Full persistence requires JS, but this styles the UI) */
width: 18px;
#pt-theme a {
}
    background: var(--primary-500) !important;
#p-personal .vector-menu-content-list,
    color: white !important;
#p-personal .mw-list-item > a {
    padding: 5px 15px !important;
display: flex;
    border-radius: 20px !important;
align-items: center;
    margin-top: 5px;
}
.cols {
background-color: var(--theme-page-background-color--secondary);
}
#pagehistory li.selected {
  background-color: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
  outline: 1px dashed var(--theme-border-color);
}
}

Revision as of 14:59, 29 March 2026

/* * MANA BREAK - OFFICIAL WIKI SKIN
 * Theme: Modern Adventure (Teal & Gold)
 * Version: 2.0.0
 */

/* 1. IMPORTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Montserrat:wght@400;500;600&display=swap');
/* Consolidated Wiki Modules */
@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: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");
/* ... other imports should be combined into a single ResourceLoader module for performance ... */

/* 2. VARIABLES & COLOR SYSTEM
   ========================================================================== */
:root {
    /* Primary Teal Palette (#1a6a7a) */
    --primary-100: #e8f0f2;
    --primary-200: #b9d1d6;
    --primary-300: #8ab2ba;
    --primary-400: #5b939e;
    --primary-500: #1a6a7a; /* Base */
    --primary-600: #155562;
    --primary-700: #10404a;
    --primary-800: #0a2a31;
    --primary-900: #051519;

    /* Accent Gold Palette (#eab759) */
    --gold-soft: #fdf6e9;
    --gold-base: #eab759;
    --gold-dark: #c9932e;

    /* Status Colors (WCAG AA Compliant) */
    --status-success: #2d8a57;
    --status-error: #c53030;
    --status-warning: #b7791f;
    --status-info: #2b6cb0;

    /* Light Theme Base */
    --bg-page: #f8fafc;
    --bg-content: #ffffff;
    --bg-secondary: #f1f5f9;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Dark Theme Variables */
.skin-vector-dark {
    --bg-page: #0f172a;
    --bg-content: #1e293b;
    --bg-secondary: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --primary-100: #0f2d33;
    --primary-500: #5eead4;
    --gold-soft: #2d261a;
}

/* 3. BASE ELEMENTS
   ========================================================================== */
body {
    font-family: 'Cinzel', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page) !important;
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-500);
    font-weight: 600;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Focus States */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--primary-300);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 4. WIKI COMPONENTS
   ========================================================================== */

/* Modernized Wikitable */
.wikitable {
    width: 100% !important;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; /* Clips corners for radius */
    background: var(--bg-content);
}

.wikitable th {
    background-color: var(--primary-500) !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-weight: 600;
    text-align: left;
}

.wikitable td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.wikitable tr:nth-child(even) { background-color: var(--bg-page); }

.wikitable tr:hover { background-color: var(--primary-100); }

/* Responsive Table Wrapper */
@media (max-width: 768px) {
    .mw-parser-output { overflow-x: auto; }
    .wikitable { min-width: 600px; }
}

/* Modern Navbox (Chip Style) */
.navbox {
    background: var(--bg-content) !important;
    border: 1px solid var(--primary-500) !important;
    border-radius: var(--radius-md);
    padding: 5px;
}

.navbox-title {
    background: var(--primary-500) !important;
    color: white !important;
    border-radius: 6px 6px 0 0;
    padding: 8px !important;
}

.navbox-group {
    background: var(--primary-100) !important;
    color: var(--primary-700) !important;
    font-weight: 600 !important;
    width: 15%;
}

.navbox-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    margin: 0 !important;
    padding: 10px !important;
}

.navbox-list li {
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

/* Table of Contents */
.toc {
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px !important;
    box-shadow: var(--shadow-sm);
}

.toc h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 5. INFOBOXES & PORTABLE INFOBOXES
   ========================================================================== */
.portable-infobox, .infobox {
    float: right;
    clear: right;
    width: 300px;
    margin: 0 0 1rem 1rem;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.pi-title {
    background: var(--primary-500);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
}

.pi-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
}

.pi-data-label { font-weight: 600; color: var(--text-muted); }

@media (max-width: 768px) {
    .portable-infobox, .infobox {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }
}

/* 6. MAIN PAGE LAYOUT (#mp-container)
   ========================================================================== */
.mp-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.game-intro-card {
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-intro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.game-header {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: white;
    padding: 15px 20px;
}

.mana-line {
    height: 3px;
    width: 50px;
    background: var(--gold-base);
    margin-top: 8px;
    border-radius: 2px;
}

/* Social Links Layout */
.social-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: -30px; /* Overlap effect */
    position: relative;
    z-index: 10;
}

.social-pill {
    background: var(--bg-content);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
}

/* 7. UTILITIES & ANIMATIONS
   ========================================================================== */
.text-primary { color: var(--primary-500) !important; }
.bg-primary { background-color: var(--primary-500) !important; color: white; }
.text-gold { color: var(--gold-base) !important; }
.bg-gold-soft { background-color: var(--gold-soft) !important; }

.shadow-lg { box-shadow: var(--shadow-md); }
.rounded-full { border-radius: 9999px; }

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in {
        animation: fadeIn 0.5s ease-out forwards;
    }
}

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

/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 8. MESSAGE BOXES (Hatnotes)
   ========================================================================== */
.messagebox {
    margin: 1rem 0;
    padding: 15px 20px;
    border-left: 5px solid;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.messagebox-success { border-color: var(--status-success); color: var(--status-success); }
.messagebox-error { border-color: var(--status-error); color: var(--status-error); }
.messagebox-warning { border-color: var(--status-warning); background: var(--gold-soft); }

/* 9. PRINT STYLES
   ========================================================================== */
@media print {
    #mw-panel, #p-personal, #p-search, #footer, .social-container {
        display: none !important;
    }
    .mw-body {
        margin: 0 !important;
        border: none !important;
    }
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* 10. VECTOR OVERRIDES (Personal Tools, Search)
   ========================================================================== */
#p-personal {
    top: 5px !important;
    right: 15px !important;
}

#p-personal li a {
    color: var(--primary-500) !important;
    font-weight: 500;
}

.vector-search-box-input {
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    background-color: var(--bg-secondary) !important;
}

/* 11. CSS-ONLY THEME TOGGLE CONCEPT
   (Note: Full persistence requires JS, but this styles the UI) */
#pt-theme a {
    background: var(--primary-500) !important;
    color: white !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    margin-top: 5px;
}