MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
.class {
.class {}
} /* needed for some reason for the @imports to work */
 
/* needed for some reason for the @imports to work */
/* Imports caching */
/* Imports caching */
/*@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Colors.css");*/
/*@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Colors.css");*/
Line 19: Line 20:
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:AceEditor.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:AceEditor.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CodeMirror.css");
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CodeMirror.css");
:root {
:root {
  /* Universal Base Styles */
/* Universal Base Styles */
  --font-size: 16px; /* Slightly larger base */
--font-size: 16px;
  --font-size-small: 14px;
/* Slightly larger base */
  --font-size-large: 18px;
--font-size-small: 14px;
  --font-size-xlarge: 20px;
--font-size-large: 18px;
  --font-size-h1: 32px;
--font-size-xlarge: 20px;
  --font-size-h2: 26px;
--font-size-h1: 32px;
  --font-size-h3: 22px;
--font-size-h2: 26px;
  --font-size-h4: 18px;
--font-size-h3: 22px;
--font-size-h4: 18px;


  --line-height: 1.6; /* More breathing room */
--line-height: 1.6;
  --line-height-headings: 1.3;
/* More breathing room */
  --line-height-tight: 1.25;
--line-height-headings: 1.3;
--line-height-tight: 1.25;


  --font-weight-normal: 400;
--font-weight-normal: 400;
  --font-weight-medium: 500;
--font-weight-medium: 500;
  --font-weight-semibold: 600;
--font-weight-semibold: 600;
  --font-weight-bold: 700;
--font-weight-bold: 700;
  --wiki-content-text-color: var(--theme-page-text-color, #1a2a2a);
--wiki-content-text-color: var(--theme-page-text-color, #1a2a2a);


  /* ===== SPACING ===== */
/* ===== SPACING ===== */
  --spacing-xs: 4px;
--spacing-xs: 4px;
  --spacing-sm: 8px;
--spacing-sm: 8px;
  --spacing-md: 16px;
--spacing-md: 16px;
  --spacing-lg: 24px;
--spacing-lg: 24px;
  --spacing-xl: 32px;
--spacing-xl: 32px;
  --spacing-2xl: 48px;
--spacing-2xl: 48px;


  /* ===== SHADOWS & DEPTH ===== */
/* ===== SHADOWS & DEPTH ===== */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px 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);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
--shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);


  /* ===== BORDERS & RADIUS ===== */
/* ===== BORDERS & RADIUS ===== */
  --wiki-content-border-color: var(--theme-border-color, #a1e9dc);
--wiki-content-border-color: var(--theme-border-color, #a1e9dc);
  --border-radius-sm: 4px;
--border-radius-sm: 4px;
  --border-radius-md: 8px;
--border-radius-md: 8px;
  --border-radius-lg: 2px;
--border-radius-lg: 2px;
  --border-radius-full: 9999px;
--border-radius-full: 9999px;


  --border-width: 1px;
--border-width: 1px;
  --border-width-thick: 2px;
--border-width-thick: 2px;
  --border-width-xthick: 3px;
--border-width-xthick: 3px;


  /* ===== TRANSITIONS ===== */
/* ===== TRANSITIONS ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms 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);
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);


  /* ===== Z-INDEX LAYERS ===== */
/* ===== Z-INDEX LAYERS ===== */
  --z-index-dropdown: 1000;
--z-index-dropdown: 1000;
  --z-index-sticky: 1020;
--z-index-sticky: 1020;
  --z-index-fixed: 1030;
--z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
--z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
--z-index-modal: 1050;
  --z-index-popover: 1060;
--z-index-popover: 1060;
  --z-index-tooltip: 1070;
--z-index-tooltip: 1070;


  /* ===== FOCUS STATES ===== */
/* ===== FOCUS STATES ===== */
  --focus-ring-color: rgba(79, 209, 199, 0.6);
--focus-ring-color: rgba(79, 209, 199, 0.6);
  --focus-ring-color-dark: rgba(79, 209, 199, 0.8);
--focus-ring-color-dark: rgba(79, 209, 199, 0.8);
  --focus-ring-width: 3px;
--focus-ring-width: 3px;
  --focus-ring-offset: 2px;
--focus-ring-offset: 2px;


  /* ===== GRAY SCALE (Optimized) ===== */
/* ===== GRAY SCALE (Optimized) ===== */
  --gray-950: #0f1419;
--gray-950: #0f1419;
  --gray-900: #1a202c;
--gray-900: #1a202c;
  --gray-800: #2d3748;
--gray-800: #2d3748;
  --gray-700: #4a5568;
--gray-700: #4a5568;
  --gray-600: #718096;
--gray-600: #718096;
  --gray-500: #a0aec0;
--gray-500: #a0aec0;
  --gray-400: #cbd5e0;
--gray-400: #cbd5e0;
  --gray-300: #e2e8f0;
--gray-300: #e2e8f0;
  --gray-200: #edf2f7;
--gray-200: #edf2f7;
  --gray-100: #f7fafc;
--gray-100: #f7fafc;
  --gray-050: #ffffff;
--gray-050: #ffffff;


  /* ===== TEAL/BLUE SCALE ===== */
/* ===== TEAL/BLUE SCALE ===== */
  --teal-900: #1d4044;
--teal-900: #1d4044;
  --teal-800: #234e52;
--teal-800: #234e52;
  --teal-700: #285e61;
--teal-700: #285e61;
  --teal-600: #2c7a7b;
--teal-600: #2c7a7b;
  --teal-500: #319795;
--teal-500: #319795;
  --teal-400: #38b2ac;
--teal-400: #38b2ac;
  --teal-300: #4fd1c7;
--teal-300: #4fd1c7;
  --teal-200: #81e6d9;
--teal-200: #81e6d9;
  --teal-100: #b2f5ea;
--teal-100: #b2f5ea;
  --teal-050: #e6fffa;
--teal-050: #e6fffa;


  /* ===== OTHER COLORS ===== */
/* ===== OTHER COLORS ===== */
  --light-blue: #90cdf4;
--light-blue: #90cdf4;
  --gold: #d69e2e;
--gold: #d69e2e;
  --purple: #9f7aea;
--purple: #9f7aea;


  /* ===== ANIMATIONS ===== */
/* ===== ANIMATIONS ===== */
  --animation-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
--animation-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --animation-spin: spin 1s linear infinite;
--animation-spin: spin 1s linear infinite;
  --animation-bounce: bounce 1s infinite;
--animation-bounce: bounce 1s infinite;


  /* Universal border */
/* Universal border */
  --border-color: var(--theme-border-color);
--border-color: var(--theme-border-color);
  /*Navigation*/
/*Navigation*/
  --mb-navigation-left-spacing: 0px;
--mb-navigation-left-spacing: 0px;
  --mb-navigation-right-spacing: 0px;
--mb-navigation-right-spacing: 0px;
  --mb-navigation-tab-spacing: 0px;
--mb-navigation-tab-spacing: 0px;
  --mb-navigation-gap-between-left-and-right: 0px;
--mb-navigation-gap-between-left-and-right: 0px;
  --mb-navigation-bottom-spacing: 0px;
--mb-navigation-bottom-spacing: 0px;
  --mb-navigation-border-bottom-width: 1px;
--mb-navigation-border-bottom-width: 1px;
  --mb-navigation-border-width: 1px;
--mb-navigation-border-width: 1px;
  --mb-navigation-border-style: solid;
--mb-navigation-border-style: solid;
  --mb-navigation-border-color: var(--theme-border-color);
--mb-navigation-border-color: var(--theme-border-color);
  --mb-navigation-border-bottom-color: var(--theme-border-color);
--mb-navigation-border-bottom-color: var(--theme-border-color);
  --mb-navigation-border-bottom-style: solid;
--mb-navigation-border-bottom-style: solid;
  --mb-navigation-text-color: var(--theme-page-text-color);
--mb-navigation-text-color: var(--theme-page-text-color);
  --mb-navigation-background-color: var(
--mb-navigation-background-color: var(--theme-page-background-color--secondary);
    --theme-page-background-color--secondary
--mb-navigation-background-opacity: 100%;
  );
--mb-navigation-tab-padding-top: 1.25em;
  --mb-navigation-background-opacity: 100%;
--mb-navigation-tab-padding-x: 0.75em;
  --mb-navigation-tab-padding-top: 1.25em;
--mb-navigation-tab-padding-bottom: 4px;
  --mb-navigation-tab-padding-x: 0.75em;
--mb-navigation-border-radius: 4px 4px 0 0;
  --mb-navigation-tab-padding-bottom: 4px;
--mb-navigation-font-size: 0.8125em;
  --mb-navigation-border-radius: 4px 4px 0 0;
--mb-navigation-font-weight: normal;
  --mb-navigation-font-size: 0.8125em;
  --mb-navigation-font-weight: normal;


  /* Selected tab variables */
/* Selected tab variables */
  --mb-navigation-selected-border-color: var(--theme-accent-color);
--mb-navigation-selected-border-color: var(--theme-accent-color);
  --mb-navigation-selected-background-color: var(--theme-accent-color);
--mb-navigation-selected-background-color: var(--theme-accent-color);
  --mb-navigation-selected-text-color: var(--theme-accent-label-color);
--mb-navigation-selected-text-color: var(--theme-accent-label-color);
  --mb-navigation-selected-border-width: 1px;
--mb-navigation-selected-border-width: 1px;
  --mb-navigation-selected-border-style: solid;
--mb-navigation-selected-border-style: solid;


  /* Hover variables */
/* Hover variables */
  --mb-navigation-text-color--hover: var(--theme-link-color);
--mb-navigation-text-color--hover: var(--theme-link-color);
  --mb-navigation-border-color--hover: var(--theme-border-color);
--mb-navigation-border-color--hover: var(--theme-border-color);


  /* Content variables */
/* Content variables */
  --mb-content-border-top-radius: 0px;
--mb-content-border-top-radius: 0px;
  --mb-content-border-radius: 0px;
--mb-content-border-radius: 0px;
  --mb-is-navigation-inside-content: 0;
--mb-is-navigation-inside-content: 0;


  /* Dropdown variables */
/* Dropdown variables */
  --mb-navigation-dropdown-border-width: 1px;
--mb-navigation-dropdown-border-width: 1px;
  --mb-navigation-dropdown-border-color: var(--theme-border-color);
--mb-navigation-dropdown-border-color: var(--theme-border-color);
  --mb-navigation-dropdown-border-radius: 4px;
--mb-navigation-dropdown-border-radius: 4px;
  --mb-navigation-dropdown-background-color: var(--card-bg-main);
--mb-navigation-dropdown-background-color: var(--card-bg-main);
  --mb-navigation-dropdown-background-opacity: 100%;
--mb-navigation-dropdown-background-opacity: 100%;
  --mb-navigation-dropdown-box-shadow: var(--shadow-lg);
--mb-navigation-dropdown-box-shadow: var(--shadow-lg);
  --mb-navigation-dropdown-padding: var(--spacing-sm) 0;
--mb-navigation-dropdown-padding: var(--spacing-sm) 0;
  --mb-navigation-dropdown-offset: 4px;
--mb-navigation-dropdown-offset: 4px;
  --mb-navigation-dropdown-text-color: var(--theme-page-text-color);
--mb-navigation-dropdown-text-color: var(--theme-page-text-color);
  --mb-navigation-dropdown-text-color--hover: var(--theme-link-color);
--mb-navigation-dropdown-text-color--hover: var(--theme-link-color);
  --mb-navigation-dropdown-item-padding: 8px 16px;
--mb-navigation-dropdown-item-padding: 8px 16px;


  /* Search variables */
/* Search variables */
  --mb-navigation-search-bottom-spacing: 3px;
--mb-navigation-search-bottom-spacing: 3px;
  --mb-navigation-search-font-size: 0.8125em;
--mb-navigation-search-font-size: 0.8125em;
  --mb-navigation-search-height: 2em;
--mb-navigation-search-height: 2em;
  --mb-navigation-search-button-color: var(--theme-accent-color);
--mb-navigation-search-button-color: var(--theme-accent-color);
  --mb-navigation-search-button-color-opacity: 80%;
--mb-navigation-search-button-color-opacity: 80%;
  --mb-navigation-search-button-color--hover: var(--theme-accent-color--hover);
--mb-navigation-search-button-color--hover: var(--theme-accent-color--hover);
  --mb-navigation-search-button-color-opacity--hover: 95%;
--mb-navigation-search-button-color-opacity--hover: 95%;


  /* Icon variables */
/* Icon variables */
  --mb-navigation-icon-size: 1em;
--mb-navigation-icon-size: 1em;
  --mb-navigation-tab-padding-x--icon: 0.75em;
--mb-navigation-tab-padding-x--icon: 0.75em;
}
}


/* Light Theme */
/* Light Theme */
:root body:not(.skin-vector-dark) {
:root body:not(.skin-vector-dark) {
  /* ===== BASE COLORS ===== */
/* ===== BASE COLORS ===== */
  --theme-page-text-color: #1a2a2a;
--theme-page-text-color: #1a2a2a;
  --theme-page-text-color--inverse: #ffffff;
--theme-page-text-color--inverse: #ffffff;
  --theme-page-background-color: #f5fdfb; /* Slightly darker for less glare */
--theme-page-background-color: #f5fdfb;
  --theme-page-background-color--rgb: 245, 253, 251;
/* Slightly darker for less glare */
  --theme-page-background-color--secondary: #e8f5f3; /* Better contrast: 13:1 */
--theme-page-background-color--rgb: 245, 253, 251;
  --theme-page-background-color--secondary--rgb: 232, 245, 243;
--theme-page-background-color--secondary: #e8f5f3;
/* Better contrast: 13:1 */
--theme-page-background-color--secondary--rgb: 232, 245, 243;


  /* ===== LINKS ===== */
/* ===== LINKS ===== */
  --theme-link-color: #007d7a; /* Darker for 7:1 contrast */
--theme-link-color: #007d7a;
  --theme-link-color--rgb: 0, 125, 122;
/* Darker for 7:1 contrast */
  --theme-link-color--hover: #005652; /* Even darker on hover */
--theme-link-color--rgb: 0, 125, 122;
  --theme-link-color--visited: #4a5568; /* Distinct visited state */
--theme-link-color--hover: #005652;
  --theme-link-label-color: #00474a;
/* Even darker on hover */
  --mw-head-link-color: #007d7a;
--theme-link-color--visited: #4a5568;
  --new-link-color: #00a3a3; /* For "red links" - actually teal */
/* Distinct visited state */
--theme-link-label-color: #00474a;
--mw-head-link-color: #007d7a;
--new-link-color: #00a3a3;
/* For "red links" - actually teal */


  /* ===== ACCENTS ===== */
/* ===== ACCENTS ===== */
  --theme-accent-color: #38b2ac; /* More vibrant */
--theme-accent-color: #38b2ac;
  --theme-accent-color--rgb: 56, 178, 172;
/* More vibrant */
  --theme-accent-color--hover: #2c9c96; /* Darker hover */
--theme-accent-color--rgb: 56, 178, 172;
  --theme-accent-label-color: #ffffff;
--theme-accent-color--hover: #2c9c96;
/* Darker hover */
--theme-accent-label-color: #ffffff;


  /* ===== BORDERS ===== */
/* ===== BORDERS ===== */
  --theme-border-color: #a1e9dc; /* More visible */
--theme-border-color: #a1e9dc;
  --theme-border-color--rgb: 161, 233, 220;
/* More visible */
  --theme-border-color--subtle: #d1f5ee; /* For subtle separators */
--theme-border-color--rgb: 161, 233, 220;
--theme-border-color--subtle: #d1f5ee;
/* For subtle separators */


  /* ===== STATUS COLORS (Enhanced for visibility) ===== */
/* ===== STATUS COLORS (Enhanced for visibility) ===== */
  --theme-alert-color: #d53f3f; /* More vibrant red - 7:1 contrast */
--theme-alert-color: #d53f3f;
  --theme-alert-color--rgb: 213, 63, 63;
/* More vibrant red - 7:1 contrast */
  --theme-alert-color--hover: #b03030;
--theme-alert-color--rgb: 213, 63, 63;
  --theme-alert-color--secondary: #ffeaea; /* Softer background */
--theme-alert-color--hover: #b03030;
  --theme-alert-label: #ffffff;
--theme-alert-color--secondary: #ffeaea;
/* Softer background */
--theme-alert-label: #ffffff;


  --theme-warning-color: #c05621; /* Warmer orange - 6.5:1 contrast */
--theme-warning-color: #c05621;
  --theme-warning-color--rgb: 192, 86, 33;
/* Warmer orange - 6.5:1 contrast */
  --theme-warning-color--secondary: #fff4e6;
--theme-warning-color--rgb: 192, 86, 33;
  --theme-warning-label: #1a2a2a; /* Dark text on light background */
--theme-warning-color--secondary: #fff4e6;
--theme-warning-label: #1a2a2a;
/* Dark text on light background */


  --theme-success-color: #2e8b57; /* More distinct green - 7:1 contrast */
--theme-success-color: #2e8b57;
  --theme-success-color--rgb: 46, 139, 87;
/* More distinct green - 7:1 contrast */
  --theme-success-color--secondary: #e6f7ed;
--theme-success-color--rgb: 46, 139, 87;
  --theme-success-label: #1a2a2a; /* Dark text on light background */
--theme-success-color--secondary: #e6f7ed;
--theme-success-label: #1a2a2a;
/* Dark text on light background */


  --theme-message-color: #6b46c1; /* More vibrant purple */
--theme-message-color: #6b46c1;
  --theme-message-color--rgb: 107, 70, 193;
/* More vibrant purple */
  --theme-message-color--secondary: #f3f0ff;
--theme-message-color--rgb: 107, 70, 193;
  --theme-message-label: #ffffff;
--theme-message-color--secondary: #f3f0ff;
--theme-message-label: #ffffff;


  --theme-info-color: #3182ce; /* Added info color */
--theme-info-color: #3182ce;
  --theme-info-color--secondary: #ebf8ff;
/* Added info color */
  --theme-info-label: #1a2a2a;
--theme-info-color--secondary: #ebf8ff;
--theme-info-label: #1a2a2a;


  /* ===== ALERT HIGHLIGHT ===== */
/* ===== ALERT HIGHLIGHT ===== */
  --theme-alert-highlight: #c53030;
--theme-alert-highlight: #c53030;
  --theme-alert-highlight--rgb: 197, 48, 48;
--theme-alert-highlight--rgb: 197, 48, 48;
  --theme-alert-highlight--hover: #e53e3e;
--theme-alert-highlight--hover: #e53e3e;


  /* ===== CUSTOM VARIABLES ===== */
/* ===== CUSTOM VARIABLES ===== */
  --theme-alt-text: #ffffff;
--theme-alt-text: #ffffff;
  --theme-accent-bg: #e6fffa;
--theme-accent-bg: #e6fffa;
  --theme-infobox-bg: #f0faf9; /* Less harsh than pure white */
--theme-infobox-bg: #f0faf9;
  --theme-card-shadow: var(--shadow-sm);
/* Less harsh than pure white */
  --theme-card-shadow-hover: var(--shadow-md);
--theme-card-shadow: var(--shadow-sm);
--theme-card-shadow-hover: var(--shadow-md);


  /* =====  CUSTOM COLORS ===== */
/* =====  CUSTOM COLORS ===== */
  --color-player: #60d9c5;  
--color-player: #60d9c5;
  --color-accent: #38b2ac;
--color-accent: #38b2ac;
  --color-npc: #9f7aea;
--color-npc: #9f7aea;
  --color-npc-secondary: #d6bcfa;
--color-npc-secondary: #d6bcfa;


  /* ===== CARD BACKGROUNDS ===== */
/* ===== CARD BACKGROUNDS ===== */
  --card-bg-main: #ffffff;
--card-bg-main: #ffffff;
  --card-bg-sub: #e6fffa;
--card-bg-sub: #e6fffa;
  --card-bg-elevated: #ffffff;
--card-bg-elevated: #ffffff;
  --card-border-color: var(--theme-border-color);
--card-border-color: var(--theme-border-color);


  /* ===== LETTER BACKGROUND ===== */
/* ===== LETTER BACKGROUND ===== */
  --letter-bg: #f0fff4;
--letter-bg: #f0fff4;
  --letter-border: #c6f6d5;
--letter-border: #c6f6d5;


  /* ===== USER HIGHLIGHTS ===== */
/* ===== USER HIGHLIGHTS ===== */
  --custom-admin-highlight: #c05621;
--custom-admin-highlight: #c05621;
  --custom-contentmoderator-highlight: #6b46c1;
--custom-contentmoderator-highlight: #6b46c1;
  --custom-bot-color: #718096;
--custom-bot-color: #718096;
  --custom-bot-font-style: italic;
--custom-bot-font-style: italic;


  /* ===== NAMED ACCENTS ===== */
/* ===== NAMED ACCENTS ===== */
  --accent: var(--theme-accent-color);
--accent: var(--theme-accent-color);
  --player: var(--color-player);
--player: var(--color-player);
  --npc: var(--color-npc);
--npc: var(--color-npc);


  /* ===== INPUTS ===== */
/* ===== INPUTS ===== */
  --input-bg: #ffffff;
--input-bg: #ffffff;
  --input-border: #cbd5e0;
--input-border: #cbd5e0;
  --input-border-focus: var(--theme-accent-color);
--input-border-focus: var(--theme-accent-color);
  --input-text: var(--theme-page-text-color);
--input-text: var(--theme-page-text-color);
  --input-placeholder: #a0aec0;
--input-placeholder: #a0aec0;


  /* ===== CODE & PRE ===== */
/* ===== CODE & PRE ===== */
  --code-bg: #f7fafc;
--code-bg: #f7fafc;
  --code-border: #e2e8f0;
--code-border: #e2e8f0;
  --code-text: var(--theme-page-text-color);
--code-text: var(--theme-page-text-color);
  --pre-bg: #1a202c;
--pre-bg: #1a202c;
  --pre-text: #e2e8f0;
--pre-text: #e2e8f0;


  /* ===== TABLE STYLES ===== */
/* ===== TABLE STYLES ===== */
  --table-header-bg: #e6fffa;
--table-header-bg: #e6fffa;
  --table-header-text: var(--theme-page-text-color);
--table-header-text: var(--theme-page-text-color);
  --table-row-even: #f7fafc;
--table-row-even: #f7fafc;
  --table-row-odd: #ffffff;
--table-row-odd: #ffffff;
  --table-border: var(--theme-border-color);
--table-border: var(--theme-border-color);
}
}


/* Dark Theme */
/* Dark Theme */
:root .skin-vector-dark {
:root .skin-vector-dark {
  /* ===== BASE COLORS ===== */
/* ===== BASE COLORS ===== */
  --wiki-content-text-color: var(--theme-page-text-color, #e6f7f5);
--wiki-content-text-color: var(--theme-page-text-color, #e6f7f5);
  --theme-page-text-color: #e6f7f5; /* Warmer light color */
--theme-page-text-color: #e6f7f5;
  --theme-page-text-color--inverse: #1a202c;
/* Warmer light color */
  --theme-page-background-color: rgba(22, 28, 36, 0.98); /* Softer dark */
--theme-page-text-color--inverse: #1a202c;
  --theme-page-background-color--rgb: 22, 28, 36;
--theme-page-background-color: rgba(22, 28, 36, 0.98);
  --theme-page-background-color--secondary: #2a363d; /* Warmer, better contrast */
/* Softer dark */
  --theme-page-background-color--secondary--rgb: 42, 54, 61;
--theme-page-background-color--rgb: 22, 28, 36;
--theme-page-background-color--secondary: #2a363d;
/* Warmer, better contrast */
--theme-page-background-color--secondary--rgb: 42, 54, 61;


  /* ===== LINKS ===== */
/* ===== LINKS ===== */
  --theme-link-color: #5fd9cf; /* Brighter for visibility */
--theme-link-color: #5fd9cf;
  --theme-link-color--rgb: 95, 217, 207;
/* Brighter for visibility */
  --theme-link-color--hover: #81e6d9;
--theme-link-color--rgb: 95, 217, 207;
  --theme-link-color--visited: #a0aec0;
--theme-link-color--hover: #81e6d9;
  --theme-link-label-color: #e6f7f5;
--theme-link-color--visited: #a0aec0;
  --mw-head-link-color: #5fd9cf;
--theme-link-label-color: #e6f7f5;
  --new-link-color: #4fd1c7; /* For "red links" */
--mw-head-link-color: #5fd9cf;
--new-link-color: #4fd1c7;
/* For "red links" */


  /* ===== ACCENTS ===== */
/* ===== ACCENTS ===== */
  --theme-accent-color: #5fd9cf;
--theme-accent-color: #5fd9cf;
  --theme-accent-color--rgb: 95, 217, 207;
--theme-accent-color--rgb: 95, 217, 207;
  --theme-accent-color--hover: #81e6d9;
--theme-accent-color--hover: #81e6d9;
  --theme-accent-label-color: #1a202c;
--theme-accent-label-color: #1a202c;


  /* ===== BORDERS ===== */
/* ===== BORDERS ===== */
  --theme-border-color: #4d6872; /* More visible */
--theme-border-color: #4d6872;
  --theme-border-color--rgb: 77, 104, 114;
/* More visible */
  --theme-border-color--subtle: #3a5059;
--theme-border-color--rgb: 77, 104, 114;
--theme-border-color--subtle: #3a5059;


  /* ===== STATUS COLORS ===== */
/* ===== STATUS COLORS ===== */
  --theme-alert-color: #fc8181;
--theme-alert-color: #fc8181;
  --theme-alert-color--rgb: 252, 129, 129;
--theme-alert-color--rgb: 252, 129, 129;
  --theme-alert-color--hover: #feb2b2;
--theme-alert-color--hover: #feb2b2;
  --theme-alert-color--secondary: #4a2626; /* Darker background */
--theme-alert-color--secondary: #4a2626;
  --theme-alert-label: #1a202c; /* Dark text on light red */
/* Darker background */
--theme-alert-label: #1a202c;
/* Dark text on light red */


  --theme-warning-color: #f6ad55;
--theme-warning-color: #f6ad55;
  --theme-warning-color--rgb: 246, 173, 85;
--theme-warning-color--rgb: 246, 173, 85;
  --theme-warning-color--secondary: #4a3a20;
--theme-warning-color--secondary: #4a3a20;
  --theme-warning-label: #1a202c;
--theme-warning-label: #1a202c;


  --theme-success-color: #68d391;
--theme-success-color: #68d391;
  --theme-success-color--rgb: 104, 211, 145;
--theme-success-color--rgb: 104, 211, 145;
  --theme-success-color--secondary: #22543d;
--theme-success-color--secondary: #22543d;
  --theme-success-label: #1a202c;
--theme-success-label: #1a202c;


  --theme-message-color: #b794f4;
--theme-message-color: #b794f4;
  --theme-message-color--rgb: 183, 148, 244;
--theme-message-color--rgb: 183, 148, 244;
  --theme-message-color--secondary: #3a3664;
--theme-message-color--secondary: #3a3664;
  --theme-message-label: #1a202c;
--theme-message-label: #1a202c;


  --theme-info-color: #63b3ed;
--theme-info-color: #63b3ed;
  --theme-info-color--secondary: #2c5282;
--theme-info-color--secondary: #2c5282;
  --theme-info-label: #1a202c;
--theme-info-label: #1a202c;


  /* ===== CUSTOM VARIABLES ===== */
/* ===== CUSTOM VARIABLES ===== */
  --theme-alt-text: #2d3748;
--theme-alt-text: #2d3748;
  --theme-accent-bg: #2d3748;
--theme-accent-bg: #2d3748;
  --theme-infobox-bg: #2a363d;
--theme-infobox-bg: #2a363d;
  --theme-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
--theme-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --theme-card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.4);
--theme-card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.4);


  /* ===== CUSTOM COLORS ===== */
/* ===== CUSTOM COLORS ===== */
  --color-player: #48b8aa;
--color-player: #48b8aa;
  --color-accent: #5fd9cf;
--color-accent: #5fd9cf;
  --color-npc: #b794f4;
--color-npc: #b794f4;
  --color-npc-secondary: #d6bcfa;
--color-npc-secondary: #d6bcfa;


  /* ===== CARD BACKGROUNDS ===== */
/* ===== CARD BACKGROUNDS ===== */
  --card-bg-main: #2a363d;
--card-bg-main: #2a363d;
  --card-bg-sub: #3a464d;
--card-bg-sub: #3a464d;
  --card-bg-elevated: #34444d;
--card-bg-elevated: #34444d;
  --card-border-color: var(--theme-border-color);
--card-border-color: var(--theme-border-color);


  /* ===== LETTER BACKGROUND ===== */
/* ===== LETTER BACKGROUND ===== */
  --letter-bg: #1a272b;
--letter-bg: #1a272b;
  --letter-border: #2d4a3c;
--letter-border: #2d4a3c;


  /* ===== USER HIGHLIGHTS ===== */
/* ===== USER HIGHLIGHTS ===== */
  --custom-admin-highlight: #f6ad55;
--custom-admin-highlight: #f6ad55;
  --custom-contentmoderator-highlight: #b794f4;
--custom-contentmoderator-highlight: #b794f4;
  --custom-bot-color: #a0aec0;
--custom-bot-color: #a0aec0;
  --custom-bot-font-style: italic;
--custom-bot-font-style: italic;


  /* ===== ALERT HIGHLIGHT ===== */
/* ===== ALERT HIGHLIGHT ===== */
  --theme-alert-highlight: #e53e3e;
--theme-alert-highlight: #e53e3e;
  --theme-alert-highlight--rgb: 229, 62, 62;
--theme-alert-highlight--rgb: 229, 62, 62;
  --theme-alert-highlight--hover: #fc8181;
--theme-alert-highlight--hover: #fc8181;


  /* ===== NAMED ACCENTS ===== */
/* ===== NAMED ACCENTS ===== */
  --accent: var(--theme-accent-color);
--accent: var(--theme-accent-color);
  --player: var(--color-player);
--player: var(--color-player);
  --npc: var(--color-npc);
--npc: var(--color-npc);


  /* ===== INPUTS ===== */
/* ===== INPUTS ===== */
  --input-bg: #2d3748;
--input-bg: #2d3748;
  --input-border: #4a5568;
--input-border: #4a5568;
  --input-border-focus: var(--theme-accent-color);
--input-border-focus: var(--theme-accent-color);
  --input-text: var(--theme-page-text-color);
--input-text: var(--theme-page-text-color);
  --input-placeholder: #718096;
--input-placeholder: #718096;


  /* ===== CODE & PRE ===== */
/* ===== CODE & PRE ===== */
  --code-bg: #2d3748;
--code-bg: #2d3748;
  --code-border: #4a5568;
--code-border: #4a5568;
  --code-text: var(--theme-page-text-color);
--code-text: var(--theme-page-text-color);
  --pre-bg: #1a202c;
--pre-bg: #1a202c;
  --pre-text: #e2e8f0;
--pre-text: #e2e8f0;


  /* ===== TABLE STYLES ===== */
/* ===== TABLE STYLES ===== */
  --table-header-bg: #2d4a4d;
--table-header-bg: #2d4a4d;
  --table-header-text: var(--theme-page-text-color);
--table-header-text: var(--theme-page-text-color);
  --table-row-even: #2a363d;
--table-row-even: #2a363d;
  --table-row-odd: #34444d;
--table-row-odd: #34444d;
  --table-border: var(--theme-border-color);
--table-border: var(--theme-border-color);
}
}


/* ===== KEYFRAME ANIMATIONS ===== */
/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes pulse {
@keyframes pulse {
  0%,
 
  100% {
0%,
    opacity: 1;
100% {
  }
opacity: 1;
  50% {
}
    opacity: 0.5;
 
  }
50% {
opacity: 0.5;
}
}
}


@keyframes spin {
@keyframes spin {
  from {
from {
    transform: rotate(0deg);
transform: rotate(0deg);
  }
}
  to {
 
    transform: rotate(360deg);
to {
  }
transform: rotate(360deg);
}
}
}


@keyframes bounce {
@keyframes bounce {
  0%,
 
  100% {
0%,
    transform: translateY(0);
100% {
  }
transform: translateY(0);
  50% {
}
    transform: translateY(-10px);
 
  }
50% {
transform: translateY(-10px);
}
}
}


Line 458: Line 492:
.mw-body a,
.mw-body a,
.mw-body-content a {
.mw-body-content a {
  text-decoration: none;
text-decoration: none;
  transition: color var(--transition-fast) ease,
transition: color var(--transition-fast) ease,
    background-color var(--transition-fast) ease,
background-color var(--transition-fast) ease,
    border-color var(--transition-fast) ease;
border-color var(--transition-fast) ease;
}
}


.mw-body a:not(.new):hover,
.mw-body a:not(.new):hover,
.mw-body-content a:not(.new):hover {
.mw-body-content a:not(.new):hover {
  text-decoration: underline;
text-decoration: underline;
  text-decoration-thickness: 2px;
text-decoration-thickness: 2px;
  text-underline-offset: 2px;
text-underline-offset: 2px;
}
}


Line 474: Line 508:
.mw-body a.new:visited,
.mw-body a.new:visited,
.mw-body-content a.new {
.mw-body-content a.new {
  color: var(--new-link-color) !important;
color: var(--new-link-color) !important;
  font-weight: var(--font-weight-semibold) !important;
font-weight: var(--font-weight-semibold) !important;
  border-bottom: 1px dashed rgba(0, 163, 163, 0.4) !important;
border-bottom: 1px dashed rgba(0, 163, 163, 0.4) !important;
  background-color: rgba(0, 163, 163, 0.08) !important;
background-color: rgba(0, 163, 163, 0.08) !important;
  padding: 1px 3px !important;
padding: 1px 3px !important;
  border-radius: var(--border-radius-sm) !important;
border-radius: var(--border-radius-sm) !important;
  transition: all var(--transition-base) ease !important;
transition: all var(--transition-base) ease !important;
}
}


.mw-body a.new:hover,
.mw-body a.new:hover,
.mw-body-content a.new:hover {
.mw-body-content a.new:hover {
  background-color: rgba(0, 163, 163, 0.15) !important;
background-color: rgba(0, 163, 163, 0.15) !important;
  border-bottom-style: solid !important;
border-bottom-style: solid !important;
  text-decoration: none !important;
text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 163, 163, 0.2) !important;
box-shadow: 0 1px 2px rgba(0, 163, 163, 0.2) !important;
}
}


Line 495: Line 529:
.skin-vector-dark .mw-body a.new:visited,
.skin-vector-dark .mw-body a.new:visited,
.skin-vector-dark .mw-body-content a.new {
.skin-vector-dark .mw-body-content a.new {
  color: var(--new-link-color) !important;
color: var(--new-link-color) !important;
  background-color: rgba(79, 209, 199, 0.1) !important;
background-color: rgba(79, 209, 199, 0.1) !important;
  border-bottom-color: rgba(79, 209, 199, 0.5) !important;
border-bottom-color: rgba(79, 209, 199, 0.5) !important;
}
}


/* ===== FOCUS STYLES ===== */
/* ===== FOCUS STYLES ===== */
*:focus {
*:focus {
  outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
  outline-offset: var(--focus-ring-offset) !important;
outline-offset: var(--focus-ring-offset) !important;
  border-radius: var(--border-radius-sm) !important;
border-radius: var(--border-radius-sm) !important;
}
}


*:focus:not(:focus-visible) {
*:focus:not(:focus-visible) {
  outline: none !important;
outline: none !important;
}
}


*:focus-visible {
*:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
  outline-offset: var(--focus-ring-offset) !important;
outline-offset: var(--focus-ring-offset) !important;
  border-radius: var(--border-radius-sm) !important;
border-radius: var(--border-radius-sm) !important;
}
}


