MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================
/* ============================================
   MANA BREAK WIKI - MAIN STYLESHEET
   ALL @IMPORTS MUST BE AT THE VERY TOP
  ============================================
  Table of Contents:
  1. Variables & Theme Definitions
  2. Base Styles & Animations
  3. Header & Navigation
  4. Sidebar (mw-panel)
  5. Footer
  6. Content & Typography
  7. Tables & Infoboxes
  8. Components (Cards, Quotes, Social, etc.)
  9. Specialized Components (Navbox, Race Tooltips, Specialized Infoboxes)
  10. Responsive Design
   ============================================ */
   ============================================ */
@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. VARIABLES & THEME DEFINITIONS ===== */
/* ============================================
 
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
  ============================================ */
:root {
:root {
/* Universal Base Styles */
    /* Theme Colors - Fallbacks if Colors.css fails */
--font-size: 16px;
    --theme-page-background-color: #0a0a1a;
--font-size-small: 14px;
    --theme-page-background-color--secondary: #16213e;
--font-size-large: 18px;
    --theme-page-text-color: #eaeef2;
--font-size-h1: 32px;
    --theme-link-color: #7c9eff;
--font-size-h2: 26px;
    --theme-border-color: #2c3e50;
--font-size-h3: 22px;
    --theme-border-color-rgb: 44, 62, 80;
--font-size-h4: 18px;
    --accent: #6c5ce7;
 
    --accent-light: #8c7cf5;
--line-height: 1.6;
    --gray-050: rgba(255, 255, 255, 0.05);
--line-height-headings: 1.3;
   
--line-height-tight: 1.25;
    /* 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';
--font-weight-normal: 400;
    --main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
--font-weight-medium: 500;
    --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
--font-weight-semibold: 600;
--font-weight-bold: 700;
 
/* Spacing */
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 32px;
--spacing-2xl: 48px;
 
/* Shadows */
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
 
/* Borders */
--border-radius-sm: 4px;
--border-radius-md: 8px;
--border-radius-lg: 12px;
--border-radius-full: 9999px;
--border-width: 1px;
 
/* Transitions */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
 
/* Focus States */
--focus-ring-color: rgba(79, 209, 199, 0.6);
--focus-ring-width: 3px;
--focus-ring-offset: 2px;
 
/* Gray Scale */
--gray-950: #0f1419;
--gray-900: #1a202c;
--gray-800: #2d3748;
--gray-700: #4a5568;
--gray-600: #718096;
--gray-500: #a0aec0;
--gray-400: #cbd5e0;
--gray-300: #e2e8f0;
--gray-200: #edf2f7;
--gray-100: #f7fafc;
 
/* Teal Scale */
--teal-900: #1d4044;
--teal-800: #234e52;
--teal-700: #285e61;
--teal-600: #2c7a7b;
--teal-500: #319795;
--teal-400: #38b2ac;
--teal-300: #4fd1c7;
--teal-200: #81e6d9;
--teal-100: #b2f5ea;
--teal-50: #e6fffa;
 
/* Navigation Variables */
--mb-navigation-left-spacing: 0px;
--mb-navigation-right-spacing: 0px;
--mb-navigation-tab-padding-top: 1.25em;
--mb-navigation-tab-padding-x: 0.75em;
--mb-navigation-tab-padding-bottom: 4px;
--mb-navigation-border-radius: 4px 4px 0 0;
--mb-navigation-font-size: 0.8125em;
}
}


/* Light Theme */
/* ============================================
:root body:not(.skin-vector-dark) {
  BASE LAYOUT FIXES
--theme-page-text-color: #1a2a2a;
  ============================================ */
--theme-page-background-color: #f5fdfb;
.mw-body {
--theme-page-background-color--secondary: #e8f5f3;
    margin-top: -1px;
--theme-link-color: #007d7a;
    border: 1px solid azure;
--theme-link-color--hover: #005652;
    border-radius: 1px;
--theme-accent-color: #38b2ac;
    background-color: transparent;
--theme-accent-color--hover: #2c9c96;
--theme-accent-label-color: #ffffff;
--theme-border-color: #a1e9dc;
--theme-border-color--subtle: #d1f5ee;
--card-bg-main: #ffffff;
--card-bg-elevated: #ffffff;
--input-bg: #ffffff;
--input-border: #cbd5e0;
--table-header-bg: #e6fffa;
--table-row-even: #f7fafc;
--table-row-odd: #ffffff;
}
}


/* Dark Theme */
body.skin-vector,
:root .skin-vector-dark {
body.skin-vector-dark {
--theme-page-text-color: #e6f7f5;
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
--theme-page-background-color: rgba(22, 28, 36, 0.98);
--theme-page-background-color--secondary: #2a363d;
--theme-link-color: #5fd9cf;
--theme-link-color--hover: #81e6d9;
--theme-accent-color: #5fd9cf;
--theme-accent-color--hover: #81e6d9;
--theme-accent-label-color: #1a202c;
--theme-border-color: #4d6872;
--theme-border-color--subtle: #3a5059;
--card-bg-main: #2a363d;
--card-bg-elevated: #34444d;
--input-bg: #2d3748;
--input-border: #4a5568;
--table-header-bg: #2d4a4d;
--table-row-even: #2a363d;
--table-row-odd: #34444d;
}
}


/* ===== 2. BASE STYLES & ANIMATIONS ===== */
/* Hide default elements */
 
.mobileHide, .mobile-only, .no-desktop {
@keyframes pulse {
    display: none !important;
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
}


@keyframes shimmer {
/* Fix for hidden H1 on main page */
0% { background-position: 100% 0; }
body.page-Main_Page.action-view h1.firstHeading,
100% { background-position: -100% 0; }
body.page-Main_Page.action-submit h1.firstHeading {
    display: none;
}
}


@keyframes spin {
/* ============================================
from { transform: rotate(0deg); }
  MAIN PAGE GRID LAYOUT
to { transform: rotate(360deg); }
  ============================================ */
#mp-container {
    display: grid;
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}
}


@keyframes bounce {
/* Desktop Layout */
0%, 100% { transform: translateY(0); }
@media (min-width: 1024px) {
50% { transform: translateY(-10px); }
    #mp-container {
        grid-template-areas: var(--main-page-layout--desktop);
        grid-template-columns: repeat(3, 1fr);
    }
}
}


*:focus-visible {
/* Tablet Layout */
outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
@media (min-width: 768px) and (max-width: 1023px) {
outline-offset: var(--focus-ring-offset) !important;
    #mp-container {
border-radius: var(--border-radius-sm) !important;
        grid-template-areas: var(--main-page-layout--tablet);
        grid-template-columns: repeat(2, 1fr);
    }
}
}


