MediaWiki:Common.css: Difference between revisions

From AnarchyMU Wiki
No edit summary
No edit summary
Line 810: Line 810:
   color: var(--cs-text) !important;
   color: var(--cs-text) !important;
}
}
/* Update 046: nested Stage 1-4 mini-stage dropdown styles - v6 aggressive CSS */
 
/* Update 047: nested Stage 1-4 mini-stage dropdown styles - v7 with precise click zones */


/* Force mini stages hidden by default */
/* Force mini stages hidden by default */
Line 841: Line 842:
}
}


/* Very narrow and precise toggle icon */
.stages-inner-toggle-icon {
.stages-inner-toggle-icon {
   display: inline !important;
   display: inline-block !important;
   margin-right: 6px !important;
  width: 16px !important;
  height: 16px !important;
   margin-right: 4px !important;
   cursor: pointer !important;
   cursor: pointer !important;
   color: #f3b549 !important;
   color: #f3b549 !important;
Line 851: Line 855:
   -webkit-user-select: none !important;
   -webkit-user-select: none !important;
   -moz-user-select: none !important;
   -moz-user-select: none !important;
  text-align: center !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}
.stages-inner-toggle-icon:hover {
  color: #ffc107 !important;
  text-shadow: 0 0 2px rgba(255, 193, 7, 0.5) !important;
}
/* Stage parent row padding to prevent click overlap */
.stages-inner-parent {
  padding: 2px 0 !important;
}
}



Revision as of 10:58, 20 March 2026

/* RealMU-style layout for guide homepage */

.mw-guide-container {
  width: 100%;
}

.mw-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin: 8px 0 16px 0;
}

.mw-guide-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none !important;
  color: #d8dde7 !important;
  background: #12151d;
  border: 1px solid #2a2f3d;
  border-radius: 8px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  min-height: 56px;
  box-sizing: border-box;
}

.mw-guide-item:hover {
  transform: translateY(-1px);
  border-color: #4b5876;
  background: #191f2b;
}

.mw-guide-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-guide-text {
  font-weight: 600;
  line-height: 1.2;
  font-size: 13px;
}

.mw-image-container {
  width: 100%;
}

.mw-image-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.mw-image-card {
  display: block;
  text-decoration: none !important;
  color: #dce2ee !important;
  background: #12151d;
  border: 1px solid #2a2f3d;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.mw-image-card:hover {
  transform: translateY(-2px);
  border-color: #4f5f84;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.mw-card-image {
  position: relative;
  height: 140px;
  background: radial-gradient(circle at 50% 25%, #2f3649, #12151d 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mw-card-image.bg-classes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.realmu.net/uploads/20250530/16839f3e0764e9.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.95;
}

.mw-card-image img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 88%;
  max-height: 128px;
  object-fit: contain;
}

.mw-card-text {
  text-align: center;
  padding: 9px 6px;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid #2a2f3d;
}

