/* MU Online H5 - Dark Obsidian & Burnished Gold Portal Theme + Imperial Citadel War-Room */
:root {
  --ui-background: 9, 11, 17;
  --ui-content: 17, 21, 31;
  --ui-text: 241, 234, 218;
  --ui-dark: 7, 9, 14;
  --ui-light: 255, 250, 238;
  --ui-primary: 212, 168, 75;
  --ui-gray-100: 23, 28, 41;
  --ui-gray-200: 35, 42, 60;
  --ui-gray-600: 172, 162, 142;
  --ui-danger: 184, 38, 44;
  --ui-success: 36, 158, 102;
  --ui-info: 64, 138, 212;
  --ui-warn: 214, 152, 42;
  --ui-time: 188, 146, 70;
  /* Replace flat pastel Android icon backgrounds everywhere with smoked obsidian iron */
  --ui-home: 16, 20, 31;
  --ui-game: 22, 14, 18;
  --ui-pay: 22, 18, 13;
  --ui-shop: 16, 20, 31;
  --ui-event: 22, 14, 18;
  --ui-mission: 15, 21, 32;
  --ui-wheel: 22, 18, 13;
  --ui-rank: 20, 18, 14;
  --ui-giftcode: 22, 14, 18;
  --mu-gold: #d4a84b;
  --mu-gold-bright: #f2cf7e;
  --mu-gold-dim: rgba(212, 168, 75, 0.24);
  --mu-crimson: #9b2226;
  --mu-obsidian: rgba(14, 18, 27, 0.88);
  --mu-obsidian-strong: rgba(11, 14, 22, 0.95);
  --radius: 10px;
}

html,
body {
  background-color: #07080d !important;
  color: rgb(var(--ui-text)) !important;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  scrollbar-color: rgba(212, 168, 75, 0.35) rgba(10, 12, 18, 0.9);
}

body {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212, 168, 75, 0.1) 0%, rgba(7, 8, 13, 0.62) 52%, rgba(5, 6, 10, 0.96) 100%),
    url('/client/images/mu-portal-bg.jpg') !important;
  background-position: center top, center center !important;
  background-size: cover, cover !important;
  background-attachment: fixed, fixed !important;
  background-repeat: no-repeat, no-repeat !important;
}

.ServiceLayout {
  background: transparent !important;
}

/* Header Bar */
.ServiceLayoutHeader {
  background: rgba(10, 12, 20, 0.9) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.26) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.62) !important;
}

.ServiceLayoutHeader .Title {
  font-family: 'Cinzel', Georgia, serif !important;
  color: var(--mu-gold-bright) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(212, 168, 75, 0.25);
}

.ServiceLayoutHeader i,
.ServiceLayoutHeader .bx {
  color: var(--mu-gold-bright) !important;
}

.mu-portal-header-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.mu-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(212, 168, 75, 0.08);
  border: 1px solid rgba(212, 168, 75, 0.28);
  text-decoration: none !important;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.mu-brand-chip img {
  width: 20px;
  height: 20px;
}

.mu-brand-chip span {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mu-gold-bright);
  white-space: nowrap;
}

.mu-brand-chip:hover {
  border-color: var(--mu-gold-bright);
  transform: translateY(-1px);
}

.mu-server-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 25, 38, 0.88);
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: #e9dec7;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mu-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bd47d;
  box-shadow: 0 0 8px #2bd47d;
  flex-shrink: 0;
}

.mu-gm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.22), rgba(155, 34, 38, 0.3));
  border: 1px solid rgba(212, 168, 75, 0.45);
  color: #f6dc9c !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.mu-gm-link:hover {
  transform: translateY(-1px);
  border-color: var(--mu-gold-bright);
  box-shadow: 0 4px 16px rgba(212, 168, 75, 0.25);
}

