MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
m (Undo revision 28404 by Ais (talk))
Tag: Undo
mNo edit summary
Line 1: Line 1:
/*************************************🎮**************************************
      ╔═══════════════════════════════════════════════════════════════════╗ 
                                                        COMMON.CSS (vA0.1)                                                       
                                                                ✦ M*n* B**** ✦                                                             
      ╚═══════════════════════════════════════════════════════════════════╝ 
*******************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
/* ============================================
/* ============================================
   ALL @IMPORTS MUST BE AT THE VERY TOP
   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: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:Module:Documentation.css&action=raw&ctype=text/css");
Line 22: Line 29:


/* ============================================
/* ============================================
   CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
   THEME DAYBREAK (Mana) – Default
   ============================================ */
   ============================================ */
:root {
:root {
     /* Theme Colors - Fallbacks if Colors.css fails */
     /* Primary gradient */
     --theme-page-background-color: #0a0a1a;
    --theme-primary-start: #C8F1E4;
     --theme-page-background-color--secondary: #16213e;
    --theme-primary-mid:  #B8DCE7;
     --theme-page-text-color: #eaeef2;
    --theme-primary-end:  #B9A9D5;
     --theme-link-color: #7c9eff;
    --theme-primary-gradient: linear-gradient(135deg, var(--theme-primary-start), var(--theme-primary-mid), var(--theme-primary-end));
     --theme-border-color: #2c3e50;
 
     --theme-border-color-rgb: 44, 62, 80;
    /* Body / Text */
     --accent: #6c5ce7;
    --theme-body-text:            #1A1A1A;
     --accent-light: #8c7cf5;
    --theme-body-text-rgb:        26,26,26;
     --gray-050: rgba(255, 255, 255, 0.05);
    --theme-body-text-muted:      #5A5A5A;
      
    --theme-body-text-emphasized: #0F0F0F;
     /* Main Page Layout Variables */
    --theme-heading-color:        #1A1A1A;
     --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';
    /* Links */
     --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
     --theme-link-color:        #005B9F;
    --theme-link-color-visited: #673AB7;
    --theme-link-color-hover:  #003D6B;
    --theme-link-color-new:     #D32F2F;
 
    /* Backgrounds */
     --theme-page-background:        #EAF2F5;
    --theme-page-background--secondary: rgba(255,255,255,0.6);
    --theme-body-background:        #F5F9FC;
    --theme-widget-background:      rgba(255,255,255,0.75);
    --theme-widget-background-solid:#FFFFFF;
    --theme-box-background:        rgba(255,255,255,0.6);
    --theme-highlight-background:  rgba(0,0,0,0.05);
 
    /* Glass / Overlay */
    --theme-glass-background:        rgba(255,255,255,0.4);
    --theme-glass-background-solid:  #FFFFFF;
 
    /* Accent & derived */
     --theme-accent-color:      #00A896;
    --theme-accent-color-light: #00F5D4;
     --theme-accent-color-dark: #007A6C;
    --accent: var(--theme-accent-color);
    --accent-light: var(--theme-accent-color-light);
    --accent-rgb: 0,168,150;  /* same as accent-color */
 
    /* Borders */
     --theme-border-color:           rgba(0,0,0,0.12);
     --theme-border-color-rgb:       0,0,0;
     --theme-border-color-accent:     rgba(0,0,0,0.25);
    --theme-border-color-light:      rgba(0,0,0,0.06);
    --theme-hr-color-top:            rgba(0,0,0,0.12);
    --theme-hr-color-bottom:        rgba(255,255,255,0.8);
    --theme-box-border-color:        var(--theme-border-color-accent);
     --theme-box-border-color-inner:  var(--theme-border-color-accent);
    --theme-box-border-color-light: var(--theme-border-color-light);
    --theme-box-border-radius:      6px;
    --theme-box-border-radius-inner: 4px;
 
    /* Widget shadows */
    --theme-shadow-small:  0 1px 3px  rgba(0,0,0,0.12);
    --theme-shadow-medium:  0 2px 6px  rgba(0,0,0,0.15);
 
    /* Scrollbar */
    --theme-scrollbar-track:      rgba(0,0,0,0.05);
    --theme-scrollbar-thumb:      rgba(0,0,0,0.2);
    --theme-scrollbar-thumb-hover: rgba(0,0,0,0.3);
 
     /* Table of Contents */
    --theme-toc-background:       rgba(255,255,255,0.5);
    --theme-toc-border:            var(--theme-border-color-accent);
    --theme-toc-number-color:      var(--theme-body-text-muted);
    --theme-toc-link-color:        var(--theme-body-text);
 
    /* Message boxes */
    --theme-notice-blue-background:    #E3F2FD;
    --theme-notice-blue-border:        #90CAF9;
    --theme-notice-red-background:    #FFEBEE;
    --theme-notice-red-border:        #EF9A9A;
    --theme-notice-red-text:          #C62828;
    --theme-notice-yellow-background:  #FFF8E1;
    --theme-notice-yellow-border:      #FFE082;
    --theme-notice-orange-background:  #FFF3E0;
    --theme-notice-orange-border:      #FFCC80;
    --theme-notice-green-background:  #E8F5E9;
    --theme-notice-green-border:      #A5D6A7;
    --theme-notice-purple-background:  #F3E5F5;
    --theme-notice-purple-border:      #CE93D8;
 
    /* Diff */
    --theme-diff-added-bg:      #E6FFE6;
    --theme-diff-added-text:    #001700;
    --theme-diff-removed-bg:    #FFE6E6;
    --theme-diff-removed-text:  #1F0000;
 
     /* Chat */
     --theme-chat-player: #2E7D32;
    --theme-chat-npc:    #C62828;
 
    --gray-050: rgba(0,0,0,0.05);
}
 
/* ============================================
  THEME BREAK (Deep Cosmos) – Dark
  ============================================ */
html.theme-break {
     --theme-primary-start: #0B3D3D;
    --theme-primary-mid:  #1A1B4B;
    --theme-primary-end:  #311B92;
    --theme-primary-gradient: linear-gradient(135deg, var(--theme-primary-start), var(--theme-primary-mid), var(--theme-primary-end));
 
    --theme-body-text:            #F2F2F2;
    --theme-body-text-rgb:        242,242,242;
    --theme-body-text-muted:      #A0A0A0;
    --theme-body-text-emphasized: #FFFFFF;
    --theme-heading-color:        #FFFFFF;
 
    --theme-link-color:        #00F5D4;
    --theme-link-color-visited: #B388FF;
    --theme-link-color-hover:  #76FFEB;
    --theme-link-color-new:    #FF5252;
 
    --theme-page-background:        #0F0F19;
    --theme-page-background--secondary: rgba(255,255,255,0.08);
    --theme-body-background:        #121420;
    --theme-widget-background:      rgba(20,20,35,0.75);
    --theme-widget-background-solid:#1A1B2F;
    --theme-box-background:        rgba(255,255,255,0.05);
     --theme-highlight-background:  rgba(255,255,255,0.08);
 
    --theme-glass-background:        rgba(15,15,25,0.6);
    --theme-glass-background-solid:  #151622;
 
    --theme-accent-color:      #00F5D4;
    --theme-accent-color-light: #76FFEB;
    --theme-accent-color-dark:  #009C87;
    --accent: var(--theme-accent-color);
    --accent-light: var(--theme-accent-color-light);
    --accent-rgb: 0,245,212;
 
    --theme-border-color:            rgba(255,255,255,0.12);
    --theme-border-color-rgb:        255,255,255;
    --theme-border-color-accent:    rgba(255,255,255,0.25);
    --theme-border-color-light:      rgba(255,255,255,0.07);
    --theme-hr-color-top:            rgba(255,255,255,0.08);
    --theme-hr-color-bottom:        rgba(0,0,0,0.3);
    --theme-box-border-color:        var(--theme-border-color-accent);
    --theme-box-border-color-inner:  var(--theme-border-color-accent);
    --theme-box-border-color-light:  var(--theme-border-color-light);
 
    --theme-shadow-small:  0 1px 3px  rgba(0,0,0,0.4);
    --theme-shadow-medium:  0 2px 6px  rgba(0,0,0,0.6);
 
    --theme-scrollbar-track:      rgba(255,255,255,0.05);
    --theme-scrollbar-thumb:      rgba(255,255,255,0.15);
    --theme-scrollbar-thumb-hover: rgba(255,255,255,0.25);
 
    --theme-toc-background:        rgba(255,255,255,0.05);
    --theme-toc-border:            var(--theme-border-color-accent);
    --theme-toc-number-color:      var(--theme-body-text-muted);
    --theme-toc-link-color:        var(--theme-body-text);
 
    --theme-notice-blue-background:    #1A2B3B;
    --theme-notice-blue-border:        #2F4F6F;
    --theme-notice-red-background:    #3B1A1A;
    --theme-notice-red-border:        #6F2F2F;
    --theme-notice-red-text:          #FF8A8A;
    --theme-notice-yellow-background:  #3B361A;
    --theme-notice-yellow-border:      #6F652F;
    --theme-notice-orange-background:  #3B2D1A;
    --theme-notice-orange-border:      #6F552F;
    --theme-notice-green-background:  #1A3B2A;
    --theme-notice-green-border:      #2F6F4F;
    --theme-notice-purple-background:  #2A1A3B;
    --theme-notice-purple-border:      #4F2F6F;
 
    --theme-diff-added-bg:      #1A2E1A;
    --theme-diff-added-text:    #B8FFB8;
    --theme-diff-removed-bg:    #2E1A1A;
    --theme-diff-removed-text:  #FFB8B8;
 
    --theme-chat-player: #66BB6A;
     --theme-chat-npc:    #EF5350;
 
    --gray-050: rgba(255,255,255,0.05);
}
}