@media (max-width: 1200px) {
  .mw-guide-grid,
  .mw-image-grid-5col {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 900px) {
  .mw-guide-grid,
  .mw-image-grid-5col {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 640px) {
  .mw-guide-grid,
  .mw-image-grid-5col {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .mw-card-image {
    height: 120px;
  }
}

/* Update 002: unify top accent bars and section separators to RealMU-like red */
:root {
  --realmu-accent: #a7372d;
}

#mw-header-hack .color-left,
#mw-header-hack .color-middle,
#mw-header-hack .color-right,
#mw-header-nav-hack .color-left,
#mw-header-nav-hack .color-middle,
#mw-header-nav-hack .color-right {
  background-color: var(--realmu-accent) !important;
}

#firstHeading,
.mw-body h2,
.mw-body h3,
.mw-heading h2,
.mw-heading h3 {
  border-bottom-color: var(--realmu-accent) !important;
}

.mw-body hr,
.mw-parser-output hr {
  border-color: var(--realmu-accent) !important;
  background-color: var(--realmu-accent) !important;
}

.sidebar-chunk h2,
.sidebar-chunk h3 {
  border-bottom-color: var(--realmu-accent) !important;
}

/* Update 003: force all section separators to RealMU accent */
:root {
  --realmu-accent: #a7372d;
}

/* Main page title line */
#firstHeading {
  border-bottom: 1px solid var(--realmu-accent) !important;
}

/* Timeless section wrappers carry the visible line */
#mw-content-text .mw-heading,
#mw-content .mw-heading,
.mw-body-content .mw-heading {
  border-bottom: 1px solid var(--realmu-accent) !important;
  box-shadow: none !important;
}

/* In some places the line is on the h2/h3 itself */
#mw-content-text .mw-heading h2,
#mw-content-text .mw-heading h3,
.mw-body h2,
.mw-body h3,
.mw-parser-output h2,
.mw-parser-output h3 {
  border-bottom-color: var(--realmu-accent) !important;
}

/* Any decorative pseudo-line used by skin */
#mw-content-text .mw-heading::before,
#mw-content-text .mw-heading::after,
.mw-body-content .mw-heading::before,
.mw-body-content .mw-heading::after {
  border-color: var(--realmu-accent) !important;
  background-color: var(--realmu-accent) !important;
}

/* Horizontal rules and TOC border tone */
.mw-parser-output hr,
#toc,
.toc {
  border-color: var(--realmu-accent) !important;
}

/* Update 016: stronger dark thumbnail styling for Blood_Castle */

body.page-Blood_Castle div.thumb,
body.page-Blood_Castle .mw-parser-output div.thumb,
body.page-Blood_Castle .mw-parser-output .tleft,
body.page-Blood_Castle .mw-parser-output .tright {
  background: transparent !important;
  border: 0 !important;
}

body.page-Blood_Castle div.thumbinner,
body.page-Blood_Castle .mw-parser-output div.thumbinner {
  background-color: #0f1116 !important;
  border: 1px solid #262932 !important;
  box-shadow: none !important;
}

body.page-Blood_Castle .thumbimage,
body.page-Blood_Castle .mw-parser-output .thumbimage,
body.page-Blood_Castle .mw-parser-output .thumbinner img {
  background-color: transparent !important;
  border: 0 !important;
}

body.page-Blood_Castle .thumbcaption,
body.page-Blood_Castle .mw-parser-output .thumbcaption {
  background: #0f1116 !important;
  color: #acadba !important;
  border-top: 1px solid #262932 !important;
}
/* Update 017: target current MediaWiki figure/figcaption output for Blood_Castle */

body.page-Blood_Castle figure[typeof="mw:File/Thumb"] {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Blood_Castle figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  display: block !important;
  background: #0f1116 !important;
}

body.page-Blood_Castle figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Blood_Castle figure[typeof="mw:File/Thumb"] figcaption {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid #262932 !important;
  background: #0f1116 !important;
  color: #acadba !important;
}

/* Safety: if old pre blocks still appear from previous markup, neutralize their light background */
body.page-Blood_Castle .mw-parser-output pre {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
  color: #cad2df !important;
}
/* Update 018: hide auto image captions on Blood_Castle page only */

body.page-Blood_Castle figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Remove extra divider/space that was used for captions */
body.page-Blood_Castle figure[typeof="mw:File/Thumb"] {
  padding-bottom: 8px !important;
}

/* Update 021: dark thumbnail boxes + hide thumbnail captions for Devil_Square */

body.page-Devil_Square figure[typeof="mw:File/Thumb"] {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Devil_Square figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  display: block !important;
  background: #0f1116 !important;
}

body.page-Devil_Square figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Devil_Square figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}
/* Update 024: dark thumbnail boxes + hide image captions for Chaos_Castle */

/* New MediaWiki output */
body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  display: block !important;
  background: #0f1116 !important;
}

body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Legacy thumbnail output (Timeless/older parser paths) */
body.page-Chaos_Castle .thumbinner {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
}

body.page-Chaos_Castle .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Chaos_Castle .thumbcaption {
  display: none !important;
}

body.page-Chaos_Castle .magnify {
  display: none !important;
}
/* Update 025: dark thumbnail boxes + hide image captions for Illusion_Temple */

/* New MediaWiki output */
body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  display: block !important;
  background: #0f1116 !important;
}

body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Legacy thumbnail output (Timeless/older parser paths) */
body.page-Illusion_Temple .thumbinner {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
}

body.page-Illusion_Temple .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Illusion_Temple .thumbcaption {
  display: none !important;
}

body.page-Illusion_Temple .magnify {
  display: none !important;
}
/* Update 026: dark thumbnail boxes + hide image captions for Doppelganger */

/* New MediaWiki output */
body.page-Doppelganger figure[typeof="mw:File/Thumb"] {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Doppelganger figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  display: block !important;
  background: #0f1116 !important;
}