.mu-header-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(24, 20, 14, 0.9);
  border: 1px solid rgba(242, 207, 126, 0.34);
  color: #fff2cb;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.mu-header-coin-pill em {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(212, 168, 75, 0.24);
  color: #f6dc9c;
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  .mu-server-pill,
  .mu-header-coin-pill,
  .mu-brand-chip span {
    display: none !important;
  }
  .mu-gm-link span {
    display: none;
  }
}

/* Sidebar Rail + Medallions */
.ServiceLayoutSidebar {
  background: linear-gradient(180deg, rgba(13, 17, 27, 0.97) 0%, rgba(7, 9, 14, 0.99) 100%) !important;
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(212, 168, 75, 0.24) !important;
  box-shadow: 8px 0 36px rgba(0, 0, 0, 0.72) !important;
}

.ServiceLayoutSidebar__Top {
  padding: 18px 14px 14px !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.16);
  background: radial-gradient(circle at center, rgba(212, 168, 75, 0.12), transparent 72%);
}

.ServiceLayoutSidebar__Top .UiText,
.ServiceLayoutSidebar__Top span,
.ServiceLayoutSidebar__Top div {
  font-family: 'Cinzel', Georgia, serif !important;
  color: var(--mu-gold-bright) !important;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(212, 168, 75, 0.28);
}

.ServiceLayoutSidebar__Center .Item {
  border-radius: 10px;
  margin: 4px 10px;
  padding: 8px 10px !important;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ServiceLayoutSidebar__Center .Item:hover {
  background: rgba(212, 168, 75, 0.1) !important;
  border-color: rgba(212, 168, 75, 0.3);
  transform: translateX(3px);
}

.ServiceLayoutSidebar__Footer {
  border-top: 1px solid rgba(212, 168, 75, 0.14);
  padding-top: 12px;
}

/* Bespoke Forged Medallion Icons (everywhere in dock & sidebar) */
.ServiceLayoutMenu .Item .UiButton,
.ServiceLayoutSidebar__Center .Item .UiButton {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  position: relative;
  overflow: visible !important;
}

.ServiceLayoutMenu .Item .UiButton .UiIcon,
.ServiceLayoutSidebar__Center .Item .UiButton .UiIcon {
  display: none !important;
}

.mu-medallion-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.72));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.Item:hover .mu-medallion-img {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(242, 207, 126, 0.38));
}

/* Main Container: Widescreen Expansion on /client/home War-Room */
@media (min-width: 1024px) {
  .ServiceLayout .ServiceLayoutView .Container {
    width: 1100px !important;
    max-width: calc(100% - 40px) !important;
  }

  body.mu-route-home .ServiceLayout .ServiceLayoutView .Container {
    width: 1380px !important;
    max-width: calc(100% - 36px) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
  }

  body.mu-route-home .ServiceLayoutBanner,
  body.mu-route-home .ServiceLayoutMenu {
    grid-column: 1 / -1 !important;
    margin-bottom: 0 !important;
  }

  body.mu-route-home .HomeView {
    grid-column: 1 / 2 !important;
    min-width: 0;
  }

  body.mu-route-home .mu-warroom-rail {
    grid-column: 2 / 3 !important;
    min-width: 0;
  }
}

.ServiceLayout .ServiceLayoutView {
  padding-top: 18px;
  padding-bottom: 48px;
}

/* =========================================================
   ACT I: IMPERIAL CITADEL SPLIT COMMAND HERO
   ========================================================= */
body .ServiceLayoutBanner {
  position: relative !important;
  border-radius: 16px !important;
  border: 1px solid rgba(212, 168, 75, 0.45) !important;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.8),
    0 0 42px rgba(212, 168, 75, 0.14),
    inset 0 1px 0 rgba(255, 240, 200, 0.16) !important;
  overflow: hidden !important;
  min-height: 240px !important;
  background: #080a10 !important;
}

body.mu-route-home .ServiceLayoutBanner {
  aspect-ratio: auto !important;
  min-height: 410px !important;
  max-height: none !important;
}