Line 47: Line 218:
.mw-body {
.mw-body {
     margin-top: -1px;
     margin-top: -1px;
     border: 1px solid azure;
     border: 1px solid var(--theme-body-text-emphasized);
     border-radius: 1px;
     border-radius: 1px;
     background-color: transparent;
     background-color: transparent;
}
}


body.skin-vector,
body.skin-vector {
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}
body.skin-vector-dark {
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;
   background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
Line 79: Line 252:
}
}


/* Desktop Layout */
@media (min-width: 1024px) {
@media (min-width: 1024px) {
     #mp-container {
     #mp-container {
Line 87: Line 259:
}
}


/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
@media (min-width: 768px) and (max-width: 1023px) {
     #mp-container {
     #mp-container {
Line 95: Line 266:
}
}


/* Mobile Layout */
@media (max-width: 767px) {
@media (max-width: 767px) {
     #mp-container {
     #mp-container {
Line 104: Line 274:
}
}


/* MP Box styling */
.mp-box {
.mp-box {
     animation: fadeInUp 0.5s ease forwards;
     animation: fadeInUp 0.5s ease forwards;
Line 110: Line 279:
}
}


/* Staggered animations */
.mp-box:nth-child(1) { animation-delay: 0.05s; }
.mp-box:nth-child(1) { animation-delay: 0.05s; }
.mp-box:nth-child(2) { animation-delay: 0.1s; }
.mp-box:nth-child(2) { animation-delay: 0.1s; }
Line 121: Line 289:


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