@media (prefers-reduced-motion: reduce) {
/* Mobile Layout */
:root {
@media (max-width: 767px) {
--transition-fast: 0ms;
    #mp-container {
--transition-base: 0ms;
        grid-template-areas: var(--main-page-layout--mobile);
--transition-slow: 0ms;
        grid-template-columns: 1fr;
}
        gap: 1rem;
* {
    }
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
}


body {
/* MP Box styling */
font-family: Helvetica, Arial, sans-serif !important;
.mp-box {
background-color: var(--theme-page-background-color) !important;
    animation: fadeInUp 0.5s ease forwards;
overflow-y: scroll;
    opacity: 0;
}
}


.mw-body,
/* Staggered animations */
.parsoid-body {
.mp-box:nth-child(1) { animation-delay: 0.05s; }
background-color: var(--theme-page-background-color) !important;
.mp-box:nth-child(2) { animation-delay: 0.1s; }
color: var(--theme-page-text-color);
.mp-box:nth-child(3) { animation-delay: 0.15s; }
padding: 1em;
.mp-box:nth-child(4) { animation-delay: 0.2s; }
margin-left: 10em;
.mp-box:nth-child(5) { animation-delay: 0.25s; }
border-left: 3px solid var(--teal-400);
.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; }


.mw-body-content {
@keyframes fadeInUp {
line-height: 1.6;
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}


/* ===== 3. HEADER & NAVIGATION ===== */
/* ============================================
 
  GAME INTRO CARDS
/* Header Container */
  ============================================ */
#mw-head {
.game-intro-card {
position: absolute;
    background: var(--theme-page-background-color--secondary);
top: 0;
    border-radius: 12px;
right: 0;
    padding: 1.25rem;
width: 100%;
    border: 1px solid var(--theme-border-color);
z-index: 100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
}


#mw-head-base {
.game-intro-card:hover {
position: relative;
    transform: translateY(-2px);
margin-top: -5em;  
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
margin-left: 10em;
height: 5em;
}
}


/* Left Navigation (Page Tabs) */
.game-header {
#left-navigation {
    margin-bottom: 1rem;
position: absolute;
    position: relative;
left: 10em;
top: 2.5em;
}
}


/* Right Navigation (View History, Search, etc.) */
.mana-text {
#right-navigation {
    font-family: 'Fredoka', sans-serif;
position: absolute;
    font-size: 1.5rem;
right: 1em;
    font-weight: 600;
top: 2.5em;
    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;
}
}


/* Search Box */
.mana-text img {
#p-search {
    vertical-align: middle;
float: left;
    margin-left: 8px;
margin: 0 0.5em;
position: relative;
}
 
.vector-search-box-input {
background-color: var(--input-bg);
border: 1px solid var(--input-border);
border-radius: var(--border-radius-md);
padding: 6px 28px 6px 8px;
font-size: 0.85em;
width: 200px;
transition: all var(--transition-fast) ease;
}
 
.vector-search-box-input:focus {
border-color: var(--theme-accent-color);
outline: none;
width: 250px;
}
 
.vector-search-box-button {
background: transparent;
border: none;
cursor: pointer;
margin-left: -28px;
position: relative;
z-index: 1;
color: var(--theme-page-text-color);
opacity: 0.7;
}
 
.vector-search-box-button:hover {
opacity: 1;
color: var(--theme-accent-color);
}
 
/* Personal Tools (User Menu) */
#p-personal {
position: absolute;
top: 0.5em;
right: 1em;
z-index: 1000;
}
 
#p-personal .vector-menu-content-list {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
list-style: none;
margin: 0;
padding: 0;
}
 
#p-personal .mw-list-item a {
padding: 0.25em 0.5em;
color: var(--theme-link-color);
text-decoration: none;
border-radius: var(--border-radius-sm);
transition: all var(--transition-fast) ease;
}
 
#p-personal .mw-list-item a:hover {
background: rgba(79, 209, 199, 0.1);
color: var(--theme-link-color--hover);
}
 
/* Navigation Tabs */
.vector-menu-tabs ul {
display: flex;
flex-direction: row;
list-style: none;
margin: 0;
padding: 0;
}
 
.vector-menu-tabs li {
float: left;
margin: 0 2px;
padding: 0;
}
 
.vector-menu-tabs .mw-list-item a {
padding: 12px 16px;
display: inline-block;
font-weight: var(--font-weight-medium);
transition: all var(--transition-fast) ease;
color: var(--theme-page-text-color);
text-decoration: none;
}
 
.vector-menu-tabs .mw-list-item a:hover {
background: rgba(79, 209, 199, 0.1);
color: var(--theme-link-color);
text-decoration: none;
}
 
.vector-menu-tabs .selected a {
background: var(--theme-page-background-color);
color: var(--theme-accent-color);
font-weight: var(--font-weight-semibold);
border-bottom: 3px solid var(--theme-accent-color);
}
 
/* ===== 4. SIDEBAR (mw-panel) ===== */
 
/* ===== 4. SIDEBAR (mw-panel) - FIXED ===== */
 
#mw-panel {
position: absolute;
top: 0;
left: 0;
width: 10em;
padding: 0 0 1em 0;
background: var(--theme-page-background-color--secondary);
height: 100%;
overflow-y: auto;
z-index: 10;
border-right: 1px solid var(--theme-border-color);
}
 
/* Scrollbar Styling */
#mw-panel::-webkit-scrollbar {
width: 4px;
}
 
#mw-panel::-webkit-scrollbar-track {
background: var(--theme-page-background-color--secondary);
}
 
#mw-panel::-webkit-scrollbar-thumb {
background: var(--teal-300);
border-radius: var(--border-radius-full);
}
 
/* Logo */
#p-logo {
position: absolute;
top: 0;
left: 0;
width: 10em;
height: 160px;
margin: 0;
padding: 0;
}
 
#p-logo a {
display: block;
width: 10em;
height: 160px;
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}
 
/* Sidebar Sections - Improved */
.mw-portlet {
margin: 0 0 1.5em 0;
}
 
/* Hide the default toolbox section that causes duplication */
#p-tb {
display: none !important;
}
 
/* Style all sidebar headings consistently */
.vector-menu-heading {
padding: 8px 12px;
margin: 5px 0 8px 0;
font-size: 0.85em;
font-weight: var(--font-weight-semibold);
text-transform: uppercase;
letter-spacing: 0.5px;
background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
color: white;
border-radius: var(--border-radius-md);
position: relative;
}
 
/* Add icon indicator to headings */
.vector-menu-heading::before {
content: "▸";
position: absolute;
left: auto;
right: 12px;
opacity: 0.7;
font-size: 0.8em;
}
 
/* Sidebar Links Container */
.vector-menu-content-list {
list-style: none;
margin: 4px 0;
padding: 4px 0;
}
 
/* Sidebar Links */
.vector-menu-content-list .mw-list-item {
margin: 0;
padding: 0;
}
 
.vector-menu-content-list .mw-list-item a {
display: block;
padding: 6px 12px;
color: var(--theme-link-color);
font-size: 0.85em;
text-decoration: none;
transition: all var(--transition-fast) ease;
border-radius: var(--border-radius-sm);
margin: 1px 4px;
position: relative;
}
 
.vector-menu-content-list .mw-list-item a:hover {
background: rgba(79, 209, 199, 0.1);
padding-left: 20px;
color: var(--theme-link-color--hover);
}
 
.vector-menu-content-list .mw-list-item.selected a {
background: rgba(79, 209, 199, 0.15);
font-weight: var(--font-weight-semibold);
border-left: 3px solid var(--theme-accent-color);
padding-left: 16px;
}
 
/* Style specific sidebar sections */
#p-navigation .vector-menu-heading,
#p-interaction .vector-menu-heading,
#p-tb .vector-menu-heading {
background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
}
 
/* Custom Tools Section - If you have custom tools */
#p-custom-tools {
margin-top: 1em;
}
 
/* Add spacing between sections */
#p-navigation,
#p-interaction,
#p-custom-tools,
#p-tb {
margin-bottom: 1.5em;
}
 
/* Style for special links like "Add new page" */
.vector-menu-content-list .mw-list-item a[href*="Add new page"],
.vector-menu-content-list .mw-list-item a[href*="edit"],
.vector-menu-content-list .mw-list-item a.new {
color: var(--teal-400) !important;
font-weight: var(--font-weight-medium);
}
 