body:not(.mu-route-home) .ServiceLayoutBanner {
  aspect-ratio: 16 / 4.2 !important;
  min-height: 185px !important;
  max-height: 240px !important;
}

body .ServiceLayoutBanner .Banner {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.ServiceLayoutBanner .Banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 12, 0.94) 0%, rgba(6, 7, 12, 0.72) 45%, rgba(6, 7, 12, 0.48) 100%),
    linear-gradient(180deg, rgba(6, 7, 12, 0.25) 0%, rgba(6, 7, 12, 0.16) 45%, rgba(6, 7, 12, 0.88) 100%);
  pointer-events: none;
}

.ServiceLayoutBanner .Banner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: right center !important;
  display: block;
}

.mu-cmd-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Keep Vue's native .Play button alive for click delegation, hide cheap center YouTube circle on Home */
body.mu-route-home .ServiceLayoutBanner .Play {
  opacity: 0 !important;
  pointer-events: none !important;
}

body:not(.mu-route-home) .ServiceLayoutBanner .Play {
  display: none !important;
}

.mu-cmd-stage {
  position: relative;
  z-index: 5;
  padding: 32px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
  min-height: 410px;
}

body:not(.mu-route-home) .mu-cmd-stage {
  min-height: 185px;
  padding: 22px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

body:not(.mu-route-home) .mu-cmd-left {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body:not(.mu-route-home) .mu-hero-badge {
  display: none;
}

body:not(.mu-route-home) .mu-hero-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

body:not(.mu-route-home) .mu-hero-title span {
  display: inline;
}

body:not(.mu-route-home) .mu-commander-card,
body:not(.mu-route-home) .mu-hero-sub,
body:not(.mu-route-home) [data-mu-route] {
  display: none !important;
}

.mu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(14, 18, 28, 0.86);
  border: 1px solid rgba(212, 168, 75, 0.44);
  color: var(--mu-gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mu-hero-title {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff7e2;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.92);
  line-height: 1.08;
}

.mu-hero-title span {
  display: block;
  background: linear-gradient(180deg, #fff4cb 0%, #e5b75a 55%, #b1751b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mu-hero-sub {
  margin: 14px 0 22px;
  color: #d6cbb4;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 540px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.mu-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mu-btn-play-crimson,
.mu-btn-gold-vault,
.mu-btn-dark-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 17px;
  border-radius: 10px;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 0.79rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.mu-btn-play-crimson {
  background: linear-gradient(180deg, #bf242b 0%, #7d1116 62%, #52090c 100%);
  border: 1.5px solid #ebbf64;
  color: #fff6dc !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78), 0 0 28px rgba(191, 36, 43, 0.48), inset 0 1px 0 rgba(255, 228, 152, 0.42);
}

.mu-btn-play-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.86), 0 0 38px rgba(242, 207, 126, 0.42);
}

.mu-btn-gold-vault {
  background: linear-gradient(135deg, #f2cf7e 0%, #c89132 100%);
  border: 1px solid #fff0b8;
  color: #161006 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.56);
}

.mu-btn-gold-vault:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 207, 126, 0.4);
}

.mu-btn-dark-ghost {
  background: rgba(14, 18, 28, 0.84);
  border: 1px solid rgba(212, 168, 75, 0.36);
  color: #f2e6cb !important;
}

.mu-btn-dark-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--mu-gold-bright);
  color: var(--mu-gold-bright) !important;
}

/* Right Wing: Commander & Realm Altar Glass Card */
.mu-commander-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 20, 32, 0.88) 0%, rgba(9, 11, 18, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(242, 207, 126, 0.36);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 240, 200, 0.14);
}

.mu-cmd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 168, 75, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mu-gold-bright);
}

.mu-cmd-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.18);
  border: 1px solid rgba(242, 207, 126, 0.42);
  color: #fff2cb;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.mu-cmd-hero-box {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(8, 10, 16, 0.72);
  border: 1px solid rgba(212, 168, 75, 0.22);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mu-cmd-hero-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.mu-cmd-actor-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff5da;
}