body.page-Doppelganger figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Doppelganger figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Legacy thumbnail output (Timeless/older parser paths) */
body.page-Doppelganger .thumbinner {
  background: #0f1116 !important;
  border: 1px solid #262932 !important;
}

body.page-Doppelganger .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Doppelganger .thumbcaption {
  display: none !important;
}

body.page-Doppelganger .magnify {
  display: none !important;
}
/* Update 027: Doppelganger visual hotfix (thumb background + minimap pre block) */

/* Apply to both possible body classes */
body.page-Doppelganger,
body.page-Doppelganger_EN {
  --dg-bg: #0f1116;
  --dg-border: #262932;
  --dg-text: #cad2df;
}

/* Strong thumbnail overrides for Timeless/legacy markup */
body.page-Doppelganger .thumb,
body.page-Doppelganger_EN .thumb {
  background: transparent !important;
  border: 0 !important;
}

body.page-Doppelganger .thumbinner,
body.page-Doppelganger_EN .thumbinner {
  background: var(--dg-bg) !important;
  border: 1px solid var(--dg-border) !important;
}

body.page-Doppelganger .thumbimage,
body.page-Doppelganger_EN .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Doppelganger .thumbcaption,
body.page-Doppelganger_EN .thumbcaption {
  display: none !important;
}

body.page-Doppelganger .magnify,
body.page-Doppelganger_EN .magnify {
  display: none !important;
}

/* New MediaWiki figure/figcaption output */
body.page-Doppelganger figure[typeof="mw:File/Thumb"],
body.page-Doppelganger_EN figure[typeof="mw:File/Thumb"] {
  background: var(--dg-bg) !important;
  border: 1px solid var(--dg-border) !important;
  padding: 8px !important;
}

body.page-Doppelganger figure[typeof="mw:File/Thumb"] figcaption,
body.page-Doppelganger_EN figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Fix white preformatted block in Minimap section */
body.page-Doppelganger .mw-parser-output pre,
body.page-Doppelganger_EN .mw-parser-output pre {
  background: var(--dg-bg) !important;
  border: 1px solid var(--dg-border) !important;
  color: var(--dg-text) !important;
  font-family: Consolas, "Courier New", monospace !important;
  white-space: pre-wrap !important;
}
/* Update 028: dark thumbnail boxes + hide image captions for Varka */

/* Support both possible body classes */
body.page-Varka,
body.page-Varka_Fortress,
body.page-Varka_Fortress_EN {
  --varka-bg: #0f1116;
  --varka-border: #262932;
  --varka-text: #cad2df;
}

/* Legacy thumbnail output */
body.page-Varka .thumb,
body.page-Varka_Fortress .thumb,
body.page-Varka_Fortress_EN .thumb {
  background: transparent !important;
  border: 0 !important;
}

body.page-Varka .thumbinner,
body.page-Varka_Fortress .thumbinner,
body.page-Varka_Fortress_EN .thumbinner {
  background: var(--varka-bg) !important;
  border: 1px solid var(--varka-border) !important;
}

body.page-Varka .thumbimage,
body.page-Varka_Fortress .thumbimage,
body.page-Varka_Fortress_EN .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Varka .thumbcaption,
body.page-Varka_Fortress .thumbcaption,
body.page-Varka_Fortress_EN .thumbcaption,
body.page-Varka .magnify,
body.page-Varka_Fortress .magnify,
body.page-Varka_Fortress_EN .magnify {
  display: none !important;
}

/* New MediaWiki figure output */
body.page-Varka figure[typeof="mw:File/Thumb"],
body.page-Varka_Fortress figure[typeof="mw:File/Thumb"],
body.page-Varka_Fortress_EN figure[typeof="mw:File/Thumb"] {
  background: var(--varka-bg) !important;
  border: 1px solid var(--varka-border) !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Varka figure[typeof="mw:File/Thumb"] > a.mw-file-description,
body.page-Varka_Fortress figure[typeof="mw:File/Thumb"] > a.mw-file-description,
body.page-Varka_Fortress_EN figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  background: var(--varka-bg) !important;
}