.vector-menu-content-list .mw-list-item a[href*="Add new page"]:hover,
.vector-menu-content-list .mw-list-item a[href*="edit"]:hover {
color: var(--teal-300) !important;
}
 
/* Fix for any duplicate sections */
#p-interaction + #p-tb {
margin-top: 0;
}
 
/* Ensure proper spacing for nested menus */
.vector-menu-content-list ul {
list-style: none;
margin-left: 12px;
padding-left: 0;
}
 
.vector-menu-content-list li li a {
padding-left: 20px;
font-size: 0.8em;
}
 
.vector-menu-content-list li li a:hover {
padding-left: 28px;
}
 
/* Active/Current page indicator */
.vector-menu-content-list .mw-list-item.selected a {
background: rgba(79, 209, 199, 0.2);
font-weight: var(--font-weight-bold);
}
 
/* Optional: Add icons to sidebar links */
.vector-menu-content-list .mw-list-item a[href*="Recent changes"]::before {
content: "📋";
margin-right: 6px;
font-size: 0.9em;
}
 
.vector-menu-content-list .mw-list-item a[href*="What links here"]::before {
content: "🔗";
margin-right: 6px;
font-size: 0.9em;
}
 
.vector-menu-content-list .mw-list-item a[href*="Upload file"]::before {
content: "📤";
margin-right: 6px;
font-size: 0.9em;
}
 
.vector-menu-content-list .mw-list-item a[href*="Random page"]::before {
content: "🎲";
margin-right: 6px;
font-size: 0.9em;
}
 
/* Dark theme adjustments */
.skin-vector-dark #mw-panel {
background: var(--theme-page-background-color--secondary);
}
 
.skin-vector-dark .vector-menu-heading {
background: linear-gradient(90deg, var(--teal-800) 0%, var(--teal-900) 100%);
}
 
.skin-vector-dark .vector-menu-content-list .mw-list-item a:hover {
background: rgba(79, 209, 199, 0.15);
}
 
/* Responsive adjustments */
@media screen and (max-width: 1024px) {
#mw-panel {
display: none;
}
}
/* ===== 5. FOOTER ===== */
 
.mw-footer {
margin-left: 10em;
margin-top: 2em;
padding: 1.5em 2em;
background: var(--theme-page-background-color--secondary) !important;
border-top: 3px solid var(--teal-300);
position: relative;
clear: both;
}
 
/* Animated Top Border */
.mw-footer:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg,
var(--teal-400),
var(--teal-300),
var(--teal-200),
var(--teal-300),
var(--teal-400));
background-size: 200% 100%;
animation: shimmer 3s infinite linear;
}
 
/* Footer Info Section */
#footer-info {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 1px solid var(--theme-border-color--subtle);
}
 
#footer-info li {
color: var(--theme-page-text-color) !important;
font-size: 0.85em;
line-height: 1.4;
padding: 0 8px;
border-right: 1px solid var(--theme-border-color--subtle);
}
 
#footer-info li:last-child {
border-right: none;
}
 
#footer-info li a {
color: var(--theme-link-color);
text-decoration: none;
}
 
#footer-info li a:hover {
color: var(--theme-link-color--hover);
text-decoration: underline;
}
 
/* Footer Places */
#footer-places {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
margin: 16px 0;
padding: 12px 0;
}
 
#footer-places li a {
color: var(--theme-page-text-color);
text-decoration: none;
opacity: 0.7;
font-size: 0.8em;
}
 
#footer-places li a:hover {
opacity: 1;
color: var(--theme-link-color);
text-decoration: underline;
}
 
/* Copyright */
#footer-copyright {
text-align: center;
font-size: 0.75em;
color: var(--gray-600);
padding: 16px 0 8px;
border-top: 1px solid var(--theme-border-color--subtle);
margin-top: 8px;
}
 
/* ===== 6. CONTENT & TYPOGRAPHY ===== */
 
.mw-body a:not(.new) {
text-decoration: none;
color: var(--theme-link-color);
transition: color var(--transition-fast) ease;
}
 
.mw-body a:not(.new):hover {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 2px;
color: var(--theme-link-color--hover);
}
 
.mw-body a.new {
color: var(--teal-500) !important;
font-weight: var(--font-weight-semibold) !important;
border-bottom: 1px dashed rgba(0, 163, 163, 0.4) !important;
background-color: rgba(0, 163, 163, 0.08) !important;
padding: 1px 3px !important;
border-radius: var(--border-radius-sm) !important;
}
 
.mw-body a.new:hover {
background-color: rgba(0, 163, 163, 0.15) !important;
border-bottom-style: solid !important;
text-decoration: none !important;
}
 
h1, h2, h3, h4, h5, h6 {
color: var(--theme-page-text-color);
}
 
.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;
}
}


/* ===== 7. TABLES & INFOBOXES ===== */
.mana-line {
 
    height: 3px;
/* Base wikitable - consolidated and improved */
    background: linear-gradient(90deg, var(--accent), transparent);
.wikitable {
    margin-top: 0.5rem;
     width: 100%;
     width: 100%;
    margin: 1.5em 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--theme-border-color);
    background-color: var(--card-bg-main);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
/* Header styling */
.wikitable > tr > th,
.wikitable > * > tr > th {
    background: linear-gradient(135deg,
        var(--teal-600) 0%,
        var(--teal-700) 100%) !important;
    color: var(--theme-accent-label-color) !important;
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1rem !important;
    border-bottom: 2px solid var(--teal-800) !important;
    text-align: center;
    vertical-align: middle;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}
/* Add subtle hover effect to headers */
.wikitable > tr > th:hover,
.wikitable > * > tr > th:hover {
    background: linear-gradient(135deg,
        var(--teal-500) 0%,
        var(--teal-600) 100%) !important;
}
}


/* Cell styling - improved readability */
.game-content {
.wikitable > tr > td,
.wikitable > * > tr > td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--theme-border-color--subtle);
    vertical-align: middle;
     color: var(--theme-page-text-color);
     color: var(--theme-page-text-color);
     transition: background-color var(--transition-fast);
     line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
}


/* Striped rows for better readability */
/* ============================================
.wikitable > tr:nth-child(even):not(:first-child),
  HEADING STYLES
.wikitable > * > tr:nth-child(even):not(:first-child) {
  ============================================ */
     background-color: var(--table-row-even);
.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;
}
}


.wikitable > tr:nth-child(odd):not(:first-child),
.heading-char a {
.wikitable > * > tr:nth-child(odd):not(:first-child) {
     color: var(--accent-light);
     background-color: var(--table-row-odd);
    text-decoration: none;
}
}


/* Hover effect for rows */
.heading-char a:hover {
.wikitable > tr:hover:not(:first-child),
     text-decoration: underline;
.wikitable > * > tr:hover:not(:first-child) {
     background-color: rgba(56, 178, 172, 0.08) !important;
}
}


/* First column styling (often labels) */
/* ============================================
.wikitable > tr > td:first-child,
  AUTO GRID LISTS
.wikitable > * > tr > td:first-child,
  ============================================ */
.wikitable > tr > th:first-child,
.auto-grid {
.wikitable > * > tr > th:first-child {
    display: grid;
     font-weight: var(--font-weight-medium);
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     border-left: 3px solid transparent;
    gap: 0.5rem;
    list-style: none;
     padding: 0;
     margin: 0.5rem 0;
}
}


/* Highlight first column on hover */
.auto-grid li {
.wikitable > tr:hover:not(:first-child) > td:first-child,
     padding: 0.25rem 0;
.wikitable > * > tr:hover:not(:first-child) > td:first-child {
     border-left-color: var(--teal-300);
    background-color: rgba(79, 209, 199, 0.1);
}
}