/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
@media (prefers-reduced-motion: reduce) {
  :root {
:root {
    --transition-fast: 0ms;
--transition-fast: 0ms;
    --transition-base: 0ms;
--transition-base: 0ms;
    --transition-slow: 0ms;
--transition-slow: 0ms;
  }
}


  * {
* {
    animation-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
  }
}
}
}


/* High contrast mode support */
/* High contrast mode support */
@media (prefers-contrast: high) {
@media (prefers-contrast: high) {
  :root body:not(.skin-vector-dark) {
:root body:not(.skin-vector-dark) {
    --theme-link-color: #005652;
--theme-link-color: #005652;
    --theme-border-color: #1a2a2a;
--theme-border-color: #1a2a2a;
    --new-link-color: #007d7a;
--new-link-color: #007d7a;
  }
}


  :root .skin-vector-dark {
:root .skin-vector-dark {
    --theme-link-color: #81e6d9;
--theme-link-color: #81e6d9;
    --theme-border-color: #718096;
--theme-border-color: #718096;
    --new-link-color: #4fd1c7;
--new-link-color: #4fd1c7;
  }
}


  .mw-body a.new,
.mw-body a.new,
  .mw-body-content a.new {
.mw-body-content a.new {
    border-bottom-width: 2px !important;
border-bottom-width: 2px !important;
    background-color: transparent !important;
background-color: transparent !important;
  }
}
}
}


/* ===== PRINT STYLES ===== */
/* ===== PRINT STYLES ===== */
@media print {
@media print {
  :root {
:root {
    --theme-page-text-color: #000000;
--theme-page-text-color: #000000;
    --theme-page-background-color: #ffffff;
--theme-page-background-color: #ffffff;
    --theme-link-color: #000000;
--theme-link-color: #000000;
  }
}


  a {
a {
    color: #000000 !important;
color: #000000 !important;
    text-decoration: underline !important;
text-decoration: underline !important;
  }
}


  a.new::after {
a.new::after {
    content: " [new]";
content: " [new]";
    font-size: smaller;
font-size: smaller;
    color: #666;
color: #666;
  }
}
}
}


/* ===== UTILITY CLASSES (Optional but helpful) ===== */
/* ===== UTILITY CLASSES (Optional but helpful) ===== */
.visually-hidden {
.visually-hidden {
  position: absolute !important;
position: absolute !important;
  width: 1px !important;
width: 1px !important;
  height: 1px !important;
height: 1px !important;
  padding: 0 !important;
padding: 0 !important;
  margin: -1px !important;
margin: -1px !important;
  overflow: hidden !important;
overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
white-space: nowrap !important;
  border: 0 !important;
border: 0 !important;
}
}


.text-truncate {
.text-truncate {
  overflow: hidden;
overflow: hidden;
  text-overflow: ellipsis;
text-overflow: ellipsis;
  white-space: nowrap;
white-space: nowrap;
}
}


.text-balance {
.text-balance {
  text-wrap: balance;
text-wrap: balance;
}
}


.shadow-subtle {
.shadow-subtle {
  box-shadow: var(--shadow-sm);
box-shadow: var(--shadow-sm);
}
}


.shadow-elevated {
.shadow-elevated {
  box-shadow: var(--shadow-md);
box-shadow: var(--shadow-md);
}
}


.card {
.card {
  background-color: var(--card-bg-main);
background-color: var(--card-bg-main);
  border-radius: var(--border-radius-md);
border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border-color);
border: 1px solid var(--card-border-color);
  box-shadow: var(--theme-card-shadow);
box-shadow: var(--theme-card-shadow);
  transition: all var(--transition-base) ease;
transition: all var(--transition-base) ease;
}
}


.card:hover {
.card:hover {
  box-shadow: var(--theme-card-shadow-hover);
box-shadow: var(--theme-card-shadow-hover);
  transform: translateY(-2px);
transform: translateY(-2px);
}
}


.status-alert {
.status-alert {
  background-color: var(--theme-alert-color--secondary);
background-color: var(--theme-alert-color--secondary);
  color: var(--theme-alert-color);
color: var(--theme-alert-color);
  border-left: 4px solid var(--theme-alert-color);
border-left: 4px solid var(--theme-alert-color);
}
}


.status-warning {
.status-warning {
  background-color: var(--theme-warning-color--secondary);
background-color: var(--theme-warning-color--secondary);
  color: var(--theme-warning-color);
color: var(--theme-warning-color);
  border-left: 4px solid var(--theme-warning-color);
border-left: 4px solid var(--theme-warning-color);
}
}


.status-success {
.status-success {
  background-color: var(--theme-success-color--secondary);
background-color: var(--theme-success-color--secondary);
  color: var(--theme-success-color);
color: var(--theme-success-color);
  border-left: 4px solid var(--theme-success-color);
border-left: 4px solid var(--theme-success-color);
}
}


.status-info {
.status-info {
  background-color: var(--theme-info-color--secondary);
background-color: var(--theme-info-color--secondary);
  color: var(--theme-info-color);
color: var(--theme-info-color);
  border-left: 4px solid var(--theme-info-color);
border-left: 4px solid var(--theme-info-color);
}
}


Line 653: Line 687:
.vector-menu-heading,
.vector-menu-heading,
.ace_cursor,
.ace_cursor,
.vector-menu-content-list > a,
.vector-menu-content-list>a,
.vector-menu-heading-label {
.vector-menu-heading-label {
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
}
}
.vector-menu-heading-label {
.vector-menu-heading-label {
  font-size: 0.8125em;
font-size: 0.8125em;
}
}


Line 666: Line 701:
.ace-tm,
.ace-tm,
#mw-panel .vector-menu-heading {
#mw-panel .vector-menu-heading {
  background-color: var(--theme-page-background-color--secondary) !important;
background-color: var(--theme-page-background-color--secondary) !important;
}
}


Line 673: Line 708:
.selected.mw-list-item,
.selected.mw-list-item,
#mw-panel .vector-menu-content-list {
#mw-panel .vector-menu-content-list {
  background-color: var(--theme-page-background-color--secondary) !important;
background-color: var(--theme-page-background-color--secondary) !important;
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
}
}


/* Notification improvements */
/* Notification improvements */
.skin-vector-dark
.skin-vector-dark #mw-notification-area.mw-notification.mw-notification-type-error,
  #mw-notification-area.mw-notification.mw-notification-type-error,
.skin-vector-dark .postedit.mw-notification.mw-notification-type-error,
.skin-vector-dark .postedit.mw-notification.mw-notification-type-error,
.skin-vector-dark .wds-table-td-alert {
.skin-vector-dark .wds-table-td-alert {
  background-color: var(--theme-alert-highlight);
background-color: var(--theme-alert-highlight);
  color: var(--theme-alert-label);
color: var(--theme-alert-label);
}
}


.text-error {
.text-error {
  color: var(--theme-alert-highlight);
color: var(--theme-alert-highlight);
}
}


.diff td.diff-addedline {
.diff td.diff-addedline {
  background-color: var(--teal-050);
background-color: var(--teal-050);
  border-color: var(--theme-success-color);
border-color: var(--theme-success-color);
  border-width: 1px 1px 1px 4px;
border-width: 1px 1px 1px 4px;
  color: var(--theme-success-color);
color: var(--theme-success-color);
}
}


.diff td.diff-addedline .diffchange {
.diff td.diff-addedline .diffchange {
  background-color: var(--theme-success-color);
background-color: var(--theme-success-color);
  color: var(--theme-success-label);
color: var(--theme-success-label);
  font-weight: normal;
font-weight: normal;
}
}


.diff td.diff-deletedline {
.diff td.diff-deletedline {
  background-color: var(--theme-alert-color--secondary);
background-color: var(--theme-alert-color--secondary);
  border-color: var(--theme-alert-color);
border-color: var(--theme-alert-color);
  border-width: 1px 1px 1px 4px;
border-width: 1px 1px 1px 4px;
  color: var(--theme-alert-color);
color: var(--theme-alert-color);
}
}


.diff td.diff-deletedline .diffchange {
.diff td.diff-deletedline .diffchange {
  background-color: var(--theme-alert-color);
background-color: var(--theme-alert-color);
  color: var(--theme-alert-label);
color: var(--theme-alert-label);
  font-weight: normal;
font-weight: normal;
}
}


.diff td.diff-context {
.diff td.diff-context {
  background: transparent;
background: transparent;
  border-color: var(--theme-border-color);
border-color: var(--theme-border-color);
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
}
}


/* CodeMirror */
/* CodeMirror */
.CodeMirror .CodeMirror-scroll {
.CodeMirror .CodeMirror-scroll {
  background: var(--theme-page-background-color);
background: var(--theme-page-background-color);
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
}
}


.CodeMirror .CodeMirror-linenumber,
.CodeMirror .CodeMirror-linenumber,
.CodeMirror .CodeMirror-gutters {
.CodeMirror .CodeMirror-gutters {
  background: var(--theme-page-background-color--secondary);
background: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
  border-right: 1px solid var(--theme-border-color);
border-right: 1px solid var(--theme-border-color);
}
}


Line 738: Line 772:
.text-player,
.text-player,
.text-player * {
.text-player * {
  color: var(--color-player);
color: var(--color-player);
  font-weight: 600;
font-weight: 600;
}
}


.bg-player {
.bg-player {
  background-color: var(--color-player);
background-color: var(--color-player);
  color: var(--theme-page-text-color--inverse);
color: var(--theme-page-text-color--inverse);
  padding: 2px 6px;
padding: 2px 6px;
  border-radius: 3px;
border-radius: 3px;
}
}


.text-accent,
.text-accent,
.text-accent * {
.text-accent * {
  color: var(--color-accent);
color: var(--color-accent);
  font-weight: 600;
font-weight: 600;
}
}


.bg-accent {
.bg-accent {
  background-color: var(--color-accent);
background-color: var(--color-accent);
  color: var(--theme-accent-label-color);
color: var(--theme-accent-label-color);
  padding: 2px 6px;
padding: 2px 6px;
  border-radius: 3px;
border-radius: 3px;
}
}


Line 766: Line 800:
a[href="/wiki/User:Ais"],
a[href="/wiki/User:Ais"],
a[href="/wiki/Special:Contributions/Ais"] {
a[href="/wiki/Special:Contributions/Ais"] {
  color: var(--custom-admin-highlight);
color: var(--custom-admin-highlight);
  font-weight: 600;
font-weight: 600;
}
}


Line 777: Line 811:
a[href="/wiki/User:VoirBot"],
a[href="/wiki/User:VoirBot"],
a[href="/wiki/Special:Contributions/VoirBot"] {
a[href="/wiki/Special:Contributions/VoirBot"] {
  color: var(--custom-bot-color);
color: var(--custom-bot-color);
  font-style: var(--custom-bot-font-style);
font-style: var(--custom-bot-font-style);
  opacity: 0.9;
opacity: 0.9;
}
}


/* Additional improvements for better readability */
/* Additional improvements for better readability */
.mw-body-content {
.mw-body-content {
  line-height: 1.6;
line-height: 1.6;
}
}


/* Improve contrast for links */
/* Improve contrast for links */
a {
a {
  transition: color 0.2s ease;
transition: color 0.2s ease;
}
}


a:hover {
a:hover {
  text-decoration: underline;
text-decoration: underline;
}
}


/* Improve table readability */
/* Improve table readability */
.mw-parser-output table {
.mw-parser-output table {
  background-color: var(--theme-page-background-color);
background-color: var(--theme-page-background-color);
  border: none;
border: none;
}
}


.mw-parser-output table th {
.mw-parser-output table th {
  background-color: var(--theme-page-background-color--secondary);
background-color: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
}
}


.mw-parser-output table td {
.mw-parser-output table td {
  border: none;
border: none;
}
}
body.skin-vector-dark {
body.skin-vector-dark {
  /*background: url("https://coralwiki.stairwaygames.com/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;*/
/*background: url("https://coralwiki.stairwaygames.com/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;*/
  background-color: #0f1419 !important;
background-color: #0f1419 !important;
  background-image: radial-gradient(
background-image: radial-gradient(circle at top,
    circle at top,
#1a2a2a 0%,
    #1a2a2a 0%,
#0f1419 100%) !important;
    #0f1419 100%
  ) !important;
}
}


Line 823: Line 855:
.mobile-only,
.mobile-only,
.no-desktop {
.no-desktop {
  display: none !important;
display: none !important;
}
}


/* || FIXES */
/* || FIXES */
.wikiEditor-ui-text > .ui-resizable {
.wikiEditor-ui-text>.ui-resizable {
  width: 100% !important;
width: 100% !important;
  max-width: 100%;
max-width: 100%;
}
}
ul {
ul {
  list-style: disc;
list-style: disc;
}
}


Line 838: Line 871:
h3 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
h4 .mw-headline {
  font-weight: 500;
font-weight: 500;
}
}


Line 845: Line 878:
.vector-body h5,
.vector-body h5,
.vector-body h6 {
.vector-body h6 {
  margin-bottom: 4px;
margin-bottom: 4px;
}
}


Line 852: Line 885:
a:active,
a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
.mw-parser-output a:is(.external, .external:visited, .external:active) {
  color: var(--theme-link-color);
color: var(--theme-link-color);
}
}
#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(--mw-head-link-color, var(--theme-page-text-color));
color: var(--mw-head-link-color, var(--theme-page-text-color));
}
}
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
  color: var(--theme-link-color);
color: var(--theme-link-color);
}
}


.mw-parser-output a.external {
.mw-parser-output a.external {
  padding-right: 0;
padding-right: 0;
  font-size: inherit;
font-size: inherit;
}
}


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


.CodeMirror-lines span {
.CodeMirror-lines span {
  font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace; /* Source Editor */
font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
/* Source Editor */
}
}


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


.mw-input .mw-abusefilter-editor * {
.mw-input .mw-abusefilter-editor * {
  font-size: 13px;
font-size: 13px;
  font-family: monospace, monospace;
font-family: monospace, monospace;
}
}


/* Hide default TOOLBOX nav section on sidebar */
/* Hide default TOOLBOX nav section on sidebar */
#mw-navigation > #mw-panel > #p-tb {
#mw-navigation>#mw-panel>#p-tb {
  display: none;
display: none;
}
}


Line 894: Line 931:
.columntemplate ul,
.columntemplate ul,
.columntemplate ol {
.columntemplate ol {
  margin-top: 0;
margin-top: 0;
}
}


/* RC */
/* RC */
.mw-changeslist table {
.mw-changeslist table {
  width: unset;
width: unset;
}
}


.gift-table .icon-list-container {
.gift-table .icon-list-container {
  width: auto;
width: auto;
}
}


/* Quote template */
/* Quote template */
.quotetable {
.quotetable {
  width: auto;
width: auto;
}
}


.Bug6200 {
.Bug6200 {
  margin-bottom: 0.75em;
margin-bottom: 0.75em;
}
}


Line 918: Line 955:
code,
code,
pre {
pre {
  background-color: var(--theme-page-background-color--secondary);
background-color: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
  border: 1px solid var(--theme-border-color);
border: 1px solid var(--theme-border-color);
  border-radius: 2px;
border-radius: 2px;
  padding: 1px 4px;
padding: 1px 4px;
  font-family: monospace, monospace;
font-family: monospace, monospace;
  font-size: 13px;
font-size: 13px;
}
}


code.code-block-table {
code.code-block-table {
  display: table;
display: table;
  line-height: 21px;
line-height: 21px;
  padding: 8px;
padding: 8px;
}
}


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


.code-block {
.code-block {
  display: inline-block;
display: inline-block;
  line-height: 21px;
line-height: 21px;
}
}


Line 945: Line 982:
/*banner links*/
/*banner links*/
.banner-links a {
.banner-links a {
  color: #ffffff !important;
color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  font-weight: 600 !important;
font-weight: 600 !important;
}
}
/* mp-banner */
/* mp-banner */
#mp-banner {
#mp-banner {
  position: absolute;
position: absolute;
  width: 100%;
width: 100%;
  height: 10%;
height: 10%;
  filter: blur(0px);
filter: blur(0px);
  z-index: -1;
z-index: -1;
  background: url(filepath://Temporary-banner-top.jpg) top center/cover
background: url(filepath://Temporary-banner-top.jpg) top center/cover no-repeat;
    no-repeat;
background-color: #000000;
  background-color: #000000;
background-size: cover;
  background-size: cover;
background-repeat: no-repeat;
  background-repeat: no-repeat;
background-position: top center;
  background-position: top center;
}
}
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-submit h1.firstHeading {
body.page-Main_Page.action-submit h1.firstHeading {
  display: none;
display: none;
}
}
body.page-Main_Page.action-view .main-page-top {
body.page-Main_Page.action-view .main-page-top {
  /* background-image: url(https://coralwiki.stairwaygames.com/w/images/c/c2/441Cover_image_only.png); */
/* background-image: url(https://coralwiki.stairwaygames.com/w/images/c/c2/441Cover_image_only.png); */
  background-color: var(--theme-page-background-color--secondary, #000000);
background-color: var(--theme-page-background-color--secondary, #000000);
  background-repeat: no-repeat;
background-repeat: no-repeat;
  background-size: cover;
background-size: cover;
  width: 100%;
width: 100%;
  height: 100%;
height: 100%;
  display: flex;
display: flex;
  flex-direction: column;
flex-direction: column;
  gap: 4px;
gap: 4px;
  color: #fffff;
color: #fffff;
  text-align: center;
text-align: center;
  align-items: center;
align-items: center;
}
}


/* ||TABLE OF CONTENTS */
/* ||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-color--secondary);
  border: 1px solid var(--theme-border-color);
border: 1px solid var(--theme-border-color);
  margin-top: 16px;
margin-top: 16px;
}
}
.toctogglelabel {
.toctogglelabel {
  color: var(--theme-link-color);
color: var(--theme-link-color);
}
}
.tocnumber {
.tocnumber {
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
}
}


.vector-body .toc h2 {
.vector-body .toc h2 {
  font-family: var(--font-family-headings);
font-family: var(--font-family-headings);
  font-weight: bold;
font-weight: bold;
}
}


Line 1,009: Line 1,050:
.toclimit-6 .toclevel-5 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
.toclimit-7 .toclevel-6 ul {
  display: none;
display: none;
}
}


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


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


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


/* For Template:Chat */
/* For Template:Chat */
.chat-wrapper {
.chat-wrapper {
  display: flex;
display: flex;
  flex-direction: column;
flex-direction: column;
}
}


.chat-player,
.chat-player,
.chat-npc {
.chat-npc {
  display: flex;
display: flex;
  flex-direction: row;
flex-direction: row;
  gap: 0.5em;
gap: 0.5em;
}
}


.chat-player-speaker {
.chat-player-speaker {
  white-space: nowrap;
white-space: nowrap;
  min-width: 70px;
min-width: 70px;
  color: rgb(105, 172, 82);
color: rgb(105, 172, 82);
}
}


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


/* Hatnote */
/* Hatnote */
.hatnote {
.hatnote {
  display: flex;
display: flex;
  align-items: center;
align-items: center;
  padding: 10px 15px;
padding: 10px 15px;
  margin-top: 0.6rem;
margin-top: 0.6rem;
  margin-bottom: 0.8rem;
margin-bottom: 0.8rem;
  background-color: var(--color-surface-2);
background-color: var(--color-surface-2);
  border: 1px solid var(--border-color-base--darker);
border: 1px solid var(--border-color-base--darker);
  border-radius: var(--border-radius-base);
border-radius: var(--border-radius-base);
  color: var(--color-base--emphasized);
color: var(--color-base--emphasized);
  font-size: 0.875rem;
font-size: 0.875rem;
  line-height: 1.4;
line-height: 1.4;
}
}


.hatnote-icon img {
.hatnote-icon img {
  width: 14px;
width: 14px;
  height: auto;
height: auto;
  margin-right: 10px;
margin-right: 10px;
  opacity: var(--opacity-icon-base);
opacity: var(--opacity-icon-base);
}
}


.hatnote.hatnote-high {
.hatnote.hatnote-high {
  background-color: var(--background-color-destructive-subtle);
background-color: var(--background-color-destructive-subtle);
  border-color: var(--color-destructive);
border-color: var(--color-destructive);
}
}


.hatnote.hatnote-medium {
.hatnote.hatnote-medium {
  background-color: var(--background-color-warning-subtle);
background-color: var(--background-color-warning-subtle);
  border-color: var(--color-warning);
border-color: var(--color-warning);
}
}


.hatnote.hatnote-low {
.hatnote.hatnote-low {
  background-color: var(--color-surface-2);
background-color: var(--color-surface-2);
}
}


/* Dark mode */
/* Dark mode */
html.skin-citizen-dark .hatnote-icon img {
html.skin-citizen-dark .hatnote-icon img {
  filter: invert(1);
filter: invert(1);
}
}


/* For [[Module:Formatting]] */
/* For [[Module:Formatting]] */
code.code-block {
code.code-block {
  display: inline-block;
display: inline-block;
  line-height: 21px;
line-height: 21px;
}
}
code.code-block-table {
code.code-block-table {
  display: table;
display: table;
  line-height: 21px;
line-height: 21px;
}
}
span.variable {
span.variable {
  opacity: 0.65;
opacity: 0.65;
}
}
span.variable::after {
span.variable::after {
  opacity: 0.65;
opacity: 0.65;
  content: ">";
content: ">";
}
}
span.variable::before {
span.variable::before {
  opacity: 0.65;
opacity: 0.65;
  content: "<";
content: "<";
}
}


Line 1,127: Line 1,172:


.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(--accent);
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;
}
}


.pull-quote__source::before {
.pull-quote__source::before {
  content: "— ";
content: "— ";
  margin-bottom: 8px;
margin-bottom: 8px;
}
}


.pull-quote__text {
.pull-quote__text {
  margin-bottom: 4px;
margin-bottom: 4px;
}
}


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


/* Fix to Template Data */
/* Fix to Template Data */
.mw-templatedata-doc-params > * > tr > th {
.mw-templatedata-doc-params>*>tr>th {
  width: 150px;
width: 150px;
}
}


.mw-templatedata-doc-params {
.mw-templatedata-doc-params {
  width: auto;
width: auto;
  max-width: 100%;
max-width: 100%;
}
}


/* Space sidebar arrows properly */
/* Space sidebar arrows properly */
#mw-panel.collapsible-nav
#mw-panel.collapsible-nav .portal:is(.collapsed, .expanded) .vector-menu-heading {
  .portal:is(.collapsed, .expanded)
background-position: 95% center;
  .vector-menu-heading {
  background-position: 95% center;
}
}


/* Theme toggle */
/* Theme toggle */
.wds-icon {
.wds-icon {
  align-self: center;
align-self: center;
  margin: 0 6px;
margin: 0 6px;
  pointer-events: none;
pointer-events: none;
  fill: currentColor;
fill: currentColor;
}
}
.wds-icon-small {
.wds-icon-small {
  height: 18px;
height: 18px;
  min-width: 18px;
min-width: 18px;
  width: 18px;
width: 18px;
}
}
#p-personal .vector-menu-content-list {
#p-personal .vector-menu-content-list {
  display: flex;
display: flex;
  flex-wrap: wrap;
flex-wrap: wrap;
  gap: 0.5em;
gap: 0.5em;
  font-size: 0.875em;
font-size: 0.875em;
}
}
.cols {
.cols {
  background-color: var(--theme-page-background-color--secondary);
background-color: var(--theme-page-background-color--secondary);
}
}
#pagehistory li.selected {
#pagehistory li.selected {
  background-color: var(--theme-page-background-color--secondary);
background-color: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
color: var(--theme-page-text-color);
  outline: 1px dashed var(--theme-border-color);
outline: 1px dashed var(--theme-border-color);
}
}
/* ===== IMproved Main Page Framework CSS ===== */
/* ===== IMproved Main Page Framework CSS ===== */


#mp-container {
#mp-container {
  display: grid;
display: grid;
  gap: 20px;
gap: 20px;
  margin: 20px 0;
margin: 20px 0;
  width: 100%;
width: 100%;
  min-width: 100%;
min-width: 100%;
}
}


/* Desktop layout */
/* Desktop layout */
#mp-container {
#mp-container {
  grid-template-areas: var(--main-page-layout--desktop, "");
grid-template-areas: var(--main-page-layout--desktop, "");
  grid-template-columns: var(
grid-template-columns: var(--main-page-layout-columns--desktop,
    --main-page-layout-columns--desktop,
repeat(3, 1fr));
    repeat(3, 1fr)
  );
}
}


/* Tablet layout */
/* Tablet layout */
@media (max-width: 1024px) {
@media (max-width: 1024px) {
  #mp-container {
#mp-container {
    grid-template-areas: var(
grid-template-areas: var(--main-page-layout--tablet,
      --main-page-layout--tablet,
var(--main-page-layout--desktop, ""));
      var(--main-page-layout--desktop, "")
grid-template-columns: var(--main-page-layout-columns--tablet,
    );
var(--main-page-layout-columns--desktop, repeat(2, 1fr)));
    grid-template-columns: var(
}
      --main-page-layout-columns--tablet,
      var(--main-page-layout-columns--desktop, repeat(2, 1fr))
    );
  }
}
}


/* Mobile layout */
/* Mobile layout */
@media (max-width: 768px) {
@media (max-width: 768px) {
  #mp-container {
#mp-container {
    grid-template-areas: var(
grid-template-areas: var(--main-page-layout--mobile,
      --main-page-layout--mobile,
var(--main-page-layout--tablet, var(--main-page-layout--desktop, "")));
      var(--main-page-layout--tablet, var(--main-page-layout--desktop, ""))
grid-template-columns: var(--main-page-layout-columns--mobile,
    );
var(--main-page-layout-columns--tablet,
    grid-template-columns: var(
var(--main-page-layout-columns--desktop, 1fr)));
      --main-page-layout-columns--mobile,
}
      var(
        --main-page-layout-columns--tablet,
        var(--main-page-layout-columns--desktop, 1fr)
      )
    );
  }
}
}
/* Social Links Improvements */
/* Social Links Improvements */
/* Clean social links styling -  theme colors */
/* Clean social links styling -  theme colors */
.social {
.social {
  position: relative;
position: relative;
  z-index: 999;
z-index: 999;
  text-align: center;
text-align: center;
  margin: 20px auto;
margin: 20px auto;
  padding: 15px 0;
padding: 15px 0;
  max-width: 85%;
max-width: 85%;
  backdrop-filter: blur;
backdrop-filter: blur;
  background: var(--theme-page-background-color--secondary);
background: var(--theme-page-background-color--secondary);
  border-radius: 12px;
border-radius: 12px;
  border: 1px solid var(--theme-border-color);
border: 1px solid var(--theme-border-color);
  box-shadow: var(--shadow-sm);
box-shadow: var(--shadow-sm);
  display: flex;
display: flex;
  flex-wrap: wrap;
flex-wrap: wrap;
  justify-content: center;
justify-content: center;
  align-items: center;
align-items: center;
  gap: 15px;
gap: 15px;
}
}


/* Each social link item */
/* Each social link item */
.social .iconname {
.social .iconname {
  display: inline-flex;
display: inline-flex;
  align-items: center;
align-items: center;
  justify-content: center;
justify-content: center;
  min-width: 180px;
min-width: 180px;
  padding: 12px 20px;
padding: 12px 20px;
  background: var(--theme-page-background-color);
background: var(--theme-page-background-color);
  border-radius: 8px;
border-radius: 8px;
  border: 1px solid var(--theme-border-color);
border: 1px solid var(--theme-border-color);
  transition: all 0.3s ease;
transition: all 0.3s ease;
  flex: 1;
flex: 1;
  max-width: 200px;
max-width: 200px;
}
}


/* Hover effect */
/* Hover effect */
.social .iconname:hover {
.social .iconname:hover {
  background: var(--theme-accent-bg) !important;
background: var(--theme-accent-bg) !important;
  transform: translateY(-2px);
transform: translateY(-2px);
  box-shadow: var(--shadow-md);
box-shadow: var(--shadow-md);
  border-color: var(--theme-accent-color);
border-color: var(--theme-accent-color);
}
}


/* The link inside - uses theme colors */
/* The link inside - uses theme colors */
.social .iconname a.external {
.social .iconname a.external {
  display: flex !important;
display: flex !important;
  align-items: center !important;
align-items: center !important;
  text-decoration: none !important;
text-decoration: none !important;
  color: var(--theme-page-text-color) !important;
color: var(--theme-page-text-color) !important;
  font-weight: var(--font-weight-medium) !important;
font-weight: var(--font-weight-medium) !important;
  width: 100%;
width: 100%;
  height: 100%;
height: 100%;
  padding: 0;
padding: 0;
  margin: 0;
margin: 0;
}
}


/* Hover text color */
/* Hover text color */
.social .iconname:hover a.external {
.social .iconname:hover a.external {
  color: var(--theme-link-color) !important;
color: var(--theme-link-color) !important;
}
}