Line 135: Line 297:
   ============================================ */
   ============================================ */
.game-intro-card {
.game-intro-card {
     background: var(--theme-page-background-color--secondary);
     background: var(--theme-page-background--secondary);
     border-radius: 12px;
     border-radius: 12px;
     padding: 1.25rem;
     padding: 1.25rem;
Line 145: Line 307:
.game-intro-card:hover {
.game-intro-card:hover {
     transform: translateY(-2px);
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
     box-shadow: var(--theme-shadow-medium);
}
}


Line 157: Line 319:
     font-size: 1.5rem;
     font-size: 1.5rem;
     font-weight: 600;
     font-weight: 600;
     background: linear-gradient(135deg, var(--accent), #a8c0ff);
     background: linear-gradient(135deg, var(--accent), var(--accent-light));
     -webkit-background-clip: text;
     -webkit-background-clip: text;
     background-clip: text;
     background-clip: text;
Line 179: Line 341:


.game-content {
.game-content {
     color: var(--theme-page-text-color);
     color: var(--theme-body-text);
     line-height: 1.6;
     line-height: 1.6;
}
}
Line 237: Line 399:
   ============================================ */
   ============================================ */
#mp-box-banner .mp-body {
#mp-box-banner .mp-body {
     background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
     background: var(--theme-primary-gradient);
     border-radius: 16px;
     border-radius: 16px;
     padding: 2rem;
     padding: 2rem;
Line 257: Line 419:
     align-items: center;
     align-items: center;
     gap: 0.5rem;
     gap: 0.5rem;
     background: rgba(255, 255, 255, 0.1);
     background: var(--theme-highlight-background);
     padding: 0.5rem 1rem;
     padding: 0.5rem 1rem;
     border-radius: 8px;
     border-radius: 8px;
Line 264: Line 426:


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


.iconname a {
.iconname a {
     color: white !important;
     color: var(--theme-body-text-emphasized) !important;
     text-decoration: none;
     text-decoration: none;
     font-weight: 500;
     font-weight: 500;
Line 277: Line 439:
   WIKI FIXES & IMPROVEMENTS
   WIKI FIXES & IMPROVEMENTS
   ============================================ */
   ============================================ */
/* Editor fixes */
.wikiEditor-ui-text > .ui-resizable {
.wikiEditor-ui-text > .ui-resizable {
     width: 100% !important;
     width: 100% !important;
Line 283: Line 444:
}
}


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


/* Headings */
h2 .mw-headline,
h2 .mw-headline,
h3 .mw-headline,
h3 .mw-headline,
Line 302: Line 461:
}
}


/* Link colors */
a, a:visited, a:active,
a, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
.mw-parser-output a:is(.external, .external:visited, .external:active) {
Line 309: Line 467:


#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
     color: var(--theme-page-text-color);
     color: var(--theme-body-text);
}
}


Line 321: Line 479:
}
}