/* Caption styling */
.auto-grid li a {
.wikitable > caption {
     color: var(--theme-link-color);
    caption-side: top;
     text-decoration: none;
    padding: 0.875rem 1rem;
     transition: color 0.2s ease;
    background: var(--teal-50);
     display: inline-block;
     color: var(--teal-800);
    font-weight: var(--font-weight-semibold);
     text-align: left;
     border-bottom: 1px solid var(--teal-200);
    font-size: 1.05em;
     border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    margin-bottom: 0;
}
}


/* Collapsible toggle in caption */
.auto-grid li a:hover {
.wikitable > caption .mw-collapsible-toggle {
     color: var(--accent-light);
    float: right;
     text-decoration: underline;
    margin: -0.25rem 0;
    padding: 0.25rem 0.75rem;
    background: var(--teal-100);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--teal-300);
     color: var(--teal-700);
     font-size: 0.85em;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}
}


.wikitable > caption .mw-collapsible-toggle:hover {
/* ============================================
     background: var(--teal-200);
  BANNER SECTION
     transform: translateY(-1px);
  ============================================ */
     box-shadow: var(--shadow-sm);
#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);
}
}


/* Sortable tables */
/* Social links */
.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable),
.social {
.jquery-tablesorter th.headerSort {
    display: flex;
    cursor: pointer;
    justify-content: center;
     position: relative;
     gap: 1rem;
     padding-right: 2rem !important;
     flex-wrap: wrap;
     user-select: none;
     margin-top: 2rem;
}
}


.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable):after,
.iconname {
.jquery-tablesorter th.headerSort:after {
     display: flex;
     content: "↕";
     align-items: center;
     position: absolute;
     gap: 0.5rem;
     right: 0.75rem;
     background: rgba(255, 255, 255, 0.1);
     font-size: 0.85em;
     padding: 0.5rem 1rem;
     opacity: 0.6;
    border-radius: 8px;
     transition: all var(--transition-fast);
     transition: all 0.2s ease;
}
}


.client-js .wikitable.sortable > * > tr:first-child > th.headerSortUp:after,
.iconname:hover {
.jquery-tablesorter th.headerSortUp:after {
     background: rgba(108, 92, 231, 0.3);
     content: "↑";
     transform: translateY(-2px);
     opacity: 1;
}
}


.client-js .wikitable.sortable > * > tr:first-child > th.headerSortDown:after,
.iconname a {
.jquery-tablesorter th.headerSortDown:after {
     color: white !important;
    content: "↓";
    opacity: 1;
}
 
/* Links inside tables */
.wikitable a,
.wikitable a:visited {
     color: var(--theme-link-color);
     text-decoration: none;
     text-decoration: none;
     font-weight: var(--font-weight-medium);
     font-weight: 500;
    border-bottom: 1px dotted transparent;
    transition: all var(--transition-fast);
}
}


.wikitable a:hover {
/* ============================================
    color: var(--theme-link-color--hover);
  WIKI FIXES & IMPROVEMENTS
    text-decoration: none;
  ============================================ */
    border-bottom-color: currentColor;
/* Editor fixes */
}
.wikiEditor-ui-text > .ui-resizable {
 
    width: 100% !important;
/* Images in tables */
.wikitable img {
     max-width: 100%;
     max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--theme-border-color--subtle);
    transition: transform var(--transition-fast);
}
}


.wikitable a:hover img {
/* List styles */
     transform: scale(1.05);
ul {
    border-color: var(--teal-300);
     list-style: disc;
}
}


/* Specific table types */
/* Headings */
 
h2 .mw-headline,
/* Schedule tables */
h3 .mw-headline,
.scheduletable.wikitable {
h4 .mw-headline {
     width: auto;
     font-weight: 500;
    min-width: 300px;
}
}


.scheduletable.wikitable > tr > td:first-child,
.vector-body h3,
.scheduletable.wikitable > * > tr > td:first-child {
.vector-body h4,
     width: 150px;
.vector-body h5,
    font-weight: var(--font-weight-semibold);
.vector-body h6 {
    background-color: rgba(56, 178, 172, 0.05);
     margin-bottom: 4px;
}
}


.scheduletable > tr > th,
/* Link colors */
.scheduletable > * > tr > th,
a, a:visited, a:active,
.scheduletable th {
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    background: linear-gradient(135deg,  
     color: var(--theme-link-color);
        var(--teal-600) 0%,  
        var(--teal-700) 100%);
     color: var(--theme-accent-label-color);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--teal-800);
    text-align: center;
    vertical-align: middle;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
}


.scheduletable > tr > td,
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
.scheduletable > * > tr > td,
.scheduletable td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--theme-border-color--subtle);
    vertical-align: middle;
     color: var(--theme-page-text-color);
     color: var(--theme-page-text-color);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: background-color var(--transition-fast);
}
}


.scheduletable > tr > td:first-child,
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
.scheduletable > * > tr > td:first-child,
     color: var(--theme-link-color);
.scheduletable td:first-child {
    width: 150px !important;
    min-width: 150px;
    max-width: 150px;
    font-weight: var(--font-weight-semibold);
    background-color: rgba(56, 178, 172, 0.08);
     text-align: left;
    padding-left: 1.25rem;
    border-right: 2px solid var(--teal-300);
}
}


/* Roles Table */
.mw-parser-output a.external {
.roles-table {
    padding-right: 0;
background-color: transparent !important;
    font-size: inherit;
width: 100% !important;
table-layout: auto !important;
margin: 1rem 0 !important;
}
}


.roles-table > tr > th,
/* Categories */
.roles-table > * > tr > th {
.catlinks {
background-color: var(--teal-600);
    border-color: var(--theme-border-color);
color: #000 !important;
    border-radius: 6px;
padding: 12px 8px !important;
    background-color: var(--gray-050);
font-weight: bold !important;
text-align: center !important;
border: 1px solid #aaa !important;
}
}


.roles-table > tr > th:first-child,
/* Code blocks */
.roles-table > * > tr > th:first-child {
code, pre {
min-width: 180px !important;
    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;
}
}


.roles-table > tr > th:nth-child(2),
code.code-block-table {
.roles-table > * > tr > th:nth-child(2) {
    display: table;
min-width: 300px !important;
    line-height: 21px;
    padding: 8px;
}
}


.roles-table > tr > th:nth-child(3),
.code-block-table * {
.roles-table > * > tr > th:nth-child(3),
    font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
.roles-table > tr > th:nth-child(4),
.roles-table > * > tr > th:nth-child(4) {
min-width: 150px !important;
}
}


.roles-table > tr > td,
.code-block {
.roles-table > * > tr > td {
    display: inline-block;
padding: 10px 8px !important;
    line-height: 21px;
border: 1px solid #aaa !important;
vertical-align: top !important;
word-wrap: break-word !important;
overflow-wrap: break-word !important;
}
}


.roles-table > tr > td:first-child,
/* Table of Contents */
.roles-table > * > tr > td:first-child {
.toc {
font-weight: bold !important;
    padding: 8px 12px;
white-space: nowrap !important;
    border-radius: 4px;
    background-color: var(--theme-page-background-color--secondary);
    border: 1px solid var(--theme-border-color);
    margin-top: 16px;
}
}


/* Category breakdown tables */
.toctogglelabel {
.category-table,
    color: var(--theme-link-color);
.location-table {
background-color: transparent !important;
width: 100% !important;
margin: 1rem 0 !important;
}
}