/* Icon container */
/* Icon container */
.social .iconname .floatleft {
.social .iconname .floatleft {
  display: flex !important;
display: flex !important;
  align-items: center !important;
align-items: center !important;
  margin-right: 10px !important;
margin-right: 10px !important;
  margin-bottom: 0 !important;
margin-bottom: 0 !important;
  float: none !important;
float: none !important;
}
}


/* Icon image - no filter, keep original */
/* Icon image - no filter, keep original */
.social .iconname .floatleft a img {
.social .iconname .floatleft a img {
  width: 20px !important;
width: 20px !important;
  height: 20px !important;
height: 20px !important;
  margin: 0 !important;
margin: 0 !important;
  padding: 0 !important;
padding: 0 !important;
  display: block !important;
display: block !important;
  /* Remove filter - keep original icon colors */
/* Remove filter - keep original icon colors */
  filter: none !important;
filter: none !important;
}
}


/* Text next to icon */
/* Text next to icon */
.social .iconname .external-text {
.social .iconname .external-text {
  display: inline !important;
display: inline !important;
  margin: 0 !important;
margin: 0 !important;
  padding: 0 !important;
padding: 0 !important;
  line-height: 1.4 !important;
line-height: 1.4 !important;
}
}


/* Responsive design */
/* Responsive design */
@media (max-width: 1024px) {
@media (max-width: 1024px) {
  .social {
.social {
    max-width: 95% !important;
max-width: 95% !important;
    gap: 10px;
gap: 10px;
  }
}


  .social .iconname {
.social .iconname {
    min-width: 160px;
min-width: 160px;
    padding: 10px 15px;
padding: 10px 15px;
  }
}
}
}


@media (max-width: 768px) {
@media (max-width: 768px) {
  .social {
.social {
    flex-direction: column;
flex-direction: column;
    gap: 8px;
gap: 8px;
    max-width: 100% !important;
max-width: 100% !important;
    padding: 10px;
padding: 10px;
  }
}


  .social .iconname {
.social .iconname {
    width: 100% !important;
width: 100% !important;
    max-width: 100% !important;
max-width: 100% !important;
    min-width: auto !important;
min-width: auto !important;
    justify-content: flex-start;
justify-content: flex-start;
    padding: 10px 20px;
padding: 10px 20px;
  }
}


  .social .iconname a.external {
.social .iconname a.external {
    justify-content: flex-start;
justify-content: flex-start;
  }
}
}
}
/* Main Page Layout */
/* Main Page Layout */
.game-intro-card {
.game-intro-card {
  background: var(--card-bg-main);
background: var(--card-bg-main);
  border-radius: var(--border-radius-lg);
border-radius: var(--border-radius-lg);
  border: 1px solid var(--theme-border-color);
border: 1px solid var(--theme-border-color);
  overflow: hidden;
overflow: hidden;
  box-shadow: var(--shadow-md);
box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base) ease;
transition: all var(--transition-base) ease;
  position: relative; /* For better z-index control */
position: relative;
/* For better z-index control */
}
}


.game-intro-card:hover {
.game-intro-card:hover {
  box-shadow: var(--shadow-lg);
box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
transform: translateY(-2px);
  border-color: var(--teal-300);
border-color: var(--teal-300);
}
}


.game-header {
.game-header {
  background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
  padding: var(--spacing-md) var(--spacing-lg);
padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
display: flex;
  flex-direction: column;
flex-direction: column;
  position: relative;
position: relative;
}
}


.game-header::after {
.game-header::after {
  content: "";
content: "";
  position: absolute;
position: absolute;
  top: 0;
top: 0;
  left: 0;
left: 0;
  right: 0;
right: 0;
  bottom: 0;
bottom: 0;
  background: linear-gradient(
background: linear-gradient(45deg,
    45deg,
transparent 0%,
    transparent 0%,
rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.05) 50%,
transparent 100%);
    transparent 100%
pointer-events: none;
  );
  pointer-events: none;
}
}