.mu-cmd-actor-meta {
  font-size: 0.76rem;
  color: #bfb39c;
}

.mu-cmd-cp-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(168, 28, 34, 0.34);
  border: 1px solid rgba(242, 207, 126, 0.4);
  color: var(--mu-gold-bright);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.mu-cmd-wealth-grid,
.mu-cmd-card-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mu-w-cell,
.mu-cmd-card-kpis > div {
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 75, 0.14);
}

.mu-w-cell span,
.mu-cmd-card-kpis span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9e947f;
}

.mu-w-cell strong,
.mu-cmd-card-kpis strong {
  display: block;
  margin-top: 2px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.86rem;
  color: #fff2cb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mu-cmd-card-kpis strong.ok {
  color: #46e08c;
}

.mu-cmd-guest-title {
  margin-top: 14px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff4d6;
}

.mu-cmd-guest-desc {
  margin: 6px 0 12px;
  font-size: 0.82rem;
  color: #bfb39c;
  line-height: 1.45;
}

.mu-cmd-auth-row,
.mu-cmd-card-foot {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.mu-cmd-auth-btn,
.mu-cmd-card-foot a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.mu-cmd-auth-btn.gold {
  background: linear-gradient(135deg, #f2cf7e 0%, #c89132 100%);
  color: #161006 !important;
}

.mu-cmd-auth-btn.ghost,
.mu-cmd-card-foot a {
  background: rgba(20, 25, 38, 0.85);
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: #e9dec7 !important;
}

.mu-cmd-card-foot a:hover,
.mu-cmd-auth-btn:hover {
  transform: translateY(-1px);
  border-color: var(--mu-gold-bright);
}

@media (max-width: 980px) {
  .mu-cmd-stage {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .mu-cmd-wealth-grid,
  .mu-cmd-card-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   ACT II: 4x2 FORGED ARMORY COMMAND PLAQUES (.ServiceLayoutMenu)
   ========================================================= */
body.mu-route-home .ServiceLayoutMenu {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.mu-route-home .ServiceLayoutMenu .Item {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) 16px !important;
  grid-template-rows: auto auto !important;
  column-gap: 13px !important;
  row-gap: 2px !important;
  align-items: center !important;
  padding: 13px 14px !important;
  min-width: 0 !important;
  background: linear-gradient(160deg, rgba(20, 25, 38, 0.92) 0%, rgba(11, 14, 22, 0.96) 100%) !important;
  border: 1px solid rgba(212, 168, 75, 0.26) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 200, 0.06) !important;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.mu-route-home .ServiceLayoutMenu .Item:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(245, 216, 140, 0.65) !important;
  background: linear-gradient(160deg, rgba(30, 34, 48, 0.96) 0%, rgba(16, 18, 26, 0.98) 100%) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.72), 0 0 24px rgba(212, 168, 75, 0.16) !important;
}

body.mu-route-home .ServiceLayoutMenu .Item .UiButton {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  margin: 0 !important;
}

body.mu-route-home .ServiceLayoutMenu .Item .UiText {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-family: 'Cinzel', Georgia, serif !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  color: #fff3d6 !important;
  letter-spacing: 0.04em;
  text-align: left !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mu-item-sub {
  display: none;
}

.mu-item-chev {
  display: none;
}

body.mu-route-home .ServiceLayoutMenu .Item .mu-item-sub {
  display: block;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 0.74rem;
  color: #a89d86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mu-route-home .ServiceLayoutMenu .Item .mu-item-chev {
  display: inline-block;
  grid-column: 3;
  grid-row: 1 / 3;
  font-size: 1.1rem;
  color: rgba(212, 168, 75, 0.65);
  transition: transform 0.2s ease, color 0.2s ease;
}

body.mu-route-home .ServiceLayoutMenu .Item:hover .mu-item-chev {
  transform: translateX(3px);
  color: var(--mu-gold-bright);
}

@media (max-width: 1120px) {
  body.mu-route-home .ServiceLayoutMenu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.mu-route-home .ServiceLayoutMenu {
    grid-template-columns: 1fr !important;
  }
}

/* Compact sleek Obsidian dock for inner subpages (/shop, /pay, /event, /rank, etc.) */
body:not(.mu-route-home) .ServiceLayoutMenu {
  margin-top: 14px !important;
  margin-bottom: 18px !important;
  padding: 12px 10px !important;
  background: var(--mu-obsidian) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 168, 75, 0.24) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55) !important;
  display: flex !important;
  justify-content: space-around !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body:not(.mu-route-home) .ServiceLayoutMenu .Item {
  flex: 1 1 74px;
  min-width: 68px;
  padding: 8px 4px !important;
  border-radius: 10px !important;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease !important;
}

body:not(.mu-route-home) .ServiceLayoutMenu .Item:hover {
  background: rgba(212, 168, 75, 0.1) !important;
  border-color: rgba(212, 168, 75, 0.3);
  transform: translateY(-2px);
}

body:not(.mu-route-home) .ServiceLayoutMenu .Item .UiButton {
  width: 48px !important;
  height: 48px !important;
}

body:not(.mu-route-home) .ServiceLayoutMenu .Item span,
body:not(.mu-route-home) .ServiceLayoutMenu .Item .UiText {
  color: #efe5cf !important;
  font-weight: 600 !important;
}

/* =========================================================
   ACT III: SPLIT WAR-ROOM CHRONICLES + HALL OF CHAMPIONS RAIL
   ========================================================= */
.mu-chron-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mu-chron-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mu-gold);
}