/* Categories */
.catlinks {
.catlinks {
     border-color: var(--theme-border-color);
     border-color: var(--theme-border-color);
Line 328: Line 485:
}
}


/* Code blocks */
code, pre {
code, pre {
     background-color: var(--theme-page-background-color--secondary);
     background-color: var(--theme-page-background--secondary);
     color: var(--theme-page-text-color);
     color: var(--theme-body-text);
     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;
     font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
code.code-block-table {
    display: table;
    line-height: 21px;
    padding: 8px;
}
}


Line 348: Line 498:
}
}


.code-block {
    display: inline-block;
    line-height: 21px;
}
/* Table of Contents */
.toc {
.toc {
     padding: 8px 12px;
     padding: 8px 12px;
     border-radius: 4px;
     border-radius: 4px;
     background-color: var(--theme-page-background-color--secondary);
     background-color: var(--theme-page-background--secondary);
     border: 1px solid var(--theme-border-color);
     border: 1px solid var(--theme-border-color);
     margin-top: 16px;
     margin-top: 16px;
Line 367: Line 511:


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


Line 374: Line 518:
}
}


/* Hatnote */
.hatnote {
.hatnote {
     border-left: 4px solid var(--theme-border-color);
     border-left: 4px solid var(--theme-border-color);
Line 383: Line 526:
}
}


/* Variables styling */
span.variable { opacity: 0.65; }
span.variable {
span.variable::after { opacity: 0.65; content: ">"; }
    opacity: 0.65;
span.variable::before { opacity: 0.65; content: "<"; }
}
 
span.variable::after {
    opacity: 0.65;
    content: ">";
}
 
span.variable::before {
    opacity: 0.65;
    content: "<";
}


/* Pull quotes */
.pull-quote {
.pull-quote {
     font-style: italic;
     font-style: italic;
Line 424: Line 555:
}
}


/* Gallery */
.gallerytext {
.gallerytext {
     text-align: center;
     text-align: center;
Line 430: Line 560:
}
}


/* Changelist */
.changelist-header {
.changelist-header {
     display: flex;
     display: flex;
Line 452: Line 581:
}
}


/* Chat wrapper */
.chat-wrapper {
.chat-wrapper {
     display: flex;
     display: flex;
Line 468: Line 596:
     white-space: nowrap;
     white-space: nowrap;
     min-width: 70px;
     min-width: 70px;
     color: rgb(105, 172, 82);
     color: var(--theme-chat-player);
}
}


Line 474: Line 602:
     white-space: nowrap;
     white-space: nowrap;
     min-width: 70px;
     min-width: 70px;
     color: rgb(237, 123, 103);
     color: var(--theme-chat-npc);
}
}