.mana-text,
.mana-text,
.mana-text h2 {
.mana-text h2 {
  font-size: 1.8em;
font-size: 1.8em;
  font-weight: 900;
font-weight: 900;
  letter-spacing: 2px;
letter-spacing: 2px;
  color: #fff;
color: #fff;
  text-shadow: 0 0 10px rgba(162, 242, 225, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
text-shadow: 0 0 10px rgba(162, 242, 225, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
position: relative;
  z-index: 1;
z-index: 1;
  margin: 0;
margin: 0;
  text-decoration: none !important; /* Add this line */
text-decoration: none !important;
  border-bottom: none !important; /* Ensure no border */
/* Add this line */
border-bottom: none !important;
/* Ensure no border */
}
}


Line 1,431: Line 1,470:
.game-intro-card .mana-text,
.game-intro-card .mana-text,
.game-header h2 {
.game-header h2 {
  text-decoration: none !important;
text-decoration: none !important;
  border-bottom: none !important;
border-bottom: none !important;
}
}


.mana-line {
.mana-line {
  height: 3px;
height: 3px;
  width: 100px;
width: 100px;
  background: var(--teal-200);
background: var(--teal-200);
  margin-top: var(--spacing-xs);
margin-top: var(--spacing-xs);
  border-radius: 2px;
border-radius: 2px;
  transition: width var(--transition-base) ease;
transition: width var(--transition-base) ease;
}
}


.game-intro-card:hover .mana-line {
.game-intro-card:hover .mana-line {
  width: 107px;
width: 107px;
}
}


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


Line 1,457: Line 1,496:
.updates-list.grid-style,
.updates-list.grid-style,
.game-content ul.grid-style {
.game-content ul.grid-style {
  display: grid;
display: grid;
  gap: 4px;
gap: 4px;
  padding-left: 0;
padding-left: 0;
}
}


.updates-list.grid-style li,
.updates-list.grid-style li,
.game-content ul.grid-style li {
.game-content ul.grid-style li {
  display: grid;
display: grid;
  grid-template-columns: 20px 1fr;
grid-template-columns: 20px 1fr;
  align-items: center;
align-items: center;
  gap: 8px;
gap: 8px;
  padding: 4px 0;
padding: 4px 0;
}
}


.updates-list.grid-style li::before,
.updates-list.grid-style li::before,
.game-content ul.grid-style li::before {
.game-content ul.grid-style li::before {
  position: static;
position: static;
  transform: none;
transform: none;
  left: auto;
left: auto;
  top: auto;
top: auto;
  grid-column: 1;
grid-column: 1;
  text-align: center;
text-align: center;
}
}


.updates-list.grid-style li span,
.updates-list.grid-style li span,
.game-content ul.grid-style li span {
.game-content ul.grid-style li span {
  grid-column: 2;
grid-column: 2;
}
}


.game-content a {
.game-content a {
  color: var(--theme-link-color);
color: var(--theme-link-color);
  text-decoration: none;
text-decoration: none;
  font-weight: 600;
font-weight: 600;
  transition: all var(--transition-fast) ease;
transition: all var(--transition-fast) ease;
  position: relative;
position: relative;
}
}


.game-content a:hover {
.game-content a:hover {
  text-decoration: underline;
text-decoration: underline;
  text-underline-offset: 3px; /* Better underline positioning */
text-underline-offset: 3px;
/* Better underline positioning */
}
}


.game-content a::after {
.game-content a::after {
  content: "";
content: "";
  position: absolute;
position: absolute;
  bottom: -2px;
bottom: -2px;
  left: 0;
left: 0;
  width: 0;
width: 0;
  height: 2px;
height: 2px;
  background: var(--teal-300);
background: var(--teal-300);
  transition: width var(--transition-fast) ease;
transition: width var(--transition-fast) ease;
}
}


.game-content a:hover::after {
.game-content a:hover::after {
  width: 100%;
width: 100%;
}
}


/* Responsive adjustments - refined */
/* Responsive adjustments - refined */
@media (max-width: 768px) {
@media (max-width: 768px) {
  .game-intro-card {
.game-intro-card {
    margin: var(--spacing-sm);
margin: var(--spacing-sm);
    border-radius: var(--border-radius-md);
border-radius: var(--border-radius-md);
  }
}


  .game-header {
.game-header {
    padding: var(--spacing-sm) var(--spacing-md);
padding: var(--spacing-sm) var(--spacing-md);
  }
}


  .mana-text {
.mana-text {
    font-size: 1.5em;
font-size: 1.5em;
    letter-spacing: 1px;
letter-spacing: 1px;
  }
}


  .mana-line {
.mana-line {
    width: 40px;
width: 40px;
  }
}


  .game-content {
.game-content {
    padding: var(--spacing-md);
padding: var(--spacing-md);
  }
}


  .game-content,
.game-content,
  .updates-list li {
.updates-list li {
    font-size: 1em;
font-size: 1em;
  }
}


  .updates-list,
.updates-list,
  .game-content ul {
.game-content ul {
    padding-left: var(--spacing-md);
padding-left: var(--spacing-md);
  }
}


  .updates-list li:before,
.updates-list li:before,
  .game-content li:before {
.game-content li:before {
    left: calc(-1 * var(--spacing-md));
left: calc(-1 * var(--spacing-md));
  }
}
}
}


/* Dark theme adjustments - refined */
/* Dark theme adjustments - refined */
.skin-vector-dark .game-intro-card {
.skin-vector-dark .game-intro-card {
  background: var(--card-bg-elevated);
background: var(--card-bg-elevated);
}
}


.skin-vector-dark .game-header {
.skin-vector-dark .game-header {
  background: linear-gradient(
background: linear-gradient(90deg,
    90deg,
color-mix(in srgb, var(--teal-700) 80%, black 20%) 0%,
    color-mix(in srgb, var(--teal-700) 80%, black 20%) 0%,
color-mix(in srgb, var(--teal-900) 80%, black 20%) 100%);
    color-mix(in srgb, var(--teal-900) 80%, black 20%) 100%
  );
}
}


.skin-vector-dark .mana-text {
.skin-vector-dark .mana-text {
  text-shadow: 0 0 10px rgba(95, 217, 207, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
text-shadow: 0 0 10px rgba(95, 217, 207, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
}
}


.skin-vector-dark .updates-list li:before,
.skin-vector-dark .updates-list li:before,
.skin-vector-dark .game-content li:before {
.skin-vector-dark .game-content li:before {
  color: var(--teal-400);
color: var(--teal-400);
}
}


/* Focus states for accessibility */
/* Focus states for accessibility */
.game-content a:focus {
.game-content a:focus {
  outline: 2px solid var(--focus-ring-color);
outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
outline-offset: 2px;
  border-radius: 2px;
border-radius: 2px;
}
}


/* Reduced motion support */
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
@media (prefers-reduced-motion: reduce) {
  .game-intro-card,
  .game-intro-card:hover,
  .mana-line,
  .updates-list li,
  .updates-list li:before,
  .game-content li,
  .game-content li:before,
  .game-content a,
  .game-content a::after {
    transition: none;
  }


  .game-intro-card:hover {
.game-intro-card,
    transform: none;
.game-intro-card:hover,
  }
.mana-line,
.updates-list li,
.updates-list li:before,
.game-content li,
.game-content li:before,
.game-content a,
.game-content a::after {
transition: none;
}
 
.game-intro-card:hover {
transform: none;
}
}
}
body {
body {
  font-family: Helvetica, Arial, sans-serif !important;
font-family: Helvetica, Arial, sans-serif !important;
  background-color: @background-color-secondary;
background-color: @background-color-secondary;
  /* background: url("https://mbwiki.stairwaygames.work/w/images/3/3d/384Web_background.png")*/
/* background: url("https://mbwiki.stairwaygames.work/w/images/3/3d/384Web_background.png")*/
  background-color: rgba(0, 0, 0, 0.1) !important;
background-color: rgba(0, 0, 0, 0.1) !important;
  overflow-y: scroll;
overflow-y: scroll;
}
}


ul {
ul {
  list-style: none;
list-style: none;
}
}


.wikitable,
.wikitable,
.scheduletable {
.scheduletable {
  table-layout: auto;
    width: auto;
  width: 100%;
    min-width: 300px;
    max-width: 100%;
    margin: 1.5em auto;
    border-collapse: collapse;
    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);
    table-layout: auto;  
}
}


.scheduletable {
.fishtable {
  table-layout: auto;
table-layout: auto;
  width: 30%;
width: 100%;
}
}


.fishtable {
  table-layout: auto;
  width: 100%;
}
.artisan-table {
.artisan-table {
  table-layout: auto;
table-layout: auto;
  width: 60%;
width: 60%;
  border-spacing: 0;
border-spacing: 0;
  max-width: 100%;
max-width: 100%;
  margin: 15px;
margin: 15px;
  border: 1px solid gray;
border: 1px solid gray;
}
}


.artisan-table > tr > th,
.artisan-table>tr>th,
.artisan-table > * > tr > th {
.artisan-table>*>tr>th {
  background-color: #e7c361 !important;
background-color: #e7c361 !important;
  max-width: fit-content;
max-width: fit-content;
}
}
.artisan-table > tr > th,
 
.artisan-table > tr > td,
.artisan-table>tr>th,
.artisan-table > * > tr > th,
.artisan-table>tr>td,
.artisan-table > * > tr > td {
.artisan-table>*>tr>th,
  border: 1px solid #a2a9b1;
.artisan-table>*>tr>td {
  padding: 0.2em 0.4em;
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
}
}
.quotetable {
.quotetable {
  border-spacing: 0;
border-spacing: 0;
  width: 100%;
width: 100%;
  max-width: 100%;
max-width: 100%;
}
}
.quotetable > caption {
 
  text-align: left;
.quotetable>caption {
text-align: left;
}
}
.heart {
.heart {
  margin-left: -7px;
margin-left: -7px;
  margin-bottom: 5px;
margin-bottom: 5px;
}
}
.quotetable > tbody > tr > td {
 
  padding: 0;
.quotetable>tbody>tr>td {
padding: 0;
}
}
blockquote {
blockquote {
  margin: 0 10px;
margin: 0 10px;
}
}
.detail-list ul {
.detail-list ul {
  list-style: none;
list-style: none;
}
}
caption .mw-collapsible-toggle,
caption .mw-collapsible-toggle,
.mw-content-ltr caption .mw-collapsible-toggle,
.mw-content-ltr caption .mw-collapsible-toggle,
Line 1,675: Line 1,729:
.mw-content-rtl .mw-content-ltr caption .mw-collapsible-toggle,
.mw-content-rtl .mw-content-ltr caption .mw-collapsible-toggle,
.mw-content-ltr .mw-content-rtl caption .mw-collapsible-toggle {
.mw-content-ltr .mw-content-rtl caption .mw-collapsible-toggle {
  float: right;
float: right;
}
}
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-submit h1.firstHeading {
body.page-Main_Page.action-submit h1.firstHeading {
  display: none;
display: none;
}
}
.ci-letter-wrapper {
.ci-letter-wrapper {
  border-radius: 20px;
border-radius: 20px;
  padding: 20px;
padding: 20px;
  max-width: 35em;
max-width: 35em;
  font-weight: 700;
font-weight: 700;
  background: #faf3ea;
background: #faf3ea;
}
}
.ci-letter-header {
.ci-letter-header {
  padding-bottom: 28px;
padding-bottom: 28px;
}
}
.ci-letter-content {
.ci-letter-content {
  font-weight: 400;
font-weight: 400;
}
}
.ci-letter-footer {
.ci-letter-footer {
  display: flex;
display: flex;
  padding-top: 28px;
padding-top: 28px;
  justify-content: space-between;
justify-content: space-between;
  font-weight: 700;
font-weight: 700;
  align-items: center;
align-items: center;
}
}
.ci-letter-attachment {
.ci-letter-attachment {
  max-width: 70%;
max-width: 70%;
}
}


.card-list-container {
.card-list-container {
  display: flex;
display: flex;
  flex-wrap: wrap;
flex-wrap: wrap;
  gap: 5px;
gap: 5px;
}
}
.custom-card {
.custom-card {
  display: inline-block;
display: inline-block;
  position: relative;
position: relative;
  width: fit-content;
width: fit-content;
  align-self: baseline;
align-self: baseline;
}
}
.custom-card-body {
.custom-card-body {
  display: inline-block;
display: inline-block;
  position: relative;
position: relative;
  width: fit-content;
width: fit-content;
  align-self: baseline;
align-self: baseline;
  background: #f6e6cf;
background: #f6e6cf;
  border-radius: 12px;
border-radius: 12px;
  text-align: center;
text-align: center;
  overflow: hidden;
overflow: hidden;
}
}
.custom-card-image {
.custom-card-image {
  width: 60px;
width: 60px;
  height: 60px;
height: 60px;
  padding: 4px;
padding: 4px;
}
}
.custom-card-amount {
.custom-card-amount {
  background: #e9cda2;
background: #e9cda2;
  text-align: center;
text-align: center;
  border-radius: 0 0 5px 5px;
border-radius: 0 0 5px 5px;
  padding: 4px 0;
padding: 4px 0;
  white-space: nowrap;
white-space: nowrap;
  line-height: 1;
line-height: 1;
  font-size: 12px;
font-size: 12px;
  hyphens: auto;
hyphens: auto;
  overflow-wrap: break-word;
overflow-wrap: break-word;
}
}
.custom-card-caption {
.custom-card-caption {
  width: 56px;
width: 56px;
  text-align: center;
text-align: center;
  line-height: 1;
line-height: 1;
  font-size: 12px;
font-size: 12px;
  hyphens: auto;
hyphens: auto;
  overflow-wrap: break-word;
overflow-wrap: break-word;
}
}
/* ===== IMPROVED WIKITABLE STYLES ===== */
/* Base wikitable - consolidated and improved */
.wikitable {
.wikitable {
  background-color: transparent !important;
    width: 100%;
  // min-width: -webkit-fill-available !important;
    margin: 1.5em 0;
  // table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--table-border, var(--theme-border-color));
    background-color: var(--card-bg-main, #ffffff);
    border-radius: var(--border-radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
}


.cost-template {
/* Header styling */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  gap: 0.2rem;
}
.cost-detail {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.client-js
  .sortable:not(.jquery-tablesorter)
  > *
  > tr:first-child
  > th:not(.unsortable),
.jquery-tablesorter th.headerSort {
  font-size: 10px;
  white-space: normal;
}
.wikitable > tr > th,
.wikitable > tr > th,
.wikitable > * > tr > th {
.wikitable > * > tr > th {
  background-color: #e7c361 !important;
    background: linear-gradient(135deg,
  max-width: fit-content;
        var(--teal-600, #2c7a7b) 0%,
        var(--teal-700, #285e61) 100%) !important;
    color: var(--theme-accent-label-color, #ffffff) !important;
    font-weight: var(--font-weight-semibold, 600);
    padding: 0.75rem 1rem !important;
    border-bottom: 2px solid var(--teal-800, #234e52) !important;
    text-align: center;
    vertical-align: middle;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    position: relative;
}
}
.heart-event-table {
 
  width: 30%;
/* Add subtle hover effect to headers */
.wikitable > tr > th:hover,
.wikitable > * > tr > th:hover {
    background: linear-gradient(135deg,
        var(--teal-500, #319795) 0%,
        var(--teal-600, #2c7a7b) 100%) !important;
}
}
.wikitable > tr > th,
 
/* Cell styling - improved readability */
.wikitable > tr > td,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
.wikitable > * > tr > td {
  // -ms-word-break: break-all;
    padding: 0.75rem 1rem !important;
  // word-break: break-all;
    border-bottom: 1px solid var(--theme-border-color--subtle, #e2e8f0);
    vertical-align: middle;
    color: var(--theme-page-text-color);
    transition: background-color var(--transition-fast);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}


  // -webkit-hyphens: auto;
/* Striped rows for better readability */
  // -moz-hyphens: auto;
.wikitable > tr:nth-child(even):not(:first-child),
  // hyphens: auto;
.wikitable > * > tr:nth-child(even):not(:first-child) {
  width: 150px;
    background-color: var(--table-row-even, rgba(56, 178, 172, 0.03));
  white-space: break-space;
  margin-left: auto;
  margin-right: auto;
}
}


.artisan-table > tr > th,
.wikitable > tr:nth-child(odd):not(:first-child),
.artisan-table > tr > td,
.wikitable > * > tr:nth-child(odd):not(:first-child) {
.artisan-table > * > tr > th,
    background-color: var(--table-row-odd, rgba(56, 178, 172, 0.01));
.artisan-table > * > tr > td:first-child {
}
  // -ms-word-break: break-all;
  // word-break: break-all;


  // -webkit-hyphens: auto;
/* Hover effect for rows */
  // -moz-hyphens: auto;
.wikitable > tr:hover:not(:first-child),
  // hyphens: auto;
.wikitable > * > tr:hover:not(:first-child) {
  width: 150px;
    background-color: rgba(56, 178, 172, 0.08) !important;
  white-space: break-space;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
}


.wikitable > tr > th,
/* First column styling (often labels) */
.wikitable > tr > td,
.wikitable > tr > td:first-child,
.wikitable > * > tr > th,
.wikitable > * > tr > td:first-child,
.wikitable > * > tr > td:first-child {
.wikitable > tr > th:first-child,
  // -ms-word-break: break-all;
.wikitable > * > tr > th:first-child {
  // word-break: break-all;
    font-weight: var(--font-weight-medium, 500);
    border-left: 3px solid transparent;
}


  // -webkit-hyphens: auto;
/* Highlight first column on hover */
  // -moz-hyphens: auto;
.wikitable > tr:hover:not(:first-child) > td:first-child,
  // hyphens: auto;
.wikitable > * > tr:hover:not(:first-child) > td:first-child {
  width: min-content;
    border-left-color: var(--teal-300, #4fd1c7);
  white-space: break-space;
    background-color: rgba(79, 209, 199, 0.1);
  margin-left: auto;
}
  margin-right: auto;
 
  text-align: center;
/* Remove last row bottom border */
.wikitable > tr:last-child > td,
.wikitable > * > tr:last-child > td {
    border-bottom: none;
}
}
.scheduletable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
  // -ms-word-break: break-all;
  // word-break: break-all;


  // -webkit-hyphens: auto;
/* Remove last cell right border */
  // -moz-hyphens: auto;
.wikitable > tr > td:last-child,
  // hyphens: auto;
.wikitable > * > tr > td:last-child,
.wikitable > tr > th:last-child,
.wikitable > * > tr > th:last-child {
    border-right: none;
}
}


.quotetable > tr > th,
/* Caption styling */
.wikitable > tr > td,
.wikitable > caption {
.wikitable > * > tr > th,
    caption-side: top;
.wikitable > * > tr > td {
    padding: 0.875rem 1rem;
  //  -ms-word-break: break-all;
    background: var(--teal-50, #e6fffa);
  //  word-break: break-all;
    color: var(--teal-800, #234e52);
    font-weight: var(--font-weight-semibold, 600);
    text-align: left;
    border-bottom: 1px solid var(--teal-200, #81e6d9);
    font-size: 1.05em;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    margin-bottom: 0;
}


  //   -webkit-hyphens: auto;
/* Collapsible toggle in caption */
  //  -moz-hyphens: auto;
.wikitable > caption .mw-collapsible-toggle {
  //  hyphens: auto;
    float: right;
    margin: -0.25rem 0;
    padding: 0.25rem 0.75rem;
    background: var(--teal-100, #b2f5ea);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--teal-300, #4fd1c7);
    color: var(--teal-700, #285e61);
    font-size: 0.85em;
    font-weight: var(--font-weight-medium, 500);
    cursor: pointer;
    transition: all var(--transition-fast);
}
}


.vector-menu-content {
.wikitable > caption .mw-collapsible-toggle:hover {
  margin-left: 10px;
    background: var(--teal-200, #81e6d9);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
}
.mw-body,
 
.parsoid-body {
/* Sortable tables */
  background-color: var(--theme-page-background-color) !important;
.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable),
  color: var(--theme-page-text-color);
.jquery-tablesorter th.headerSort {
  direction: ltr;
    cursor: pointer;
  padding: 1em;
    position: relative;
    padding-right: 2rem !important;
    user-select: none;
    transition: all var(--transition-fast);
}
}
.infobox {
 
  background: #e7c361;
.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable):hover,
  border: 1px solid #e7c361;
.jquery-tablesorter th.headerSort:hover {
  float: right;
    background: linear-gradient(135deg,
  margin: 0 0 1em 1em;
        var(--teal-500, #319795) 0%,
  padding: 1em;
        var(--teal-600, #2c7a7b) 100%) !important;
  // min-width: 25%;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3);
}
}
.infobox-title {
 
  font-size: 2em;
/* Sorting indicators */
  text-align: center;
.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable):after,
.jquery-tablesorter th.headerSort:after {
    content: "↕";
    position: absolute;
    right: 0.75rem;
    font-size: 0.85em;
    opacity: 0.6;
    transition: all var(--transition-fast);
}
}


.infobox p {
.client-js .wikitable.sortable > * > tr:first-child > th.headerSortUp:after,
  text-decoration: underline;
.jquery-tablesorter th.headerSortUp:after {
  font-size: 1.3em;
    content: "↑";
    opacity: 1;
    color: var(--theme-accent-label-color);
}
}
.infobox-image {
 
  text-align: center;
.client-js .wikitable.sortable > * > tr:first-child > th.headerSortDown:after,
.jquery-tablesorter th.headerSortDown:after {
    content: "↓";
    opacity: 1;
    color: var(--theme-accent-label-color);
}
}
.infobox-table {
 
  width: 100%;
/* Links inside tables */
.wikitable a,
.wikitable a:visited {
    color: var(--theme-link-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium, 500);
    border-bottom: 1px dotted transparent;
    transition: all var(--transition-fast);
}
}
.infobox-table th {
 
  text-align: left;
.wikitable a:hover {
  vertical-align: top;
    color: var(--theme-link-color--hover);
  width: 120px;
    text-decoration: none;
    border-bottom-color: currentColor;
}
}
.infobox-table td {
 
  vertical-align: top;
/* Images in tables */
  text-align: right;
.wikitable img {
  // color: white;
    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 > caption {
 
  text-align: left;
.wikitable a:hover img {
    transform: scale(1.05);
    border-color: var(--teal-300, #4fd1c7);
}
}
.Bug6200 {
 
  font-style: italic;
/* Specific table types - override for consistency */
  font-weight: normal;
 
  display: flex;
/* Schedule tables */
  flex-direction: row;
.scheduletable.wikitable {
  align-items: center;
    width: auto;
  white-space: normal;
    min-width: 300px;
}
}
.Bug6200 > img {
 
  width: 24px;
.scheduletable.wikitable > tr > td:first-child,
  height: 24px;
.scheduletable.wikitable > * > tr > td:first-child {
    width: 150px;
    font-weight: var(--font-weight-semibold, 600);
    background-color: rgba(56, 178, 172, 0.05);
}
}


.scheduletable {
/* Fish tables */
  text-align: center;
.fishtable.wikitable {
  margin: 10px 0;
    table-layout: fixed;
  border-collapse: collapse;
}
}


.scheduletable > tbody > tr > td {
/* Artisan tables */
  border: 1px solid #a2a9b1;
.artisan-table.wikitable {
  // text-align: left;
    width: 60%;
  // padding: 0.2em 0.4em;
    max-width: 100%;
}
}


// .scheduletable > tbody > tr > td:first-child{
.artisan-table.wikitable > tr > th,
//  width: 70px;
.artisan-table.wikitable > * > tr > th {
// }
    background-color: var(--teal-500, #319795) !important;
.navbox-list {
  padding: 0 0 0 2px;
  font-size: 10pt;
}
}
.navbox {
 
  width: 100%;
/* Heart event tables */
  margin-top: 12px;
.heart-event-table.wikitable {
  border-spacing: 0;
    width: 30%;
    min-width: 250px;
}
}
.croptable > tbody > tr > td:first-child {
 
  width: 100px !important;
/* Quote tables */
.quotetable.wikitable {
    background: var(--letter-bg, #f0fff4);
    border-color: var(--letter-border, #c6f6d5);
}
}
.navbox-title th {
 
  padding: 6px;
.quotetable.wikitable > caption {
  border-radius: 4px;
    background: var(--teal-100, #b2f5ea);
  background: #e7c361;
    color: var(--teal-800, #234e52);
}
}
.navbox-group a {
 
  color: black;
/* Responsive improvements */
}
@media screen and (max-width: 1024px) {
.alt .navbox-list {
    .wikitable {
  background-color: rgba(231, 195, 97, 0.35);
        font-size: 0.95em;
}
    }
.navbox-subgroup {
   
  margin: 0;
    .wikitable > tr > th,
  border-spacing: 0;
    .wikitable > * > tr > th,
}
    .wikitable > tr > td,
.navbox-subgroup .navbox-group {
    .wikitable > * > tr > td {
  color: black;
        padding: 0.625rem 0.75rem !important;
  background: rgba(231, 195, 97, 0.1);
    }
  white-space: nowrap;
   
  text-align: left;
    .scheduletable.wikitable {
        width: 100%;
    }
   
    .artisan-table.wikitable {
        width: 100%;
    }
   
    .heart-event-table.wikitable {
        width: 100%;
    }
}
}
th.navbox-group {
  background-color: #e7c361;
  color: black;


  font-size: 10pt;
@media screen and (max-width: 768px) {
  padding: 0.25em 1em;
    .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;
    }
}
}
.scheduletable > tbody > tr > td:first-child {
 
  width: 150px !important;
/* Dark theme adjustments */
.skin-vector-dark .wikitable {
    background-color: var(--card-bg-main, #2a363d);
    border-color: var(--table-border, #4d6872);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
}
// td {
 
//  width: 100px;
.skin-vector-dark .wikitable > tr > th,
// }
.skin-vector-dark .wikitable > * > tr > th {
.scheduletable caption {
    background: linear-gradient(135deg,
  background: #e7c361;
        var(--teal-800, #2d4a4d) 0%,
  border: 1px solid #e7c361;
        var(--teal-900, #1d4044) 100%) !important;
  text-align: center;
    border-bottom-color: var(--teal-900, #1d4044) !important;
}
}
.wikitable > caption > span {
 
  float: right !important;
.skin-vector-dark .wikitable > tr:nth-child(even):not(:first-child),
.skin-vector-dark .wikitable > * > tr:nth-child(even):not(:first-child) {
    background-color: rgba(95, 217, 207, 0.05);
}
}


.collapsible-header:before {
.skin-vector-dark .wikitable > tr:nth-child(odd):not(:first-child),
  float: right;
.skin-vector-dark .wikitable > * > tr:nth-child(odd):not(:first-child) {
    background-color: rgba(95, 217, 207, 0.02);
}
}
.ci-recipe-wrapper {
 
  display: flex;
.skin-vector-dark .wikitable > caption {
  width: fit-content;
    background: var(--teal-900, #1d4044);
  position: relative;
    color: var(--teal-100, #b2f5ea);
  gap: 7px;
    border-bottom-color: var(--teal-700, #285e61);
}
}
.ci-recipe-timed {
 
  padding-bottom: 25px;
.skin-vector-dark .wikitable > caption .mw-collapsible-toggle {
    background: var(--teal-800, #2d4a4d);
    border-color: var(--teal-600, #2c7a7b);
    color: var(--teal-100, #b2f5ea);
}
}
.ci-recipe-timed {
 
  border: 1px solid #e7c361;
/* Print styles */
  border-radius: 5px;
@media print {
  position: relative;
    .wikitable {
  text-align: center;
        break-inside: avoid;
  font-weight: 500;
        box-shadow: none;
  width: 100%;
        border: 1px solid #ccc;
  padding: 8px;
    }
  max-width: 100px;
   
  overflow-wrap: break-word;
    .wikitable > tr > th,
  hyphens: auto;
    .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;
    }
}
}
.ci-recipe-yield {
 
  border: 1px solid #e7c361;
/* Accessibility improvements */
  border-radius: 3px;
@media (prefers-reduced-motion: reduce) {
  padding: 8px;
    .wikitable,
  position: relative;
    .wikitable > tr > th,
  width: 100%;
    .wikitable > tr > td,
  text-align: center;
    .wikitable a,
    .wikitable img {
        transition: none;
    }
}
}
.ci-recipe-yield-amount {
 
  background: #e7c361;
/* High contrast mode support */
  width: fit-content;
@media (prefers-contrast: high) {
  border-radius: 3px;
    .wikitable {
  padding: 0 5px;
        border-width: 2px;
  position: absolute;
    }
  bottom: 0;
   
  right: 0;
    .wikitable > tr > th,
    .wikitable > * > tr > th {
        border-bottom-width: 3px;
    }
   
    .wikitable > tr > td,
    .wikitable > * > tr > td {
        border-bottom-width: 1px;
    }
}
}
span.custom-icon {
 
  display: inline;
/* Focus styles for keyboard navigation */
}
.wikitable a:focus-visible {
.ci-recipe-ingredient {
    outline: 2px solid var(--focus-ring-color);
  border: 1px solid #e7c361;
    outline-offset: 2px;
  border-radius: 3px;
    border-radius: 2px;
  padding: 5px;
    text-decoration: none;
  min-height: 100%;
}
.ci-recipe-medium::after {
  border: 1px solid #e7c361;
  background-color: #e7c361;
  border-radius: 3px;
  width: 5px;
  height: 5px;
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
}
}


.gifted-item {
.cost-template {
  background-color: rgba(231, 195, 97, 0.2);
display: flex;
}
justify-content: flex-start;
.gifted-item > tbody > tr > th {
align-items: center;
  background-color: rgba(231, 195, 97, 0.8);
flex-direction: row;
  max-width: 100px;
gap: 0.2rem;
}
.content-table {
  background: transparent;
  padding: 10px 2%;
  width: 100%;
}
}


.content-table-basic {
.cost-detail {
  background: transparent;
display: flex;
  width: 100%;
flex-direction: row;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
}


.content-table-second {
.client-js .sortable:not(.jquery-tablesorter)>*>tr:first-child>th:not(.unsortable),
  background: transparent;
.jquery-tablesorter th.headerSort {
  width: 100%;
font-size: 10px;
white-space: normal;
}
}


.child-content-table {
.wikitable>tr>th,
  display: flex;
.wikitable>*>tr>th {
  justify-content: flex-start;
background-color: #e7c361 !important;
  gap: 10px;
max-width: fit-content;
  margin-left: 4px;
}
}


.mw-body,
.heart-event-table {
#mw-data-after-content {
width: 30%;
  margin-left: 10em;
}
}


.mw-body {
.wikitable>tr>th,
  position: relative; /* For better z-index control */
.wikitable>tr>td,
  border-left: 3px solid var(--teal-400);
.wikitable>*>tr>th,
  border-top: none;
.wikitable>*>tr>td {
  border-right: none;
// -ms-word-break: break-all;
  border-bottom: none;
// word-break: break-all;
  background-color: var(--theme-page-background-color);
  color: var(--theme-page-text-color);
  margin-top: 0;
  border-radius: 0;


  .firstHeading {
// -webkit-hyphens: auto;
    overflow: visible;
// -moz-hyphens: auto;
    /* Add subtle bottom border for separation */
// hyphens: auto;
    border-bottom: 1px solid var(--theme-border-color--subtle);
width: 150px;
    padding-bottom: 0.5em;
white-space: break-space;
    margin-bottom: 1em;
margin-left: auto;
  }
margin-right: auto;
}
}


/* Keep z-index simple */
.artisan-table>tr>th,
.mw-indicators {
.artisan-table>tr>td,
  position: relative;
.artisan-table>*>tr>th,
  z-index: 10;
.artisan-table>*>tr>td:first-child {
// -ms-word-break: break-all;
// word-break: break-all;
 
// -webkit-hyphens: auto;
// -moz-hyphens: auto;
// hyphens: auto;
width: 150px;
white-space: break-space;
margin-left: auto;
margin-right: auto;
text-align: center;
}
}


.vector-body {
.wikitable>tr>th,
  font-size: var(--font-size);
.wikitable>tr>td,
  position: relative;
.wikitable>*>tr>th,
  z-index: 1;
.wikitable>*>tr>td:first-child {
// -ms-word-break: break-all;
// word-break: break-all;
 
// -webkit-hyphens: auto;
// -moz-hyphens: auto;
// hyphens: auto;
width: min-content;
white-space: break-space;
margin-left: auto;
margin-right: auto;
text-align: center;
}
}


/* Be more specific with font overrides to avoid editor conflicts */
.scheduletable > tr > th,
body:not(.action-edit):not(.action-submit) .vector-body,
.scheduletable > * > tr > th,
body:not(.action-edit):not(.action-submit) .vector-body p,
.scheduletable th {
body:not(.action-edit):not(.action-submit) .vector-body div,
    background: linear-gradient(135deg,
body:not(.action-edit):not(.action-submit) .vector-body span {
        var(--teal-600, #2c7a7b) 0%,
  font-size: var(--font-size);
        var(--teal-700, #285e61) 100%);
  font-family: Helvetica, Arial, sans-serif;
    color: var(--theme-accent-label-color, #ffffff);
    font-weight: var(--font-weight-semibold, 600);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--teal-800, #234e52);
    text-align: center;
    vertical-align: middle;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    white-space: nowrap; /* Prevent line breaks in headers */
}
}


@media screen and (max-width: 1024px) {
.quotetable>tr>th,
  body:not(.action-edit):not(.action-submit) .wikitable > tr > th,
.wikitable>tr>td,
  body:not(.action-edit):not(.action-submit) .wikitable > tr > td,
.wikitable>*>tr>th,
  body:not(.action-edit):not(.action-submit) .wikitable > * > tr > th,
.wikitable>*>tr>td {
  body:not(.action-edit):not(.action-submit) .wikitable > * > tr > td {
//  -ms-word-break: break-all;
    font-size: 14px;
//   word-break: break-all;
   }
 
  body:not(.action-edit):not(.action-submit) .content {
    font-size: 14px;
  }


   body:not(.action-edit):not(.action-submit) .vector-body {
//   -webkit-hyphens: auto;
    font-size: 16px;
//  -moz-hyphens: auto;
   }
//   hyphens: auto;
}
}


/* Even safer - only affect non-editor content */
.vector-menu-content {
.mw-body-content:not(.editOptions),
margin-left: 10px;
.mw-parser-output:not(.editOptions) {
  font-size: var(--font-size);
}
#mw-page-base {
  //  .vertical-gradient( @background-color-base, @background-color-secondary, 50%, 100% );
  background: transparent;
  background-position: bottom left;
  height: 5em;
}
}


#mw-head-base {
.mw-body,
  margin-top: -5em;
.parsoid-body {
  margin-left: 10em;
background-color: var(--theme-page-background-color) !important;
  height: 5em;
color: var(--theme-page-text-color);
  background: transparent;
direction: ltr;
padding: 1em;
}
}


/* ===== HEADER/NAVIGATION FIX ===== */
.infobox {
 
background: #e7c361;
#mw-navigation h2 {
border: 1px solid #e7c361;
  position: absolute;
float: right;
  top: -9999px;
margin: 0 0 1em 1em;
padding: 1em;
// min-width: 25%;
}
}


#mw-head > * {
.infobox-title {
  position: relative;
font-size: 2em;
  z-index: auto;
text-align: center;
}
}


#left-navigation,
.infobox p {
#right-navigation {
text-decoration: underline;
  display: inline-flex;
font-size: 1.3em;
  vertical-align: top;
  white-space: nowrap;
}
}


#p-search {
.infobox-image {
  display: inline-block;
text-align: center;
  vertical-align: top;
  position: relative;
  margin: 0 1em;
}
}
/* Sidebar */
 
#mw-panel .sidebar-section-title {
.infobox-table {
  background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
width: 100%;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  margin: 10px 0 5px 0;
  border-radius: 4px;
  font-size: 0.9em;
}
}


// hide the heading of the first menu
.infobox-table th {
#p-logo + .mw-portlet .vector-menu-heading {
text-align: left;
  display: flex;
vertical-align: top;
  justify-content: flex-start;
width: 120px;
  align-items: center;
  background: white;
  color: black;
  font-weight: bold;
  padding: 0 5px;
  height: 20px;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
}
}


// ul {
.infobox-table td {
//  list-style-type: none !important
vertical-align: top;
// }
text-align: right;
// color: white;
}


.vector-body blockquote {
.wikitable>caption {
  border: 0;
text-align: left;
  padding: 0;
}
}


.vector-menu-portal .vector-menu-content li {
.Bug6200 {
  padding: 5px;
font-style: italic;
font-weight: normal;
display: flex;
flex-direction: row;
align-items: center;
white-space: normal;
}
}
.vector-menu-portal .vector-menu-content ul {
 
  background: rgba(255, 255, 255, 0.8);
.Bug6200>img {
width: 24px;
height: 24px;
}
}
.vector-menu-portal .vector-menu-heading {
 
  display: flex;
.scheduletable {
  justify-content: flex-start;
text-align: center;
  align-items: center;
margin: 10px 0;
  background: white;
border-collapse: collapse;
  color: black;
  font-weight: bold;
  padding: 0 5px;
  height: 20px;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
}
}


.mw-footer {
.scheduletable > tr > td,
  margin-left: 10em;
.scheduletable > * > tr > td,
  margin-top: 1%;
.scheduletable td {
  margin-bottom: 1%;
    padding: 0.75rem 1rem;
  padding: 0.75em;
    border: 1px solid var(--theme-border-color--subtle, #e2e8f0);
  background: white;
    vertical-align: middle;
  min-height: 120px;
    color: var(--theme-page-text-color);
  border-radius: 5px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: background-color var(--transition-fast);
}
}
.social {
.scheduletable > tr > td:first-child,
  display: flex;
.scheduletable > * > tr > td:first-child,
  justify-content: center;
.scheduletable td:first-child {
  flex-direction: row;
    width: 150px !important; /* Fixed width for time column */
  width: auto;
    min-width: 150px;
  background: #474747;
     max-width: 150px;
  padding: 1rem 3rem;
     font-weight: var(--font-weight-semibold, 600);
  & .iconname {
     background-color: rgba(56, 178, 172, 0.08);
     max-width: 20%;
    text-align: left;
     & .external-text {
    padding-left: 1.25rem;
      font-size: 12px;
    border-right: 2px solid var(--teal-300, #4fd1c7);
     }
    position: relative;
    & .floatleft {
      display: flex;
      justify-content: space-between;
      align-items: center;
      & a {
        font-size: 12px;
      }
      img {
        max-width: 20px;
        max-height: 20px;
      }
    }
  }
}
}
div.floatleft,
 
table.floatleft {
.croptable>tbody>tr>td:first-child {
  margin: 0;
width: 100px !important;
}
}
big {
.scheduletable>tbody>tr>td:first-child {
  color: white;
width: 150px !important;
}
}


.jumbotron {
// td {
   //background-image: url("https://mbwiki.stairwaygames.work/w/images/1/13/manabreak-hero.png");
//   width: 100px;
// }
.scheduletable caption {
background: #e7c361;
border: 1px solid #e7c361;
text-align: center;
}


  background-repeat: no-repeat;
.wikitable>caption>span {
  background-size: cover;
float: right !important;
  width: 100%;
}
}
body.page-Main_Page.action-view .main-page-top {
 
  background-color: #474747;
.collapsible-header:before {
  padding: 1rem 0;
float: right;
  background-image: url("https://mbwiki.stairwaygames.work/w/images/1/13/manabreak-hero.png") !important;
  height: 300px !important;
}
/* Vector screen styles for high definition displays. These rules cross the above components and are
grouped together here only for the sake of the media query common to each. */
.mw-body,
#mw-head-base,
#left-navigation,
#mw-data-after-content,
.mw-footer {
  margin-left: 11em;
}
}


.mw-body {
.ci-recipe-wrapper {
  padding: 1.25em 1.5em 1.5em 1.5em;
display: flex;
width: fit-content;
position: relative;
gap: 7px;
}
}


.mw-footer {
.ci-recipe-timed {
  padding: 1.25em;
padding-bottom: 25px;
}
}


#mw-panel {
.ci-recipe-timed {
  padding-left: 0.5em;
border: 1px solid #e7c361;
border-radius: 5px;
position: relative;
text-align: center;
font-weight: 500;
width: 100%;
padding: 8px;
max-width: 100px;
overflow-wrap: break-word;
hyphens: auto;
}
}


.vector-search-box {
.ci-recipe-yield {
  margin-right: 1em;
border: 1px solid #e7c361;
border-radius: 3px;
padding: 8px;
position: relative;
width: 100%;
text-align: center;
}
}
/*// Directionality styles previously provided by the deprecated `legacy` feature (T287410)
 
// for HTML elements which do not carry dir HTML attributes.
.ci-recipe-yield-amount {
// These have been copied across to legacy Vector to minimize disruption caused by T287701.
background: #e7c361;
// If you are reading this comment in 2022, please consider checking usage in wikitext and
width: fit-content;
// removing them both.*/
border-radius: 3px;
.mw-content-ltr {
padding: 0 5px;
  /* @noflip */
position: absolute;
  direction: ltr;
bottom: 0;
right: 0;
}
}


.mw-content-rtl {
span.custom-icon {
  /* @noflip */
display: inline;
  direction: rtl;
}
}


.cols {
.ci-recipe-ingredient {
  text-align: left;
border: 1px solid #e7c361;
  word-break: break-all;
border-radius: 3px;
  // padding: 1em 0;
padding: 5px;
  background-color: rgba(255, 255, 255, 0.8);
min-height: 100%;
  border-radius: 5px;
  font-weight: 600;
  // text-transform: uppercase;
  // letter-spacing: 1px;
}
}


.forest {
.ci-recipe-medium::after {
  margin-top: -25px;
border: 1px solid #e7c361;
background-color: #e7c361;
border-radius: 3px;
width: 5px;
height: 5px;
content: "";
position: absolute;
top: 50%;
left: -7px;
}
}


.forest2 {
.gifted-item {
  margin-top: 0;
background-color: rgba(231, 195, 97, 0.2);
}
/* grid styling - Connected to Module Variables */
.grid {
  display: grid !important;
  /* Desktop: Use module variable, fallback to 12 columns */
  grid-template-columns: var(
    --main-page-layout-columns--desktop,
    repeat(12, 1fr)
  );
  margin: 10px 0;
  gap: 10px; /* Better than grid-gap (deprecated) */
}
}


/* Tablet */
.gifted-item>tbody>tr>th {
@media (max-width: 1024px) {
background-color: rgba(231, 195, 97, 0.8);
  .grid {
max-width: 100px;
    grid-template-columns: var(
      --main-page-layout-columns--tablet,
      var(--main-page-layout-columns--desktop, repeat(12, 1fr))
    );
  }
}
}


/* Mobile */
.content-table {
@media (max-width: 768px) {
background: transparent;
  .grid {
padding: 10px 2%;
    grid-template-columns: var(
width: 100%;
      --main-page-layout-columns--mobile,
      var(
        --main-page-layout-columns--tablet,
        var(--main-page-layout-columns--desktop, repeat(1, 1fr))
      )
    );
  }
}
}


/* Optional: Keep column classes as fallback when NOT using module */
.content-table-basic {
.grid:not([data-has-module-layout]) .grid__col4 {
background: transparent;
  grid-column: span 4;
width: 100%;
}
}


/* Other styles can stay the same */
.content-table-second {
.specification-table {
background: transparent;
  font-size: 10px;
width: 100%;
  padding: 0 5%;
}
}


.content {
.child-content-table {
  padding: 10px;
display: flex;
  font-size: 12px;
justify-content: flex-start;
gap: 10px;
margin-left: 4px;
}
}


.wrapper {
.mw-body,
  max-width: 100%;
#mw-data-after-content {
  margin: 0 auto;
margin-left: 10em;
  padding: 0 1rem;
}
}


@supports (display: grid) {
.mw-body {
  .mw-content-ltr ul,
position: relative;
  .mw-content-rtl .mw-content-ltr ul {
/* For better z-index control */
    // margin: 0 !important;
border-left: 3px solid var(--teal-400);
  }
border-top: none;
  .social .iconname .floatleft {
border-right: none;
    display: flex;
border-bottom: none;
    justify-content: center;
background-color: var(--theme-page-background-color);
    align-items: center;
color: var(--theme-page-text-color);
  }
margin-top: 0;
  .social {
border-radius: 0;
    gap: 30px;
  }


  .croptable > tbody > tr > td > a > img {
.firstHeading {
    max-width: 40px;
overflow: visible;
    max-height: 40px;
/* Add subtle bottom border for separation */
  }
border-bottom: 1px solid var(--theme-border-color--subtle);
padding-bottom: 0.5em;
margin-bottom: 1em;
}
}


  .exceptable > tbody > tr > td > a > img {
/* Keep z-index simple */
    max-width: 70px;
.mw-indicators {
    max-height: 70px;
position: relative;
  }
z-index: 10;
  .floatleft > a > img {
}
    // width: 24px;
    // height: 24px;
  }
  .iconname {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    -ms-word-break: break-all;
    word-break: break-all;


    /* Non standard for WebKit */
.vector-body {
    word-break: break-word;
font-size: var(--font-size);
position: relative;
z-index: 1;
}


    -webkit-hyphens: auto;
/* Be more specific with font overrides to avoid editor conflicts */
    -moz-hyphens: auto;
body:not(.action-edit):not(.action-submit) .vector-body,
    hyphens: auto;
body:not(.action-edit):not(.action-submit) .vector-body p,
  }
body:not(.action-edit):not(.action-submit) .vector-body div,
body:not(.action-edit):not(.action-submit) .vector-body span {
font-size: var(--font-size);
font-family: Helvetica, Arial, sans-serif;
}


  .auto-grid {
@media screen and (max-width: 1024px) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 5px;
  }


  .auto-grid > * {
body:not(.action-edit):not(.action-submit) .wikitable>tr>th,
    max-width: unset;
body:not(.action-edit):not(.action-submit) .wikitable>tr>td,
    list-style: none;
body:not(.action-edit):not(.action-submit) .wikitable>*>tr>th,
  }
body:not(.action-edit):not(.action-submit) .wikitable>*>tr>td {
font-size: 14px;
}


  .auto-grid > * + * {
body:not(.action-edit):not(.action-submit) .content {
    margin-top: unset;
font-size: 14px;
  }
}
  .auto-grid > li > ul {
    margin-left: 10px !important;
  }
  .auto-grid > li > ul > li {
    list-style: none;
    margin: 0;
    padding-left: 15px;
    list-style: none;
    background-image: url("https://www.svgrepo.com/show/165220/diamond.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 10px;
    -ms-word-break: break-all;
    word-break: break-all;


    /* Non standard for WebKit */
body:not(.action-edit):not(.action-submit) .vector-body {
    word-break: break-word;
font-size: 16px;
}
}


    -webkit-hyphens: auto;
/* Even safer - only affect non-editor content */
    -moz-hyphens: auto;
.mw-body-content:not(.editOptions),
    hyphens: auto;
.mw-parser-output:not(.editOptions) {
  }
font-size: var(--font-size);
}
}
.minus-ten {
 
   margin-top: 0;
#mw-page-base {
//   .vertical-gradient( @background-color-base, @background-color-secondary, 50%, 100% );
background: transparent;
background-position: bottom left;
height: 5em;
}
}
.minus-fifty {
 
  margin-top: -55%;
#mw-head-base {
margin-top: -5em;
margin-left: 10em;
height: 5em;
background: transparent;
}
}
#footer-info li {
  color: --wiki-content-text-color !important;
}
@media (max-width: 1024px) {
  .minus-fifty {
    margin-top: -5%;
  }
  .minus-ten {
    margin-top: -10%;
  }
  .wikitable > tr > th,
  .wikitable > tr > td,
  .wikitable > * > tr > th,
  .wikitable > * > tr > td {
    font-size: 0.7em;
  }
  .scheduletable > tbody > tr > td:first-child {
    width: 40px;
  }
  .wikitable,
  .quotetable,
  .scheduletable {
    table-layout: fixed;
    width: 100%;
  }
  .croptable > tbody > tr > td > a > img {
    max-width: 24px;
    max-height: 24px;
  }
  .infobox {
    float: none;
    margin: 0;
  }
  .forest2 {
    margin-top: -5px;
  }
  .content {
    font-size: 10px;
  }
  .social {
    flex-direction: column;
    padding: 1rem;
    & .iconname {
      max-width: 100%;
    }
  }


  .mw-parser-output a.external {
/* ===== HEADER/NAVIGATION FIX ===== */
    -ms-word-break: break-all;
    word-break: break-all;


    /* Non standard for WebKit */
#mw-navigation h2 {
    word-break: break-word;
position: absolute;
top: -9999px;
}


    -webkit-hyphens: auto;
#mw-head>* {
    -moz-hyphens: auto;
position: relative;
    hyphens: auto;
z-index: auto;
  }
}


  #mw-panel {
#left-navigation,
    width: -webkit-fill-available;
#right-navigation {
    display: flex;
display: inline-flex;
    justify-content: center;
vertical-align: top;
    align-items: center;
white-space: nowrap;
    max-height: 100px;
}
  }
  .vector-search-box {
    min-width: 90vw;
    margin-top: 0px;
  }
  .vector-search-box-input {
    width: 80vw;
  }
  #mw-content-text
    > div.mw-parser-output
    > div
    > div
    > div.content
    > table
    > tbody
    > tr
    > td
    > a {
    font-size: 8px;
  }
  #mw-content-text
    > div.mw-parser-output
    > div
    > div
    > div.content
    > table
    > tbody
    > tr
    > th
    > div
    > div
    > a
    > img {
    width: 16px;
    height: 16px;
  }
  #mw-content-text
    > div.mw-parser-output
    > div
    > div
    > div.content
    > table
    > tbody
    > tr
    > td
    > div
    > div
    > a
    > img {
    width: 16px;
    height: 16px;
  }
  #mw-content-text
    > div.mw-parser-output
    > table.jumbotron
    > tbody
    > tr
    > th
    > a
    > img {
    max-width: 100%;
    object-fit: contain;
  }
  footer,
  .vector-menu-content,
  #p-navigation,
  #p-tb {
    display: none;
  }
  #p-logo {
    display: block;
    justify-content: center;
  }
  #p-logo a {
    width: 5em;
  }


  table {
#p-search {
    width: 100%;
display: inline-block;
  }
vertical-align: top;
  .mw-body,
position: relative;
  #mw-data-after-content {
margin: 0 1em;
    margin: 10% 10px;
}
  }
  .grid__col1 {
    grid-column: span 1;
  }
  .grid__col2 {
    grid-column: span 2;
  }
  .grid__col3 {
    grid-column: span 6;
  }
  .grid__colsm1 {
    grid-column: span 1;
  }
  .grid__colsm2 {
    grid-column: span 2;
  }
  .grid__colsm3 {
    grid-column: span 12;
  }
  .grid__colsm4 {
    grid-column: span 12;
  }
  .grid__colsm5 {
    grid-column: span 5;
  }
  .grid__colsm6 {
    grid-column: span 6;
  }
  .grid__colsm7 {
    grid-column: span 7;
  }
  .grid__colsm8 {
    grid-column: span 12;
  }
  .grid__colsm9 {
    grid-column: span 9;
  }
  .grid__colsm10 {
    grid-column: span 10;
  }
  .grid__colsm11 {
    grid-column: span 11;
  }
  .grid__colsm12 {
    grid-column: span 12;
  }
  .content-table,
  .content-table th,
  .content-table td {
    border: none !important;
  }
  .content-table-basic > tbody {
    display: grid;
  }
  .content-table-basic > tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(50px, 1fr));
    width: fit-content;
  }
  .content-table-basic > tbody > tr > th {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45vw;
  }
  .content-table-basic > tbody > tr > th > .iconname > .floatleft > a > img {
    width: 14px;
    height: 14px;
  }


  .forest {
/* Sidebar */
    margin-top: 0;
#mw-panel .sidebar-section-title {
  }
background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
color: white;
font-weight: bold;
padding: 8px 12px;
margin: 10px 0 5px 0;
border-radius: 4px;
font-size: 0.9em;
}


  .content-table-second {
// hide the heading of the first menu
    background: transparent;
#p-logo+.mw-portlet .vector-menu-heading {
    width: 100%;
display: flex;
  }
justify-content: flex-start;
  .auto-grid {
align-items: center;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
background: white;
  }
color: black;
  .mw-body,
font-weight: bold;
  #mw-data-after-content {
padding: 0 5px;
    padding: 0;
height: 20px;
  }
border-top-right-radius: 5px;
}
border-top-left-radius: 5px;
@media screen and (max-width: 1920px) {
  .mw-parser-output a.external {
    font-size: 14px;
  }
}
}


@media screen and (min-width: 2000px) {
// ul {
  .mw-parser-output a.external {
//   list-style-type: none !important
    font-size: 20px;
// }
    font-weight: 400;
 
  }
.vector-body blockquote {
  .floatleft > a > img {
border: 0;
    width: 48px;
padding: 0;
    height: 48px;
  }
}
#content .header-column {
   background-color: #1a6a7a !important;
  justify-content: center !important;
  text-align: center !important;
  color: #ffffff !important;
}
.header-column > span > a > img {
  width: 14px;
  height: 14px;
}
}


.header-column > a > img {
.vector-menu-portal .vector-menu-content li {
  width: 14px;
padding: 5px;
  height: 14px;
}
}


.heading-char {
.vector-menu-portal .vector-menu-content ul {
  color: #deb76c !important;
background: rgba(255, 255, 255, 0.8);
}
}


#footer {
.vector-menu-portal .vector-menu-heading {
  background: #fff;
display: flex;
  color: #000;
justify-content: flex-start;
  margin-top: 1em;
align-items: center;
  border-top: 1pt solid #aaa;
background: white;
  padding-top: 5px;
color: black;
  direction: ltr;
font-weight: bold;
}
padding: 0 5px;
/* ---- CONTENTS STYLING GOES BELOW THIS LINE --- */
height: 20px;
/* Element Infobox Styling */
border-top-right-radius: 5px;
.element-image {
border-top-left-radius: 5px;
  transition: transform 0.3s ease;
  border-radius: 5px;
}
}


.element-image:hover {
.mw-footer {
  transform: scale(1.05);
margin-left: 10em;
margin-top: 1%;
margin-bottom: 1%;
padding: 0.75em;
background: white;
min-height: 120px;
border-radius: 5px;
}
}


/* Floating animation for infobox */
.social {
.element-infobox {
display: flex;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
justify-content: center;
flex-direction: row;
width: auto;
background: #474747;
padding: 1rem 3rem;
 
& .iconname {
max-width: 20%;
 
& .external-text {
font-size: 12px;
}
 
& .floatleft {
display: flex;
justify-content: space-between;
align-items: center;
 
& a {
font-size: 12px;
}
 
img {
max-width: 20px;
max-height: 20px;
}
}
}
}
}


.element-infobox:hover {
div.floatleft,
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
table.floatleft {
  transform: translateY(-2px);
margin: 0;
}
}


/* Color-specific classes */
big {
.element-fire {
color: white;
  border-left: 4px solid #cc3333;
}
}
.element-water {
 
  border-left: 4px solid #3366cc;
.jumbotron {
//background-image: url("https://mbwiki.stairwaygames.work/w/images/1/13/manabreak-hero.png");
 
background-repeat: no-repeat;
background-size: cover;
width: 100%;
}
}
.element-wind {
 
  border-left: 4px solid #33cccc;
body.page-Main_Page.action-view .main-page-top {
background-color: #474747;
padding: 1rem 0;
background-image: url("https://mbwiki.stairwaygames.work/w/images/1/13/manabreak-hero.png") !important;
height: 300px !important;
}
}
.element-earth {
 
  border-left: 4px solid #996633;
/* Vector screen styles for high definition displays. These rules cross the above components and are
}
grouped together here only for the sake of the media query common to each. */
.element-lightning {
.mw-body,
  border-left: 4px solid #ffcc00;
#mw-head-base,
}
#left-navigation,
.element-ice {
#mw-data-after-content,
  border-left: 4px solid #66ccff;
.mw-footer {
margin-left: 11em;
}
}
.element-wood {
 
  border-left: 4px solid #339933;
.mw-body {
padding: 1.25em 1.5em 1.5em 1.5em;
}
}
.element-grass {
 
  border-left: 4px solid #88cc44;
.mw-footer {
padding: 1.25em;
}
}
/* Move Personal Tools to the top of the page */
 
#p-personal {
#mw-panel {
  position: absolute !important;
padding-left: 0.5em;
  top: 0 !important;
  right: 0.75em !important;
  z-index: 1000 !important;
  background: var(--theme-page-background-color) !important;
  border-bottom: 1px solid var(--theme-border-color) !important;
  padding: 0.25em 0.5em !important;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}
}


#p-personal .vector-menu-heading {
.vector-search-box {
  display: none !important;
margin-right: 1em;
}
}


#p-personal .vector-menu-content {
/*// Directionality styles previously provided by the deprecated `legacy` feature (T287410)
  position: static !important;
// for HTML elements which do not carry dir HTML attributes.
  display: block !important;
// These have been copied across to legacy Vector to minimize disruption caused by T287701.
  opacity: 1 !important;
// If you are reading this comment in 2022, please consider checking usage in wikitext and
  visibility: visible !important;
// removing them both.*/
  box-shadow: none !important;
.mw-content-ltr {
  border: none !important;
/* @noflip */
  background: transparent !important;
direction: ltr;
}
}


#p-personal .vector-menu-content-list {
.mw-content-rtl {
  display: flex !important;
/* @noflip */
  flex-wrap: wrap !important;
direction: rtl;
  gap: 0.5em !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
}


#p-personal .mw-list-item {
.cols {
  display: flex !important;
text-align: left;
  align-items: center !important;
word-break: break-all;
  margin: 0 !important;
// padding: 1em 0;
  padding: 0 !important;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 5px;
font-weight: 600;
// text-transform: uppercase;
// letter-spacing: 1px;
}
}


#p-personal .mw-list-item a {
.forest {
  padding: 0.25em 0.5em !important;
margin-top: -25px;
  color: var(--theme-link-color) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  border-radius: var(--border-radius-sm) !important;
  transition: all var(--transition-fast) ease !important;
}
}


#p-personal .mw-list-item a:hover {
.forest2 {
  background: rgba(var(--teal-100--rgb, 178, 245, 234), 0.3) !important;
margin-top: 0;
  color: var(--theme-link-color--hover) !important;
}
}


/* Theme toggle special styling */
/* grid styling - Connected to Module Variables */
#pt-theme a {
.grid {
  background: linear-gradient(
display: grid !important;
    135deg,
/* Desktop: Use module variable, fallback to 12 columns */
    var(--teal-100) 0%,
grid-template-columns: var(--main-page-layout-columns--desktop,
    var(--teal-200) 100%
repeat(12, 1fr));
  ) !important;
margin: 10px 0;
  border-radius: var(--border-radius-full) !important;
gap: 10px;
/* Better than grid-gap (deprecated) */
}
}


#pt-theme a:hover {
/* Tablet */
  background: linear-gradient(
@media (max-width: 1024px) {
    135deg,
.grid {
    var(--teal-200) 0%,
grid-template-columns: var(--main-page-layout-columns--tablet,
    var(--teal-300) 100%
var(--main-page-layout-columns--desktop, repeat(12, 1fr)));
  ) !important;
}
}
}


/* Dark theme adjustments */
/* Mobile */
.skin-vector-dark #p-personal {
@media (max-width: 768px) {
  background: var(--theme-page-background-color--secondary) !important;
.grid {
grid-template-columns: var(--main-page-layout-columns--mobile,
var(--main-page-layout-columns--tablet,
var(--main-page-layout-columns--desktop, repeat(1, 1fr))));
}
}
}


.skin-vector-dark #pt-theme a {
/* Optional: Keep column classes as fallback when NOT using module */
  background: linear-gradient(
.grid:not([data-has-module-layout]) .grid__col4 {
    135deg,
grid-column: span 4;
    var(--teal-800) 0%,
    var(--teal-700) 100%
  ) !important;
}
}


.skin-vector-dark #pt-theme a:hover {
/* Other styles can stay the same */
  background: linear-gradient(
.specification-table {
    135deg,
font-size: 10px;
    var(--teal-700) 0%,
padding: 0 5%;
    var(--teal-600) 100%
  ) !important;
}
}


/* Add space at the top of the page so the personal tools don't overlap content */
.content {
#mw-page-base {
padding: 10px;
  margin-top: -0.5em !important;
font-size: 12px;
}
}


/* Or if that doesn't work, add padding to body */
.wrapper {
body {
max-width: 100%;
  padding-top: -0.5em !important;
margin: 0 auto;
padding: 0 1rem;
}
}


body.page-Main_Page .social {
@supports (display: grid) {
  margin: -45px auto 30px !important;
 
  background: rgba(
.mw-content-ltr ul,
    var(--theme-page-background-color--secondary--rgb),
.mw-content-rtl .mw-content-ltr ul {
    0.8
// margin: 0 !important;
  ) !important;
}
  backdrop-filter: blur(10px);
 
  border: 1px solid var(--theme-border-color);
.social .iconname .floatleft {
  box-shadow: var(--shadow-xl);
display: flex;
  z-index: 99 !important;
justify-content: center;
}
align-items: center;
}


/* THE GAME Card Improvement */
.social {
body.page-Main_Page .game-intro-card {
gap: 30px;
  background: var(--card-bg-elevated);
}
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--theme-border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}


body.page-Main_Page .game-header {
.croptable>tbody>tr>td>a>img {
  background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
max-width: 40px;
  padding: var(--spacing-md) var(--spacing-lg);
max-height: 40px;
}
}


body.action-edit #content,
.exceptable>tbody>tr>td>a>img {
body.action-submit #content {
max-width: 70px;
  margin-top: 50px !important;
max-height: 70px;
  margin-left: 11em !important;
}
  background: #ffffff !important;
  padding: 20px !important;
}
/* 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(--gray-050);
  font-size: 0.9em;
}


.character-header {
.floatleft>a>img {
  background: var(--teal-600);
// width: 24px;
  color: var(--theme-accent-label-color);
// height: 24px;
  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 {
.iconname {
  font-size: 1.5em;
display: flex;
}
align-items: center;
justify-content: flex-start;
gap: 5px;
-ms-word-break: break-all;
word-break: break-all;


.character-image {
/* Non standard for WebKit */
  padding: 10px;
word-break: break-word;
  text-align: center;
}


.character-section {
-webkit-hyphens: auto;
  padding: 5px 10px;
-moz-hyphens: auto;
}
hyphens: auto;
}


.section-title {
.auto-grid {
  font-size: 1.1em;
display: grid;
  font-weight: var(--font-weight-semibold);
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 10px;
grid-gap: 5px;
  margin-bottom: 5px;
}
  border-bottom: 1px solid var(--theme-border-color--subtle);
}


.data-row {
.auto-grid>* {
  display: flex;
max-width: unset;
  justify-content: space-between;
list-style: none;
  padding: 3px 0;
}
  border-bottom: 1px dotted var(--gray-300);
}


.data-label {
.auto-grid>*+* {
  font-weight: var(--font-weight-medium);
margin-top: unset;
  color: var(--gray-700);
}
}
 
/* ===== PORTABLE INFOBOX STYLING ===== */
.auto-grid>li>ul {
.portable-infobox {
margin-left: 10px !important;
  float: right;
}
  clear: right;
  margin: 0 0 15px 15px;
  max-width: 300px;
  width: 100%;
  border: 1px solid var(--theme-border-color, #ccc);
  border-radius: 8px;
  background-color: var(--gray-050, #f8f9fa);
  font-size: 14px;
}


/* Remove margins from ALL paragraphs inside infobox */
.auto-grid>li>ul>li {
.portable-infobox p {
list-style: none;
  margin: 0 !important;
margin: 0;
}
padding-left: 15px;
list-style: none;
background-image: url("https://www.svgrepo.com/show/165220/diamond.svg");
background-repeat: no-repeat;
background-position: left center;
background-size: 10px;
-ms-word-break: break-all;
word-break: break-all;


.portable-infobox .pi-header {
/* Non standard for WebKit */
  padding: 0 5px;
word-break: break-word;
}


.portable-infobox .pi-title {
-webkit-hyphens: auto;
  background: var(--teal-600, #00897b);
-moz-hyphens: auto;
  color: var(--theme-accent-label-color, white);
hyphens: auto;
  padding: 8px 10px;
}
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0;
}
}


.portable-infobox .pi-title p {
.minus-ten {
  margin: 0 !important;
margin-top: 0;
  padding: 0;
}
}


.portable-infobox .pi-group {
.minus-fifty {
  padding: 10px;
margin-top: -55%;
}
}


.portable-infobox .pi-group .pi-header {
#footer-info li {
  font-size: 1.1em;
color: --wiki-content-text-color !important;
  font-weight: 600;
  margin: 10px 0 5px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
  color: var(--gray-800, #3c4043);
}
}


.portable-infobox .pi-group .pi-header p {
@media (max-width: 1024px) {
  margin: 0 !important;
.minus-fifty {
}
margin-top: -5%;
}


.portable-infobox .pi-item {
.minus-ten {
  display: flex;
margin-top: -10%;
  justify-content: space-between;
}
  padding: 5px 0;
  border-bottom: 1px dotted var(--gray-300, #dadce0);
  align-items: flex-start; /* Align items at the top */
}


.portable-infobox .pi-item:last-child {
.wikitable>tr>th,
  border-bottom: none;
.wikitable>tr>td,
}
.wikitable>*>tr>th,
.wikitable>*>tr>td {
font-size: 0.7em;
}


.portable-infobox .pi-data-label {
.scheduletable>tbody>tr>td:first-child {
  font-weight: 500;
width: 40px;
  color: var(--gray-700, #5f6368);
}
  padding: 0 5px 0 0;
  min-width: 40%;
  flex-shrink: 0; /* Prevent label from shrinking */
}


.portable-infobox .pi-data-label p {
.wikitable,
  margin: 0 !important;
.quotetable,
}
.scheduletable {
table-layout: fixed;
width: 100%;
}


.portable-infobox .pi-data-value {
.croptable>tbody>tr>td>a>img {
  color: var(--gray-900, #202124);
max-width: 24px;
  padding: 0 0 0 5px;
max-height: 24px;
  min-width: 60%;
}
  text-align: right;
  flex-grow: 1; /* Allow value to grow */
}


.portable-infobox .pi-data-value p {
.infobox {
  margin: 0 !important;
float: none;
}
margin: 0;
}


/* Horizontal layout groups - fix table layout */
.forest2 {
.portable-infobox .pi-horizontal-group {
margin-top: -5px;
  width: 100%;
}
  border-collapse: collapse;
  margin: 0;
}


.portable-infobox .pi-horizontal-group caption {
.content {
  font-size: 1.1em;
font-size: 10px;
  font-weight: 600;
}
  margin: 10px 0 5px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
  color: var(--gray-800, #3c4043);
  text-align: left;
  caption-side: top;
}


.portable-infobox .pi-horizontal-group caption p {
.social {
  margin: 0 !important;
flex-direction: column;
}
padding: 1rem;


.portable-infobox .pi-horizontal-group th,
& .iconname {
.portable-infobox .pi-horizontal-group td {
max-width: 100%;
  padding: 8px;
}
  text-align: center;
}
  border: 1px solid var(--theme-border-color--subtle, #e0e0e0);
}


.portable-infobox .pi-horizontal-group th {
.mw-parser-output a.external {
  font-weight: 500;
-ms-word-break: break-all;
  color: var(--gray-700, #5f6368);
word-break: break-all;
  background-color: var(--gray-100, #f1f3f4);
}


.portable-infobox .pi-horizontal-group th p,
/* Non standard for WebKit */
.portable-infobox .pi-horizontal-group td p {
word-break: break-word;
  margin: 0 !important;
}


/* Image styling */
-webkit-hyphens: auto;
.portable-infobox .pi-image {
-moz-hyphens: auto;
  padding: 10px;
hyphens: auto;
  text-align: center;
}
}


.pi-image-thumbnail {
#mw-panel {
  max-width: 100% !important;
width: -webkit-fill-available;
  height: auto;
display: flex;
  border-radius: 4px;
justify-content: center;
  border: 1px solid var(--theme-border-color--subtle, #e0e0e0);
align-items: center;
}
max-height: 100px;
}


.portable-infobox .pi-image .pi-caption {
.vector-search-box {
  font-size: 0.85em;
min-width: 90vw;
  color: var(--gray-600, #757575);
margin-top: 0px;
  margin-top: 5px;
}
  font-style: italic;
}


.portable-infobox .pi-image .pi-caption p {
.vector-search-box-input {
  margin: 0 !important;
width: 80vw;
}
}


/* Clear float after infobox */
#mw-content-text>div.mw-parser-output>div>div>div.content>table>tbody>tr>td>a {
.mw-parser-output::after {
font-size: 8px;
  content: "";
}
  display: table;
  clear: both;
}


/* Mobile responsiveness */
#mw-content-text>div.mw-parser-output>div>div>div.content>table>tbody>tr>th>div>div>a>img {
@media (max-width: 768px) {
width: 16px;
  .portable-infobox {
height: 16px;
    float: none;
}
    max-width: 100%;
    margin: 0 0 16px 0;
  }


  .portable-infobox .pi-item {
#mw-content-text>div.mw-parser-output>div>div>div.content>table>tbody>tr>td>div>div>a>img {
    flex-direction: column;
width: 16px;
  }
height: 16px;
}


  .portable-infobox .pi-data-label,
#mw-content-text>div.mw-parser-output>table.jumbotron>tbody>tr>th>a>img {
  .portable-infobox .pi-data-value {
max-width: 100%;
    min-width: 100%;
object-fit: contain;
    text-align: left;
}
    padding: 0;
  }


  .portable-infobox .pi-data-label {
footer,
    padding-bottom: 2px;
.vector-menu-content,
  }
#p-navigation,
#p-tb {
display: none;
}


  .portable-infobox .pi-data-value {
#p-logo {
    padding-top: 2px;
display: block;
  }
justify-content: center;
}


  /* Horizontal table becomes vertical on mobile */
#p-logo a {
  .portable-infobox .pi-horizontal-group {
width: 5em;
    display: block;
}
  }


  .portable-infobox .pi-horizontal-group thead,
table {
  .portable-infobox .pi-horizontal-group tbody,
width: 100%;
  .portable-infobox .pi-horizontal-group tr {
}
    display: block;
  }


  .portable-infobox .pi-horizontal-group th,
.mw-body,
  .portable-infobox .pi-horizontal-group td {
#mw-data-after-content {
    display: block;
margin: 10% 10px;
    text-align: left;
}
    border: none;
    border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
  }


  .portable-infobox .pi-horizontal-group th {
.grid__col1 {
    background-color: transparent;
grid-column: span 1;
    font-weight: 600;
}
    padding-top: 10px;
  }


  .portable-infobox .pi-horizontal-group td {
.grid__col2 {
    padding-bottom: 10px;
grid-column: span 2;
  }
}
}
/* ===== WEAPON INFOBOX STYLING ===== */
.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: #ffffff;
  font-size: 0.9em;
}


.weapon-header {
.grid__col3 {
  background: #1a6a7a;
grid-column: span 6;
  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 {
.grid__colsm1 {
  padding: 10px;
grid-column: span 1;
  text-align: center;
}
}


.weapon-image img {
.grid__colsm2 {
  max-width: 100%;
grid-column: span 2;
  height: auto;
}
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}


.weapon-section {
.grid__colsm3 {
  padding: 0;
grid-column: span 12;
}
}


.section-title {
.grid__colsm4 {
  padding: 5px 10px;
grid-column: span 12;
  color: #4a5568;
}
  font-weight: bold;
  border-bottom: 1px solid #a2a9b1;
  margin: 10px 0 5px 0;
}


.weapon-section > div {
.grid__colsm5 {
  display: flex;
grid-column: span 5;
  justify-content: space-between;
}
  padding: 5px 10px;
  border-bottom: 1px dotted #a2a9b1;
}


.weapon-section > div:last-child {
.grid__colsm6 {
  border-bottom: none;
grid-column: span 6;
}
}


.weapon-section > div > span:first-child {
.grid__colsm7 {
  font-weight: 500;
grid-column: span 7;
  color: #4a5568;
}
  width: 40%;
  text-align: left;
}


.weapon-section > div > span:last-child {
.grid__colsm8 {
  color: #4a5568;
grid-column: span 12;
  text-align: right;
}
  width: 60%;
}


/* Horizontal requirements section */
.grid__colsm9 {
.weapon-section
grid-column: span 9;
  > 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
.grid__colsm10 {
  > div[style*="display: flex !important; justify-content: space-around"]
grid-column: span 10;
  > div {
}
  flex: 1;
 
  padding: 5px;
.grid__colsm11 {
}
grid-column: span 11;
}
 
.grid__colsm12 {
grid-column: span 12;
}
 
.content-table,
.content-table th,
.content-table td {
border: none !important;
}
 
.content-table-basic>tbody {
display: grid;
}


.weapon-section
.content-table-basic>tbody>tr {
  > div[style*="display: flex !important; justify-content: space-around"]
display: grid;
  > div
grid-template-columns: repeat(2, minmax(50px, 1fr));
  > div:first-child {
width: fit-content;
  font-weight: 500;
}
  color: #4a5568;
  font-size: 0.9em;
  margin-bottom: 3px;
}


.weapon-section
.content-table-basic>tbody>tr>th {
  > div[style*="display: flex !important; justify-content: space-around"]
display: flex;
  > div
align-items: center;
  > div:last-child {
justify-content: center;
  font-weight: bold;
width: 45vw;
  color: #4a5568;
}
  font-size: 1.1em;
}


/* Clear float */
.content-table-basic>tbody>tr>th>.iconname>.floatleft>a>img {
.mw-parser-output::after {
width: 14px;
  content: "";
height: 14px;
  display: table;
}
  clear: both;
}


/* Mobile responsiveness */
.forest {
@media (max-width: 768px) {
margin-top: 0;
  .weapon-infobox {
}
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }
}
/* ===== MONSTER INFOBOX STYLING ===== */
.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: #ffffff;
  font-size: 0.9em;
}


.monster-header {
.content-table-second {
  background: #7a1a1a;
background: transparent;
  color: white;
width: 100%;
  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 {
.auto-grid {
  padding: 10px;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  text-align: center;
}
}


.monster-image img {
.mw-body,
  max-width: 100%;
#mw-data-after-content {
  height: auto;
padding: 0;
  border-radius: 4px;
}
  border: 1px solid #e0e0e0;
}
}


.monster-section {
@media screen and (max-width: 1920px) {
  padding: 0;
.mw-parser-output a.external {
font-size: 14px;
}
}
}


.monster-section .section-title {
@media screen and (min-width: 2000px) {
  padding: 5px 10px;
.mw-parser-output a.external {
  color: #4a5568;
font-size: 20px;
  font-weight: bold;
font-weight: 400;
  border-bottom: 1px solid #a2a9b1;
}
  margin: 10px 0 5px 0;
}


.monster-section > div[style*="display: flex"] {
.floatleft>a>img {
  display: flex;
width: 48px;
  justify-content: space-between;
height: 48px;
  padding: 5px 10px;
}
  border-bottom: 1px dotted #a2a9b1;
}
}


.monster-section > div[style*="display: flex"]:last-child {
#content .header-column {
  border-bottom: none;
background-color: #1a6a7a !important;
justify-content: center !important;
text-align: center !important;
color: #ffffff !important;
}
}


.monster-section > div[style*="display: flex"] > span:first-child {
.header-column>span>a>img {
  font-weight: 500;
width: 14px;
  color: #4a5568;
height: 14px;
  width: 40%;
  text-align: left;
}
}


.monster-section > div[style*="display: flex"] > span:last-child {
.header-column>a>img {
  color: #4a5568;
width: 14px;
  text-align: right;
height: 14px;
  width: 60%;
}
}


/* Phase sections */
.heading-char {
.monster-section > div[style*="Phase"] {
color: #deb76c !important;
  background: #f0f0f0;
  padding: 8px 10px;
  font-weight: bold;
  color: #7a1a1a;
  border-left: 3px solid #7a1a1a;
  margin: 10px 0 5px 0;
}
}


.monster-section > div[style*="line-height: 1.4"] {
#footer {
  padding: 5px 10px 10px 10px;
background: #fff;
  color: #4a5568;
color: #000;
  line-height: 1.4;
margin-top: 1em;
border-top: 1pt solid #aaa;
padding-top: 5px;
direction: ltr;
}
}


/* Lists (for weaknesses, drops, etc.) */
/* ---- CONTENTS STYLING GOES BELOW THIS LINE --- */
.monster-section ul {
/* Element Infobox Styling */
  margin: 0 !important;
.element-image {
  padding-left: 20px !important;
transition: transform 0.3s ease;
border-radius: 5px;
}
}


.monster-section li {
.element-image:hover {
  margin-bottom: 3px;
transform: scale(1.05);
  color: #4a5568;
}
}


/* Clear float */
/* Floating animation for infobox */
.mw-parser-output::after {
.element-infobox {
  content: "";
transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: table;
  clear: both;
}
}


/* Mobile responsiveness */
.element-infobox:hover {
@media (max-width: 768px) {
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  .monster-infobox {
transform: translateY(-2px);
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }
}
/* ROLES TABLE */
.roles-table {
  background-color: transparent !important;
  width: 100% !important;
  table-layout: auto !important;
  margin: 1rem 0 !important;
}
}


.roles-table > tr > th,
/* Color-specific classes */
.roles-table > * > tr > th {
.element-fire {
  background-color: var(--teal-600);
border-left: 4px solid #cc3333;
  color: #000 !important;
  padding: 12px 8px !important;
  font-weight: bold !important;
  text-align: center !important;
  border: 1px solid #aaa !important;
}
}


.roles-table > tr > th:first-child,
.element-water {
.roles-table > * > tr > th:first-child {
border-left: 4px solid #3366cc;
  min-width: 180px !important;
}
}


.roles-table > tr > th:nth-child(2),
.element-wind {
.roles-table > * > tr > th:nth-child(2) {
border-left: 4px solid #33cccc;
  min-width: 300px !important;
}
}


.roles-table > tr > th:nth-child(3),
.element-earth {
.roles-table > * > tr > th:nth-child(3),
border-left: 4px solid #996633;
.roles-table > tr > th:nth-child(4),
.roles-table > * > tr > th:nth-child(4) {
  min-width: 150px !important;
}
}


.roles-table > tr > td,
.element-lightning {
.roles-table > * > tr > td {
border-left: 4px solid #ffcc00;
  padding: 10px 8px !important;
  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,
.element-ice {
.roles-table > * > tr > td:first-child {
border-left: 4px solid #66ccff;
  font-weight: bold !important;
  white-space: nowrap !important;
}
}


.roles-table > tr > td:nth-child(2),
.element-wood {
.roles-table > * > tr > td:nth-child(2) {
border-left: 4px solid #339933;
  white-space: normal !important;
  word-break: break-word !important;
}
}


.client-js .roles-table.sortable > * > tr:first-child > th:not(.unsortable),
.element-grass {
.jquery-tablesorter th.headerSort {
border-left: 4px solid #88cc44;
  font-size: 12px !important;
  white-space: normal !important;
  cursor: pointer !important;
  position: relative !important;
  padding-right: 20px !important;
}
}


.client-js
/* Move Personal Tools to the top of the page */
  .roles-table.sortable
#p-personal {
  > *
position: absolute !important;
  > tr:first-child
top: 0 !important;
  > th:not(.unsortable):after,
right: 0.75em !important;
.jquery-tablesorter th.headerSort:after {
z-index: 1000 !important;
  content: "↕" !important;
background: var(--theme-page-background-color) !important;
  position: absolute !important;
border-bottom: 1px solid var(--theme-border-color) !important;
  right: 5px !important;
padding: 0.25em 0.5em !important;
  font-size: 10px !important;
border-radius: 0 0 var(--border-radius-md) var(--border-radius-md) !important;
  opacity: 0.5 !important;
box-shadow: var(--shadow-sm) !important;
}
}


/* Category breakdown tables */
#p-personal .vector-menu-heading {
.category-table,
display: none !important;
.location-table {
  background-color: transparent !important;
  width: 100% !important;
  margin: 1rem 0 !important;
}
}


.category-table > tr > th,
#p-personal .vector-menu-content {
.category-table > * > tr > th,
position: static !important;
.location-table > tr > th,
display: block !important;
.location-table > * > tr > th {
opacity: 1 !important;
  background-color: var(--teal-600) !important;
visibility: visible !important;
  color: #000 !important;
box-shadow: none !important;
  padding: 12px 8px !important;
border: none !important;
  font-weight: bold !important;
background: transparent !important;
  text-align: center !important;
  border: 1px solid #aaa !important;
}
}


.category-table > tr > th:nth-child(1),
#p-personal .vector-menu-content-list {
.category-table > * > tr > th:nth-child(1),
display: flex !important;
.location-table > tr > th:nth-child(1),
flex-wrap: wrap !important;
.location-table > * > tr > th:nth-child(1) {
gap: 0.5em !important;
  width: 30% !important;
margin: 0 !important;
  min-width: 150px !important;
padding: 0 !important;
list-style: none !important;
}
}


.category-table > tr > th:nth-child(2),
#p-personal .mw-list-item {
.category-table > * > tr > th:nth-child(2),
display: flex !important;
.location-table > tr > th:nth-child(2),
align-items: center !important;
.location-table > * > tr > th:nth-child(2) {
margin: 0 !important;
  width: 15% !important;
padding: 0 !important;
  min-width: 80px !important;
}
}


.category-table > tr > th:nth-child(3),
#p-personal .mw-list-item a {
.category-table > * > tr > th:nth-child(3),
padding: 0.25em 0.5em !important;
.location-table > tr > th:nth-child(3),
color: var(--theme-link-color) !important;
.location-table > * > tr > th:nth-child(3) {
text-decoration: none !important;
  width: 55% !important;
display: flex !important;
align-items: center !important;
gap: 4px !important;
border-radius: var(--border-radius-sm) !important;
transition: all var(--transition-fast) ease !important;
}
}


.category-table > tr > td,
#p-personal .mw-list-item a:hover {
.category-table > * > tr > td,
background: rgba(var(--teal-100--rgb, 178, 245, 234), 0.3) !important;
.location-table > tr > td,
color: var(--theme-link-color--hover) !important;
.location-table > * > tr > td {
  padding: 10px 8px !important;
  border: 1px solid #aaa !important;
  vertical-align: top !important;
}
}