body.page-Varka figure[typeof="mw:File/Thumb"] img.mw-file-element,
body.page-Varka_Fortress figure[typeof="mw:File/Thumb"] img.mw-file-element,
body.page-Varka_Fortress_EN figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Varka figure[typeof="mw:File/Thumb"] figcaption,
body.page-Varka_Fortress figure[typeof="mw:File/Thumb"] figcaption,
body.page-Varka_Fortress_EN figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Safety for any accidental preformatted light block */
body.page-Varka .mw-parser-output pre,
body.page-Varka_Fortress .mw-parser-output pre,
body.page-Varka_Fortress_EN .mw-parser-output pre {
  background: var(--varka-bg) !important;
  border: 1px solid var(--varka-border) !important;
  color: var(--varka-text) !important;
}
/* Update 029: dark thumbnail boxes + hide image captions for Arka_War */

/* Support both possible page classes */
body.page-Arka_War,
body.page-Arka_War_EN {
  --arka-bg: #0f1116;
  --arka-border: #262932;
  --arka-text: #cad2df;
}

/* Legacy thumbnail output */
body.page-Arka_War .thumb,
body.page-Arka_War_EN .thumb {
  background: transparent !important;
  border: 0 !important;
}

body.page-Arka_War .thumbinner,
body.page-Arka_War_EN .thumbinner {
  background: var(--arka-bg) !important;
  border: 1px solid var(--arka-border) !important;
}

body.page-Arka_War .thumbimage,
body.page-Arka_War_EN .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Arka_War .thumbcaption,
body.page-Arka_War_EN .thumbcaption,
body.page-Arka_War .magnify,
body.page-Arka_War_EN .magnify {
  display: none !important;
}

/* New MediaWiki figure output */
body.page-Arka_War figure[typeof="mw:File/Thumb"],
body.page-Arka_War_EN figure[typeof="mw:File/Thumb"] {
  background: var(--arka-bg) !important;
  border: 1px solid var(--arka-border) !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Arka_War figure[typeof="mw:File/Thumb"] > a.mw-file-description,
body.page-Arka_War_EN figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  background: var(--arka-bg) !important;
}

body.page-Arka_War figure[typeof="mw:File/Thumb"] img.mw-file-element,
body.page-Arka_War_EN figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Arka_War figure[typeof="mw:File/Thumb"] figcaption,
body.page-Arka_War_EN figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Safety for any accidental preformatted light block */
body.page-Arka_War .mw-parser-output pre,
body.page-Arka_War_EN .mw-parser-output pre {
  background: var(--arka-bg) !important;
  border: 1px solid var(--arka-border) !important;
  color: var(--arka-text) !important;
}
/* Update 033: dark thumbnail boxes + hide image captions for PVP_Arenas */

/* Support both possible page classes */
body.page-PVP_Arenas,
body.page-PvP_Arenas,
body.page-PVP_Arenas_EN {
  --pvp-bg: #0f1116;
  --pvp-border: #262932;
  --pvp-text: #cad2df;
}

/* Legacy thumbnail output */
body.page-PVP_Arenas .thumb,
body.page-PvP_Arenas .thumb,
body.page-PVP_Arenas_EN .thumb {
  background: transparent !important;
  border: 0 !important;
}

body.page-PVP_Arenas .thumbinner,
body.page-PvP_Arenas .thumbinner,
body.page-PVP_Arenas_EN .thumbinner {
  background: var(--pvp-bg) !important;
  border: 1px solid var(--pvp-border) !important;
}

body.page-PVP_Arenas .thumbimage,
body.page-PvP_Arenas .thumbimage,
body.page-PVP_Arenas_EN .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-PVP_Arenas .thumbcaption,
body.page-PvP_Arenas .thumbcaption,
body.page-PVP_Arenas_EN .thumbcaption,
body.page-PVP_Arenas .magnify,
body.page-PvP_Arenas .magnify,
body.page-PVP_Arenas_EN .magnify {
  display: none !important;
}

/* New MediaWiki figure output */
body.page-PVP_Arenas figure[typeof="mw:File/Thumb"],
body.page-PvP_Arenas figure[typeof="mw:File/Thumb"],
body.page-PVP_Arenas_EN figure[typeof="mw:File/Thumb"] {
  background: var(--pvp-bg) !important;
  border: 1px solid var(--pvp-border) !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-PVP_Arenas figure[typeof="mw:File/Thumb"] > a.mw-file-description,
body.page-PvP_Arenas figure[typeof="mw:File/Thumb"] > a.mw-file-description,
body.page-PVP_Arenas_EN figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  background: var(--pvp-bg) !important;
}

