MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(200 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
  Structure: FGS/Wiki.gg Standardized Variables
  ============================================ */
  Theme: Teal/Terraria Hybrid
@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. FONTS & IMPORTS --- */
/* ============================================
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
 
  ============================================ */
/* --- 2. BASIC VARIABLES (Typography & Layout) --- */
:root {
:root {
     /* Terraria/Standard Fonts (Overriding the loaded defaults) */
     /* Theme Colors - Fallbacks if Colors.css fails */
     --wiki-font-family-body: Helvetica, Arial, sans-serif;
     --theme-page-background-color: #0a0a1a;
     --wiki-font-family-heading: Verdana, Helvetica, Arial, sans-serif;
    --theme-page-background-color--secondary: #16213e;
     --wiki-font-family-mono: monospace, monospace;
    --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);
      
      
    --wiki-content-border-radius: 4px;
     /* Main Page Layout Variables */
    --wiki-sidebar-border-radius: 4px;
   
     /* 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--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--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
Line 24: Line 42:
}
}


/* --- 3. LIGHT THEME (Your Teal Palette) --- */
/* ============================================
:root, .view-light {
  BASE LAYOUT FIXES
    /* Backgrounds */
  ============================================ */
    --wiki-body-background-color: #f8fdfc; /* Light Cyan */
.mw-body {
    --wiki-body-background-image: none; /* Removed placeholder image */
    margin-top: -1px;
      
    border: 1px solid azure;
     --wiki-content-background-color: #ffffff;
    border-radius: 1px;
     --wiki-content-background-color--secondary: #e0f7f4; /* Darker Cyan for boxes */
    background-color: transparent;
     --wiki-content-border-color: #b2f5ea;
}
      
 
    /* Text & Links */
body.skin-vector,
     --wiki-content-text-color: #1a2a2a;
body.skin-vector-dark {
    --wiki-content-link-color: #006d72; /* Dark Teal */
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
     --wiki-content-link-color--hover: #00474A;
}
    --wiki-content-link-color--visited: #00585c;
 
      
/* Hide default elements */
    /* Accents */
.mobileHide, .mobile-only, .no-desktop {
     --wiki-accent-color: #4fd1c7; /* Vibrant Teal */
    display: none !important;
    --wiki-accent-label-color: #ffffff;
}
   
 
    /* Special Components (Mainbox/Navbox) */
/* Fix for hidden H1 on main page */
    --mainbox-header-bg: #e7c361; /* Gold (Terraria Style) */
body.page-Main_Page.action-view h1.firstHeading,
    --mainbox-header-text: #000000;
body.page-Main_Page.action-submit h1.firstHeading {
    --mainbox-header-border: #a2a9b1;
    display: none;
      
}
     /* Messages/Alerts */
 
     --wiki-alert-color: #e53e3e;
/* ============================================
     --wiki-warning-color: #dd6b20;
  MAIN PAGE GRID LAYOUT
     --wiki-success-color: #38a169;
  ============================================ */
#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%;
}
}


/* --- 4. DARK THEME (Your Dark Palette) --- */
.game-intro-card:hover {
.view-dark, .skin-vector-dark {
     transform: translateY(-2px);
    /* Backgrounds */
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --wiki-body-background-color: #1a202c; /* Dark Blue-Gray */
    --wiki-body-background-image: none;
   
    --wiki-content-background-color: #2d3748;
    --wiki-content-background-color--secondary: #4a5568;
    --wiki-content-border-color: #4a5568;
   
    /* Text & Links */
    --wiki-content-text-color: #e2e8f0;
    --wiki-content-link-color: #4fd1c7; /* Bright Teal */
    --wiki-content-link-color--hover: #81e6d9;
     --wiki-content-link-color--visited: #38b2ac;
   
    /* Accents */
    --wiki-accent-color: #4fd1c7;
     --wiki-accent-label-color: #1a202c;
   
    /* Special Components */
    --mainbox-header-bg: #d69e2e; /* Darker Gold */
    --mainbox-header-text: #000000;
    --mainbox-header-border: #4a5568;
}
}


/* =======================================================================
.game-header {
  5. COMPONENT STYLING (Adapted from your provided code)
    margin-bottom: 1rem;
  ======================================================================= */
    position: relative;
}


/* --- Typography & Global Resets --- */
.mana-text {
html, body {
    font-family: 'Fredoka', sans-serif;
     font-family: var(--wiki-font-family-body);
    font-size: 1.5rem;
     font-size: 14px;
     font-weight: 600;
     line-height: 1.5;
    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;
}
}


/* Links */
.mana-text img {
a { transition: color 0.2s; }
    vertical-align: middle;
a:hover { text-decoration: underline; }
    margin-left: 8px;
}


