/**
 * Castle Siege full experience — isolated frontend layer.
 * No database, cache, routing or WebEngine behavior changes.
 */
body.mugm-page-castlesiege .mugm-module-shell{padding-block:56px 88px}
body.mugm-page-castlesiege .mugm-module-shell::before{height:420px;opacity:.1}
body.mugm-page-castlesiege{overflow-x:hidden}
body.mugm-page-castlesiege .mugm-module,
body.mugm-page-castlesiege .mugm-module-shell,
body.mugm-page-castlesiege .mugm-inner-hero__content{min-width:0}

.mugm-castle-experience{
  --castle-ink:#03131b;
  --castle-deep:#061d27;
  --castle-panel:rgba(6,28,37,.78);
  --castle-line:rgba(133,199,200,.18);
  --castle-line-strong:rgba(215,184,110,.34);
  --castle-aqua:#78d4d7;
  --castle-ivory:#f3eee2;
  --castle-gold:#d7b86e;
  display:grid;gap:42px;min-width:0
}
.mugm-castle-experience a{text-underline-offset:3px}

.mugm-castle-overview{
  position:relative;display:grid;min-height:330px;overflow:hidden;
  grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr);
  border-block:1px solid var(--castle-line-strong);background:var(--castle-ink);isolation:isolate
}
.mugm-castle-overview__art{
  position:absolute;z-index:-2;inset:0;
  background:url("../img/brand-2026/castle-siege-hero-rail-v1.png") 18% center/cover no-repeat;
  filter:saturate(.72) brightness(.52);transform:scale(1.015)
}
.mugm-castle-overview::after{
  position:absolute;z-index:-1;inset:0;
  background:linear-gradient(90deg,rgba(2,15,21,.32),rgba(2,18,25,.88) 48%,rgba(2,16,22,.97));content:""
}
.mugm-castle-overview__status{
  display:flex;min-width:0;padding:46px clamp(28px,4vw,64px);flex-direction:column;justify-content:center
}
.mugm-castle-data-label,.mugm-castle-section-head p,.mugm-castle-overview__facts dt,.mugm-castle-metrics dt{
  color:#99b1af;font-size:.68rem;font-weight:700;letter-spacing:.1em;line-height:1.35;text-transform:uppercase
}
.mugm-castle-overview__status h2{
  max-width:13ch;margin-top:8px;color:var(--castle-ivory);font-size:clamp(2.65rem,5vw,5rem);
  font-weight:500;line-height:.88;text-wrap:balance;text-shadow:0 8px 30px rgba(0,6,10,.62)
}
.mugm-castle-overview__status>p{max-width:58ch;margin-top:20px;color:#c2d0cd;font-size:.9rem;line-height:1.68;overflow-wrap:anywhere}
.mugm-castle-overview__status>p strong{color:#f0dfae}
.mugm-castle-battle-callout{
  display:flex;width:max-content;max-width:100%;margin-top:28px;padding:12px 0;align-items:center;gap:12px;
  border-block:1px solid rgba(215,184,110,.32);color:#b9c9c5;font-size:.74rem
}
.mugm-castle-battle-callout i{color:var(--castle-gold);font-size:1.05rem}
.mugm-castle-battle-callout span{text-transform:uppercase}
.mugm-castle-battle-callout strong{color:var(--castle-ivory);font-variant-numeric:tabular-nums}

.mugm-castle-overview__facts{
  display:grid;margin:0;padding:34px clamp(24px,3vw,50px);grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:center;border-left:1px solid var(--castle-line-strong);background:rgba(2,16,22,.68)
}
.mugm-castle-overview__facts>div{min-width:0;padding:24px 22px;border-bottom:1px solid var(--castle-line)}
.mugm-castle-overview__facts>div:nth-child(odd){border-right:1px solid var(--castle-line)}
.mugm-castle-overview__facts>div:nth-child(n+3){border-bottom:0}
.mugm-castle-overview__facts dd{
  margin-top:8px;color:var(--castle-ivory);font-family:var(--mugm-font-display,"Marcellus",serif);
  font-size:clamp(1.1rem,1.7vw,1.45rem);line-height:1.18;overflow-wrap:anywhere
}

.mugm-castle-ledger,.mugm-castle-owner-panel,.mugm-castle-roster,.mugm-castle-schedule{
  min-width:0;border-top:1px solid var(--castle-line-strong)
}
.mugm-castle-section-head{
  display:flex;min-height:94px;padding:22px 0;align-items:center;justify-content:space-between;gap:24px;
  border-bottom:1px solid var(--castle-line)
}
.mugm-castle-section-head h2{
  display:flex;align-items:center;gap:12px;color:var(--castle-ivory);font-size:clamp(1.65rem,2.5vw,2.4rem);font-weight:500
}
.mugm-castle-section-head h2 i{width:26px;color:var(--castle-gold);font-size:.7em;text-align:center}
.mugm-castle-section-head p{margin-top:8px;text-transform:none}
.mugm-castle-owner-state,.mugm-castle-count{
  display:inline-flex;min-height:38px;padding:8px 13px;align-items:center;gap:8px;border:1px solid var(--castle-line-strong);
  color:#c4d1ce;font-size:.7rem;font-weight:700;text-transform:uppercase
}
.mugm-castle-owner-state i{color:#8ca5a3}
.mugm-castle-owner-state.is-occupied i{color:var(--castle-gold)}
.mugm-castle-count{color:var(--castle-aqua);font-variant-numeric:tabular-nums}

.mugm-castle-metrics{display:grid;margin:0;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--castle-panel)}
.mugm-castle-metrics>div{min-width:0;min-height:116px;padding:24px 26px;border-right:1px solid var(--castle-line)}
.mugm-castle-metrics>div:last-child{border-right:0}
.mugm-castle-metrics dd{
  margin-top:13px;color:var(--castle-ivory);font-family:var(--mugm-font-display,"Marcellus",serif);
  font-size:1.42rem;font-variant-numeric:tabular-nums;line-height:1.1;overflow-wrap:anywhere
}

.mugm-castle-owner-grid{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);background:var(--castle-panel)}
.mugm-castle-owner-primary{
  display:flex;min-height:180px;padding:30px;align-items:center;gap:24px;border-right:1px solid var(--castle-line)
}
.mugm-castle-owner-logo,.mugm-castle-alliance-logo{flex:0 0 auto}
.mugm-castle-owner-logo img{width:72px;height:72px;image-rendering:pixelated}
.mugm-castle-alliance-logo img{width:28px;height:28px;image-rendering:pixelated}
.mugm-castle-owner-primary>div:last-child{display:grid;gap:6px;min-width:0}
.mugm-castle-owner-primary span{color:#8ea6a4;font-size:.68rem;text-transform:uppercase}
.mugm-castle-owner-primary strong{font-family:var(--mugm-font-display);font-size:1.65rem}
.mugm-castle-owner-primary small{color:#aabcb8}
.mugm-castle-alliance-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.mugm-castle-alliance-list>div{
  display:grid;min-height:90px;padding:18px 22px;grid-template-columns:36px minmax(0,1fr);align-content:center;
  column-gap:12px;border-right:1px solid var(--castle-line);border-bottom:1px solid var(--castle-line)
}
.mugm-castle-alliance-list>div:nth-child(2n){border-right:0}
.mugm-castle-alliance-list>div strong,.mugm-castle-alliance-list>div small{grid-column:2}
.mugm-castle-alliance-list>div small{color:#8da19e}
.mugm-castle-empty{padding:28px;color:#9bafac}

.mugm-castle-table-wrap{overflow-x:auto;background:var(--castle-panel)}
.mugm-castle-table{width:100%;border-collapse:collapse;table-layout:fixed}
.mugm-castle-table th{
  padding:14px 20px;border-bottom:1px solid var(--castle-line-strong);color:#8fa7a5;font-size:.64rem;
  letter-spacing:.1em;text-align:left;text-transform:uppercase
}
.mugm-castle-table th:first-child{width:100px}
.mugm-castle-table th:nth-child(4),.mugm-castle-table th:nth-child(5){width:130px;text-align:center}
.mugm-castle-table td{
  height:72px;padding:14px 20px;border-bottom:1px solid var(--castle-line);color:#c6d2cf;vertical-align:middle
}
.mugm-castle-table td:nth-child(4),.mugm-castle-table td:nth-child(5){text-align:center;font-variant-numeric:tabular-nums}
.mugm-castle-table tbody tr:last-child td{border-bottom:0}
.mugm-castle-table tbody tr:hover{background:rgba(120,212,215,.045)}
.mugm-castle-table a{color:var(--castle-ivory)}
.mugm-castle-table a:hover{color:var(--castle-aqua)}
.mugm-castle-guild-mark img{width:30px;height:30px;margin:auto;image-rendering:pixelated}
.mugm-castle-score{color:var(--castle-gold);font-weight:800}

.mugm-castle-timeline{
  display:grid;margin:0;padding:0;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;background:var(--castle-panel)
}
.mugm-castle-timeline li{
  position:relative;min-width:0;min-height:208px;padding:30px 24px 26px;border-right:1px solid var(--castle-line)
}
.mugm-castle-timeline li:last-child{border-right:0}
.mugm-castle-timeline li::before{
  position:absolute;top:0;right:0;left:0;height:2px;background:rgba(120,212,215,.14);content:""
}
.mugm-castle-timeline li.is-current::before{background:var(--castle-gold)}
.mugm-castle-timeline__index{color:#69827f;font-size:.68rem;font-weight:800;letter-spacing:.12em}
.mugm-castle-timeline li>div{display:grid;gap:10px;margin-top:25px}
.mugm-castle-timeline strong{color:var(--castle-ivory);font-family:var(--mugm-font-display);font-size:1.18rem;line-height:1.16}
.mugm-castle-timeline time{color:var(--castle-aqua);font-size:.72rem;line-height:1.45}
.mugm-castle-timeline small{color:#879c99;font-size:.68rem;line-height:1.45}
.mugm-castle-timeline li.is-current .mugm-castle-timeline__index{color:var(--castle-gold)}

@media (max-width:1100px){
  .mugm-castle-overview{grid-template-columns:1fr}
  .mugm-castle-overview__facts{border-top:1px solid var(--castle-line-strong);border-left:0}
  .mugm-castle-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mugm-castle-metrics>div:nth-child(2n){border-right:0}
  .mugm-castle-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--castle-line)}
  .mugm-castle-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mugm-castle-timeline li{min-height:170px;border-bottom:1px solid var(--castle-line)}
  .mugm-castle-timeline li:nth-child(2n){border-right:0}
}

@media (max-width:760px){
  html body.mugm-site.mugm-page-castlesiege .mugm-module-shell{
    width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important;
    padding:36px 0 56px!important
  }
  html body.mugm-site.mugm-page-castlesiege .mugm-module{
    width:100%!important;max-width:100%!important;overflow:hidden
  }
  html body.mugm-site.mugm-page-castlesiege .mugm-castle-experience{
    width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important
  }
  html body.mugm-site.mugm-page-castlesiege .mugm-inner-hero__grid{
    width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important;
    padding-top:104px!important
  }
  html body.mugm-site.mugm-page-castlesiege .mugm-inner-hero__content{
    width:100%!important;max-width:100%!important;overflow:hidden
  }
  html body.mugm-site.mugm-page-castlesiege .mugm-inner-hero__content>p{
    width:100%!important;max-width:100%!important;overflow-wrap:anywhere;white-space:normal!important
  }
  .mugm-castle-experience{gap:34px}
  .mugm-castle-overview{min-height:0}
  .mugm-castle-overview__art{background-position:22% center}
  .mugm-castle-overview__status{padding:34px 22px}
  .mugm-castle-overview__status h2{font-size:clamp(2.4rem,13vw,3.6rem)}
  .mugm-castle-overview__status>p{
    width:100%;max-width:100%;font-size:.84rem;overflow-wrap:anywhere;white-space:normal!important
  }
  .mugm-castle-overview__status>p strong{white-space:normal!important;overflow-wrap:anywhere}
  .mugm-castle-battle-callout{width:100%;align-items:flex-start;flex-wrap:wrap}
  .mugm-castle-battle-callout strong{width:100%;padding-left:29px}
  .mugm-castle-overview__facts{padding:0;grid-template-columns:1fr}
  .mugm-castle-overview__facts>div,.mugm-castle-overview__facts>div:nth-child(odd),.mugm-castle-overview__facts>div:nth-child(n+3){padding:18px 22px;border-right:0;border-bottom:1px solid var(--castle-line)}
  .mugm-castle-overview__facts>div:last-child{border-bottom:0}
  .mugm-castle-section-head{min-height:0;padding:20px 0;align-items:flex-start;flex-direction:column}
  .mugm-castle-section-head h2{font-size:1.65rem}
  .mugm-castle-section-head p{font-size:.62rem;line-height:1.55}
  .mugm-castle-owner-state,.mugm-castle-count{align-self:flex-start}
  .mugm-castle-metrics{grid-template-columns:1fr}
  .mugm-castle-metrics>div,.mugm-castle-metrics>div:nth-child(-n+2){min-height:0;padding:19px 22px;border-right:0;border-bottom:1px solid var(--castle-line)}
  .mugm-castle-metrics>div:last-child{border-bottom:0}
  .mugm-castle-owner-grid{grid-template-columns:1fr}
  .mugm-castle-owner-primary{min-height:0;padding:24px 20px;border-right:0;border-bottom:1px solid var(--castle-line)}
  .mugm-castle-alliance-list{grid-template-columns:1fr}
  .mugm-castle-alliance-list>div{border-right:0}
  .mugm-castle-table,.mugm-castle-table tbody,.mugm-castle-table tr,.mugm-castle-table td{display:block;width:100%}
  .mugm-castle-table thead{display:none}
  .mugm-castle-table tbody{display:grid;gap:10px;padding:10px}
  .mugm-castle-table tr{padding:13px 16px;border:1px solid var(--castle-line);background:rgba(4,22,30,.72)}
  .mugm-castle-table td,.mugm-castle-table td:nth-child(4),.mugm-castle-table td:nth-child(5){display:flex;height:auto;min-height:42px;padding:8px 0;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--castle-line);text-align:right}
  .mugm-castle-table td:last-child{border-bottom:0}
  .mugm-castle-table td>*{min-width:0;max-width:62%;overflow-wrap:anywhere}
  .mugm-castle-table td::before{flex:0 0 auto;color:#7f9794;content:attr(data-label);font-size:.62rem;font-weight:700;letter-spacing:.08em;text-align:left;text-transform:uppercase}
  .mugm-castle-guild-mark{margin-left:auto}
  .mugm-castle-timeline{grid-template-columns:1fr}
  .mugm-castle-timeline li{min-height:0;padding:22px 20px 22px 66px;border-right:0}
  .mugm-castle-timeline li::before{top:0;right:auto;bottom:0;left:24px;width:1px;height:auto}
  .mugm-castle-timeline__index{position:absolute;top:23px;left:18px}
  .mugm-castle-timeline li>div{margin-top:0}
}

@media (prefers-reduced-motion:reduce){.mugm-castle-overview__art{transform:none}}