.category-table > tr > th,
.tocnumber {
.category-table > * > tr > th,
    color: var(--theme-page-text-color);
.location-table > tr > th,
.location-table > * > tr > th {
background-color: var(--teal-600) !important;
color: #000 !important;
padding: 12px 8px !important;
font-weight: bold !important;
text-align: center !important;
border: 1px solid #aaa !important;
}
 
.category-table > tr > th:nth-child(1),
.category-table > * > tr > th:nth-child(1),
.location-table > tr > th:nth-child(1),
.location-table > * > tr > th:nth-child(1) {
width: 30% !important;
min-width: 150px !important;
}
 
.category-table > tr > th:nth-child(2),
.category-table > * > tr > th:nth-child(2),
.location-table > tr > th:nth-child(2),
.location-table > * > tr > th:nth-child(2) {
width: 15% !important;
min-width: 80px !important;
}
 
.category-table > tr > th:nth-child(3),
.category-table > * > tr > th:nth-child(3),
.location-table > tr > th:nth-child(3),
.location-table > * > tr > th:nth-child(3) {
width: 55% !important;
}
 
.category-table > tr > td,
.category-table > * > tr > td,
.location-table > tr > td,
.location-table > * > tr > td {
padding: 10px 8px !important;
border: 1px solid #aaa !important;
vertical-align: top !important;
}
 
.category-table > tr > td:nth-child(3),
.category-table > * > tr > td:nth-child(3),
.location-table > tr > td:nth-child(3),
.location-table > * > tr > td:nth-child(3) {
word-wrap: break-word !important;
overflow-wrap: break-word !important;
}
 
.category-table > tr:last-child > td,
.category-table > * > tr:last-child > td,
.location-table > tr:last-child > td,
.location-table > * > tr:last-child > td {
font-weight: bold !important;
background-color: #f5f5f5 !important;
}
 
/* Portable Infobox - Base */
.portable-infobox {
float: right;
clear: right;
margin: 0 0 15px 15px;
max-width: 300px;
width: 100%;
border: 1px solid var(--theme-border-color);
border-radius: 8px;
background-color: var(--card-bg-main);
font-size: 14px;
}
 
.portable-infobox p {
margin: 0 !important;
}
 
.portable-infobox .pi-title {
background: var(--teal-600);
color: var(--theme-accent-label-color);
padding: 8px 10px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
text-align: center;
font-weight: bold;
font-size: 1.2em;
}
 
.portable-infobox .pi-item {
display: flex;
justify-content: space-between;
padding: 5px 10px;
border-bottom: 1px dotted var(--theme-border-color--subtle);
}
 
.portable-infobox .pi-data-label {
font-weight: 500;
color: var(--gray-700);
min-width: 40%;
flex-shrink: 0;
}
 
.portable-infobox .pi-data-value {
text-align: right;
flex-grow: 1;
}
 
/* Character Infobox */
.character-infobox {
float: right;
clear: right;
max-width: 300px;
width: 100%;
margin: 0 0 16px 16px;
border: 1px solid var(--theme-border-color);
border-radius: var(--border-radius-md);
background-color: var(--card-bg-main);
font-size: 0.9em;
}
 
.character-header {
background: var(--teal-600);
color: var(--theme-accent-label-color);
padding: 8px 10px;
border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
text-align: center;
font-weight: var(--font-weight-bold);
}
 
.character-title {
font-size: 1.5em;
}
 
.character-image {
padding: 10px;
text-align: center;
}
 
.character-section {
padding: 5px 10px;
}
 
.section-title {
font-size: 1.1em;
font-weight: var(--font-weight-semibold);
margin-top: 10px;
margin-bottom: 5px;
border-bottom: 1px solid var(--theme-border-color--subtle);
}
 
.data-row {
display: flex;
justify-content: space-between;
padding: 3px 0;
border-bottom: 1px dotted var(--gray-300);
}
 
.data-label {
font-weight: var(--font-weight-medium);
color: var(--gray-700);
}
 
/* Weapon Infobox */
.weapon-infobox {
float: right;
clear: right;
max-width: 300px;
width: 100%;
margin: 0 0 16px 16px;
border: 1px solid #1a6a7a;
border-radius: 10px;
background-color: var(--card-bg-main);
font-size: 0.9em;
}
 
.weapon-header {
background: #1a6a7a;
color: white;
padding: 8px 10px;
text-align: center;
font-weight: bold;
font-size: 1.5em;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
 
.weapon-image {
padding: 10px;
text-align: center;
}
 
.weapon-image img {
max-width: 100%;
height: auto;
border-radius: 4px;
border: 1px solid var(--theme-border-color--subtle);
}
 
.weapon-section {
padding: 0;
}
 
.weapon-section .section-title {
padding: 5px 10px;
color: var(--gray-700);
font-weight: bold;
border-bottom: 1px solid #a2a9b1;
margin: 10px 0 5px 0;
}
 
.weapon-section > div {
display: flex;
justify-content: space-between;
padding: 5px 10px;
border-bottom: 1px dotted #a2a9b1;
}
 
.weapon-section > div:last-child {
border-bottom: none;
}
 
.weapon-section > div > span:first-child {
font-weight: 500;
color: var(--gray-700);
width: 40%;
text-align: left;
}
 
.weapon-section > div > span:last-child {
color: var(--gray-700);
text-align: right;
width: 60%;
}
 
/* Horizontal requirements section */
.weapon-section > div[style*="display: flex !important; justify-content: space-around"] {
display: flex !important;
justify-content: space-around !important;
padding: 10px !important;
text-align: center !important;
border-bottom: none !important;
}
 
.weapon-section > div[style*="display: flex !important; justify-content: space-around"] > div {
flex: 1;
padding: 5px;
}
 
.weapon-section > div[style*="display: flex !important; justify-content: space-around"] > div > div:first-child {
font-weight: 500;
color: var(--gray-700);
font-size: 0.9em;
margin-bottom: 3px;
}
 
.weapon-section > div[style*="display: flex !important; justify-content: space-around"] > div > div:last-child {
font-weight: bold;
color: var(--gray-700);
font-size: 1.1em;
}
 
/* Monster Infobox */
.monster-infobox {
float: right;
clear: right;
max-width: 350px;
width: 100%;
margin: 0 0 16px 16px;
border: 1px solid #7a1a1a;
border-radius: 10px;
background-color: var(--card-bg-main);
font-size: 0.9em;
}
 
.monster-header {
background: #7a1a1a;
color: white;
padding: 8px 10px;
text-align: center;
font-weight: bold;
font-size: 1.5em;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
 
.monster-image {
padding: 10px;
text-align: center;
}
 
.monster-image img {
max-width: 100%;
height: auto;
border-radius: 4px;
border: 1px solid var(--theme-border-color--subtle);
}
 
.monster-section {
padding: 0;
}
 
.monster-section .section-title {
padding: 5px 10px;
color: var(--gray-700);
font-weight: bold;
border-bottom: 1px solid #a2a9b1;
margin: 10px 0 5px 0;
}
}


.monster-section > div[style*="display: flex"] {
.vector-body .toc h2 {
display: flex;
    font-family: 'Fredoka', sans-serif;
justify-content: space-between;
padding: 5px 10px;
border-bottom: 1px dotted #a2a9b1;
}
}


.monster-section > div[style*="display: flex"]:last-child {
/* Hatnote */
border-bottom: none;
.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;
}
}


.monster-section > div[style*="display: flex"] > span:first-child {
/* Variables styling */
font-weight: 500;
span.variable {
color: var(--gray-700);
    opacity: 0.65;
width: 40%;
text-align: left;
}
}


.monster-section > div[style*="display: flex"] > span:last-child {
span.variable::after {
color: var(--gray-700);
    opacity: 0.65;
text-align: right;
    content: ">";
width: 60%;
}
}


/* Phase sections */
span.variable::before {
.monster-section > div[style*="Phase"] {
    opacity: 0.65;
background: rgba(0, 0, 0, 0.05);
    content: "<";
padding: 8px 10px;
font-weight: bold;
color: #7a1a1a;
border-left: 3px solid #7a1a1a;
margin: 10px 0 5px 0;
}
}


.monster-section ul {
/* Pull quotes */
margin: 0 !important;
padding-left: 20px !important;
}
 
.monster-section li {
margin-bottom: 3px;
color: var(--gray-700);
}
 
/* ===== 8. COMPONENTS ===== */
 
/* Cards */
.card {
background-color: var(--card-bg-main);
border-radius: var(--border-radius-md);
border: 1px solid var(--theme-border-color);
box-shadow: var(--shadow-sm);
transition: all var(--transition-base) ease;
}
 
.card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
 
/* Status Messages */
.status-alert {
background-color: rgba(213, 63, 63, 0.1);
color: var(--theme-alert-color);
border-left: 4px solid var(--theme-alert-color);
padding: 12px;
}
 
.status-warning {
background-color: rgba(192, 86, 33, 0.1);
color: var(--theme-warning-color);
border-left: 4px solid var(--theme-warning-color);
padding: 12px;
}
 
.status-success {
background-color: rgba(46, 139, 87, 0.1);
color: var(--theme-success-color);
border-left: 4px solid var(--theme-success-color);
padding: 12px;
}
 
/* Social Links */
.social {
position: relative;
z-index: 999;
text-align: center;
margin: 20px auto;
padding: 15px 0;
max-width: 85%;
background: var(--theme-page-background-color--secondary);
border-radius: 12px;
border: 1px solid var(--theme-border-color);
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 15px;
}
 
.social .iconname {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 180px;
padding: 12px 20px;
background: var(--theme-page-background-color);
border-radius: 8px;
border: 1px solid var(--theme-border-color);
transition: all 0.3s ease;
}
 
.social .iconname:hover {
background: var(--teal-50) !important;
transform: translateY(-2px);
border-color: var(--theme-accent-color);
}
 
.social .iconname a.external {
display: flex !important;
align-items: center !important;
text-decoration: none !important;
color: var(--theme-page-text-color) !important;
font-weight: var(--font-weight-medium) !important;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
 
.social .iconname .floatleft {
display: flex !important;
align-items: center !important;
margin-right: 10px !important;
margin-bottom: 0 !important;
float: none !important;
}
 
.social .iconname .floatleft a img {
width: 20px !important;
height: 20px !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
filter: none !important;
}
 
/* Quotes */
.pull-quote {
.pull-quote {
font-style: italic;
    font-style: italic;
margin: 0;
    margin: 0;
padding: 0 30px 8px !important;
    padding: 0 30px 8px !important;
}
}


.pull-quote::before {
.pull-quote::before {
color: var(--teal-400);
    color: var(--accent);
content: "“";
    content: "“";
display: block;
    display: block;
font-size: 96px;
    font-size: 96px;
font-style: normal;
    font-style: normal;
line-height: 72px;
    line-height: 72px;
margin: 4px 0 -45px -5px;
    margin: 4px 0 -45px -5px;
}
}


.quotes-box {
.pull-quote__source::before {
border: 1px solid #434242;
    content: "— ";
border-left: 8px solid #eab759 !important;
    margin-bottom: 8px;
border-radius: 2px;
padding: 15px;
margin: 1em 0 1.5em;
font-family: serif;
font-size: 1em;
width: 50%;
max-width: 450px;
line-height: 1.5em;
background: rgba(255, 255, 255, 0.05);
margin-left: 200px;
display: flex;
flex-direction: row;
}
}


.quotes-box blockquote {
.pull-quote__text {
margin: 0;
    margin-bottom: 4px;
font-style: italic;
text-align: center;
}
}


/* ===== 9. SPECIALIZED COMPONENTS ===== */
/* Gallery */
 
.gallerytext {
/* ===== NAVBOX STYLING ===== */
     text-align: center;
 
     font-size: 100%;
/* Base navbox */
.navbox {
     width: 100% !important;
    margin: 1.5em 0 !important;
    border-spacing: 0 !important;
     border-collapse: separate !important;
    border: 1px solid var(--theme-border-color) !important;
    background-color: var(--card-bg-main) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
}


/* Navbox title/header */
/* Changelist */
.navbox-title {
.changelist-header {
     background: var(--teal-100) !important;
     display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 88%;
    margin: 0.3em 0;
}
}


.navbox-title th {
.changelist-content {
     padding: 12px 16px !important;
     overflow: auto;
     font-weight: 600 !important;
     max-height: 384px;
     font-size: 1.1em !important;
     padding: 1em;
     text-align: center !important;
     box-sizing: border-box;
     border-bottom: 2px solid var(--teal-800) !important;
     border-radius: 6px;
}
}


.navbox-title a {
.changelist-border {
     text-decoration: none !important;
     border: 1px solid var(--theme-border-color);
    border-left: 6px solid var(--accent);
}
}


.navbox-title a:hover {
/* Chat wrapper */
     text-decoration: underline !important;
.chat-wrapper {
    display: flex;
     flex-direction: column;
}
}


/* Navbox group headers */
.chat-player,
.navbox-group {
.chat-npc {
     background-color: var(--teal-50) !important;
     display: flex;
    width: 180px !important;
     flex-direction: row;
     min-width: 180px !important;
     gap: 0.5em;
     vertical-align: top !important;
    border-right: 1px solid var(--teal-200) !important;
}
}


.navbox-group th {
.chat-player-speaker {
     background: transparent !important;
     white-space: nowrap;
    font-size: 0.95em !important;
     min-width: 70px;
     padding: 10px 12px !important;
     color: rgb(105, 172, 82);
    text-align: left !important;
     font-weight: 600 !important;
}
}


/* Navbox list/content cells */
.chat-npc-speaker {
.navbox-list {
     white-space: nowrap;
     padding: 12px !important;
     min-width: 70px;
    line-height: 1.5 !important;
     color: rgb(237, 123, 103);
     vertical-align: top !important;
     background-color: var(--card-bg-main) !important;
}
}


.navbox-list td {
/* ============================================
     padding: 12px !important;
  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;
    }
}
}


/* Navbox list items - SEPARATED STYLE (like chips) */
/* ============================================
.navbox-list ul {
  CUSTOM SCROLLBAR
     list-style: none !important;
  ============================================ */
    padding-left: 0 !important;
::-webkit-scrollbar {
    margin: 0 !important;
     width: 10px;
    display: flex !important;
     height: 10px;
    flex-wrap: wrap !important;
     gap: 6px !important;
}
}


.navbox-list li {
::-webkit-scrollbar-track {
    margin-bottom: 0 !important;
     background: var(--theme-page-background-color--secondary);
    padding: 0 !important;
     border-radius: 5px;
    display: inline-flex !important;
    align-items: center !important;
     background: var(--teal-50) !important;
     border-radius: 4px !important;
    border: 1px solid var(--teal-100) !important;
}
}


/* Links inside navbox - Chip style */
::-webkit-scrollbar-thumb {
.navbox-list a,
     background: var(--accent);
.navbox-group a {
     border-radius: 5px;
     text-decoration: none !important;
    padding: 5px 10px !important;
     border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
}


.navbox-list a:hover,
::-webkit-scrollbar-thumb:hover {
.navbox-group a:hover {
     background: var(--accent-light);
     background-color: var(--teal-100) !important;
    text-decoration: underline !important;
}
}


/* Alternative row styling */
/* ============================================
.alt .navbox-list {
  UTILITY CLASSES
    background-color: rgba(56, 178, 172, 0.05) !important;
  ============================================ */
}
.text-center {
 
    text-align: center;
.alt .navbox-list li {
    background: rgba(56, 178, 172, 0.1) !important;
    border-color: rgba(56, 178, 172, 0.2) !important;
}
 
/* Subgroup styling */
.navbox-subgroup {
    margin: 10px 0 0 0 !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border-top: 1px solid var(--teal-100) !important;
    padding-top: 10px !important;
}
 
.navbox-subgroup .navbox-group {
    background-color: var(--teal-100) !important;
    width: 160px !important;
    min-width: 160px !important;
}
 
/* Small navboxes */
.navbox-small {
    width: auto !important;
    min-width: 250px !important;
    max-width: 300px !important;
    float: right !important;
    margin: 0 0 16px 16px !important;
}
 
.navbox-small .navbox-list ul {
    gap: 4px !important;
}
 
/* Collapsible Navbox */
.mw-collapsible .navbox-title {
    cursor: pointer !important;
    padding-right: 40px !important;
    position: relative !important;
}
 
.mw-collapsible .navbox-title:after {
    content: "▼" !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    background: rgba(255, 255, 255, 0.2) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
 
.mw-collapsible.mw-collapsed .navbox-title:after {
    content: "▶" !important;
}
 
.mw-collapsible-content {
    overflow: hidden !important;
}
 
/* Horizontal Navboxes */
.navbox-horizontal .navbox-list ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
 
.navbox-horizontal .navbox-list li {
    display: inline-flex !important;
}
 
.navbox-horizontal .navbox-list li:not(:last-child):after {
    display: none !important;
}
 
/* Dark theme navbox adjustments */
.skin-vector-dark .navbox {
    background-color: var(--card-bg-main) !important;
    border-color: var(--teal-700) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}
 
.skin-vector-dark .navbox-title {
    background: var(--teal-800) !important;
    border-bottom-color: var(--teal-900) !important;
}
 
.skin-vector-dark .navbox-group {
    background-color: rgba(95, 217, 207, 0.1) !important;
    border-right-color: var(--teal-700) !important;
}
 
.skin-vector-dark .navbox-group th {
    color: var(--teal-200) !important;
}
 
.skin-vector-dark .navbox-list li {
    background: rgba(95, 217, 207, 0.1) !important;
    border-color: rgba(95, 217, 207, 0.2) !important;
}
 
.skin-vector-dark .navbox-list a:hover,
.skin-vector-dark .navbox-group a:hover {
    background-color: rgba(95, 217, 207, 0.2) !important;
}
 
.skin-vector-dark .alt .navbox-list {
    background-color: rgba(95, 217, 207, 0.05) !important;
}
 
.skin-vector-dark .alt .navbox-list li {
    background: rgba(95, 217, 207, 0.15) !important;
    border-color: rgba(95, 217, 207, 0.25) !important;
}
 
.skin-vector-dark .mw-collapsible .navbox-title:after {
    background: rgba(255, 255, 255, 0.15) !important;
}
 
/* ===== RACE SYSTEM TOOLTIPS ===== */
 
.race-tooltip-container {
position: relative;
display: inline-block;
cursor: pointer;
}
 
.race-link {
font-weight: bold;
text-decoration: none !important;
border-bottom: 1px dotted;
transition: all 0.2s ease;
display: inline-block;
}
 
.race-tooltip-container:hover .race-link {
opacity: 0.9;
}
 
/* Tooltip on LEFT side of link */
.race-tooltip {
visibility: hidden;
width: 250px;
background-color: #2c3e50;
color: #ecf0f1;
text-align: left;
padding: 12px;
border-radius: 8px;
position: absolute;
z-index: 1000;
top: 50%;
right: 100%;
transform: translateY(-50%);
margin-right: 10px;
opacity: 0;
transition: opacity 0.3s;
font-size: 0.9em;
font-weight: normal;
line-height: 1.4;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
border: 1px solid #34495e;
}
 
.race-tooltip::after {
content: "";
position: absolute;
top: 50%;
left: 100%;
transform: translateY(-50%);
border-width: 8px;
border-style: solid;
border-color: transparent transparent transparent #2c3e50;
}
 
.race-tooltip strong {
color: #3498db;
font-size: 1.1em;
display: block;
margin-bottom: 5px;
}
 
.race-tooltip small {
color: #bdc3c7;
font-size: 0.85em;
}
 
.race-tooltip-container:hover .race-tooltip {
visibility: visible;
opacity: 0.98;
}
 
.race-error {
color: #d33;
font-style: italic;
background: #fee;
padding: 2px 5px;
border-radius: 3px;
}
 
.race-badge {
display: inline-block;
font-weight: bold;
transition: transform 0.2s ease;
}
 
.race-badge:hover {
transform: translateY(-2px);
text-decoration: none !important;
}
 
.race-infobox {
border-collapse: collapse;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-left: 15px;
}
}


.race-infobox tr:nth-child(even) {
.mt-2 {
background-color: #f8f8f8;
    margin-top: 0.5rem;
}
}


.race-infobox td {
.mb-2 {
border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}
}


/* Dark theme race tooltips */
.p-2 {
.skin-vector-dark .race-tooltip {
    padding: 0.5rem;
background-color: #1a2a2a;
border-color: #4d6872;
}
 
.skin-vector-dark .race-tooltip::after {
border-left-color: #1a2a2a;
}
 
.skin-vector-dark .race-error {
background: #4a2626;
color: #fc8181;
}
 
.skin-vector-dark .race-infobox tr:nth-child(even) {
background-color: rgba(95, 217, 207, 0.1);
}
 
/* ===== 10. RESPONSIVE DESIGN ===== */
 
@media screen and (max-width: 1024px) {
.mw-body,
#mw-data-after-content,
.mw-footer {
margin-left: 0;
}
#mw-panel {
display: none;
}
#left-navigation {
left: 1em;
}
#mw-head-base {
margin-left: 0;
}
.wikitable {
font-size: 0.95em;
}
.wikitable > tr > th,
.wikitable > * > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > td {
padding: 0.625rem 0.75rem !important;
}
.scheduletable.wikitable {
width: 100%;
}
.artisan-table.wikitable {
width: 100%;
}
.heart-event-table.wikitable {
width: 100%;
}
.navbox-small {
float: none !important;
width: 100% !important;
max-width: 100% !important;
margin: 1em 0 !important;
}
}
 
@media screen and (max-width: 768px) {
.mw-body {
padding: 0.75em;
}
#left-navigation,
#right-navigation {
position: static;
float: none;
margin: 0;
}
#mw-head {
position: relative;
height: auto;
}
.vector-menu-tabs ul {
flex-wrap: wrap;
}
.vector-search-box-input {
width: 100%;
}
.vector-search-box-input:focus {
width: 100%;
}
.wikitable {
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: var(--border-radius-sm);
}
.wikitable > caption {
position: sticky;
left: 0;
}
.wikitable > tr > th,
.wikitable > * > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > td {
min-width: 100px;
font-size: 0.9em;
}
/* Make sortable tables work better on mobile */
.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable),
.jquery-tablesorter th.headerSort {
font-size: 0.85em;
white-space: normal;
line-height: 1.3;
padding: 0.5rem 1.5rem 0.5rem 0.5rem !important;
}
/* Improve touch targets */
.wikitable a {
padding: 0.25rem 0;
display: inline-block;
}
.portable-infobox {
float: none;
max-width: 100%;
margin: 0 0 16px 0;
}
.portable-infobox .pi-item {
flex-direction: column;
}
.portable-infobox .pi-data-label,
.portable-infobox .pi-data-value {
min-width: 100%;
text-align: left;
}
.character-infobox,
.weapon-infobox,
.monster-infobox {
float: none;
max-width: 100%;
margin: 0 0 16px 0;
}
.social {
flex-direction: column;
gap: 8px;
}
.social .iconname {
width: 100%;
max-width: 100%;
}
#footer-info,
#footer-places {
flex-direction: column;
align-items: center;
gap: 8px;
}
#footer-info li {
border-right: none;
text-align: center;
}
/* Navbox responsive */
.navbox {
margin: 1em 0 !important;
}
.navbox-group,
.navbox-group th {
width: 100% !important;
min-width: 100% !important;
display: block !important;
border-right: none !important;
border-bottom: 1px solid var(--teal-200) !important;
}
.navbox-list {
padding: 10px !important;
}
.navbox-list ul {
gap: 4px !important;
}
.navbox-list li {
font-size: 0.9em !important;
}
/* Race tooltip responsive */
.race-tooltip {
width: 240px;
font-size: 0.85em;
padding: 10px;
}
.race-infobox {
width: 100% !important;
float: none !important;
margin: 10px 0 !important;
}
.quotes-box {
width: 100%;
max-width: 100%;
margin-left: 0;
}
}
 