.category-table > tr > td:nth-child(3),
/* Theme toggle special styling */
.category-table > * > tr > td:nth-child(3),
#pt-theme a {
.location-table > tr > td:nth-child(3),
background: linear-gradient(135deg,
.location-table > * > tr > td:nth-child(3) {
var(--teal-100) 0%,
  word-wrap: break-word !important;
var(--teal-200) 100%) !important;
  overflow-wrap: break-word !important;
border-radius: var(--border-radius-full) !important;
}
}


.category-table > tr:last-child > td,
#pt-theme a:hover {
.category-table > * > tr:last-child > td,
background: linear-gradient(135deg,
.location-table > tr:last-child > td,
var(--teal-200) 0%,
.location-table > * > tr:last-child > td {
var(--teal-300) 100%) !important;
  font-weight: bold !important;
  background-color: #f5f5f5 !important;
}
}
/* ============================================
  RACE INFOBOX STYLING
  ============================================ */


/* Error state for unknown races */
/* Dark theme adjustments */
.race-error {
.skin-vector-dark #p-personal {
    color: #dc3545;
background: var(--theme-page-background-color--secondary) !important;
    font-style: italic;
    padding: 2px 6px;
    background-color: #f8d7da;
    border-radius: 4px;
}
}


/* ============================================
.skin-vector-dark #pt-theme a {
  RACE HOVER-INFOBOX (for Template:RaceInfo in character infoboxes)
background: linear-gradient(135deg,
  ============================================ */
var(--teal-800) 0%,
 
var(--teal-700) 100%) !important;
.race-hover-container {
    display: inline-block;
    position: relative;
}
}


.race-hover-trigger {
.skin-vector-dark #pt-theme a:hover {
    display: inline-block;
background: linear-gradient(135deg,
var(--teal-700) 0%,
var(--teal-600) 100%) !important;
}
}


/* Style the race link in the infobox table */
/* Add space at the top of the page so the personal tools don't overlap content */
.race-hover-trigger a {
#mw-page-base {
    text-decoration: none !important;
margin-top: -0.5em !important;
    color: inherit !important;
}
}


/* Remove the "page does not exist" red styling */
/* Or if that doesn't work, add padding to body */
.race-hover-trigger a.new {
body {
    color: inherit !important;
padding-top: -0.5em !important;
}
}


.race-link-inline {
body.page-Main_Page .social {
    font-weight: 600;
margin: -45px auto 30px !important;
    text-decoration: none !important;
background: rgba(var(--theme-page-background-color--secondary--rgb),
    padding: 2px 6px;
0.8) !important;
    border-radius: 4px;
backdrop-filter: blur(10px);
    transition: all 0.2s ease;
border: 1px solid var(--theme-border-color);
    border-bottom: 2px solid transparent;
box-shadow: var(--shadow-xl);
    cursor: pointer;
z-index: 99 !important;
}
}


.race-hover-trigger:hover .race-link-inline {
/* THE GAME Card Improvement */
    background-color: rgba(0,0,0,0.05);
body.page-Main_Page .game-intro-card {
background: var(--card-bg-elevated);
border-radius: var(--border-radius-lg);
border: 1px solid var(--theme-border-color);
box-shadow: var(--shadow-lg);
overflow: hidden;
}
}


/* Hidden infobox - POSITIONED ABOVE the race text */
body.page-Main_Page .game-header {
.race-hover-infobox {
background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
    position: absolute;
padding: var(--spacing-md) var(--spacing-lg);
    bottom: 100%; /* Appears ABOVE the trigger */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 280px;
    background: white;
    border: 2px solid;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10000; /* Very high to appear above everything */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
}


/* Arrow/triangle pointing DOWN to the race text */
body.action-edit #content,
.race-hover-infobox::before {
body.action-submit #content {
    content: '';
margin-top: 50px !important;
    position: absolute;
margin-left: 11em !important;
    top: 100%; /* Arrow at bottom of tooltip */
background: #ffffff !important;
    left: 50%;
padding: 20px !important;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: currentColor transparent transparent transparent;
}
}


/* Show on hover */
/* Character Infobox */
.race-hover-container:hover .race-hover-infobox {
.character-infobox {
    opacity: 1;
float: right;
    visibility: visible;
clear: right;
    transform: translateX(-50%) translateY(-5px);
max-width: 300px;
    pointer-events: auto;
width: 100%;
margin: 0 0 16px 16px;
border: 1px solid var(--theme-border-color);
border-radius: var(--border-radius-md);
background-color: var(--gray-050);
font-size: 0.9em;
}
}


.race-hover-header {
.character-header {
    padding: 12px 15px;
background: var(--teal-600);
    color: white;
color: var(--theme-accent-label-color);
    border-radius: 6px 6px 0 0;
padding: 8px 10px;
border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
text-align: center;
font-weight: var(--font-weight-bold);
}
}