Line 484: Line 612:
         grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
         grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     }
     }
   
     .game-intro-card {
     .game-intro-card {
         padding: 1rem;
         padding: 1rem;
     }
     }
   
     .mana-text {
     .mana-text {
         font-size: 1.25rem;
         font-size: 1.25rem;
     }
     }
   
     .social {
     .social {
         gap: 0.5rem;
         gap: 0.5rem;
     }
     }
   
     .iconname {
     .iconname {
         padding: 0.35rem 0.75rem;
         padding: 0.35rem 0.75rem;
         font-size: 0.9rem;
         font-size: 0.9rem;
     }
     }
   
     #mp-box-banner .mp-body {
     #mp-box-banner .mp-body {
         padding: 1rem;
         padding: 1rem;
Line 510: Line 633:
   CUSTOM SCROLLBAR
   CUSTOM SCROLLBAR
   ============================================ */
   ============================================ */
::-webkit-scrollbar {
::-webkit-scrollbar { width: 10px; height: 10px; }
    width: 10px;
::-webkit-scrollbar-track { background: var(--theme-scrollbar-track); border-radius: 5px; }
    height: 10px;
::-webkit-scrollbar-thumb { background: var(--theme-scrollbar-thumb); border-radius: 5px; }
}
::-webkit-scrollbar-thumb:hover { background: var(--theme-scrollbar-thumb-hover); }
 
::-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
   UTILITY CLASSES
   ============================================ */
   ============================================ */
.text-center {
.text-center { text-align: center; }
    text-align: center;
.mt-2 { margin-top: 0.5rem; }
}
.mb-2 { margin-bottom: 0.5rem; }
 
.p-2 { padding: 0.5rem; }
.mt-2 {
    margin-top: 0.5rem;
}
 
.mb-2 {
    margin-bottom: 0.5rem;
}
 
.p-2 {
    padding: 0.5rem;
}

Revision as of 07:54, 8 May 2026

/*************************************🎮**************************************
       ╔═══════════════════════════════════════════════════════════════════╗   
                                                         COMMON.CSS (vA0.1)                                                         
                                                                 ✦ M*n* B**** ✦                                                              
       ╚═══════════════════════════════════════════════════════════════════╝   
 *******************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

/* ============================================
   ALL @IMPORTS MUST BE AT THE VERY TOP
   ============================================ */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");   
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");

/* ============================================
   THEME DAYBREAK (Mana) – Default
   ============================================ */
:root {
    /* Primary gradient */
    --theme-primary-start: #C8F1E4;
    --theme-primary-mid:   #B8DCE7;
    --theme-primary-end:   #B9A9D5;
    --theme-primary-gradient: linear-gradient(135deg, var(--theme-primary-start), var(--theme-primary-mid), var(--theme-primary-end));

    /* Body / Text */
    --theme-body-text:            #1A1A1A;
    --theme-body-text-rgb:        26,26,26;
    --theme-body-text-muted:      #5A5A5A;
    --theme-body-text-emphasized: #0F0F0F;
    --theme-heading-color:        #1A1A1A;

    /* Links */
    --theme-link-color:         #005B9F;
    --theme-link-color-visited: #673AB7;
    --theme-link-color-hover:   #003D6B;
    --theme-link-color-new:     #D32F2F;

    /* Backgrounds */
    --theme-page-background:        #EAF2F5;
    --theme-page-background--secondary: rgba(255,255,255,0.6);
    --theme-body-background:        #F5F9FC;
    --theme-widget-background:      rgba(255,255,255,0.75);
    --theme-widget-background-solid:#FFFFFF;
    --theme-box-background:         rgba(255,255,255,0.6);
    --theme-highlight-background:   rgba(0,0,0,0.05);

    /* Glass / Overlay */
    --theme-glass-background:        rgba(255,255,255,0.4);
    --theme-glass-background-solid:  #FFFFFF;

    /* Accent & derived */
    --theme-accent-color:       #00A896;
    --theme-accent-color-light: #00F5D4;
    --theme-accent-color-dark:  #007A6C;
    --accent: var(--theme-accent-color);
    --accent-light: var(--theme-accent-color-light);
    --accent-rgb: 0,168,150;   /* same as accent-color */

    /* Borders */
    --theme-border-color:            rgba(0,0,0,0.12);
    --theme-border-color-rgb:        0,0,0;
    --theme-border-color-accent:     rgba(0,0,0,0.25);
    --theme-border-color-light:      rgba(0,0,0,0.06);
    --theme-hr-color-top:            rgba(0,0,0,0.12);
    --theme-hr-color-bottom:         rgba(255,255,255,0.8);
    --theme-box-border-color:        var(--theme-border-color-accent);
    --theme-box-border-color-inner:  var(--theme-border-color-accent);
    --theme-box-border-color-light:  var(--theme-border-color-light);
    --theme-box-border-radius:       6px;
    --theme-box-border-radius-inner: 4px;

    /* Widget shadows */
    --theme-shadow-small:   0 1px 3px  rgba(0,0,0,0.12);
    --theme-shadow-medium:  0 2px 6px  rgba(0,0,0,0.15);

    /* Scrollbar */
    --theme-scrollbar-track:       rgba(0,0,0,0.05);
    --theme-scrollbar-thumb:       rgba(0,0,0,0.2);
    --theme-scrollbar-thumb-hover: rgba(0,0,0,0.3);

    /* Table of Contents */
    --theme-toc-background:        rgba(255,255,255,0.5);
    --theme-toc-border:            var(--theme-border-color-accent);
    --theme-toc-number-color:      var(--theme-body-text-muted);
    --theme-toc-link-color:        var(--theme-body-text);

    /* Message boxes */
    --theme-notice-blue-background:    #E3F2FD;
    --theme-notice-blue-border:        #90CAF9;
    --theme-notice-red-background:     #FFEBEE;
    --theme-notice-red-border:         #EF9A9A;
    --theme-notice-red-text:           #C62828;
    --theme-notice-yellow-background:  #FFF8E1;
    --theme-notice-yellow-border:      #FFE082;
    --theme-notice-orange-background:  #FFF3E0;
    --theme-notice-orange-border:      #FFCC80;
    --theme-notice-green-background:   #E8F5E9;
    --theme-notice-green-border:       #A5D6A7;
    --theme-notice-purple-background:  #F3E5F5;
    --theme-notice-purple-border:      #CE93D8;

    /* Diff */
    --theme-diff-added-bg:      #E6FFE6;
    --theme-diff-added-text:    #001700;
    --theme-diff-removed-bg:    #FFE6E6;
    --theme-diff-removed-text:  #1F0000;

    /* Chat */
    --theme-chat-player: #2E7D32;
    --theme-chat-npc:    #C62828;

    --gray-050: rgba(0,0,0,0.05);
}