.mu-chron-title {
  margin: 2px 0 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff5da;
  letter-spacing: 0.04em;
}

.mu-chron-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 25, 38, 0.88);
  border: 1px solid rgba(212, 168, 75, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mu-gold-bright);
}

/* Tabs */
.UiTab {
  background: rgba(14, 18, 27, 0.88) !important;
  border: 1px solid rgba(212, 168, 75, 0.24) !important;
  border-radius: 10px !important;
  padding: 5px !important;
  backdrop-filter: blur(10px);
}

.UiTab .UiTab__Item,
.UiTab > div {
  color: #cbbda2;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.HomeNews {
  margin-top: 10px;
}

.HomeNews > .UiFlex,
.HomeNews > .UFlex {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

@media (max-width: 720px) {
  .HomeNews > .UiFlex,
  .HomeNews > .UFlex {
    grid-template-columns: 1fr !important;
  }
}

.HomeNews .News,
.HomeNews .News.box-resize-50 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.94) 0%, rgba(12, 15, 23, 0.97) 100%) !important;
  border: 1px solid rgba(212, 168, 75, 0.24) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.52) !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
  position: relative;
}

/* Editorial Spotlight on First Dispatch Card on /client/home */
@media (min-width: 721px) {
  body.mu-route-home .HomeNews .News:first-child {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1.15fr 1fr !important;
    align-items: stretch !important;
  }

  body.mu-route-home .HomeNews .News:first-child img {
    height: 100% !important;
    min-height: 220px;
    border-bottom: 0 !important;
    border-right: 1px solid rgba(212, 168, 75, 0.22);
  }

  body.mu-route-home .HomeNews .News:first-child .News__Content {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px !important;
  }

  body.mu-route-home .HomeNews .News:first-child .News__Content > *:first-child {
    font-size: 1.24rem !important;
    margin-bottom: 8px;
  }
}

.HomeNews .News:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(242, 207, 126, 0.62) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.7), 0 0 24px rgba(212, 168, 75, 0.16) !important;
}

.HomeNews .News img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.2);
  transition: transform 0.35s ease;
}

.HomeNews .News:hover img {
  transform: scale(1.03);
}

.HomeNews .News__Content {
  padding: 14px 16px 16px !important;
}