.race-hover-header h4 {
.character-title {
    margin: 0;
font-size: 1.5em;
    font-size: 1.1em;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
}


.race-hover-content {
.character-image {
    padding: 15px;
padding: 10px;
text-align: center;
}
}


.race-hover-table {
.character-section {
    width: 100%;
padding: 5px 10px;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-bottom: 10px;
}
}


.race-hover-table td {
.section-title {
    padding: 8px 5px;
font-size: 1.1em;
    border-bottom: 1px solid rgba(0,0,0,0.1);
font-weight: var(--font-weight-semibold);
    vertical-align: top;
margin-top: 10px;
margin-bottom: 5px;
border-bottom: 1px solid var(--theme-border-color--subtle);
}
}


.race-hover-table td:first-child {
.data-row {
    font-weight: 600;
display: flex;
    color: #2c3e50;
justify-content: space-between;
    width: 40%;
padding: 3px 0;
    text-align: right;
border-bottom: 1px dotted var(--gray-300);
    padding-right: 12px;
}
}


.race-hover-table tr:last-child td {
.data-label {
    border-bottom: none;
font-weight: var(--font-weight-medium);
color: var(--gray-700);
}
}


.race-hover-footer {
/* ===== PORTABLE INFOBOX STYLING ===== */
    text-align: center;
.portable-infobox {
    padding-top: 10px;
float: right;
    border-top: 1px dashed rgba(0,0,0,0.1);
clear: right;
margin: 0 0 15px 15px;
max-width: 300px;
width: 100%;
border: 1px solid var(--theme-border-color, #ccc);
border-radius: 8px;
background-color: var(--gray-050, #f8f9fa);
font-size: 14px;
}
}


.view-full-link {
/* Remove margins from ALL paragraphs inside infobox */
    display: inline-block;
.portable-infobox p {
    padding: 6px 12px;
margin: 0 !important;
    background-color: #667eea;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
}


.view-full-link:hover {
.portable-infobox .pi-header {
    transform: translateY(-1px);
padding: 0 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none !important;
    color: white !important;
}
}


.category-badge-small {
.portable-infobox .pi-title {
    display: inline-block;
background: var(--teal-600, #00897b);
    padding: 2px 8px;
color: var(--theme-accent-label-color, white);
    border-radius: 10px;
padding: 8px 10px;
    color: white;
border-top-left-radius: 8px;
    font-size: 0.8em;
border-top-right-radius: 8px;
    font-weight: 600;
text-align: center;
    text-transform: uppercase;
font-weight: bold;
font-size: 1.2em;
margin: 0;
}
}


/* ============================================
.portable-infobox .pi-title p {
  FULL RACE INFOBOX (for race pages)
margin: 0 !important;
  ============================================ */
padding: 0;
 
.race-full-infobox {
    border: 2px solid;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 350px;
    float: right;
    margin-left: 25px;
    overflow: hidden;
}
}


.race-full-header {
.portable-infobox .pi-group {
    padding: 15px 20px;
padding: 10px;
    color: white;
}
}


.race-full-header h2 {
.portable-infobox .pi-group .pi-header {
    margin: 0;
font-size: 1.1em;
    font-size: 1.4em;
font-weight: 600;
    font-weight: 600;
margin: 10px 0 5px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
padding-bottom: 5px;
border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
color: var(--gray-800, #3c4043);
}
}


.race-full-content {
.portable-infobox .pi-group .pi-header p {
    padding: 20px;
margin: 0 !important;
}
}


.race-badge-large {
.portable-infobox .pi-item {
    display: inline-block;
display: flex;
    padding: 6px 15px;
justify-content: space-between;
    border-radius: 20px;
padding: 5px 0;
    color: white;
border-bottom: 1px dotted var(--gray-300, #dadce0);
    font-weight: 600;
align-items: flex-start;
    font-size: 0.9em;
/* Align items at the top */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
}


.race-full-table {
.portable-infobox .pi-item:last-child {
    width: 100%;
border-bottom: none;
    border-collapse: collapse;
    margin: 15px 0;
}
}


.race-full-table td {
.portable-infobox .pi-data-label {
    padding: 10px 8px;
font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.1);
color: var(--gray-700, #5f6368);
    vertical-align: top;
padding: 0 5px 0 0;
min-width: 40%;
flex-shrink: 0;
/* Prevent label from shrinking */
}
}


.race-full-table td:first-child {
.portable-infobox .pi-data-label p {
    font-weight: 600;
margin: 0 !important;
    color: #2c3e50;
    width: 35%;
    text-align: right;
    padding-right: 15px;
}
}


.race-full-table tr:last-child td {
.portable-infobox .pi-data-value {
    border-bottom: none;
color: var(--gray-900, #202124);
padding: 0 0 0 5px;
min-width: 60%;
text-align: right;
flex-grow: 1;
/* Allow value to grow */
}
}


.category-tag-large {
.portable-infobox .pi-data-value p {
    display: inline-block;
margin: 0 !important;
    padding: 4px 12px;
    border-radius: 12px;
    color: white;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
}


.race-characters-section {
/* Horizontal layout groups - fix table layout */
    margin-top: 20px;
.portable-infobox .pi-horizontal-group {
    padding-top: 15px;
width: 100%;
    border-top: 2px dashed rgba(0,0,0,0.1);
border-collapse: collapse;
margin: 0;
}
}


.race-characters-section h3 {
.portable-infobox .pi-horizontal-group caption {
    margin: 0 0 10px 0;
font-size: 1.1em;
    font-size: 1.1em;
font-weight: 600;
    color: #2c3e50;
margin: 10px 0 5px 0;
padding-bottom: 5px;
border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
color: var(--gray-800, #3c4043);
text-align: left;
caption-side: top;
}
}


.category-list {
.portable-infobox .pi-horizontal-group caption p {
    max-height: 200px;
margin: 0 !important;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
}
}


.category-list ul {
.portable-infobox .pi-horizontal-group th,
    margin: 0;
.portable-infobox .pi-horizontal-group td {
    padding-left: 20px;
padding: 8px;
text-align: center;
border: 1px solid var(--theme-border-color--subtle, #e0e0e0);
}
}


/* ============================================
.portable-infobox .pi-horizontal-group th {
  COLOR SCHEMES FOR ALL BOXES
font-weight: 500;
  ============================================ */
color: var(--gray-700, #5f6368);
background-color: var(--gray-100, #f1f3f4);
}


/* Standard (Green) */
.portable-infobox .pi-horizontal-group th p,
.race-hover-infobox[style*="#4CAF50"] { border-color: #4CAF50; }
.portable-infobox .pi-horizontal-group td p {
.race-full-infobox[style*="#4CAF50"] { border-color: #4CAF50; }
margin: 0 !important;
[style*="#4CAF50"] .race-hover-header,
[style*="#4CAF50"] .race-full-header {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}
}


/* Elven (Purple) */
/* Image styling */
.race-hover-infobox[style*="#9C27B0"] { border-color: #9C27B0; }
.portable-infobox .pi-image {
.race-full-infobox[style*="#9C27B0"] { border-color: #9C27B0; }
padding: 10px;
[style*="#9C27B0"] .race-hover-header,
text-align: center;
[style*="#9C27B0"] .race-full-header {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}
}


/* Minx (Orange) */
.pi-image-thumbnail {
.race-hover-infobox[style*="#FF9800"] { border-color: #FF9800; }
max-width: 100% !important;
.race-full-infobox[style*="#FF9800"] { border-color: #FF9800; }
height: auto;
[style*="#FF9800"] .race-hover-header,
border-radius: 4px;
[style*="#FF9800"] .race-full-header {
border: 1px solid var(--theme-border-color--subtle, #e0e0e0);
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}
}


/* Banished (Red) */
.portable-infobox .pi-image .pi-caption {
.race-hover-infobox[style*="#F44336"] { border-color: #F44336; }
font-size: 0.85em;
.race-full-infobox[style*="#F44336"] { border-color: #F44336; }
color: var(--gray-600, #757575);
[style*="#F44336"] .race-hover-header,
margin-top: 5px;
[style*="#F44336"] .race-full-header {
font-style: italic;
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
}
}


/* Aquatic (Blue) */
.portable-infobox .pi-image .pi-caption p {
.race-hover-infobox[style*="#2196F3"] { border-color: #2196F3; }
margin: 0 !important;
.race-full-infobox[style*="#2196F3"] { border-color: #2196F3; }
[style*="#2196F3"] .race-hover-header,
[style*="#2196F3"] .race-full-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}
}


/* Hybrid (Deep Orange) */
/* Clear float after infobox */
.race-hover-infobox[style*="#FF5722"] { border-color: #FF5722; }
.mw-parser-output::after {
.race-full-infobox[style*="#FF5722"] { border-color: #FF5722; }
content: "";
[style*="#FF5722"] .race-hover-header,
display: table;
[style*="#FF5722"] .race-full-header {
clear: both;
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
}
}


/* Dwarven (Blue Grey) */
/* Mobile responsiveness */
.race-hover-infobox[style*="#607D8B"] { border-color: #607D8B; }
@media (max-width: 768px) {
.race-full-infobox[style*="#607D8B"] { border-color: #607D8B; }
.portable-infobox {
[style*="#607D8B"] .race-hover-header,
float: none;
[style*="#607D8B"] .race-full-header {
max-width: 100%;
    background: linear-gradient(135deg, #607D8B 0%, #455A64 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;
padding: 0;
}
 
.portable-infobox .pi-data-label {
padding-bottom: 2px;
}


/* Feline (Brown) */
.portable-infobox .pi-data-value {
.race-hover-infobox[style*="#795548"] { border-color: #795548; }
padding-top: 2px;
.race-full-infobox[style*="#795548"] { border-color: #795548; }
}
[style*="#795548"] .race-hover-header,
[style*="#795548"] .race-full-header {
    background: linear-gradient(135deg, #795548 0%, #5D4037 100%);
}


/* Color-specific hover infobox arrows */
/* Horizontal table becomes vertical on mobile */
.race-hover-infobox[style*="#4CAF50"]::before { color: #4CAF50; }
.portable-infobox .pi-horizontal-group {
.race-hover-infobox[style*="#9C27B0"]::before { color: #9C27B0; }
display: block;
.race-hover-infobox[style*="#FF9800"]::before { color: #FF9800; }
}
.race-hover-infobox[style*="#F44336"]::before { color: #F44336; }
.race-hover-infobox[style*="#2196F3"]::before { color: #2196F3; }
.race-hover-infobox[style*="#FF5722"]::before { color: #FF5722; }
.race-hover-infobox[style*="#607D8B"]::before { color: #607D8B; }
.race-hover-infobox[style*="#795548"]::before { color: #795548; }


/* ============================================
.portable-infobox .pi-horizontal-group thead,
  RESPONSIVE DESIGN
.portable-infobox .pi-horizontal-group tbody,
  ============================================ */
.portable-infobox .pi-horizontal-group tr {
display: block;
}


@media (max-width: 768px) {
.portable-infobox .pi-horizontal-group th,
    /* Hover infobox - mobile fallback */
.portable-infobox .pi-horizontal-group td {
    .race-hover-container {
display: block;
        display: block;
text-align: left;
    }
border: none;
   
border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
    .race-hover-infobox {
}
        position: fixed;
 
        top: 50% !important;
.portable-infobox .pi-horizontal-group th {
        left: 50% !important;
background-color: transparent;
        bottom: auto !important;
font-weight: 600;
        transform: translate(-50%, -50%) !important;
padding-top: 10px;
        width: 90%;
}
        max-width: 300px;
 
        max-height: 80vh;
.portable-infobox .pi-horizontal-group td {
        overflow-y: auto;
padding-bottom: 10px;
        z-index: 10000;
}
    }
   
    .race-hover-infobox::before {
        display: none;
    }
   
    /* Full infobox */
    .race-full-infobox {
        float: none;
        margin: 20px auto;
        max-width: 100%;
    }
}
}


/* ============================================
/* ===== WEAPON INFOBOX STYLING ===== */
  SPECIAL POSITIONING FOR RIGHT-SIDE 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: #ffffff;
font-size: 0.9em;
}


/* When the race link is in a right-floated infobox,
.weapon-header {
  position the tooltip to appear OVER THE CONTENT AREA (left side) */
background: #1a6a7a;
.infobox {
color: white;
    position: relative;
padding: 8px 10px;
text-align: center;
font-weight: bold;
font-size: 1.5em;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
}


/* Target race containers inside infoboxes */
.weapon-image {
.infobox .race-hover-infobox {
padding: 10px;
    left: auto !important;
text-align: center;
    right: 100% !important; /* Position to the LEFT of the infobox */
    bottom: auto !important;
    top: 0 !important;
    transform: translateX(10px) translateY(0) !important;
    margin-right: 15px; /* Space between tooltip and infobox */
}
}


.infobox .race-hover-infobox::before {
.weapon-image img {
    top: 15px !important;
max-width: 100%;
    left: 100% !important; /* Arrow on the RIGHT side of tooltip */
height: auto;
    right: auto !important;
border-radius: 4px;
    transform: none !important;
border: 1px solid #e0e0e0;
    border-color: transparent transparent transparent currentColor !important;
}
}


.infobox .race-hover-container:hover .race-hover-infobox {
.weapon-section {
    transform: translateX(0) translateY(0) !important;
padding: 0;
}
}


/* Specific for character infobox tables */
.section-title {
table.infobox-characters .race-hover-infobox {
padding: 5px 10px;
    left: auto !important;
color: #4a5568;
    right: 100% !important;
font-weight: bold;
    bottom: auto !important;
border-bottom: 1px solid #a2a9b1;
    top: 0 !important;
margin: 10px 0 5px 0;
    transform: translateX(10px) translateY(0) !important;
    margin-right: 15px;
    z-index: 10001; /* Above everything */
}
}


table.infobox-characters .race-hover-infobox::before {
.weapon-section>div {
    top: 15px !important;
display: flex;
    left: 100% !important;
justify-content: space-between;
    right: auto !important;
padding: 5px 10px;
    transform: none !important;
border-bottom: 1px dotted #a2a9b1;
    border-color: transparent transparent transparent currentColor !important;
}
}


table.infobox-characters .race-hover-container:hover .race-hover-infobox {
.weapon-section>div:last-child {
    transform: translateX(0) translateY(0) !important;
border-bottom: none;
}
}


/* ============================================
.weapon-section>div>span:first-child {
  MEDIAWIKI LINK STYLING FIXES
font-weight: 500;
  ============================================ */
color: #4a5568;
width: 40%;
text-align: left;
}


/* Remove default MediaWiki link styling inside our tooltips */
.weapon-section>div>span:last-child {
.race-hover-footer a,
color: #4a5568;
.race-hover-trigger a {
text-align: right;
    text-decoration: none !important;
width: 60%;
}
}


/* Hide the "page does not exist" red link styling */
/* Horizontal requirements section */
.race-hover-trigger a.new,
.weapon-section>div[style*="display: flex !important; justify-content: space-around"] {
.race-hover-footer a.new {
display: flex !important;
    color: inherit !important;
justify-content: space-around !important;
padding: 10px !important;
text-align: center !important;
border-bottom: none !important;
}
}


/* Style the view full link button */
.weapon-section>div[style*="display: flex !important; justify-content: space-around"]>div {
.race-hover-footer a span.view-full-link {
flex: 1;
    display: inline-block !important;
padding: 5px;
}
}


/* ============================================
.weapon-section>div[style*="display: flex !important; justify-content: space-around"]>div>div:first-child {
  RACE LINK BADGE (alternative style)
font-weight: 500;
  ============================================ */
color: #4a5568;
font-size: 0.9em;
margin-bottom: 3px;
}


.race-link-badge {
.weapon-section>div[style*="display: flex !important; justify-content: space-around"]>div>div:last-child {
    display: inline-block;
font-weight: bold;
    margin: 2px;
color: #4a5568;
font-size: 1.1em;
}
}


.race-link-badge a,
/* Clear float */
.race-link-badge a .race-link {
.mw-parser-output::after {
    display: inline-block;
content: "";
    padding: 4px 12px;
display: table;
    border-radius: 16px;
clear: both;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
}
}


.race-link-badge a:hover .race-link,
/* Mobile responsiveness */
.race-link-badge a .race-link:hover {
@media (max-width: 768px) {
    transform: translateY(-1px);
.weapon-infobox {
     box-shadow: 0 4px 8px rgba(0,0,0,0.3);
float: none;
     text-decoration: none !important;
max-width: 100%;
margin: 0 0 16px 0;
}
}
 
/* ===== MONSTER INFOBOX STYLING ===== */
.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: #ffffff;
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 #e0e0e0;
}
 
.monster-section {
padding: 0;
}
 
.monster-section .section-title {
padding: 5px 10px;
color: #4a5568;
font-weight: bold;
border-bottom: 1px solid #a2a9b1;
margin: 10px 0 5px 0;
}
 
.monster-section>div[style*="display: flex"] {
display: flex;
justify-content: space-between;
padding: 5px 10px;
border-bottom: 1px dotted #a2a9b1;
}
 
.monster-section>div[style*="display: flex"]:last-child {
border-bottom: none;
}
 
.monster-section>div[style*="display: flex"]>span:first-child {
font-weight: 500;
color: #4a5568;
width: 40%;
text-align: left;
}
 
.monster-section>div[style*="display: flex"]>span:last-child {
color: #4a5568;
text-align: right;
width: 60%;
}
 
/* Phase sections */
.monster-section>div[style*="Phase"] {
background: #f0f0f0;
padding: 8px 10px;
font-weight: bold;
color: #7a1a1a;
border-left: 3px solid #7a1a1a;
margin: 10px 0 5px 0;
}
 
.monster-section>div[style*="line-height: 1.4"] {
padding: 5px 10px 10px 10px;
color: #4a5568;
line-height: 1.4;
}
 
/* Lists (for weaknesses, drops, etc.) */
.monster-section ul {
margin: 0 !important;
padding-left: 20px !important;
}
 
.monster-section li {
margin-bottom: 3px;
color: #4a5568;
}
 
/* Clear float */
.mw-parser-output::after {
content: "";
display: table;
clear: both;
}
 
/* Mobile responsiveness */
@media (max-width: 768px) {
.monster-infobox {
float: none;
max-width: 100%;
margin: 0 0 16px 0;
}
}
 
/* ROLES TABLE */
.roles-table {
background-color: transparent !important;
width: 100% !important;
table-layout: auto !important;
margin: 1rem 0 !important;
}
 
.roles-table>tr>th,
.roles-table>*>tr>th {
background-color: var(--teal-600);
color: #000 !important;
padding: 12px 8px !important;
font-weight: bold !important;
text-align: center !important;
border: 1px solid #aaa !important;
}
 
.roles-table>tr>th:first-child,
.roles-table>*>tr>th:first-child {
min-width: 180px !important;
}
 
.roles-table>tr>th:nth-child(2),
.roles-table>*>tr>th:nth-child(2) {
min-width: 300px !important;
}
 
.roles-table>tr>th:nth-child(3),
.roles-table>*>tr>th:nth-child(3),
.roles-table>tr>th:nth-child(4),
.roles-table>*>tr>th:nth-child(4) {
min-width: 150px !important;
}
 
.roles-table>tr>td,
.roles-table>*>tr>td {
padding: 10px 8px !important;
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,
.roles-table>*>tr>td:first-child {
font-weight: bold !important;
white-space: nowrap !important;
}
 
.roles-table>tr>td:nth-child(2),
.roles-table>*>tr>td:nth-child(2) {
white-space: normal !important;
word-break: break-word !important;
}
 
.client-js .roles-table.sortable>*>tr:first-child>th:not(.unsortable),
.jquery-tablesorter th.headerSort {
font-size: 12px !important;
white-space: normal !important;
cursor: pointer !important;
position: relative !important;
padding-right: 20px !important;
}
 
.client-js .roles-table.sortable>*>tr:first-child>th:not(.unsortable):after,
.jquery-tablesorter th.headerSort:after {
content: "↕" !important;
position: absolute !important;
right: 5px !important;
font-size: 10px !important;
opacity: 0.5 !important;
}
 
/* Category breakdown tables */
.category-table,
.location-table {
background-color: transparent !important;
width: 100% !important;
margin: 1rem 0 !important;
}
 
.category-table>tr>th,
.category-table>*>tr>th,
.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;
}
 
/* Race System Styling */
 
.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) {
background-color: #f8f8f8;
}
 
.race-infobox td {
border-bottom: 1px solid #eee;
}
 
/* For smaller screens */
@media screen and (max-width: 768px) {
.race-tooltip {
width: 240px;
font-size: 0.85em;
padding: 10px;
}
 
.race-infobox {
width: 100% !important;
float: none !important;
margin: 10px 0 !important;
}
}
 
/* For very small screens */
@media screen and (max-width: 480px) {
.race-tooltip {
width: 200px;
left: 0;
transform: translateX(0);
}
 
.race-tooltip::after {
left: 20px;
transform: translateX(0);
}
}
/* ===== NAVBOX STYLING ===== */
 
/* 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 */
.navbox-title {
    background: var(--teal-100) !important;
}
 
.navbox-title th {
    padding: 12px 16px !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    text-align: center !important;
    border-bottom: 2px solid var(--teal-800) !important;
}
 
.navbox-title a {
    text-decoration: none !important;
}
 
.navbox-title a:hover {
    text-decoration: underline !important;
}
 
/* Navbox group headers */
.navbox-group {
    background-color: var(--teal-50) !important;
    width: 180px !important;
    min-width: 180px !important;
    vertical-align: top !important;
    border-right: 1px solid var(--teal-200) !important;
}
 
.navbox-group th {
    background: transparent !important;
    font-size: 0.95em !important;
    padding: 10px 12px !important;
    text-align: left !important;
    font-weight: 600 !important;
}
 
/* Navbox list/content cells */
.navbox-list {
    padding: 12px !important;
    line-height: 1.5 !important;
    vertical-align: top !important;
    background-color: var(--card-bg-main) !important;
}
 
.navbox-list td {
    padding: 12px !important;
}
 
/* Navbox list items - SEPARATED STYLE (like chips) */
.navbox-list ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
 
.navbox-list li {
    margin-bottom: 0 !important;
    padding: 0 !important;
    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 */
.navbox-list a,
.navbox-group a {
     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,
.navbox-group a:hover {
    background-color: var(--teal-100) !important;
    text-decoration: underline !important;
}
 
/* Alternative row styling */
.alt .navbox-list {
    background-color: rgba(56, 178, 172, 0.05) !important;
}
 
.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;
     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 ===== */
.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;
}
/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    .navbox {
        margin: 1em 0 !important;
    }
   
    .navbox-small {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        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;
    }
}
/* ===== ACCESSIBILITY ===== */
.navbox a:focus-visible {
    outline: 2px solid var(--focus-ring-color) !important;
    outline-offset: 2px !important;
    border-radius: 3px !important;
}
@media (prefers-reduced-motion: reduce) {
    .navbox,
    .navbox a {
        transition: none !important;
    }
}
}

Latest revision as of 07:59, 6 February 2026

.class {}

/* needed for some reason for the @imports to work */
/* Imports caching */
/*@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Colors.css");*/
@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:Infobox.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");

:root {
	/* Universal Base Styles */
	--font-size: 16px;
	/* Slightly larger base */
	--font-size-small: 14px;
	--font-size-large: 18px;
	--font-size-xlarge: 20px;
	--font-size-h1: 32px;
	--font-size-h2: 26px;
	--font-size-h3: 22px;
	--font-size-h4: 18px;

	--line-height: 1.6;
	/* More breathing room */
	--line-height-headings: 1.3;
	--line-height-tight: 1.25;

	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--wiki-content-text-color: var(--theme-page-text-color, #1a2a2a);

	/* ===== SPACING ===== */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-2xl: 48px;

	/* ===== SHADOWS & DEPTH ===== */
	--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);
	--shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

	/* ===== BORDERS & RADIUS ===== */
	--wiki-content-border-color: var(--theme-border-color, #a1e9dc);
	--border-radius-sm: 4px;
	--border-radius-md: 8px;
	--border-radius-lg: 2px;
	--border-radius-full: 9999px;

	--border-width: 1px;
	--border-width-thick: 2px;
	--border-width-xthick: 3px;

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

	/* ===== Z-INDEX LAYERS ===== */
	--z-index-dropdown: 1000;
	--z-index-sticky: 1020;
	--z-index-fixed: 1030;
	--z-index-modal-backdrop: 1040;
	--z-index-modal: 1050;
	--z-index-popover: 1060;
	--z-index-tooltip: 1070;

	/* ===== FOCUS STATES ===== */
	--focus-ring-color: rgba(79, 209, 199, 0.6);
	--focus-ring-color-dark: rgba(79, 209, 199, 0.8);
	--focus-ring-width: 3px;
	--focus-ring-offset: 2px;

	/* ===== GRAY SCALE (Optimized) ===== */
	--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;
	--gray-050: #ffffff;

	/* ===== TEAL/BLUE 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-050: #e6fffa;

	/* ===== OTHER COLORS ===== */
	--light-blue: #90cdf4;
	--gold: #d69e2e;
	--purple: #9f7aea;

	/* ===== ANIMATIONS ===== */
	--animation-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
	--animation-spin: spin 1s linear infinite;
	--animation-bounce: bounce 1s infinite;

	/* Universal border */
	--border-color: var(--theme-border-color);
	/*Navigation*/
	--mb-navigation-left-spacing: 0px;
	--mb-navigation-right-spacing: 0px;
	--mb-navigation-tab-spacing: 0px;
	--mb-navigation-gap-between-left-and-right: 0px;
	--mb-navigation-bottom-spacing: 0px;
	--mb-navigation-border-bottom-width: 1px;
	--mb-navigation-border-width: 1px;
	--mb-navigation-border-style: solid;
	--mb-navigation-border-color: var(--theme-border-color);
	--mb-navigation-border-bottom-color: var(--theme-border-color);
	--mb-navigation-border-bottom-style: solid;
	--mb-navigation-text-color: var(--theme-page-text-color);
	--mb-navigation-background-color: var(--theme-page-background-color--secondary);
	--mb-navigation-background-opacity: 100%;
	--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;
	--mb-navigation-font-weight: normal;

	/* Selected tab variables */
	--mb-navigation-selected-border-color: var(--theme-accent-color);
	--mb-navigation-selected-background-color: var(--theme-accent-color);
	--mb-navigation-selected-text-color: var(--theme-accent-label-color);
	--mb-navigation-selected-border-width: 1px;
	--mb-navigation-selected-border-style: solid;

	/* Hover variables */
	--mb-navigation-text-color--hover: var(--theme-link-color);
	--mb-navigation-border-color--hover: var(--theme-border-color);

	/* Content variables */
	--mb-content-border-top-radius: 0px;
	--mb-content-border-radius: 0px;
	--mb-is-navigation-inside-content: 0;

	/* Dropdown variables */
	--mb-navigation-dropdown-border-width: 1px;
	--mb-navigation-dropdown-border-color: var(--theme-border-color);
	--mb-navigation-dropdown-border-radius: 4px;
	--mb-navigation-dropdown-background-color: var(--card-bg-main);
	--mb-navigation-dropdown-background-opacity: 100%;
	--mb-navigation-dropdown-box-shadow: var(--shadow-lg);
	--mb-navigation-dropdown-padding: var(--spacing-sm) 0;
	--mb-navigation-dropdown-offset: 4px;
	--mb-navigation-dropdown-text-color: var(--theme-page-text-color);
	--mb-navigation-dropdown-text-color--hover: var(--theme-link-color);
	--mb-navigation-dropdown-item-padding: 8px 16px;

	/* Search variables */
	--mb-navigation-search-bottom-spacing: 3px;
	--mb-navigation-search-font-size: 0.8125em;
	--mb-navigation-search-height: 2em;
	--mb-navigation-search-button-color: var(--theme-accent-color);
	--mb-navigation-search-button-color-opacity: 80%;
	--mb-navigation-search-button-color--hover: var(--theme-accent-color--hover);
	--mb-navigation-search-button-color-opacity--hover: 95%;

	/* Icon variables */
	--mb-navigation-icon-size: 1em;
	--mb-navigation-tab-padding-x--icon: 0.75em;
}

/* Light Theme */
:root body:not(.skin-vector-dark) {
	/* ===== BASE COLORS ===== */
	--theme-page-text-color: #1a2a2a;
	--theme-page-text-color--inverse: #ffffff;
	--theme-page-background-color: #f5fdfb;
	/* Slightly darker for less glare */
	--theme-page-background-color--rgb: 245, 253, 251;
	--theme-page-background-color--secondary: #e8f5f3;
	/* Better contrast: 13:1 */
	--theme-page-background-color--secondary--rgb: 232, 245, 243;

	/* ===== LINKS ===== */
	--theme-link-color: #007d7a;
	/* Darker for 7:1 contrast */
	--theme-link-color--rgb: 0, 125, 122;
	--theme-link-color--hover: #005652;
	/* Even darker on hover */
	--theme-link-color--visited: #4a5568;
	/* Distinct visited state */
	--theme-link-label-color: #00474a;
	--mw-head-link-color: #007d7a;
	--new-link-color: #00a3a3;
	/* For "red links" - actually teal */

	/* ===== ACCENTS ===== */
	--theme-accent-color: #38b2ac;
	/* More vibrant */
	--theme-accent-color--rgb: 56, 178, 172;
	--theme-accent-color--hover: #2c9c96;
	/* Darker hover */
	--theme-accent-label-color: #ffffff;

	/* ===== BORDERS ===== */
	--theme-border-color: #a1e9dc;
	/* More visible */
	--theme-border-color--rgb: 161, 233, 220;
	--theme-border-color--subtle: #d1f5ee;
	/* For subtle separators */

	/* ===== STATUS COLORS (Enhanced for visibility) ===== */
	--theme-alert-color: #d53f3f;
	/* More vibrant red - 7:1 contrast */
	--theme-alert-color--rgb: 213, 63, 63;
	--theme-alert-color--hover: #b03030;
	--theme-alert-color--secondary: #ffeaea;
	/* Softer background */
	--theme-alert-label: #ffffff;

	--theme-warning-color: #c05621;
	/* Warmer orange - 6.5:1 contrast */
	--theme-warning-color--rgb: 192, 86, 33;
	--theme-warning-color--secondary: #fff4e6;
	--theme-warning-label: #1a2a2a;
	/* Dark text on light background */

	--theme-success-color: #2e8b57;
	/* More distinct green - 7:1 contrast */
	--theme-success-color--rgb: 46, 139, 87;
	--theme-success-color--secondary: #e6f7ed;
	--theme-success-label: #1a2a2a;
	/* Dark text on light background */

	--theme-message-color: #6b46c1;
	/* More vibrant purple */
	--theme-message-color--rgb: 107, 70, 193;
	--theme-message-color--secondary: #f3f0ff;
	--theme-message-label: #ffffff;

	--theme-info-color: #3182ce;
	/* Added info color */
	--theme-info-color--secondary: #ebf8ff;
	--theme-info-label: #1a2a2a;

	/* ===== ALERT HIGHLIGHT ===== */
	--theme-alert-highlight: #c53030;
	--theme-alert-highlight--rgb: 197, 48, 48;
	--theme-alert-highlight--hover: #e53e3e;

	/* ===== CUSTOM VARIABLES ===== */
	--theme-alt-text: #ffffff;
	--theme-accent-bg: #e6fffa;
	--theme-infobox-bg: #f0faf9;
	/* Less harsh than pure white */
	--theme-card-shadow: var(--shadow-sm);
	--theme-card-shadow-hover: var(--shadow-md);

	/* =====  CUSTOM COLORS ===== */
	--color-player: #60d9c5;
	--color-accent: #38b2ac;
	--color-npc: #9f7aea;
	--color-npc-secondary: #d6bcfa;

	/* ===== CARD BACKGROUNDS ===== */
	--card-bg-main: #ffffff;
	--card-bg-sub: #e6fffa;
	--card-bg-elevated: #ffffff;
	--card-border-color: var(--theme-border-color);

	/* ===== LETTER BACKGROUND ===== */
	--letter-bg: #f0fff4;
	--letter-border: #c6f6d5;

	/* ===== USER HIGHLIGHTS ===== */
	--custom-admin-highlight: #c05621;
	--custom-contentmoderator-highlight: #6b46c1;
	--custom-bot-color: #718096;
	--custom-bot-font-style: italic;

	/* ===== NAMED ACCENTS ===== */
	--accent: var(--theme-accent-color);
	--player: var(--color-player);
	--npc: var(--color-npc);

	/* ===== INPUTS ===== */
	--input-bg: #ffffff;
	--input-border: #cbd5e0;
	--input-border-focus: var(--theme-accent-color);
	--input-text: var(--theme-page-text-color);
	--input-placeholder: #a0aec0;

	/* ===== CODE & PRE ===== */
	--code-bg: #f7fafc;
	--code-border: #e2e8f0;
	--code-text: var(--theme-page-text-color);
	--pre-bg: #1a202c;
	--pre-text: #e2e8f0;

	/* ===== TABLE STYLES ===== */
	--table-header-bg: #e6fffa;
	--table-header-text: var(--theme-page-text-color);
	--table-row-even: #f7fafc;
	--table-row-odd: #ffffff;
	--table-border: var(--theme-border-color);
}

/* Dark Theme */
:root .skin-vector-dark {
	/* ===== BASE COLORS ===== */
	--wiki-content-text-color: var(--theme-page-text-color, #e6f7f5);
	--theme-page-text-color: #e6f7f5;
	/* Warmer light color */
	--theme-page-text-color--inverse: #1a202c;
	--theme-page-background-color: rgba(22, 28, 36, 0.98);
	/* Softer dark */
	--theme-page-background-color--rgb: 22, 28, 36;
	--theme-page-background-color--secondary: #2a363d;
	/* Warmer, better contrast */
	--theme-page-background-color--secondary--rgb: 42, 54, 61;

	/* ===== LINKS ===== */
	--theme-link-color: #5fd9cf;
	/* Brighter for visibility */
	--theme-link-color--rgb: 95, 217, 207;
	--theme-link-color--hover: #81e6d9;
	--theme-link-color--visited: #a0aec0;
	--theme-link-label-color: #e6f7f5;
	--mw-head-link-color: #5fd9cf;
	--new-link-color: #4fd1c7;
	/* For "red links" */

	/* ===== ACCENTS ===== */
	--theme-accent-color: #5fd9cf;
	--theme-accent-color--rgb: 95, 217, 207;
	--theme-accent-color--hover: #81e6d9;
	--theme-accent-label-color: #1a202c;

	/* ===== BORDERS ===== */
	--theme-border-color: #4d6872;
	/* More visible */
	--theme-border-color--rgb: 77, 104, 114;
	--theme-border-color--subtle: #3a5059;

	/* ===== STATUS COLORS ===== */
	--theme-alert-color: #fc8181;
	--theme-alert-color--rgb: 252, 129, 129;
	--theme-alert-color--hover: #feb2b2;
	--theme-alert-color--secondary: #4a2626;
	/* Darker background */
	--theme-alert-label: #1a202c;
	/* Dark text on light red */

	--theme-warning-color: #f6ad55;
	--theme-warning-color--rgb: 246, 173, 85;
	--theme-warning-color--secondary: #4a3a20;
	--theme-warning-label: #1a202c;

	--theme-success-color: #68d391;
	--theme-success-color--rgb: 104, 211, 145;
	--theme-success-color--secondary: #22543d;
	--theme-success-label: #1a202c;

	--theme-message-color: #b794f4;
	--theme-message-color--rgb: 183, 148, 244;
	--theme-message-color--secondary: #3a3664;
	--theme-message-label: #1a202c;

	--theme-info-color: #63b3ed;
	--theme-info-color--secondary: #2c5282;
	--theme-info-label: #1a202c;

	/* ===== CUSTOM VARIABLES ===== */
	--theme-alt-text: #2d3748;
	--theme-accent-bg: #2d3748;
	--theme-infobox-bg: #2a363d;
	--theme-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	--theme-card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.4);

	/* ===== CUSTOM COLORS ===== */
	--color-player: #48b8aa;
	--color-accent: #5fd9cf;
	--color-npc: #b794f4;
	--color-npc-secondary: #d6bcfa;

	/* ===== CARD BACKGROUNDS ===== */
	--card-bg-main: #2a363d;
	--card-bg-sub: #3a464d;
	--card-bg-elevated: #34444d;
	--card-border-color: var(--theme-border-color);

	/* ===== LETTER BACKGROUND ===== */
	--letter-bg: #1a272b;
	--letter-border: #2d4a3c;

	/* ===== USER HIGHLIGHTS ===== */
	--custom-admin-highlight: #f6ad55;
	--custom-contentmoderator-highlight: #b794f4;
	--custom-bot-color: #a0aec0;
	--custom-bot-font-style: italic;

	/* ===== ALERT HIGHLIGHT ===== */
	--theme-alert-highlight: #e53e3e;
	--theme-alert-highlight--rgb: 229, 62, 62;
	--theme-alert-highlight--hover: #fc8181;

	/* ===== NAMED ACCENTS ===== */
	--accent: var(--theme-accent-color);
	--player: var(--color-player);
	--npc: var(--color-npc);

	/* ===== INPUTS ===== */
	--input-bg: #2d3748;
	--input-border: #4a5568;
	--input-border-focus: var(--theme-accent-color);
	--input-text: var(--theme-page-text-color);
	--input-placeholder: #718096;

	/* ===== CODE & PRE ===== */
	--code-bg: #2d3748;
	--code-border: #4a5568;
	--code-text: var(--theme-page-text-color);
	--pre-bg: #1a202c;
	--pre-text: #e2e8f0;

	/* ===== TABLE STYLES ===== */
	--table-header-bg: #2d4a4d;
	--table-header-text: var(--theme-page-text-color);
	--table-row-even: #2a363d;
	--table-row-odd: #34444d;
	--table-border: var(--theme-border-color);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes bounce {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

/* ===== LINK STYLING ===== */
.mw-body a,
.mw-body-content a {
	text-decoration: none;
	transition: color var(--transition-fast) ease,
		background-color var(--transition-fast) ease,
		border-color var(--transition-fast) ease;
}

.mw-body a:not(.new):hover,
.mw-body-content a:not(.new):hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.mw-body a.new,
.mw-body a.new:visited,
.mw-body-content a.new {
	color: var(--new-link-color) !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;
	transition: all var(--transition-base) ease !important;
}

.mw-body a.new:hover,
.mw-body-content a.new:hover {
	background-color: rgba(0, 163, 163, 0.15) !important;
	border-bottom-style: solid !important;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(0, 163, 163, 0.2) !important;
}

/* Dark theme new links */
.skin-vector-dark .mw-body a.new,
.skin-vector-dark .mw-body a.new:visited,
.skin-vector-dark .mw-body-content a.new {
	color: var(--new-link-color) !important;
	background-color: rgba(79, 209, 199, 0.1) !important;
	border-bottom-color: rgba(79, 209, 199, 0.5) !important;
}

/* ===== FOCUS STYLES ===== */
*:focus {
	outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
	outline-offset: var(--focus-ring-offset) !important;
	border-radius: var(--border-radius-sm) !important;
}

*:focus:not(:focus-visible) {
	outline: none !important;
}

*:focus-visible {
	outline: var(--focus-ring-width) solid var(--focus-ring-color) !important;
	outline-offset: var(--focus-ring-offset) !important;
	border-radius: var(--border-radius-sm) !important;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
	:root {
		--transition-fast: 0ms;
		--transition-base: 0ms;
		--transition-slow: 0ms;
	}

	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	:root body:not(.skin-vector-dark) {
		--theme-link-color: #005652;
		--theme-border-color: #1a2a2a;
		--new-link-color: #007d7a;
	}

	:root .skin-vector-dark {
		--theme-link-color: #81e6d9;
		--theme-border-color: #718096;
		--new-link-color: #4fd1c7;
	}

	.mw-body a.new,
	.mw-body-content a.new {
		border-bottom-width: 2px !important;
		background-color: transparent !important;
	}
}

/* ===== PRINT STYLES ===== */
@media print {
	:root {
		--theme-page-text-color: #000000;
		--theme-page-background-color: #ffffff;
		--theme-link-color: #000000;
	}

	a {
		color: #000000 !important;
		text-decoration: underline !important;
	}

	a.new::after {
		content: " [new]";
		font-size: smaller;
		color: #666;
	}
}

/* ===== UTILITY CLASSES (Optional but helpful) ===== */
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.text-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.text-balance {
	text-wrap: balance;
}

.shadow-subtle {
	box-shadow: var(--shadow-sm);
}

.shadow-elevated {
	box-shadow: var(--shadow-md);
}

.card {
	background-color: var(--card-bg-main);
	border-radius: var(--border-radius-md);
	border: 1px solid var(--card-border-color);
	box-shadow: var(--theme-card-shadow);
	transition: all var(--transition-base) ease;
}

.card:hover {
	box-shadow: var(--theme-card-shadow-hover);
	transform: translateY(-2px);
}

.status-alert {
	background-color: var(--theme-alert-color--secondary);
	color: var(--theme-alert-color);
	border-left: 4px solid var(--theme-alert-color);
}

.status-warning {
	background-color: var(--theme-warning-color--secondary);
	color: var(--theme-warning-color);
	border-left: 4px solid var(--theme-warning-color);
}

.status-success {
	background-color: var(--theme-success-color--secondary);
	color: var(--theme-success-color);
	border-left: 4px solid var(--theme-success-color);
}

.status-info {
	background-color: var(--theme-info-color--secondary);
	color: var(--theme-info-color);
	border-left: 4px solid var(--theme-info-color);
}

/* Typography improvements */
h1,
h2,
h3,
h4,
h5,
h6,
.mw-body,
.editOptions,
.ace-tm,
.vector-menu-heading,
.ace_cursor,
.vector-menu-content-list>a,
.vector-menu-heading-label {
	color: var(--theme-page-text-color);
}

.vector-menu-heading-label {
	font-size: 0.8125em;
}

/* Footer and panels */
.mw-footer,
.editOptions,
.ace-tm,
#mw-panel .vector-menu-heading {
	background-color: var(--theme-page-background-color--secondary) !important;
}

/* Sidebar and lists */
.ace-tm .ace_gutter,
.selected.mw-list-item,
#mw-panel .vector-menu-content-list {
	background-color: var(--theme-page-background-color--secondary) !important;
	color: var(--theme-page-text-color);
}

/* Notification improvements */
.skin-vector-dark #mw-notification-area.mw-notification.mw-notification-type-error,
.skin-vector-dark .postedit.mw-notification.mw-notification-type-error,
.skin-vector-dark .wds-table-td-alert {
	background-color: var(--theme-alert-highlight);
	color: var(--theme-alert-label);
}

.text-error {
	color: var(--theme-alert-highlight);
}

.diff td.diff-addedline {
	background-color: var(--teal-050);
	border-color: var(--theme-success-color);
	border-width: 1px 1px 1px 4px;
	color: var(--theme-success-color);
}

.diff td.diff-addedline .diffchange {
	background-color: var(--theme-success-color);
	color: var(--theme-success-label);
	font-weight: normal;
}

.diff td.diff-deletedline {
	background-color: var(--theme-alert-color--secondary);
	border-color: var(--theme-alert-color);
	border-width: 1px 1px 1px 4px;
	color: var(--theme-alert-color);
}

.diff td.diff-deletedline .diffchange {
	background-color: var(--theme-alert-color);
	color: var(--theme-alert-label);
	font-weight: normal;
}

.diff td.diff-context {
	background: transparent;
	border-color: var(--theme-border-color);
	color: var(--theme-page-text-color);
}

/* CodeMirror */
.CodeMirror .CodeMirror-scroll {
	background: var(--theme-page-background-color);
	color: var(--theme-page-text-color);
}

.CodeMirror .CodeMirror-linenumber,
.CodeMirror .CodeMirror-gutters {
	background: var(--theme-page-background-color--secondary);
	color: var(--theme-page-text-color);
	border-right: 1px solid var(--theme-border-color);
}

/* Color template improvements */
.text-player,
.text-player * {
	color: var(--color-player);
	font-weight: 600;
}

.bg-player {
	background-color: var(--color-player);
	color: var(--theme-page-text-color--inverse);
	padding: 2px 6px;
	border-radius: 3px;
}

.text-accent,
.text-accent * {
	color: var(--color-accent);
	font-weight: 600;
}

.bg-accent {
	background-color: var(--color-accent);
	color: var(--theme-accent-label-color);
	padding: 2px 6px;
	border-radius: 3px;
}

/* User highlights - improved contrast */
a[href="https://mbwiki.stairwaygames.work/wiki/User:Ais"],
a[href="/wiki/User:Ais"],
a[href="/wiki/Special:Contributions/Ais"] {
	color: var(--custom-admin-highlight);
	font-weight: 600;
}

/* Bots */
a[href="https://coralisland.wiki/wiki/User:NoriBot"],
a[href="/wiki/User:NoriBot"],
a[href="/wiki/Special:Contributions/NoriBot"],
a[href="https://coralisland.wiki/wiki/User:VoirBot"],
a[href="/wiki/User:VoirBot"],
a[href="/wiki/Special:Contributions/VoirBot"] {
	color: var(--custom-bot-color);
	font-style: var(--custom-bot-font-style);
	opacity: 0.9;
}

/* Additional improvements for better readability */
.mw-body-content {
	line-height: 1.6;
}

/* Improve contrast for links */
a {
	transition: color 0.2s ease;
}

a:hover {
	text-decoration: underline;
}

/* Improve table readability */
.mw-parser-output table {
	background-color: var(--theme-page-background-color);
	border: none;
}

.mw-parser-output table th {
	background-color: var(--theme-page-background-color--secondary);
}

.mw-parser-output table td {
	border: none;
}

body.skin-vector-dark {
	/*background: url("https://coralwiki.stairwaygames.com/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;*/
	background-color: #0f1419 !important;
	background-image: radial-gradient(circle at top,
			#1a2a2a 0%,
			#0f1419 100%) !important;
}

.mobileHide,
.mobile-only,
.no-desktop {
	display: none !important;
}

/* || FIXES */
.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(--mw-head-link-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;
}

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

.CodeMirror-lines span {
	font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
	/* Source Editor */
}

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

.mw-input .mw-abusefilter-editor * {
	font-size: 13px;
	font-family: monospace, monospace;
}

/* Hide default TOOLBOX nav section on sidebar */
#mw-navigation>#mw-panel>#p-tb {
	display: none;
}

/* Column template fix */
.columntemplate ul,
.columntemplate ol {
	margin-top: 0;
}

/* RC */
.mw-changeslist table {
	width: unset;
}

.gift-table .icon-list-container {
	width: auto;
}

/* Quote template */
.quotetable {
	width: auto;
}

.Bug6200 {
	margin-bottom: 0.75em;
}

/* Code block */
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: monospace, monospace;
	font-size: 13px;
}

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

/* || MAIN PAGE */
/*banner links*/
.banner-links a {
	color: #ffffff !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
	font-weight: 600 !important;
}

/* mp-banner */
#mp-banner {
	position: absolute;
	width: 100%;
	height: 10%;
	filter: blur(0px);
	z-index: -1;
	background: url(filepath://Temporary-banner-top.jpg) top center/cover no-repeat;
	background-color: #000000;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top center;
}

body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-submit h1.firstHeading {
	display: none;
}

body.page-Main_Page.action-view .main-page-top {
	/*	background-image: url(https://coralwiki.stairwaygames.com/w/images/c/c2/441Cover_image_only.png); */
	background-color: var(--theme-page-background-color--secondary, #000000);
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: #fffff;
	text-align: center;
	align-items: center;
}

/* ||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: var(--font-family-headings);
	font-weight: bold;
}

/* TOC hide headings */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}

/* For Template: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;
	-moz-box-sizing: border-box;
	-moz-border-radius-topleft: 0.5em;
	background: transparent;
	border-radius: 6px;
}

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

/* For Template:Chat */
.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);
}

/* Hatnote */
.hatnote {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	margin-top: 0.6rem;
	margin-bottom: 0.8rem;
	background-color: var(--color-surface-2);
	border: 1px solid var(--border-color-base--darker);
	border-radius: var(--border-radius-base);
	color: var(--color-base--emphasized);
	font-size: 0.875rem;
	line-height: 1.4;
}

.hatnote-icon img {
	width: 14px;
	height: auto;
	margin-right: 10px;
	opacity: var(--opacity-icon-base);
}

.hatnote.hatnote-high {
	background-color: var(--background-color-destructive-subtle);
	border-color: var(--color-destructive);
}

.hatnote.hatnote-medium {
	background-color: var(--background-color-warning-subtle);
	border-color: var(--color-warning);
}

.hatnote.hatnote-low {
	background-color: var(--color-surface-2);
}

/* Dark mode */
html.skin-citizen-dark .hatnote-icon img {
	filter: invert(1);
}

/* For [[Module:Formatting]] */
code.code-block {
	display: inline-block;
	line-height: 21px;
}

code.code-block-table {
	display: table;
	line-height: 21px;
}

span.variable {
	opacity: 0.65;
}

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

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

/* Quote */

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

/* Fix to Template Data */
.mw-templatedata-doc-params>*>tr>th {
	width: 150px;
}

.mw-templatedata-doc-params {
	width: auto;
	max-width: 100%;
}

/* Space sidebar arrows properly */
#mw-panel.collapsible-nav .portal:is(.collapsed, .expanded) .vector-menu-heading {
	background-position: 95% center;
}

/* Theme toggle */
.wds-icon {
	align-self: center;
	margin: 0 6px;
	pointer-events: none;
	fill: currentColor;
}

.wds-icon-small {
	height: 18px;
	min-width: 18px;
	width: 18px;
}

#p-personal .vector-menu-content-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	font-size: 0.875em;
}

.cols {
	background-color: var(--theme-page-background-color--secondary);
}

#pagehistory li.selected {
	background-color: var(--theme-page-background-color--secondary);
	color: var(--theme-page-text-color);
	outline: 1px dashed var(--theme-border-color);
}

/* ===== IMproved Main Page Framework CSS ===== */

#mp-container {
	display: grid;
	gap: 20px;
	margin: 20px 0;
	width: 100%;
	min-width: 100%;
}

/* Desktop layout */
#mp-container {
	grid-template-areas: var(--main-page-layout--desktop, "");
	grid-template-columns: var(--main-page-layout-columns--desktop,
			repeat(3, 1fr));
}

/* Tablet layout */
@media (max-width: 1024px) {
	#mp-container {
		grid-template-areas: var(--main-page-layout--tablet,
				var(--main-page-layout--desktop, ""));
		grid-template-columns: var(--main-page-layout-columns--tablet,
				var(--main-page-layout-columns--desktop, repeat(2, 1fr)));
	}
}

/* Mobile layout */
@media (max-width: 768px) {
	#mp-container {
		grid-template-areas: var(--main-page-layout--mobile,
				var(--main-page-layout--tablet, var(--main-page-layout--desktop, "")));
		grid-template-columns: var(--main-page-layout-columns--mobile,
				var(--main-page-layout-columns--tablet,
					var(--main-page-layout-columns--desktop, 1fr)));
	}
}

/* Social Links Improvements */
/* Clean social links styling -  theme colors */
.social {
	position: relative;
	z-index: 999;
	text-align: center;
	margin: 20px auto;
	padding: 15px 0;
	max-width: 85%;
	backdrop-filter: blur;
	background: var(--theme-page-background-color--secondary);
	border-radius: 12px;
	border: 1px solid var(--theme-border-color);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

/* Each social link item */
.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;
	flex: 1;
	max-width: 200px;
}

/* Hover effect */
.social .iconname:hover {
	background: var(--theme-accent-bg) !important;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: var(--theme-accent-color);
}

/* The link inside - uses theme colors */
.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;
}

/* Hover text color */
.social .iconname:hover a.external {
	color: var(--theme-link-color) !important;
}

/* Icon container */
.social .iconname .floatleft {
	display: flex !important;
	align-items: center !important;
	margin-right: 10px !important;
	margin-bottom: 0 !important;
	float: none !important;
}

/* Icon image - no filter, keep original */
.social .iconname .floatleft a img {
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	/* Remove filter - keep original icon colors */
	filter: none !important;
}

/* Text next to icon */
.social .iconname .external-text {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
}

/* Responsive design */
@media (max-width: 1024px) {
	.social {
		max-width: 95% !important;
		gap: 10px;
	}

	.social .iconname {
		min-width: 160px;
		padding: 10px 15px;
	}
}

@media (max-width: 768px) {
	.social {
		flex-direction: column;
		gap: 8px;
		max-width: 100% !important;
		padding: 10px;
	}

	.social .iconname {
		width: 100% !important;
		max-width: 100% !important;
		min-width: auto !important;
		justify-content: flex-start;
		padding: 10px 20px;
	}

	.social .iconname a.external {
		justify-content: flex-start;
	}
}

/* Main Page Layout */
.game-intro-card {
	background: var(--card-bg-main);
	border-radius: var(--border-radius-lg);
	border: 1px solid var(--theme-border-color);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	margin-bottom: var(--spacing-lg);
	transition: all var(--transition-base) ease;
	position: relative;
	/* For better z-index control */
}

.game-intro-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
	border-color: var(--teal-300);
}

.game-header {
	background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
	padding: var(--spacing-md) var(--spacing-lg);
	display: flex;
	flex-direction: column;
	position: relative;
}

.game-header::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg,
			transparent 0%,
			rgba(255, 255, 255, 0.05) 50%,
			transparent 100%);
	pointer-events: none;
}

.mana-text,
.mana-text h2 {
	font-size: 1.8em;
	font-weight: 900;
	letter-spacing: 2px;
	color: #fff;
	text-shadow: 0 0 10px rgba(162, 242, 225, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 1;
	margin: 0;
	text-decoration: none !important;
	/* Add this line */
	border-bottom: none !important;
	/* Ensure no border */
}

.game-intro-card h2,
.game-intro-card .mana-text,
.game-header h2 {
	text-decoration: none !important;
	border-bottom: none !important;
}

.mana-line {
	height: 3px;
	width: 100px;
	background: var(--teal-200);
	margin-top: var(--spacing-xs);
	border-radius: 2px;
	transition: width var(--transition-base) ease;
}

.game-intro-card:hover .mana-line {
	width: 107px;
}

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

/* Grid-based approach for perfect alignment */
.updates-list.grid-style,
.game-content ul.grid-style {
	display: grid;
	gap: 4px;
	padding-left: 0;
}

.updates-list.grid-style li,
.game-content ul.grid-style li {
	display: grid;
	grid-template-columns: 20px 1fr;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
}

.updates-list.grid-style li::before,
.game-content ul.grid-style li::before {
	position: static;
	transform: none;
	left: auto;
	top: auto;
	grid-column: 1;
	text-align: center;
}

.updates-list.grid-style li span,
.game-content ul.grid-style li span {
	grid-column: 2;
}

.game-content a {
	color: var(--theme-link-color);
	text-decoration: none;
	font-weight: 600;
	transition: all var(--transition-fast) ease;
	position: relative;
}

.game-content a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
	/* Better underline positioning */
}

.game-content a::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--teal-300);
	transition: width var(--transition-fast) ease;
}

.game-content a:hover::after {
	width: 100%;
}

/* Responsive adjustments - refined */
@media (max-width: 768px) {
	.game-intro-card {
		margin: var(--spacing-sm);
		border-radius: var(--border-radius-md);
	}

	.game-header {
		padding: var(--spacing-sm) var(--spacing-md);
	}

	.mana-text {
		font-size: 1.5em;
		letter-spacing: 1px;
	}

	.mana-line {
		width: 40px;
	}

	.game-content {
		padding: var(--spacing-md);
	}

	.game-content,
	.updates-list li {
		font-size: 1em;
	}

	.updates-list,
	.game-content ul {
		padding-left: var(--spacing-md);
	}

	.updates-list li:before,
	.game-content li:before {
		left: calc(-1 * var(--spacing-md));
	}
}

/* Dark theme adjustments - refined */
.skin-vector-dark .game-intro-card {
	background: var(--card-bg-elevated);
}

.skin-vector-dark .game-header {
	background: linear-gradient(90deg,
			color-mix(in srgb, var(--teal-700) 80%, black 20%) 0%,
			color-mix(in srgb, var(--teal-900) 80%, black 20%) 100%);
}

.skin-vector-dark .mana-text {
	text-shadow: 0 0 10px rgba(95, 217, 207, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.skin-vector-dark .updates-list li:before,
.skin-vector-dark .game-content li:before {
	color: var(--teal-400);
}

/* Focus states for accessibility */
.game-content a:focus {
	outline: 2px solid var(--focus-ring-color);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

	.game-intro-card,
	.game-intro-card:hover,
	.mana-line,
	.updates-list li,
	.updates-list li:before,
	.game-content li,
	.game-content li:before,
	.game-content a,
	.game-content a::after {
		transition: none;
	}

	.game-intro-card:hover {
		transform: none;
	}
}

body {
	font-family: Helvetica, Arial, sans-serif !important;
	background-color: @background-color-secondary;
	/* background: url("https://mbwiki.stairwaygames.work/w/images/3/3d/384Web_background.png")*/
	background-color: rgba(0, 0, 0, 0.1) !important;
	overflow-y: scroll;
}

ul {
	list-style: none;
}

.wikitable,
.scheduletable {
    width: auto;
    min-width: 300px;
    max-width: 100%;
    margin: 1.5em auto;
    border-collapse: collapse;
    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);
    table-layout: auto; 
}

.fishtable {
	table-layout: auto;
	width: 100%;
}

.artisan-table {
	table-layout: auto;
	width: 60%;
	border-spacing: 0;
	max-width: 100%;
	margin: 15px;
	border: 1px solid gray;
}

.artisan-table>tr>th,
.artisan-table>*>tr>th {
	background-color: #e7c361 !important;
	max-width: fit-content;
}

.artisan-table>tr>th,
.artisan-table>tr>td,
.artisan-table>*>tr>th,
.artisan-table>*>tr>td {
	border: 1px solid #a2a9b1;
	padding: 0.2em 0.4em;
}

.quotetable {
	border-spacing: 0;
	width: 100%;
	max-width: 100%;
}

.quotetable>caption {
	text-align: left;
}

.heart {
	margin-left: -7px;
	margin-bottom: 5px;
}

.quotetable>tbody>tr>td {
	padding: 0;
}

blockquote {
	margin: 0 10px;
}

.detail-list ul {
	list-style: none;
}

caption .mw-collapsible-toggle,
.mw-content-ltr caption .mw-collapsible-toggle,
.mw-content-rtl caption .mw-collapsible-toggle,
.mw-content-rtl .mw-content-ltr caption .mw-collapsible-toggle,
.mw-content-ltr .mw-content-rtl caption .mw-collapsible-toggle {
	float: right;
}

body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-submit h1.firstHeading {
	display: none;
}

.ci-letter-wrapper {
	border-radius: 20px;
	padding: 20px;
	max-width: 35em;
	font-weight: 700;
	background: #faf3ea;
}

.ci-letter-header {
	padding-bottom: 28px;
}

.ci-letter-content {
	font-weight: 400;
}

.ci-letter-footer {
	display: flex;
	padding-top: 28px;
	justify-content: space-between;
	font-weight: 700;
	align-items: center;
}

.ci-letter-attachment {
	max-width: 70%;
}

.card-list-container {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.custom-card {
	display: inline-block;
	position: relative;
	width: fit-content;
	align-self: baseline;
}

.custom-card-body {
	display: inline-block;
	position: relative;
	width: fit-content;
	align-self: baseline;
	background: #f6e6cf;
	border-radius: 12px;
	text-align: center;
	overflow: hidden;
}

.custom-card-image {
	width: 60px;
	height: 60px;
	padding: 4px;
}

.custom-card-amount {
	background: #e9cda2;
	text-align: center;
	border-radius: 0 0 5px 5px;
	padding: 4px 0;
	white-space: nowrap;
	line-height: 1;
	font-size: 12px;
	hyphens: auto;
	overflow-wrap: break-word;
}

.custom-card-caption {
	width: 56px;
	text-align: center;
	line-height: 1;
	font-size: 12px;
	hyphens: auto;
	overflow-wrap: break-word;
}

/* ===== IMPROVED WIKITABLE STYLES ===== */

/* Base wikitable - consolidated and improved */
.wikitable {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--table-border, var(--theme-border-color));
    background-color: var(--card-bg-main, #ffffff);
    border-radius: var(--border-radius-md, 8px);
    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, #2c7a7b) 0%, 
        var(--teal-700, #285e61) 100%) !important;
    color: var(--theme-accent-label-color, #ffffff) !important;
    font-weight: var(--font-weight-semibold, 600);
    padding: 0.75rem 1rem !important;
    border-bottom: 2px solid var(--teal-800, #234e52) !important;
    text-align: center;
    vertical-align: middle;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    position: relative;
}

/* Add subtle hover effect to headers */
.wikitable > tr > th:hover,
.wikitable > * > tr > th:hover {
    background: linear-gradient(135deg, 
        var(--teal-500, #319795) 0%, 
        var(--teal-600, #2c7a7b) 100%) !important;
}

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

/* Striped rows for better readability */
.wikitable > tr:nth-child(even):not(:first-child),
.wikitable > * > tr:nth-child(even):not(:first-child) {
    background-color: var(--table-row-even, rgba(56, 178, 172, 0.03));
}

.wikitable > tr:nth-child(odd):not(:first-child),
.wikitable > * > tr:nth-child(odd):not(:first-child) {
    background-color: var(--table-row-odd, rgba(56, 178, 172, 0.01));
}

/* Hover effect for rows */
.wikitable > tr:hover:not(:first-child),
.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,
.wikitable > * > tr > td:first-child,
.wikitable > tr > th:first-child,
.wikitable > * > tr > th:first-child {
    font-weight: var(--font-weight-medium, 500);
    border-left: 3px solid transparent;
}

/* Highlight first column on hover */
.wikitable > tr:hover:not(:first-child) > td:first-child,
.wikitable > * > tr:hover:not(:first-child) > td:first-child {
    border-left-color: var(--teal-300, #4fd1c7);
    background-color: rgba(79, 209, 199, 0.1);
}

/* Remove last row bottom border */
.wikitable > tr:last-child > td,
.wikitable > * > tr:last-child > td {
    border-bottom: none;
}

/* Remove last cell right border */
.wikitable > tr > td:last-child,
.wikitable > * > tr > td:last-child,
.wikitable > tr > th:last-child,
.wikitable > * > tr > th:last-child {
    border-right: none;
}

/* Caption styling */
.wikitable > caption {
    caption-side: top;
    padding: 0.875rem 1rem;
    background: var(--teal-50, #e6fffa);
    color: var(--teal-800, #234e52);
    font-weight: var(--font-weight-semibold, 600);
    text-align: left;
    border-bottom: 1px solid var(--teal-200, #81e6d9);
    font-size: 1.05em;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    margin-bottom: 0;
}

/* Collapsible toggle in caption */
.wikitable > caption .mw-collapsible-toggle {
    float: right;
    margin: -0.25rem 0;
    padding: 0.25rem 0.75rem;
    background: var(--teal-100, #b2f5ea);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--teal-300, #4fd1c7);
    color: var(--teal-700, #285e61);
    font-size: 0.85em;
    font-weight: var(--font-weight-medium, 500);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wikitable > caption .mw-collapsible-toggle:hover {
    background: var(--teal-200, #81e6d9);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Sortable tables */
.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable),
.jquery-tablesorter th.headerSort {
    cursor: pointer;
    position: relative;
    padding-right: 2rem !important;
    user-select: none;
    transition: all var(--transition-fast);
}

.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable):hover,
.jquery-tablesorter th.headerSort:hover {
    background: linear-gradient(135deg, 
        var(--teal-500, #319795) 0%, 
        var(--teal-600, #2c7a7b) 100%) !important;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3);
}

/* Sorting indicators */
.client-js .wikitable.sortable > * > tr:first-child > th:not(.unsortable):after,
.jquery-tablesorter th.headerSort:after {
    content: "↕";
    position: absolute;
    right: 0.75rem;
    font-size: 0.85em;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.client-js .wikitable.sortable > * > tr:first-child > th.headerSortUp:after,
.jquery-tablesorter th.headerSortUp:after {
    content: "↑";
    opacity: 1;
    color: var(--theme-accent-label-color);
}

.client-js .wikitable.sortable > * > tr:first-child > th.headerSortDown:after,
.jquery-tablesorter th.headerSortDown:after {
    content: "↓";
    opacity: 1;
    color: var(--theme-accent-label-color);
}

/* Links inside tables */
.wikitable a,
.wikitable a:visited {
    color: var(--theme-link-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium, 500);
    border-bottom: 1px dotted transparent;
    transition: all var(--transition-fast);
}

.wikitable a:hover {
    color: var(--theme-link-color--hover);
    text-decoration: none;
    border-bottom-color: currentColor;
}

/* Images in tables */
.wikitable img {
    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 {
    transform: scale(1.05);
    border-color: var(--teal-300, #4fd1c7);
}

/* Specific table types - override for consistency */

/* Schedule tables */
.scheduletable.wikitable {
    width: auto;
    min-width: 300px;
}

.scheduletable.wikitable > tr > td:first-child,
.scheduletable.wikitable > * > tr > td:first-child {
    width: 150px;
    font-weight: var(--font-weight-semibold, 600);
    background-color: rgba(56, 178, 172, 0.05);
}

/* Fish tables */
.fishtable.wikitable {
    table-layout: fixed;
}

/* Artisan tables */
.artisan-table.wikitable {
    width: 60%;
    max-width: 100%;
}

.artisan-table.wikitable > tr > th,
.artisan-table.wikitable > * > tr > th {
    background-color: var(--teal-500, #319795) !important;
}

/* Heart event tables */
.heart-event-table.wikitable {
    width: 30%;
    min-width: 250px;
}

/* Quote tables */
.quotetable.wikitable {
    background: var(--letter-bg, #f0fff4);
    border-color: var(--letter-border, #c6f6d5);
}

.quotetable.wikitable > caption {
    background: var(--teal-100, #b2f5ea);
    color: var(--teal-800, #234e52);
}

/* Responsive improvements */
@media screen and (max-width: 1024px) {
    .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%;
    }
}

@media screen and (max-width: 768px) {
    .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;
    }
}

/* Dark theme adjustments */
.skin-vector-dark .wikitable {
    background-color: var(--card-bg-main, #2a363d);
    border-color: var(--table-border, #4d6872);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skin-vector-dark .wikitable > tr > th,
.skin-vector-dark .wikitable > * > tr > th {
    background: linear-gradient(135deg, 
        var(--teal-800, #2d4a4d) 0%, 
        var(--teal-900, #1d4044) 100%) !important;
    border-bottom-color: var(--teal-900, #1d4044) !important;
}

.skin-vector-dark .wikitable > tr:nth-child(even):not(:first-child),
.skin-vector-dark .wikitable > * > tr:nth-child(even):not(:first-child) {
    background-color: rgba(95, 217, 207, 0.05);
}

.skin-vector-dark .wikitable > tr:nth-child(odd):not(:first-child),
.skin-vector-dark .wikitable > * > tr:nth-child(odd):not(:first-child) {
    background-color: rgba(95, 217, 207, 0.02);
}

.skin-vector-dark .wikitable > caption {
    background: var(--teal-900, #1d4044);
    color: var(--teal-100, #b2f5ea);
    border-bottom-color: var(--teal-700, #285e61);
}

.skin-vector-dark .wikitable > caption .mw-collapsible-toggle {
    background: var(--teal-800, #2d4a4d);
    border-color: var(--teal-600, #2c7a7b);
    color: var(--teal-100, #b2f5ea);
}

/* Print styles */
@media print {
    .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;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .wikitable,
    .wikitable > tr > th,
    .wikitable > tr > td,
    .wikitable a,
    .wikitable img {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .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 {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
    border-radius: 2px;
    text-decoration: none;
}

.cost-template {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: row;
	gap: 0.2rem;
}

.cost-detail {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.client-js .sortable:not(.jquery-tablesorter)>*>tr:first-child>th:not(.unsortable),
.jquery-tablesorter th.headerSort {
	font-size: 10px;
	white-space: normal;
}

.wikitable>tr>th,
.wikitable>*>tr>th {
	background-color: #e7c361 !important;
	max-width: fit-content;
}

.heart-event-table {
	width: 30%;
}

.wikitable>tr>th,
.wikitable>tr>td,
.wikitable>*>tr>th,
.wikitable>*>tr>td {
	// -ms-word-break: break-all;
	// word-break: break-all;

	// -webkit-hyphens: auto;
	// -moz-hyphens: auto;
	// hyphens: auto;
	width: 150px;
	white-space: break-space;
	margin-left: auto;
	margin-right: auto;
}

.artisan-table>tr>th,
.artisan-table>tr>td,
.artisan-table>*>tr>th,
.artisan-table>*>tr>td:first-child {
	// -ms-word-break: break-all;
	// word-break: break-all;

	// -webkit-hyphens: auto;
	// -moz-hyphens: auto;
	// hyphens: auto;
	width: 150px;
	white-space: break-space;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.wikitable>tr>th,
.wikitable>tr>td,
.wikitable>*>tr>th,
.wikitable>*>tr>td:first-child {
	// -ms-word-break: break-all;
	// word-break: break-all;

	// -webkit-hyphens: auto;
	// -moz-hyphens: auto;
	// hyphens: auto;
	width: min-content;
	white-space: break-space;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.scheduletable > tr > th,
.scheduletable > * > tr > th,
.scheduletable th {
    background: linear-gradient(135deg, 
        var(--teal-600, #2c7a7b) 0%, 
        var(--teal-700, #285e61) 100%);
    color: var(--theme-accent-label-color, #ffffff);
    font-weight: var(--font-weight-semibold, 600);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--teal-800, #234e52);
    text-align: center;
    vertical-align: middle;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    white-space: nowrap; /* Prevent line breaks in headers */
}

.quotetable>tr>th,
.wikitable>tr>td,
.wikitable>*>tr>th,
.wikitable>*>tr>td {
	//   -ms-word-break: break-all;
	//   word-break: break-all;

	//   -webkit-hyphens: auto;
	//   -moz-hyphens: auto;
	//   hyphens: auto;
}

.vector-menu-content {
	margin-left: 10px;
}

.mw-body,
.parsoid-body {
	background-color: var(--theme-page-background-color) !important;
	color: var(--theme-page-text-color);
	direction: ltr;
	padding: 1em;
}

.infobox {
	background: #e7c361;
	border: 1px solid #e7c361;
	float: right;
	margin: 0 0 1em 1em;
	padding: 1em;
	// min-width: 25%;
}

.infobox-title {
	font-size: 2em;
	text-align: center;
}

.infobox p {
	text-decoration: underline;
	font-size: 1.3em;
}

.infobox-image {
	text-align: center;
}

.infobox-table {
	width: 100%;
}

.infobox-table th {
	text-align: left;
	vertical-align: top;
	width: 120px;
}

.infobox-table td {
	vertical-align: top;
	text-align: right;
	// color: white;
}

.wikitable>caption {
	text-align: left;
}

.Bug6200 {
	font-style: italic;
	font-weight: normal;
	display: flex;
	flex-direction: row;
	align-items: center;
	white-space: normal;
}

.Bug6200>img {
	width: 24px;
	height: 24px;
}

.scheduletable {
	text-align: center;
	margin: 10px 0;
	border-collapse: collapse;
}

.scheduletable > tr > td,
.scheduletable > * > tr > td,
.scheduletable td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--theme-border-color--subtle, #e2e8f0);
    vertical-align: middle;
    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,
.scheduletable > * > tr > td:first-child,
.scheduletable td:first-child {
    width: 150px !important; /* Fixed width for time column */
    min-width: 150px;
    max-width: 150px;
    font-weight: var(--font-weight-semibold, 600);
    background-color: rgba(56, 178, 172, 0.08);
    text-align: left;
    padding-left: 1.25rem;
    border-right: 2px solid var(--teal-300, #4fd1c7);
    position: relative;
}

.croptable>tbody>tr>td:first-child {
	width: 100px !important;
}
.scheduletable>tbody>tr>td:first-child {
	width: 150px !important;
}

// td {
//   width: 100px;
// }
.scheduletable caption {
	background: #e7c361;
	border: 1px solid #e7c361;
	text-align: center;
}

.wikitable>caption>span {
	float: right !important;
}

.collapsible-header:before {
	float: right;
}

.ci-recipe-wrapper {
	display: flex;
	width: fit-content;
	position: relative;
	gap: 7px;
}

.ci-recipe-timed {
	padding-bottom: 25px;
}

.ci-recipe-timed {
	border: 1px solid #e7c361;
	border-radius: 5px;
	position: relative;
	text-align: center;
	font-weight: 500;
	width: 100%;
	padding: 8px;
	max-width: 100px;
	overflow-wrap: break-word;
	hyphens: auto;
}

.ci-recipe-yield {
	border: 1px solid #e7c361;
	border-radius: 3px;
	padding: 8px;
	position: relative;
	width: 100%;
	text-align: center;
}

.ci-recipe-yield-amount {
	background: #e7c361;
	width: fit-content;
	border-radius: 3px;
	padding: 0 5px;
	position: absolute;
	bottom: 0;
	right: 0;
}

span.custom-icon {
	display: inline;
}

.ci-recipe-ingredient {
	border: 1px solid #e7c361;
	border-radius: 3px;
	padding: 5px;
	min-height: 100%;
}

.ci-recipe-medium::after {
	border: 1px solid #e7c361;
	background-color: #e7c361;
	border-radius: 3px;
	width: 5px;
	height: 5px;
	content: "";
	position: absolute;
	top: 50%;
	left: -7px;
}

.gifted-item {
	background-color: rgba(231, 195, 97, 0.2);
}

.gifted-item>tbody>tr>th {
	background-color: rgba(231, 195, 97, 0.8);
	max-width: 100px;
}

.content-table {
	background: transparent;
	padding: 10px 2%;
	width: 100%;
}

.content-table-basic {
	background: transparent;
	width: 100%;
}

.content-table-second {
	background: transparent;
	width: 100%;
}

.child-content-table {
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	margin-left: 4px;
}

.mw-body,
#mw-data-after-content {
	margin-left: 10em;
}

.mw-body {
	position: relative;
	/* For better z-index control */
	border-left: 3px solid var(--teal-400);
	border-top: none;
	border-right: none;
	border-bottom: none;
	background-color: var(--theme-page-background-color);
	color: var(--theme-page-text-color);
	margin-top: 0;
	border-radius: 0;

	.firstHeading {
		overflow: visible;
		/* Add subtle bottom border for separation */
		border-bottom: 1px solid var(--theme-border-color--subtle);
		padding-bottom: 0.5em;
		margin-bottom: 1em;
	}
}

/* Keep z-index simple */
.mw-indicators {
	position: relative;
	z-index: 10;
}

.vector-body {
	font-size: var(--font-size);
	position: relative;
	z-index: 1;
}

/* Be more specific with font overrides to avoid editor conflicts */
body:not(.action-edit):not(.action-submit) .vector-body,
body:not(.action-edit):not(.action-submit) .vector-body p,
body:not(.action-edit):not(.action-submit) .vector-body div,
body:not(.action-edit):not(.action-submit) .vector-body span {
	font-size: var(--font-size);
	font-family: Helvetica, Arial, sans-serif;
}

@media screen and (max-width: 1024px) {

	body:not(.action-edit):not(.action-submit) .wikitable>tr>th,
	body:not(.action-edit):not(.action-submit) .wikitable>tr>td,
	body:not(.action-edit):not(.action-submit) .wikitable>*>tr>th,
	body:not(.action-edit):not(.action-submit) .wikitable>*>tr>td {
		font-size: 14px;
	}

	body:not(.action-edit):not(.action-submit) .content {
		font-size: 14px;
	}

	body:not(.action-edit):not(.action-submit) .vector-body {
		font-size: 16px;
	}
}

/* Even safer - only affect non-editor content */
.mw-body-content:not(.editOptions),
.mw-parser-output:not(.editOptions) {
	font-size: var(--font-size);
}

#mw-page-base {
	//   .vertical-gradient( @background-color-base, @background-color-secondary, 50%, 100% );
	background: transparent;
	background-position: bottom left;
	height: 5em;
}

#mw-head-base {
	margin-top: -5em;
	margin-left: 10em;
	height: 5em;
	background: transparent;
}

/* ===== HEADER/NAVIGATION FIX ===== */

#mw-navigation h2 {
	position: absolute;
	top: -9999px;
}

#mw-head>* {
	position: relative;
	z-index: auto;
}

#left-navigation,
#right-navigation {
	display: inline-flex;
	vertical-align: top;
	white-space: nowrap;
}

#p-search {
	display: inline-block;
	vertical-align: top;
	position: relative;
	margin: 0 1em;
}

/* Sidebar */
#mw-panel .sidebar-section-title {
	background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
	color: white;
	font-weight: bold;
	padding: 8px 12px;
	margin: 10px 0 5px 0;
	border-radius: 4px;
	font-size: 0.9em;
}

// hide the heading of the first menu
#p-logo+.mw-portlet .vector-menu-heading {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	background: white;
	color: black;
	font-weight: bold;
	padding: 0 5px;
	height: 20px;
	border-top-right-radius: 5px;
	border-top-left-radius: 5px;
}

// ul {
//   list-style-type: none !important
// }

.vector-body blockquote {
	border: 0;
	padding: 0;
}

.vector-menu-portal .vector-menu-content li {
	padding: 5px;
}

.vector-menu-portal .vector-menu-content ul {
	background: rgba(255, 255, 255, 0.8);
}

.vector-menu-portal .vector-menu-heading {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	background: white;
	color: black;
	font-weight: bold;
	padding: 0 5px;
	height: 20px;
	border-top-right-radius: 5px;
	border-top-left-radius: 5px;
}

.mw-footer {
	margin-left: 10em;
	margin-top: 1%;
	margin-bottom: 1%;
	padding: 0.75em;
	background: white;
	min-height: 120px;
	border-radius: 5px;
}

.social {
	display: flex;
	justify-content: center;
	flex-direction: row;
	width: auto;
	background: #474747;
	padding: 1rem 3rem;

	& .iconname {
		max-width: 20%;

		& .external-text {
			font-size: 12px;
		}

		& .floatleft {
			display: flex;
			justify-content: space-between;
			align-items: center;

			& a {
				font-size: 12px;
			}

			img {
				max-width: 20px;
				max-height: 20px;
			}
		}
	}
}

div.floatleft,
table.floatleft {
	margin: 0;
}

big {
	color: white;
}

.jumbotron {
	//background-image: url("https://mbwiki.stairwaygames.work/w/images/1/13/manabreak-hero.png");

	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
}

body.page-Main_Page.action-view .main-page-top {
	background-color: #474747;
	padding: 1rem 0;
	background-image: url("https://mbwiki.stairwaygames.work/w/images/1/13/manabreak-hero.png") !important;
	height: 300px !important;
}

/* Vector screen styles for high definition displays. These rules cross the above components and are
 grouped together here only for the sake of the media query common to each. */
.mw-body,
#mw-head-base,
#left-navigation,
#mw-data-after-content,
.mw-footer {
	margin-left: 11em;
}

.mw-body {
	padding: 1.25em 1.5em 1.5em 1.5em;
}

.mw-footer {
	padding: 1.25em;
}

#mw-panel {
	padding-left: 0.5em;
}

.vector-search-box {
	margin-right: 1em;
}

/*// Directionality styles previously provided by the deprecated `legacy` feature (T287410)
// for HTML elements which do not carry dir HTML attributes.
// These have been copied across to legacy Vector to minimize disruption caused by T287701.
// If you are reading this comment in 2022, please consider checking usage in wikitext and
// removing them both.*/
.mw-content-ltr {
	/* @noflip */
	direction: ltr;
}

.mw-content-rtl {
	/* @noflip */
	direction: rtl;
}

.cols {
	text-align: left;
	word-break: break-all;
	// padding: 1em 0;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 5px;
	font-weight: 600;
	// text-transform: uppercase;
	// letter-spacing: 1px;
}

.forest {
	margin-top: -25px;
}

.forest2 {
	margin-top: 0;
}

/* grid styling - Connected to Module Variables */
.grid {
	display: grid !important;
	/* Desktop: Use module variable, fallback to 12 columns */
	grid-template-columns: var(--main-page-layout-columns--desktop,
			repeat(12, 1fr));
	margin: 10px 0;
	gap: 10px;
	/* Better than grid-gap (deprecated) */
}

/* Tablet */
@media (max-width: 1024px) {
	.grid {
		grid-template-columns: var(--main-page-layout-columns--tablet,
				var(--main-page-layout-columns--desktop, repeat(12, 1fr)));
	}
}

/* Mobile */
@media (max-width: 768px) {
	.grid {
		grid-template-columns: var(--main-page-layout-columns--mobile,
				var(--main-page-layout-columns--tablet,
					var(--main-page-layout-columns--desktop, repeat(1, 1fr))));
	}
}

/* Optional: Keep column classes as fallback when NOT using module */
.grid:not([data-has-module-layout]) .grid__col4 {
	grid-column: span 4;
}

/* Other styles can stay the same */
.specification-table {
	font-size: 10px;
	padding: 0 5%;
}

.content {
	padding: 10px;
	font-size: 12px;
}

.wrapper {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
}

@supports (display: grid) {

	.mw-content-ltr ul,
	.mw-content-rtl .mw-content-ltr ul {
		// margin: 0 !important;
	}

	.social .iconname .floatleft {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.social {
		gap: 30px;
	}

	.croptable>tbody>tr>td>a>img {
		max-width: 40px;
		max-height: 40px;
	}

	.exceptable>tbody>tr>td>a>img {
		max-width: 70px;
		max-height: 70px;
	}

	.floatleft>a>img {
		// width: 24px;
		// height: 24px;
	}

	.iconname {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 5px;
		-ms-word-break: break-all;
		word-break: break-all;

		/* Non standard for WebKit */
		word-break: break-word;

		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		hyphens: auto;
	}

	.auto-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		grid-gap: 5px;
	}

	.auto-grid>* {
		max-width: unset;
		list-style: none;
	}

	.auto-grid>*+* {
		margin-top: unset;
	}

	.auto-grid>li>ul {
		margin-left: 10px !important;
	}

	.auto-grid>li>ul>li {
		list-style: none;
		margin: 0;
		padding-left: 15px;
		list-style: none;
		background-image: url("https://www.svgrepo.com/show/165220/diamond.svg");
		background-repeat: no-repeat;
		background-position: left center;
		background-size: 10px;
		-ms-word-break: break-all;
		word-break: break-all;

		/* Non standard for WebKit */
		word-break: break-word;

		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		hyphens: auto;
	}
}

.minus-ten {
	margin-top: 0;
}

.minus-fifty {
	margin-top: -55%;
}

#footer-info li {
	color: --wiki-content-text-color !important;
}

@media (max-width: 1024px) {
	.minus-fifty {
		margin-top: -5%;
	}

	.minus-ten {
		margin-top: -10%;
	}

	.wikitable>tr>th,
	.wikitable>tr>td,
	.wikitable>*>tr>th,
	.wikitable>*>tr>td {
		font-size: 0.7em;
	}

	.scheduletable>tbody>tr>td:first-child {
		width: 40px;
	}

	.wikitable,
	.quotetable,
	.scheduletable {
		table-layout: fixed;
		width: 100%;
	}

	.croptable>tbody>tr>td>a>img {
		max-width: 24px;
		max-height: 24px;
	}

	.infobox {
		float: none;
		margin: 0;
	}

	.forest2 {
		margin-top: -5px;
	}

	.content {
		font-size: 10px;
	}

	.social {
		flex-direction: column;
		padding: 1rem;

		& .iconname {
			max-width: 100%;
		}
	}

	.mw-parser-output a.external {
		-ms-word-break: break-all;
		word-break: break-all;

		/* Non standard for WebKit */
		word-break: break-word;

		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		hyphens: auto;
	}

	#mw-panel {
		width: -webkit-fill-available;
		display: flex;
		justify-content: center;
		align-items: center;
		max-height: 100px;
	}

	.vector-search-box {
		min-width: 90vw;
		margin-top: 0px;
	}

	.vector-search-box-input {
		width: 80vw;
	}

	#mw-content-text>div.mw-parser-output>div>div>div.content>table>tbody>tr>td>a {
		font-size: 8px;
	}

	#mw-content-text>div.mw-parser-output>div>div>div.content>table>tbody>tr>th>div>div>a>img {
		width: 16px;
		height: 16px;
	}

	#mw-content-text>div.mw-parser-output>div>div>div.content>table>tbody>tr>td>div>div>a>img {
		width: 16px;
		height: 16px;
	}

	#mw-content-text>div.mw-parser-output>table.jumbotron>tbody>tr>th>a>img {
		max-width: 100%;
		object-fit: contain;
	}

	footer,
	.vector-menu-content,
	#p-navigation,
	#p-tb {
		display: none;
	}

	#p-logo {
		display: block;
		justify-content: center;
	}

	#p-logo a {
		width: 5em;
	}

	table {
		width: 100%;
	}

	.mw-body,
	#mw-data-after-content {
		margin: 10% 10px;
	}

	.grid__col1 {
		grid-column: span 1;
	}

	.grid__col2 {
		grid-column: span 2;
	}

	.grid__col3 {
		grid-column: span 6;
	}

	.grid__colsm1 {
		grid-column: span 1;
	}

	.grid__colsm2 {
		grid-column: span 2;
	}

	.grid__colsm3 {
		grid-column: span 12;
	}

	.grid__colsm4 {
		grid-column: span 12;
	}

	.grid__colsm5 {
		grid-column: span 5;
	}

	.grid__colsm6 {
		grid-column: span 6;
	}

	.grid__colsm7 {
		grid-column: span 7;
	}

	.grid__colsm8 {
		grid-column: span 12;
	}

	.grid__colsm9 {
		grid-column: span 9;
	}

	.grid__colsm10 {
		grid-column: span 10;
	}

	.grid__colsm11 {
		grid-column: span 11;
	}

	.grid__colsm12 {
		grid-column: span 12;
	}

	.content-table,
	.content-table th,
	.content-table td {
		border: none !important;
	}

	.content-table-basic>tbody {
		display: grid;
	}

	.content-table-basic>tbody>tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(50px, 1fr));
		width: fit-content;
	}

	.content-table-basic>tbody>tr>th {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 45vw;
	}

	.content-table-basic>tbody>tr>th>.iconname>.floatleft>a>img {
		width: 14px;
		height: 14px;
	}

	.forest {
		margin-top: 0;
	}

	.content-table-second {
		background: transparent;
		width: 100%;
	}

	.auto-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	.mw-body,
	#mw-data-after-content {
		padding: 0;
	}
}

@media screen and (max-width: 1920px) {
	.mw-parser-output a.external {
		font-size: 14px;
	}
}

@media screen and (min-width: 2000px) {
	.mw-parser-output a.external {
		font-size: 20px;
		font-weight: 400;
	}

	.floatleft>a>img {
		width: 48px;
		height: 48px;
	}
}

#content .header-column {
	background-color: #1a6a7a !important;
	justify-content: center !important;
	text-align: center !important;
	color: #ffffff !important;
}

.header-column>span>a>img {
	width: 14px;
	height: 14px;
}

.header-column>a>img {
	width: 14px;
	height: 14px;
}

.heading-char {
	color: #deb76c !important;
}

#footer {
	background: #fff;
	color: #000;
	margin-top: 1em;
	border-top: 1pt solid #aaa;
	padding-top: 5px;
	direction: ltr;
}

/* ---- CONTENTS STYLING GOES BELOW THIS LINE --- */
/* Element Infobox Styling */
.element-image {
	transition: transform 0.3s ease;
	border-radius: 5px;
}

.element-image:hover {
	transform: scale(1.05);
}

/* Floating animation for infobox */
.element-infobox {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.element-infobox:hover {
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

/* Color-specific classes */
.element-fire {
	border-left: 4px solid #cc3333;
}

.element-water {
	border-left: 4px solid #3366cc;
}

.element-wind {
	border-left: 4px solid #33cccc;
}

.element-earth {
	border-left: 4px solid #996633;
}

.element-lightning {
	border-left: 4px solid #ffcc00;
}

.element-ice {
	border-left: 4px solid #66ccff;
}

.element-wood {
	border-left: 4px solid #339933;
}

.element-grass {
	border-left: 4px solid #88cc44;
}

/* Move Personal Tools to the top of the page */
#p-personal {
	position: absolute !important;
	top: 0 !important;
	right: 0.75em !important;
	z-index: 1000 !important;
	background: var(--theme-page-background-color) !important;
	border-bottom: 1px solid var(--theme-border-color) !important;
	padding: 0.25em 0.5em !important;
	border-radius: 0 0 var(--border-radius-md) var(--border-radius-md) !important;
	box-shadow: var(--shadow-sm) !important;
}

#p-personal .vector-menu-heading {
	display: none !important;
}

#p-personal .vector-menu-content {
	position: static !important;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	box-shadow: none !important;
	border: none !important;
	background: transparent !important;
}

#p-personal .vector-menu-content-list {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0.5em !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

#p-personal .mw-list-item {
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
}

#p-personal .mw-list-item a {
	padding: 0.25em 0.5em !important;
	color: var(--theme-link-color) !important;
	text-decoration: none !important;
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
	border-radius: var(--border-radius-sm) !important;
	transition: all var(--transition-fast) ease !important;
}

#p-personal .mw-list-item a:hover {
	background: rgba(var(--teal-100--rgb, 178, 245, 234), 0.3) !important;
	color: var(--theme-link-color--hover) !important;
}

/* Theme toggle special styling */
#pt-theme a {
	background: linear-gradient(135deg,
			var(--teal-100) 0%,
			var(--teal-200) 100%) !important;
	border-radius: var(--border-radius-full) !important;
}

#pt-theme a:hover {
	background: linear-gradient(135deg,
			var(--teal-200) 0%,
			var(--teal-300) 100%) !important;
}

/* Dark theme adjustments */
.skin-vector-dark #p-personal {
	background: var(--theme-page-background-color--secondary) !important;
}

.skin-vector-dark #pt-theme a {
	background: linear-gradient(135deg,
			var(--teal-800) 0%,
			var(--teal-700) 100%) !important;
}

.skin-vector-dark #pt-theme a:hover {
	background: linear-gradient(135deg,
			var(--teal-700) 0%,
			var(--teal-600) 100%) !important;
}

/* Add space at the top of the page so the personal tools don't overlap content */
#mw-page-base {
	margin-top: -0.5em !important;
}

/* Or if that doesn't work, add padding to body */
body {
	padding-top: -0.5em !important;
}

body.page-Main_Page .social {
	margin: -45px auto 30px !important;
	background: rgba(var(--theme-page-background-color--secondary--rgb),
			0.8) !important;
	backdrop-filter: blur(10px);
	border: 1px solid var(--theme-border-color);
	box-shadow: var(--shadow-xl);
	z-index: 99 !important;
}

/* THE GAME Card Improvement */
body.page-Main_Page .game-intro-card {
	background: var(--card-bg-elevated);
	border-radius: var(--border-radius-lg);
	border: 1px solid var(--theme-border-color);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

body.page-Main_Page .game-header {
	background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
	padding: var(--spacing-md) var(--spacing-lg);
}

body.action-edit #content,
body.action-submit #content {
	margin-top: 50px !important;
	margin-left: 11em !important;
	background: #ffffff !important;
	padding: 20px !important;
}

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

/* ===== PORTABLE INFOBOX STYLING ===== */
.portable-infobox {
	float: right;
	clear: right;
	margin: 0 0 15px 15px;
	max-width: 300px;
	width: 100%;
	border: 1px solid var(--theme-border-color, #ccc);
	border-radius: 8px;
	background-color: var(--gray-050, #f8f9fa);
	font-size: 14px;
}

/* Remove margins from ALL paragraphs inside infobox */
.portable-infobox p {
	margin: 0 !important;
}

.portable-infobox .pi-header {
	padding: 0 5px;
}

.portable-infobox .pi-title {
	background: var(--teal-600, #00897b);
	color: var(--theme-accent-label-color, white);
	padding: 8px 10px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	text-align: center;
	font-weight: bold;
	font-size: 1.2em;
	margin: 0;
}

.portable-infobox .pi-title p {
	margin: 0 !important;
	padding: 0;
}

.portable-infobox .pi-group {
	padding: 10px;
}

.portable-infobox .pi-group .pi-header {
	font-size: 1.1em;
	font-weight: 600;
	margin: 10px 0 5px 0;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
	color: var(--gray-800, #3c4043);
}

.portable-infobox .pi-group .pi-header p {
	margin: 0 !important;
}

.portable-infobox .pi-item {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
	border-bottom: 1px dotted var(--gray-300, #dadce0);
	align-items: flex-start;
	/* Align items at the top */
}

.portable-infobox .pi-item:last-child {
	border-bottom: none;
}

.portable-infobox .pi-data-label {
	font-weight: 500;
	color: var(--gray-700, #5f6368);
	padding: 0 5px 0 0;
	min-width: 40%;
	flex-shrink: 0;
	/* Prevent label from shrinking */
}

.portable-infobox .pi-data-label p {
	margin: 0 !important;
}

.portable-infobox .pi-data-value {
	color: var(--gray-900, #202124);
	padding: 0 0 0 5px;
	min-width: 60%;
	text-align: right;
	flex-grow: 1;
	/* Allow value to grow */
}

.portable-infobox .pi-data-value p {
	margin: 0 !important;
}

/* Horizontal layout groups - fix table layout */
.portable-infobox .pi-horizontal-group {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.portable-infobox .pi-horizontal-group caption {
	font-size: 1.1em;
	font-weight: 600;
	margin: 10px 0 5px 0;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
	color: var(--gray-800, #3c4043);
	text-align: left;
	caption-side: top;
}

.portable-infobox .pi-horizontal-group caption p {
	margin: 0 !important;
}

.portable-infobox .pi-horizontal-group th,
.portable-infobox .pi-horizontal-group td {
	padding: 8px;
	text-align: center;
	border: 1px solid var(--theme-border-color--subtle, #e0e0e0);
}

.portable-infobox .pi-horizontal-group th {
	font-weight: 500;
	color: var(--gray-700, #5f6368);
	background-color: var(--gray-100, #f1f3f4);
}

.portable-infobox .pi-horizontal-group th p,
.portable-infobox .pi-horizontal-group td p {
	margin: 0 !important;
}

/* Image styling */
.portable-infobox .pi-image {
	padding: 10px;
	text-align: center;
}

.pi-image-thumbnail {
	max-width: 100% !important;
	height: auto;
	border-radius: 4px;
	border: 1px solid var(--theme-border-color--subtle, #e0e0e0);
}

.portable-infobox .pi-image .pi-caption {
	font-size: 0.85em;
	color: var(--gray-600, #757575);
	margin-top: 5px;
	font-style: italic;
}

.portable-infobox .pi-image .pi-caption p {
	margin: 0 !important;
}

/* Clear float after infobox */
.mw-parser-output::after {
	content: "";
	display: table;
	clear: both;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.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;
		padding: 0;
	}

	.portable-infobox .pi-data-label {
		padding-bottom: 2px;
	}

	.portable-infobox .pi-data-value {
		padding-top: 2px;
	}

	/* Horizontal table becomes vertical on mobile */
	.portable-infobox .pi-horizontal-group {
		display: block;
	}

	.portable-infobox .pi-horizontal-group thead,
	.portable-infobox .pi-horizontal-group tbody,
	.portable-infobox .pi-horizontal-group tr {
		display: block;
	}

	.portable-infobox .pi-horizontal-group th,
	.portable-infobox .pi-horizontal-group td {
		display: block;
		text-align: left;
		border: none;
		border-bottom: 1px solid var(--theme-border-color--subtle, #e0e0e0);
	}

	.portable-infobox .pi-horizontal-group th {
		background-color: transparent;
		font-weight: 600;
		padding-top: 10px;
	}

	.portable-infobox .pi-horizontal-group td {
		padding-bottom: 10px;
	}
}

/* ===== WEAPON INFOBOX STYLING ===== */
.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: #ffffff;
	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 #e0e0e0;
}

.weapon-section {
	padding: 0;
}

.section-title {
	padding: 5px 10px;
	color: #4a5568;
	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: #4a5568;
	width: 40%;
	text-align: left;
}

.weapon-section>div>span:last-child {
	color: #4a5568;
	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: #4a5568;
	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: #4a5568;
	font-size: 1.1em;
}

/* Clear float */
.mw-parser-output::after {
	content: "";
	display: table;
	clear: both;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.weapon-infobox {
		float: none;
		max-width: 100%;
		margin: 0 0 16px 0;
	}
}

/* ===== MONSTER INFOBOX STYLING ===== */
.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: #ffffff;
	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 #e0e0e0;
}

.monster-section {
	padding: 0;
}

.monster-section .section-title {
	padding: 5px 10px;
	color: #4a5568;
	font-weight: bold;
	border-bottom: 1px solid #a2a9b1;
	margin: 10px 0 5px 0;
}

.monster-section>div[style*="display: flex"] {
	display: flex;
	justify-content: space-between;
	padding: 5px 10px;
	border-bottom: 1px dotted #a2a9b1;
}

.monster-section>div[style*="display: flex"]:last-child {
	border-bottom: none;
}

.monster-section>div[style*="display: flex"]>span:first-child {
	font-weight: 500;
	color: #4a5568;
	width: 40%;
	text-align: left;
}

.monster-section>div[style*="display: flex"]>span:last-child {
	color: #4a5568;
	text-align: right;
	width: 60%;
}

/* Phase sections */
.monster-section>div[style*="Phase"] {
	background: #f0f0f0;
	padding: 8px 10px;
	font-weight: bold;
	color: #7a1a1a;
	border-left: 3px solid #7a1a1a;
	margin: 10px 0 5px 0;
}

.monster-section>div[style*="line-height: 1.4"] {
	padding: 5px 10px 10px 10px;
	color: #4a5568;
	line-height: 1.4;
}

/* Lists (for weaknesses, drops, etc.) */
.monster-section ul {
	margin: 0 !important;
	padding-left: 20px !important;
}

.monster-section li {
	margin-bottom: 3px;
	color: #4a5568;
}

/* Clear float */
.mw-parser-output::after {
	content: "";
	display: table;
	clear: both;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.monster-infobox {
		float: none;
		max-width: 100%;
		margin: 0 0 16px 0;
	}
}

/* ROLES TABLE */
.roles-table {
	background-color: transparent !important;
	width: 100% !important;
	table-layout: auto !important;
	margin: 1rem 0 !important;
}

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

.roles-table>tr>th:first-child,
.roles-table>*>tr>th:first-child {
	min-width: 180px !important;
}

.roles-table>tr>th:nth-child(2),
.roles-table>*>tr>th:nth-child(2) {
	min-width: 300px !important;
}

.roles-table>tr>th:nth-child(3),
.roles-table>*>tr>th:nth-child(3),
.roles-table>tr>th:nth-child(4),
.roles-table>*>tr>th:nth-child(4) {
	min-width: 150px !important;
}

.roles-table>tr>td,
.roles-table>*>tr>td {
	padding: 10px 8px !important;
	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,
.roles-table>*>tr>td:first-child {
	font-weight: bold !important;
	white-space: nowrap !important;
}

.roles-table>tr>td:nth-child(2),
.roles-table>*>tr>td:nth-child(2) {
	white-space: normal !important;
	word-break: break-word !important;
}

.client-js .roles-table.sortable>*>tr:first-child>th:not(.unsortable),
.jquery-tablesorter th.headerSort {
	font-size: 12px !important;
	white-space: normal !important;
	cursor: pointer !important;
	position: relative !important;
	padding-right: 20px !important;
}

.client-js .roles-table.sortable>*>tr:first-child>th:not(.unsortable):after,
.jquery-tablesorter th.headerSort:after {
	content: "↕" !important;
	position: absolute !important;
	right: 5px !important;
	font-size: 10px !important;
	opacity: 0.5 !important;
}

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

.category-table>tr>th,
.category-table>*>tr>th,
.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;
}

/* Race System Styling */

.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) {
	background-color: #f8f8f8;
}

.race-infobox td {
	border-bottom: 1px solid #eee;
}

/* For smaller screens */
@media screen and (max-width: 768px) {
	.race-tooltip {
		width: 240px;
		font-size: 0.85em;
		padding: 10px;
	}

	.race-infobox {
		width: 100% !important;
		float: none !important;
		margin: 10px 0 !important;
	}
}

/* For very small screens */
@media screen and (max-width: 480px) {
	.race-tooltip {
		width: 200px;
		left: 0;
		transform: translateX(0);
	}

	.race-tooltip::after {
		left: 20px;
		transform: translateX(0);
	}
}
/* ===== NAVBOX STYLING ===== */

/* 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 */
.navbox-title {
    background: var(--teal-100) !important;
}

.navbox-title th {
    padding: 12px 16px !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    text-align: center !important;
    border-bottom: 2px solid var(--teal-800) !important;
}

.navbox-title a {
    text-decoration: none !important;
}

.navbox-title a:hover {
    text-decoration: underline !important;
}

/* Navbox group headers */
.navbox-group {
    background-color: var(--teal-50) !important;
    width: 180px !important;
    min-width: 180px !important;
    vertical-align: top !important;
    border-right: 1px solid var(--teal-200) !important;
}

.navbox-group th {
    background: transparent !important;
    font-size: 0.95em !important;
    padding: 10px 12px !important;
    text-align: left !important;
    font-weight: 600 !important;
}

/* Navbox list/content cells */
.navbox-list {
    padding: 12px !important;
    line-height: 1.5 !important;
    vertical-align: top !important;
    background-color: var(--card-bg-main) !important;
}

.navbox-list td {
    padding: 12px !important;
}

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

.navbox-list li {
    margin-bottom: 0 !important;
    padding: 0 !important;
    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 */
.navbox-list a,
.navbox-group a {
    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,
.navbox-group a:hover {
    background-color: var(--teal-100) !important;
    text-decoration: underline !important;
}

/* Alternative row styling */
.alt .navbox-list {
    background-color: rgba(56, 178, 172, 0.05) !important;
}

.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 ===== */

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

/* ===== RESPONSIVE DESIGN ===== */

@media screen and (max-width: 768px) {
    .navbox {
        margin: 1em 0 !important;
    }
    
    .navbox-small {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        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;
    }
}

/* ===== ACCESSIBILITY ===== */

.navbox a:focus-visible {
    outline: 2px solid var(--focus-ring-color) !important;
    outline-offset: 2px !important;
    border-radius: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
    .navbox,
    .navbox a {
        transition: none !important;
    }
}