/* ============================================
   THEME BREAK (Deep Cosmos) – Dark
   ============================================ */
html.theme-break {
    --theme-primary-start: #0B3D3D;
    --theme-primary-mid:   #1A1B4B;
    --theme-primary-end:   #311B92;
    --theme-primary-gradient: linear-gradient(135deg, var(--theme-primary-start), var(--theme-primary-mid), var(--theme-primary-end));

    --theme-body-text:            #F2F2F2;
    --theme-body-text-rgb:        242,242,242;
    --theme-body-text-muted:      #A0A0A0;
    --theme-body-text-emphasized: #FFFFFF;
    --theme-heading-color:        #FFFFFF;

    --theme-link-color:         #00F5D4;
    --theme-link-color-visited: #B388FF;
    --theme-link-color-hover:   #76FFEB;
    --theme-link-color-new:     #FF5252;

    --theme-page-background:        #0F0F19;
    --theme-page-background--secondary: rgba(255,255,255,0.08);
    --theme-body-background:        #121420;
    --theme-widget-background:      rgba(20,20,35,0.75);
    --theme-widget-background-solid:#1A1B2F;
    --theme-box-background:         rgba(255,255,255,0.05);
    --theme-highlight-background:   rgba(255,255,255,0.08);

    --theme-glass-background:        rgba(15,15,25,0.6);
    --theme-glass-background-solid:  #151622;

    --theme-accent-color:       #00F5D4;
    --theme-accent-color-light: #76FFEB;
    --theme-accent-color-dark:  #009C87;
    --accent: var(--theme-accent-color);
    --accent-light: var(--theme-accent-color-light);
    --accent-rgb: 0,245,212;

    --theme-border-color:            rgba(255,255,255,0.12);
    --theme-border-color-rgb:        255,255,255;
    --theme-border-color-accent:     rgba(255,255,255,0.25);
    --theme-border-color-light:      rgba(255,255,255,0.07);
    --theme-hr-color-top:            rgba(255,255,255,0.08);
    --theme-hr-color-bottom:         rgba(0,0,0,0.3);
    --theme-box-border-color:        var(--theme-border-color-accent);
    --theme-box-border-color-inner:  var(--theme-border-color-accent);
    --theme-box-border-color-light:  var(--theme-border-color-light);

    --theme-shadow-small:   0 1px 3px  rgba(0,0,0,0.4);
    --theme-shadow-medium:  0 2px 6px  rgba(0,0,0,0.6);

    --theme-scrollbar-track:       rgba(255,255,255,0.05);
    --theme-scrollbar-thumb:       rgba(255,255,255,0.15);
    --theme-scrollbar-thumb-hover: rgba(255,255,255,0.25);

    --theme-toc-background:        rgba(255,255,255,0.05);
    --theme-toc-border:            var(--theme-border-color-accent);
    --theme-toc-number-color:      var(--theme-body-text-muted);
    --theme-toc-link-color:        var(--theme-body-text);

    --theme-notice-blue-background:    #1A2B3B;
    --theme-notice-blue-border:        #2F4F6F;
    --theme-notice-red-background:     #3B1A1A;
    --theme-notice-red-border:         #6F2F2F;
    --theme-notice-red-text:           #FF8A8A;
    --theme-notice-yellow-background:  #3B361A;
    --theme-notice-yellow-border:      #6F652F;
    --theme-notice-orange-background:  #3B2D1A;
    --theme-notice-orange-border:      #6F552F;
    --theme-notice-green-background:   #1A3B2A;
    --theme-notice-green-border:       #2F6F4F;
    --theme-notice-purple-background:  #2A1A3B;
    --theme-notice-purple-border:      #4F2F6F;

    --theme-diff-added-bg:      #1A2E1A;
    --theme-diff-added-text:    #B8FFB8;
    --theme-diff-removed-bg:    #2E1A1A;
    --theme-diff-removed-text:  #FFB8B8;

    --theme-chat-player: #66BB6A;
    --theme-chat-npc:    #EF5350;

    --gray-050: rgba(255,255,255,0.05);
}