.HomeNews .News__Content > *:first-child {
  font-family: 'Cinzel', Georgia, serif !important;
  color: #fff3d6 !important;
  font-size: 1rem !important;
  margin-bottom: 5px;
  line-height: 1.35;
}

.HomeNews .News__Content > *:last-child {
  color: #b7ad98 !important;
  font-size: 0.84rem !important;
  line-height: 1.48;
}

.HomeNews .News__Time {
  background: rgba(11, 14, 22, 0.88) !important;
  border: 1px solid rgba(212, 168, 75, 0.42) !important;
  color: var(--mu-gold-bright) !important;
  backdrop-filter: blur(8px);
}

/* War-Room Right Rail (Champions + Quick Operations) */
.mu-warroom-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mu-rail-card {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 24, 37, 0.94) 0%, rgba(11, 14, 22, 0.97) 100%);
  border: 1px solid rgba(212, 168, 75, 0.26);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 240, 200, 0.06);
}

.mu-rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 168, 75, 0.16);
}

.mu-rail-head h3 {
  margin: 2px 0 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff4d6;
}

.mu-rail-more {
  background: rgba(212, 168, 75, 0.12);
  border: 1px solid rgba(212, 168, 75, 0.34);
  color: var(--mu-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.mu-rail-more:hover {
  background: rgba(212, 168, 75, 0.24);
  transform: translateY(-1px);
}

.mu-rail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mu-rail-actor {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.65);
  border: 1px solid rgba(212, 168, 75, 0.12);
}

.mu-rail-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  color: #cfc4ad;
}

.mu-rail-rank.rank-1 {
  background: linear-gradient(135deg, #f8d87c, #b97d1d);
  color: #161006;
  box-shadow: 0 0 14px rgba(242, 207, 126, 0.45);
}

.mu-rail-rank.rank-2 {
  background: linear-gradient(135deg, #e5ebf5, #8995ab);
  color: #10141d;
}

.mu-rail-rank.rank-3 {
  background: linear-gradient(135deg, #df9d6a, #8d4b1e);
  color: #140c06;
}

.mu-rail-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff3d6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mu-rail-meta {
  font-size: 0.72rem;
  color: #9e947f;
}

.mu-rail-meta .cls.dk { color: #f07b6b; font-weight: 700; }
.mu-rail-meta .cls.dw { color: #7ac4ff; font-weight: 700; }
.mu-rail-meta .cls.elf { color: #8be2a6; font-weight: 700; }

.mu-rail-cp {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mu-gold-bright);
  white-space: nowrap;
}

.mu-ops-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mu-ops-btn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.68);
  border: 1px solid rgba(212, 168, 75, 0.16);
  text-align: left;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mu-ops-btn:hover {
  transform: translateX(3px);
  border-color: rgba(242, 207, 126, 0.48);
  background: rgba(22, 27, 41, 0.86);
}

.mu-ops-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mu-ops-btn strong {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.84rem;
  color: #fff3d6;
}

.mu-ops-btn span {
  display: block;
  font-size: 0.72rem;
  color: #a89d86;
}

.mu-ops-btn i {
  color: var(--mu-gold-bright);
}

.mu-rail-empty {
  font-size: 0.82rem;
  color: #a89d86;
  padding: 12px 4px;
}

/* Global Cards, Boxes, Inputs, Dialogs & Tables */
.UiCard,
.UiBox {
  background: linear-gradient(180deg, rgba(19, 24, 36, 0.94) 0%, rgba(12, 16, 24, 0.97) 100%) !important;
  border: 1px solid rgba(212, 168, 75, 0.24) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 240, 200, 0.05) !important;
  color: rgb(var(--ui-text)) !important;
}

.UiCard__Header,
.UiBox__Header {
  font-family: 'Cinzel', Georgia, serif !important;
  color: var(--mu-gold-bright) !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.16) !important;
  letter-spacing: 0.05em;
}

.UiInput__Content {
  background: rgba(8, 10, 16, 0.82) !important;
  border: 1px solid rgba(212, 168, 75, 0.24) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.UiInput__Content:focus-within {
  border-color: rgba(242, 207, 126, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.14) !important;
}

.UiInput__Content__Input,
.UiInput input,
.UiInput textarea,
.UiSelect {
  color: #f6efe0 !important;
}

.UiInput__Content__Input::placeholder,
.UiInput input::placeholder {
  color: rgba(185, 174, 154, 0.58) !important;
}

.UiDialog__Content {
  background: rgba(15, 19, 29, 0.97) !important;
  border: 1px solid rgba(212, 168, 75, 0.32) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78) !important;
}

.UiChip {
  background: rgba(27, 33, 49, 0.9) !important;
  border: 1px solid rgba(212, 168, 75, 0.22);
  color: #efe5cf !important;
}

.UiTable,
.UiTable__Content {
  background: transparent !important;
  color: #efe5cf !important;
}

.UiTable th {
  color: var(--mu-gold-bright) !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.22) !important;
}

.UiTable td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body form > .UiCard {
  max-width: 470px !important;
  margin: 34px auto !important;
  border-color: rgba(212, 168, 75, 0.36) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.78),
    0 0 34px rgba(212, 168, 75, 0.12) !important;
}