@media screen and (max-width: 480px) {
.race-tooltip {
width: 200px;
left: 0;
transform: translateX(0);
}
.race-tooltip::after {
left: 20px;
transform: translateX(0);
}
}
 
@media print {
:root {
--theme-page-text-color: #000000;
--theme-page-background-color: #ffffff;
}
a {
color: #000000 !important;
text-decoration: underline !important;
}
#mw-panel,
#p-personal,
.social {
display: none !important;
}
.wikitable {
break-inside: avoid;
box-shadow: none;
border: 1px solid #ccc;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background: #f0f0f0 !important;
color: #000 !important;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.wikitable a {
color: #000;
text-decoration: none;
}
.wikitable a[href]:after {
content: " (" attr(href) ")";
font-size: 0.9em;
font-weight: normal;
}
}
 
/* High contrast mode support */
@media (prefers-contrast: high) {
:root body:not(.skin-vector-dark) {
--theme-link-color: #005652;
--theme-border-color: #1a2a2a;
}
:root .skin-vector-dark {
--theme-link-color: #81e6d9;
--theme-border-color: #718096;
}
.wikitable {
border-width: 2px;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
border-bottom-width: 3px;
}
.wikitable > tr > td,
.wikitable > * > tr > td {
border-bottom-width: 1px;
}
}
 