/* ============================================
   BASE LAYOUT FIXES
   ============================================ */
.mw-body {
    margin-top: -1px;
    border: 1px solid var(--theme-body-text-emphasized);
    border-radius: 1px;
    background-color: transparent;
}

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

@media (min-width: 1024px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--desktop);
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--tablet);
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--mobile);
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.mp-box {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.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--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: var(--theme-shadow-medium);
}

.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), var(--accent-light));
    -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-body-text);
    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: var(--theme-primary-gradient);
    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: var(--theme-highlight-background);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.iconname:hover {
    background: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-2px);
}

.iconname a {
    color: var(--theme-body-text-emphasized) !important;
    text-decoration: none;
    font-weight: 500;
}

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

ul {
    list-style: disc;
}

h2 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
    font-weight: 500;
}

.vector-body h3,
.vector-body h4,
.vector-body h5,
.vector-body h6 {
    margin-bottom: 4px;
}

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-body-text);
}

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

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

code, pre {
    background-color: var(--theme-page-background--secondary);
    color: var(--theme-body-text);
    border: 1px solid var(--theme-border-color);
    border-radius: 2px;
    padding: 1px 4px;
    font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}

.code-block-table * {
    font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}

.toc {
    padding: 8px 12px;
    border-radius: 4px;
    background-color: var(--theme-page-background--secondary);
    border: 1px solid var(--theme-border-color);
    margin-top: 16px;
}

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

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

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

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

span.variable { opacity: 0.65; }
span.variable::after  { opacity: 0.65; content: ">"; }
span.variable::before { opacity: 0.65; content: "<"; }

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

.gallerytext {
    text-align: center;
    font-size: 100%;
}

.changelist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 88%;
    margin: 0.3em 0;
}

.changelist-content {
    overflow: auto;
    max-height: 384px;
    padding: 1em;
    box-sizing: border-box;
    border-radius: 6px;
}

.changelist-border {
    border: 1px solid var(--theme-border-color);
    border-left: 6px solid var(--accent);
}

.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: var(--theme-chat-player);
}

.chat-npc-speaker {
    white-space: nowrap;
    min-width: 70px;
    color: var(--theme-chat-npc);
}

/* ============================================
   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-scrollbar-track); border-radius: 5px; }
::-webkit-scrollbar-thumb { background: var(--theme-scrollbar-thumb); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--theme-scrollbar-thumb-hover); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-2  { padding: 0.5rem; }