/* Tables (Terraria Style Header) */
.mana-line {
.wikitable {
     height: 3px;
     background-color: var(--wiki-content-background-color);
     background: linear-gradient(90deg, var(--accent), transparent);
     border: 1px solid var(--wiki-content-border-color);
     margin-top: 0.5rem;
     border-collapse: collapse;
     width: 100%;
     width: 100%;
}
}
.wikitable > tr > th, .wikitable > * > tr > th {
 
     background-color: var(--mainbox-header-bg);
.game-content {
     color: var(--mainbox-header-text);
     color: var(--theme-page-text-color);
     border: 1px solid var(--mainbox-header-border);
    line-height: 1.6;
     padding: 8px;
}
     text-align: center;
 
     font-weight: bold;
/* ============================================
  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;
}
}
.wikitable > tr > td, .wikitable > * > tr > td {
 
     border: 1px solid var(--wiki-content-border-color);
.heading-char a:hover {
    padding: 6px;
     text-decoration: underline;
}
}


/* --- Main Page Grid System --- */
/* ============================================
#mp-container {
  AUTO GRID LISTS
  ============================================ */
.auto-grid {
     display: grid;
     display: grid;
    gap: 10px;
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     grid-template-areas: var(--main-page-layout--desktop);
     gap: 0.5rem;
     grid-template-columns: repeat(12, 1fr);
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
 
.auto-grid li {
    padding: 0.25rem 0;
}
}


/* Main Page Boxes */
.auto-grid li a {
.mp-box {
     color: var(--theme-link-color);
     display: flex;
     text-decoration: none;
    flex-flow: column nowrap;
     transition: color 0.2s ease;
    background: var(--wiki-content-background-color);
     display: inline-block;
    border: 1px solid var(--wiki-content-border-color);
     border-radius: var(--wiki-content-border-radius);
     padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
     overflow: hidden;
}
}


.mp-body {
.auto-grid li a:hover {
     padding: 10px;
     color: var(--accent-light);
     height: 100%;
     text-decoration: underline;
}
}


/* Main Page Headers (Terraria Gold Style) */
/* ============================================
.mp-box h2 {
  BANNER SECTION
     background-color: var(--mainbox-header-bg);
  ============================================ */
    color: var(--mainbox-header-text);
#mp-box-banner .mp-body {
     margin: 0;
     background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
     padding: 8px;
     border-radius: 16px;
    font-size: 1.25em;
     padding: 2rem;
     text-align: center;
     text-align: center;
     border-bottom: 1px solid var(--mainbox-header-border);
     backdrop-filter: blur(10px);
     font-family: var(--wiki-font-family-heading);
}
     font-weight: bold;
 
/* Social links */
.social {
    display: flex;
     justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
     margin-top: 2rem;
}
}


/* --- CardGrid / Navbox (From your code) --- */
.iconname {
.card-navbox-container {
    display: flex;
     background: var(--wiki-content-background-color--secondary);
    align-items: center;
     border: 1px solid var(--wiki-content-border-color);
    gap: 0.5rem;
     background: rgba(255, 255, 255, 0.1);
     padding: 0.5rem 1rem;
     border-radius: 8px;
     border-radius: 8px;
     padding: 15px;
     transition: all 0.2s ease;
     margin: 1em 0;
}
 
.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);
}
}
.card-navbox-title {
 
     background: var(--mainbox-header-bg);
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
     color: var(--mainbox-header-text);
    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;
     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;
     text-align: center;
     font-weight: bold;
     font-size: 100%;
    border-radius: 4px;
}
}


/* --- Inline Icons (.iconname) --- */
/* Changelist */
.iconname {
.changelist-header {
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
     gap: 6px;
     font-size: 88%;
     margin-bottom: 4px;
    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);
}
}
.iconname img {
 
     width: 24px;
/* Chat wrapper */
    height: 24px;
.chat-wrapper {
    object-fit: contain;
     display: flex;
     image-rendering: pixelated; /* Essential for pixel art */
     flex-direction: column;
}
}


/* --- Portable Infobox --- */
.chat-player,
.portable-infobox {
.chat-npc {
     border: 1px solid var(--wiki-content-border-color);
     display: flex;
    background: var(--wiki-content-background-color);
     flex-direction: row;
     border-radius: 8px;
     gap: 0.5em;
     margin-bottom: 1em;
}
}
.portable-infobox .pi-title {
 
     background: var(--mainbox-header-bg);
.chat-player-speaker {
     color: var(--mainbox-header-text);
     white-space: nowrap;
     font-family: var(--wiki-font-family-heading);
     min-width: 70px;
    font-weight: bold;
     color: rgb(105, 172, 82);
    border-radius: 7px 7px 0 0;
    padding: 10px;
}
}
.portable-infobox .pi-data-label {
 
     background: var(--wiki-content-background-color--secondary);
.chat-npc-speaker {
     font-weight: bold;
     white-space: nowrap;
    min-width: 70px;
     color: rgb(237, 123, 103);
}
}


/* --- Responsive Layouts --- */
/* ============================================
@media screen and (max-width: 1350px) {
  RESPONSIVE IMPROVEMENTS
     #mp-container {
  ============================================ */
         grid-template-areas: var(--main-page-layout--tablet);
@media (max-width: 768px) {
        grid-template-columns: 1fr 1fr;
     .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;
     }
     }
}
}
@media screen and (max-width: 990px) {
 
     #mp-container {
/* ============================================
        display: flex;
  CUSTOM SCROLLBAR
        flex-direction: column;
  ============================================ */
    }
::-webkit-scrollbar {
     .grid { display: flex; flex-direction: column; }
    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);
}
}


/* =======================================================================
/* ============================================
   6. THE "NUCLEAR OPTION" FOR FONTS
   UTILITY CLASSES
   This overrides the `load.php` setting: *,body{font-family:Fredoka...}
   ============================================ */
  ======================================================================= */
.text-center {
/* 1. Reset Global Font */
     text-align: center;
html, body, .mw-body, #content {
     font-family: Helvetica, Arial, sans-serif !important;
}
}


/* 2. Reset Headings to Verdana */
.mt-2 {
h1, h2, h3, h4, h5, h6, .mw-headline, .firstHeading {
     margin-top: 0.5rem;
     font-family: Verdana, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}
}


/* 3. Force Monospace for Code */
.mb-2 {
pre, code, .mw-code {
     margin-bottom: 0.5rem;
     font-family: monospace, monospace !important;
    font-size: 13px !important;
}
}


/* 4. Kill Fredoka on everything else */
.p-2 {
* {
     padding: 0.5rem;
     font-family: inherit; /* Forces elements to listen to body/parent instead of load.php */
}
}

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