MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(202 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* =======================================================================
/* ============================================
  MB WIKI - OFFICIAL COMMON.CSS
  ALL @IMPORTS MUST BE AT THE VERY TOP
  Theme: Teal/Cyan (Custom) + Terraria Typography
  ============================================ */
  ======================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@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");


/* --- 1. Imports & Fonts --- */
/* ============================================
/* Only import FontAwesome (Icons). Google Fonts (Fredoka/Rubik) REMOVED for speed/style. */
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
  ============================================ */
:root {
    /* Theme Colors - Fallbacks if Colors.css fails */
    --theme-page-background-color: #0a0a1a;
    --theme-page-background-color--secondary: #16213e;
    --theme-page-text-color: #eaeef2;
    --theme-link-color: #7c9eff;
    --theme-border-color: #2c3e50;
    --theme-border-color-rgb: 44, 62, 80;
    --accent: #6c5ce7;
    --accent-light: #8c7cf5;
    --gray-050: rgba(255, 255, 255, 0.05);
   
    /* Main Page Layout Variables */
    --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';
}
 
/* ============================================
  BASE LAYOUT FIXES
  ============================================ */
.mw-body {
    margin-top: -1px;
    border: 1px solid azure;
    border-radius: 1px;
    background-color: transparent;
}
 
body.skin-vector,
body.skin-vector-dark {
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}
 
/* 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);
    }
}
 
/* ============================================
  GAME INTRO CARDS
  ============================================ */
.game-intro-card {
    background: var(--theme-page-background-color--secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--theme-border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
 
.game-intro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
 
.game-header {
    margin-bottom: 1rem;
    position: relative;
}
 
.mana-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #a8c0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    letter-spacing: 0.5px;
    margin: 0 !important;
}
 
.mana-text img {
    vertical-align: middle;
    margin-left: 8px;
}
 
.mana-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 0.5rem;
    width: 100%;
}
 
.game-content {
    color: var(--theme-page-text-color);
    line-height: 1.6;
}
 
/* ============================================
  HEADING STYLES
  ============================================ */
.heading-char {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
 
.heading-char a {
    color: var(--accent-light);
    text-decoration: none;
}
 
.heading-char a:hover {
    text-decoration: underline;
}
 
/* ============================================
  AUTO GRID LISTS
  ============================================ */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
 
.auto-grid li {
    padding: 0.25rem 0;
}
 
.auto-grid li a {
    color: var(--theme-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}
 
.auto-grid li a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}
 
/* ============================================
  BANNER SECTION
  ============================================ */
#mp-box-banner .mp-body {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
 
/* Social links */
.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}


/* --- 2. CSS Variables (Theming) --- */
.iconname {
:root {
    display: flex;
     /* -- Typography (Terraria Style) -- */
    align-items: center;
     --font-family-body: Helvetica, Arial, sans-serif;
    gap: 0.5rem;
     --font-family-heading: Verdana, Helvetica, Arial, sans-serif;
    background: rgba(255, 255, 255, 0.1);
    --font-family-mono: monospace, monospace;
    padding: 0.5rem 1rem;
     --font-size-base: 14px;
    border-radius: 8px;
     --line-height-base: 1.5;
    transition: all 0.2s ease;
}
 
.iconname:hover {
     background: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}
 
.iconname a {
    color: white !important;
     text-decoration: none;
     font-weight: 500;
}
 
/* ============================================
  WIKI FIXES & IMPROVEMENTS
  ============================================ */
/* Editor fixes */
.wikiEditor-ui-text > .ui-resizable {
    width: 100% !important;
     max-width: 100%;
}
 
/* List styles */
ul {
     list-style: disc;
}


    /* -- Universal Colors (Gray Scale) -- */
/* Headings */
    --gray-900: #1a202c;
h2 .mw-headline,
    --gray-800: #2d3748;
h3 .mw-headline,
    --gray-700: #4a5568;
h4 .mw-headline {
     --gray-600: #718096;
     font-weight: 500;
    --gray-500: #a0aec0;
    --gray-400: #cbd5e0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --gray-050: #ffffff;
}
}


/* -- Light Theme Variables -- */
.vector-body h3,
:root body:not(.skin-vector-dark) {
.vector-body h4,
    --theme-page-text-color: #1a2a2a;
.vector-body h5,
    --theme-page-background-color: #f8fdfc;
.vector-body h6 {
    --theme-page-background-color--secondary: #e0f7f4;
     margin-bottom: 4px;
   
    --theme-link-color: #006d72;
    --theme-link-color--hover: #00474A;
    --theme-border-color: #b2f5ea;
   
    --theme-accent-color: #4fd1c7;
    --theme-highlight-background: #e6fffa;
    --theme-heading-color: #1a2a2a;
   
    /* Box Styles */
     --theme-box-background: #ffffff;
    --theme-box-border-color: #b2f5ea;
}
}


/* -- Dark Theme Variables -- */
/* Link colors */
:root .skin-vector-dark {
a, a:visited, a:active,
    --theme-page-text-color: #e2e8f0;
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    --theme-page-background-color: #1a202c;
     color: var(--theme-link-color);
    --theme-page-background-color--secondary: #2d3748;
      
    --theme-link-color: #4fd1c7;
    --theme-link-color--hover: #81e6d9;
    --theme-border-color: #4a5568;
   
    --theme-accent-color: #4fd1c7;
    --theme-highlight-background: #2d3748;
    --theme-heading-color: #e2e8f0;
   
    /* Box Styles */
    --theme-box-background: #2d3748;
    --theme-box-border-color: #4a5568;
}
}