body.page-PVP_Arenas figure[typeof="mw:File/Thumb"] img.mw-file-element,
body.page-PvP_Arenas figure[typeof="mw:File/Thumb"] img.mw-file-element,
body.page-PVP_Arenas_EN figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-PVP_Arenas figure[typeof="mw:File/Thumb"] figcaption,
body.page-PvP_Arenas figure[typeof="mw:File/Thumb"] figcaption,
body.page-PVP_Arenas_EN figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Safety for accidental preformatted light blocks */
body.page-PVP_Arenas .mw-parser-output pre,
body.page-PvP_Arenas .mw-parser-output pre,
body.page-PVP_Arenas_EN .mw-parser-output pre {
  background: var(--pvp-bg) !important;
  border: 1px solid var(--pvp-border) !important;
  color: var(--pvp-text) !important;
}
/* Update 038: dark thumbnail boxes + hide image captions for Castle_Siege */

/* Support possible page classes */
body.page-Castle_Siege,
body.page-Castle_Siege_EN {
  --cs-bg: #0f1116;
  --cs-border: #262932;
  --cs-text: #cad2df;
}

/* Legacy thumbnail output */
body.page-Castle_Siege .thumb,
body.page-Castle_Siege_EN .thumb {
  background: transparent !important;
  border: 0 !important;
}

body.page-Castle_Siege .thumbinner,
body.page-Castle_Siege_EN .thumbinner {
  background: var(--cs-bg) !important;
  border: 1px solid var(--cs-border) !important;
}

body.page-Castle_Siege .thumbimage,
body.page-Castle_Siege_EN .thumbimage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Castle_Siege .thumbcaption,
body.page-Castle_Siege_EN .thumbcaption,
body.page-Castle_Siege .magnify,
body.page-Castle_Siege_EN .magnify {
  display: none !important;
}

/* New MediaWiki figure output */
body.page-Castle_Siege figure[typeof="mw:File/Thumb"],
body.page-Castle_Siege_EN figure[typeof="mw:File/Thumb"] {
  background: var(--cs-bg) !important;
  border: 1px solid var(--cs-border) !important;
  padding: 8px !important;
  margin: 0.5em 1.4em 1.3em 0 !important;
}

body.page-Castle_Siege figure[typeof="mw:File/Thumb"] > a.mw-file-description,
body.page-Castle_Siege_EN figure[typeof="mw:File/Thumb"] > a.mw-file-description {
  background: var(--cs-bg) !important;
}

body.page-Castle_Siege figure[typeof="mw:File/Thumb"] img.mw-file-element,
body.page-Castle_Siege_EN figure[typeof="mw:File/Thumb"] img.mw-file-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-Castle_Siege figure[typeof="mw:File/Thumb"] figcaption,
body.page-Castle_Siege_EN figure[typeof="mw:File/Thumb"] figcaption {
  display: none !important;
}

/* Safety for accidental preformatted light blocks */
body.page-Castle_Siege .mw-parser-output pre,
body.page-Castle_Siege_EN .mw-parser-output pre {
  background: var(--cs-bg) !important;
  border: 1px solid var(--cs-border) !important;
  color: var(--cs-text) !important;
}

/* Update 047: nested Stage 1-4 mini-stage dropdown styles - v7 with precise click zones */

/* Force mini stages hidden by default */
.stages-inner-submenu {
  display: none !important;
  visibility: hidden !important;
  list-style: none !important;
  margin: 6px 0 0 30px !important;
  padding: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Show mini stages when parent is open */
.stages-inner-parent.stages-open > .stages-inner-submenu {
  display: block !important;
  visibility: visible !important;
  max-height: 10000px !important;
  overflow: visible !important;
}

.stages-inner-parent {
  position: relative !important;
  display: list-item !important;
}

.stages-inner-parent > a {
  font-weight: bold !important;
  display: inline !important;
}

/* Very narrow and precise toggle icon */
.stages-inner-toggle-icon {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 4px !important;
  cursor: pointer !important;
  color: #f3b549 !important;
  font-weight: bold !important;
  font-size: 1em !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  text-align: center !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.stages-inner-toggle-icon:hover {
  color: #ffc107 !important;
  text-shadow: 0 0 2px rgba(255, 193, 7, 0.5) !important;
}

/* Stage parent row padding to prevent click overlap */
.stages-inner-parent {
  padding: 2px 0 !important;
}

.stages-inner-submenu > li {
  display: list-item !important;
  margin: 4px 0 !important;
}

.stages-inner-submenu > li > a {
  opacity: 0.9;
  font-size: 0.95em;
}