body .SocketChat {
  background: rgba(11, 14, 22, 0.96) !important;
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(212, 168, 75, 0.24) !important;
}

body .SocketChat__Top {
  border-bottom: 1px solid rgba(212, 168, 75, 0.18) !important;
  background: rgba(16, 20, 31, 0.92) !important;
}

body .NewsMain {
  color: #e4dac5 !important;
  line-height: 1.72;
  font-size: 0.96rem;
}

.NewsMain h1,
.NewsMain h2,
.NewsMain h3 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--mu-gold-bright);
  margin: 14px 0 8px;
}

.NewsMain ul,
.NewsMain ol {
  padding-left: 20px;
  margin: 8px 0;
}

.NewsMain li {
  margin-bottom: 5px;
}

.UiAlert,
[class*="UiAlert"] {
  background: rgba(24, 20, 18, 0.88) !important;
  border-color: rgba(212, 168, 75, 0.34) !important;
  color: #f0dfbc !important;
}

/* Flagship Obsidian Citadel Theater Wrapper (/client/game GameLayout) */
body .GameLayout {
  background: #06070c !important;
}

body .GameLayoutHeader {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  background: linear-gradient(180deg, rgba(16, 20, 31, 0.98) 0%, rgba(9, 11, 17, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.34) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.72) !important;
  color: #f4ecdb !important;
  z-index: 20 !important;
}

body .GameLayoutHeader i,
body .GameLayoutHeader .bx {
  color: var(--mu-gold-bright) !important;
}

.mu-game-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  text-decoration: none !important;
}

.mu-game-brand img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px rgba(212, 168, 75, 0.45));
}

.mu-game-brand span {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--mu-gold-bright);
  white-space: nowrap;
}

.mu-game-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  margin-right: auto;
}

.mu-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(21, 26, 40, 0.9);
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: #e9dec7 !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.mu-game-pill:hover {
  border-color: var(--mu-gold-bright);
  color: var(--mu-gold-bright) !important;
  transform: translateY(-1px);
}

.mu-game-pill--crimson {
  background: linear-gradient(135deg, rgba(168, 28, 34, 0.42), rgba(212, 168, 75, 0.2));
  border-color: rgba(212, 168, 75, 0.48);
  color: #ffe8ad !important;
}

body .GameLayoutMenu,
body .GameConfigView {
  background: rgba(13, 16, 25, 0.98) !important;
  color: #f4ecdb !important;
  border: 1px solid rgba(212, 168, 75, 0.3) !important;
}

body .GameLayoutMenu .MenuControl {
  background: rgba(18, 23, 35, 0.98) !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.22);
}

@media (max-width: 820px) {
  .mu-game-brand span,
  .mu-game-pill span.hide-sm {
    display: none;
  }
}