/* =======================================================================
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
  3. GLOBAL ELEMENTS & TYPOGRAPHY
     color: var(--theme-page-text-color);
  ======================================================================= */
html, body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
     line-height: var(--line-height-base);
}
}


/* Headings - Terraria Style (Verdana) */
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
h1, h2, h3, h4, h5, h6, .mw-headline, .vector-menu-heading-label {
     color: var(--theme-link-color);
    font-family: var(--font-family-heading);
     color: var(--theme-heading-color);
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 0.25em;
}
}


/* Specific Header Tweaks */
.mw-parser-output a.external {
.mw-body h1, .mw-body-content h1 { font-size: 2em; font-weight: normal; }
    padding-right: 0;
.mw-body-content h2 { font-size: 1.6em; border-bottom: 1px solid var(--theme-border-color); margin-top: 1em; }
    font-size: inherit;
.vector-body h3 { font-size: 1.3em; font-weight: bold; }
}
.vector-body h4 { font-size: 1.1em; font-weight: bold; }


/* Links */
/* Categories */
a, a:visited, .mw-parser-output a.external { color: var(--theme-link-color); text-decoration: none; }
.catlinks {
a:hover, .mw-parser-output a.external:hover { color: var(--theme-link-color--hover); text-decoration: underline; }
    border-color: var(--theme-border-color);
    border-radius: 6px;
    background-color: var(--gray-050);
}


/* Code Blocks */
/* Code blocks */
code, pre, .mw-code {
code, pre {
    font-family: var(--font-family-mono);
    font-size: 13px;
     background-color: var(--theme-page-background-color--secondary);
     background-color: var(--theme-page-background-color--secondary);
    color: var(--theme-page-text-color);
     border: 1px solid var(--theme-border-color);
     border: 1px solid var(--theme-border-color);
     border-radius: 2px;
     border-radius: 2px;
     padding: 1px 4px;
     padding: 1px 4px;
    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 {
  4. TEMPLATE COMPONENTS (Infoboxes, Tables, Etc.)
    display: inline-block;
  ======================================================================= */
    line-height: 21px;
}


/* --- Standard Wikitable --- */
/* Table of Contents */
.wikitable {
.toc {
     background-color: transparent;
    padding: 8px 12px;
    border-radius: 4px;
     background-color: var(--theme-page-background-color--secondary);
     border: 1px solid var(--theme-border-color);
     border: 1px solid var(--theme-border-color);
     border-collapse: collapse;
     margin-top: 16px;
}
 
.toctogglelabel {
    color: var(--theme-link-color);
}
 
.tocnumber {
     color: var(--theme-page-text-color);
     color: var(--theme-page-text-color);
}
}
.wikitable > tr > th, .wikitable > * > tr > th {
 
     background-color: #e7c361; /* Keeping your Gold Header */
.vector-body .toc h2 {
    color: #000;
     font-family: 'Fredoka', sans-serif;
    text-align: center;
    border: 1px solid #a2a9b1;
    padding: 0.2em 0.4em;
}
}
.wikitable > tr > td, .wikitable > * > tr > td {
 
     border: 1px solid #a2a9b1;
/* Hatnote */
     padding: 0.2em 0.4em;
.hatnote {
     border-left: 4px solid var(--theme-border-color);
     padding: 6px 12px;
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb), 0.30) 0%, rgba(var(--theme-border-color-rgb), 0) 100%);
    margin: 8px 0;
}
}