/* Focus styles for keyboard navigation */
.wikitable a:focus-visible,
.navbox a:focus-visible {
outline: 2px solid var(--focus-ring-color);
outline-offset: 2px;
border-radius: 2px;
text-decoration: none;
}
 
/* Import statements */
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Module:Documentation.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Documentation.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Tables.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:MessageBox.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CustomTabs.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Navbox.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Icons.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Dialogue.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Cards.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Tabbers.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Mobile.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Recipe.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Modal.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:AceEditor.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CodeMirror.css");
/* ===== COMPLETE EDITOR RESET ===== */
 
/* Reset all styles for edit pages */
body.action-edit,
body.action-submit,
body.action-edit *,
body.action-submit * {
/* Don't reset everything, but target specific elements */
}
 
/* Main content area during editing */
body.action-edit .mw-body,
body.action-submit .mw-body,
body.action-edit .parsoid-body,
body.action-submit .parsoid-body {
position: relative !important;
margin-left: 0 !important;
margin-top: 0 !important;
padding: 1em !important;
background-color: #ffffff !important;
border-left: none !important;
width: 100% !important;
max-width: 100% !important;
}
 
/* Hide sidebar during editing */
body.action-edit #mw-panel,
body.action-submit #mw-panel,
body.action-edit #mw-head-base,
body.action-submit #mw-head-base,
body.action-edit #left-navigation,
body.action-submit #left-navigation,
body.action-edit #right-navigation,
body.action-submit #right-navigation {
display: none !important;
}
 