/* --- Terraria-Style InfoCard (New) --- */
/* Variables styling */
.infocard {
span.variable {
     display: inline-block;
     opacity: 0.65;
    vertical-align: top;
}
    border: 1px solid var(--theme-border-color);
 
    background: var(--theme-box-background);
span.variable::after {
    border-radius: 6px;
     opacity: 0.65;
     margin: 5px;
     content: ">";
     padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
}
.infocard .heading {
 
    background: var(--theme-highlight-background);
span.variable::before {
    margin: -10px -10px 10px -10px;
     opacity: 0.65;
    padding: 8px 10px;
     content: "<";
    font-weight: bold;
    border-bottom: 1px solid var(--theme-border-color);
     border-radius: 5px 5px 0 0;
     font-family: var(--font-family-heading);
}
}


/* --- Inline Item (.i) --- */
/* Pull quotes */
.i {
.pull-quote {
     display: inline-flex;
     font-style: italic;
    align-items: center;
     margin: 0;
     white-space: nowrap;
     padding: 0 30px 8px !important;
     line-height: 1.5;
}
}
.i img {
 
     margin-right: 4px;
.pull-quote::before {
     image-rendering: pixelated;  
     color: var(--accent);
    content: "“";
    display: block;
    font-size: 96px;
    font-style: normal;
     line-height: 72px;
    margin: 4px 0 -45px -5px;
}
}


/* --- Portable Infobox --- */
.pull-quote__source::before {
.portable-infobox {
     content: "— ";
    margin: 0 0 15px 15px;
     margin-bottom: 8px;
    float: right;
     clear: right;
     width: 300px;
    border: 1px solid #e7c361;
    border-radius: 10px;
    background: var(--theme-box-background);
}
}
.portable-infobox .pi-title {
 
     background: #e7c361;
.pull-quote__text {
    padding: 10px;
     margin-bottom: 4px;
    font-weight: bold;
}
 
/* Gallery */
.gallerytext {
     text-align: center;
     text-align: center;
    border-radius: 9px 9px 0 0;
     font-size: 100%;
    color: #000;
    font-family: var(--font-family-heading);
     font-size: 1.25em;
}
}
.portable-infobox .pi-data {
 
/* Changelist */
.changelist-header {
     display: flex;
     display: flex;
     justify-content: space-between;
     justify-content: space-between;
     padding: 5px 10px;
     align-items: center;
     border-bottom: 1px solid rgba(0,0,0,0.1);
     font-size: 88%;
    margin: 0.3em 0;
}
}
.portable-infobox .pi-data-label { font-weight: bold; }


/* =======================================================================
.changelist-content {
  5. MAIN PAGE LAYOUT GRID (Critical for your homepage)
    overflow: auto;
  ======================================================================= */
    max-height: 384px;
/* Grid System */
     padding: 1em;
.grid {
     box-sizing: border-box;
     display: grid !important;
     border-radius: 6px;
     grid-template-columns: repeat(12, 1fr);
     gap: 10px;
}
}
.grid__col12 { grid-column: span 12; }
.grid__col8  { grid-column: span 8; }
.grid__col6  { grid-column: span 6; }
.grid__col4  { grid-column: span 4; }
.grid__col3  { grid-column: span 3; }


/* Mobile Grid Fallback */
.changelist-border {
    border: 1px solid var(--theme-border-color);
    border-left: 6px solid var(--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: rgb(105, 172, 82);
}
 
.chat-npc-speaker {
    white-space: nowrap;
    min-width: 70px;
    color: rgb(237, 123, 103);
}
 
/* ============================================
  RESPONSIVE IMPROVEMENTS
  ============================================ */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .grid { display: flex !important; flex-direction: column; }
     .auto-grid {
     .grid > div { width: 100%; margin-bottom: 10px; }
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     .mp-box { margin-bottom: 15px; }
    }
   
    .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;
    }
}
}


/* Main Page Boxes (.mp-box) */
/* ============================================
.mp-box {
  CUSTOM SCROLLBAR
    background: var(--theme-box-background);
  ============================================ */
    border: 1px solid var(--theme-border-color);
::-webkit-scrollbar {
    border-radius: 8px;
     width: 10px;
     padding: 15px;
     height: 10px;
     margin-bottom: 15px;
}
}
.mp-box h2 {
 
    border-bottom: none;
::-webkit-scrollbar-track {
    margin-top: 0;
     background: var(--theme-page-background-color--secondary);
     font-family: var(--font-family-heading);
    border-radius: 5px;
}
}


/* Icon Links (IconName) */
::-webkit-scrollbar-thumb {
.iconname {
     background: var(--accent);
     display: flex;
     border-radius: 5px;
    align-items: center;
    gap: 8px;
     margin-bottom: 4px;
}
}
.iconname img {
 
    width: 24px;
::-webkit-scrollbar-thumb:hover {
     height: 24px;
     background: var(--accent-light);
    object-fit: contain;
}
}


/* =======================================================================
/* ============================================
   6. UI ELEMENTS (Buttons, Nav, Etc.)
   UTILITY CLASSES
   ======================================================================= */
   ============================================ */
/* Buttons */
.text-center {
.mw-ui-button, .oo-ui-buttonElement-button {
     text-align: center;
     background-color: var(--theme-link-color);
    color: #fff !important;
    border: 1px solid var(--theme-link-color--hover);
    border-radius: 4px;
    font-family: var(--font-family-heading);
    font-weight: bold;
}
}
.mw-ui-button:hover, .oo-ui-buttonElement-button:hover {
 
     background-color: var(--theme-link-color--hover);
.mt-2 {
    text-decoration: none;
     margin-top: 0.5rem;
}
}


/* Navigation Menu (Sidebar) */
.mb-2 {
#mw-panel .vector-menu-heading {
     margin-bottom: 0.5rem;
     font-family: var(--font-family-heading);
    font-weight: bold;
    color: var(--theme-heading-color);
}
#mw-panel .vector-menu-content-list li a {
    color: var(--theme-link-color);
}
}


/* Footer */
.p-2 {
#footer {
     padding: 0.5rem;
    background-color: var(--theme-page-background-color--secondary);
    border-top: 1px solid var(--theme-border-color);
     padding: 1.5em;
}
}

Latest revision as of 12:05, 30 March 2026

/* ============================================
   ALL @IMPORTS MUST BE AT THE VERY TOP
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@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");

/* ============================================
   CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
   ============================================ */
:root {
    /* Theme Colors - Fallbacks if Colors.css fails */
    --theme-page-background-color: #0a0a1a;
    --theme-page-background-color--secondary: #16213e;
    --theme-page-text-color: #eaeef2;
    --theme-link-color: #7c9eff;
    --theme-border-color: #2c3e50;
    --theme-border-color-rgb: 44, 62, 80;
    --accent: #6c5ce7;
    --accent-light: #8c7cf5;
    --gray-050: rgba(255, 255, 255, 0.05);
    
    /* Main Page Layout Variables */
    --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';
}

/* ============================================
   BASE LAYOUT FIXES
   ============================================ */
.mw-body {
    margin-top: -1px;
    border: 1px solid azure;
    border-radius: 1px;
    background-color: transparent;
}

body.skin-vector,
body.skin-vector-dark {
   background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}

/* 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);
    }
}

/* ============================================
   GAME INTRO CARDS
   ============================================ */
.game-intro-card {
    background: var(--theme-page-background-color--secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--theme-border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.game-intro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-header {
    margin-bottom: 1rem;
    position: relative;
}

.mana-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #a8c0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

.mana-text img {
    vertical-align: middle;
    margin-left: 8px;
}

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

.game-content {
    color: var(--theme-page-text-color);
    line-height: 1.6;
}

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

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

.heading-char a:hover {
    text-decoration: underline;
}

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

.auto-grid li {
    padding: 0.25rem 0;
}

.auto-grid li a {
    color: var(--theme-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.auto-grid li a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ============================================
   BANNER SECTION
   ============================================ */
#mp-box-banner .mp-body {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* 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: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.iconname:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.iconname a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}

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

/* List styles */
ul {
    list-style: disc;
}

/* Headings */
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;
}

/* Link colors */
a, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    color: var(--theme-link-color);
}

#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
    color: var(--theme-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 {
    padding-right: 0;
    font-size: inherit;
}

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

/* Code blocks */
code, pre {
    background-color: var(--theme-page-background-color--secondary);
    color: var(--theme-page-text-color);
    border: 1px solid var(--theme-border-color);
    border-radius: 2px;
    padding: 1px 4px;
    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: 8px 12px;
    border-radius: 4px;
    background-color: var(--theme-page-background-color--secondary);
    border: 1px solid var(--theme-border-color);
    margin-top: 16px;
}

.toctogglelabel {
    color: var(--theme-link-color);
}

.tocnumber {
    color: var(--theme-page-text-color);
}

.vector-body .toc h2 {
    font-family: 'Fredoka', sans-serif;
}

/* Hatnote */
.hatnote {
    border-left: 4px solid var(--theme-border-color);
    padding: 6px 12px;
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb), 0.30) 0%, rgba(var(--theme-border-color-rgb), 0) 100%);
    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(--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 */
.gallerytext {
    text-align: center;
    font-size: 100%;
}

/* Changelist */
.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: 6px;
}

.changelist-border {
    border: 1px solid var(--theme-border-color);
    border-left: 6px solid var(--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: rgb(105, 172, 82);
}

.chat-npc-speaker {
    white-space: nowrap;
    min-width: 70px;
    color: rgb(237, 123, 103);
}

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

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--theme-page-background-color--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}