/* Fix editor container positioning */
body.action-edit #content,
body.action-submit #content {
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
}
 
/* WikiEditor textarea */
#wpTextbox1 {
width: 100% !important;
min-height: 400px !important;
box-sizing: border-box !important;
padding: 10px !important;
font-family: 'Monaco', 'Menlo', 'Consolas', monospace !important;
font-size: 13px !important;
line-height: 1.5 !important;
border: 1px solid var(--input-border) !important;
border-radius: 4px !important;
}
 
#wpTextbox1:focus {
border-color: var(--theme-accent-color) !important;
outline: none !important;
}
 
/* Editor toolbar */
.wikiEditor-ui-toolbar {
background: #f8f9fa !important;
border: 1px solid #c8ccd1 !important;
border-radius: 4px 4px 0 0 !important;
}
 
/* Fix for CodeMirror */
.CodeMirror {
border: 1px solid var(--input-border) !important;
border-radius: 4px !important;
font-size: 13px !important;
font-family: 'Monaco', 'Menlo', 'Consolas', monospace !important;
}
 
.CodeMirror-gutters {
background: #f8f9fa !important;
border-right: 1px solid #e2e8f0 !important;
}
 
/* Preview section */
#wikiPreview {
background: var(--theme-page-background-color) !important;
border: 1px solid var(--theme-border-color) !important;
border-radius: 8px !important;
padding: 20px !important;
margin-top: 20px !important;
}
 
/* Diff view during edit conflicts */
.diff {
background: #ffffff !important;
border: 1px solid #ddd !important;
}
 
.diff td {
padding: 8px !important;
vertical-align: top !important;
}
 
/* Edit summary area */
#wpSummary {
width: 100% !important;
max-width: 100% !important;
padding: 8px !important;
font-size: 13px !important;
border: 1px solid var(--input-border) !important;
border-radius: 4px !important;
box-sizing: border-box !important;
}
 
/* Minor edit checkbox and watch this page */
#wpMinoredit,
#wpWatchthis {
margin-right: 5px !important;
}
 
/* Save buttons */
#wpSave,
#wpPreview,
#wpDiff {
padding: 8px 16px !important;
font-size: 14px !important;
border-radius: 4px !important;
cursor: pointer !important;
transition: all var(--transition-fast) !important;
}
 
#wpSave {
background: var(--teal-600) !important;
color: white !important;
border: none !important;
}
 
#wpSave:hover {
background: var(--teal-500) !important;
}
 
#wpPreview,
#wpDiff {
background: #f0f0f0 !important;
border: 1px solid #ccc !important;
}
 
#wpPreview:hover,
#wpDiff:hover {
background: #e0e0e0 !important;
}
/* Force editor to full width */
@media screen and (min-width: 1024px) {
body.action-edit {
padding-left: 0 !important;
}
body.action-edit .mw-body {
margin-left: 0 !important;
width: 100% !important;
max-width: 100% !important;
}
body.action-edit #content {
margin-left: 0 !important;
}
}
}

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