/**
 * Castle Siege hero rail — isolated presentation patch.
 * Uses existing CastleSiege data; no backend, route or database changes.
 */
html body.mugm-site.mugm-page-home .mugm-hero,
html body.mugm-site.mugm-page-home .mugm-hero>.mugm-hero__inner{
  height:815px!important;
  min-height:815px!important;
}

.mugm-page-home .mugm-hero__inner{
  gap:14px;
  padding-bottom:12px;
}

.mugm-siege-rail{
  position:relative;
  z-index:5;
  width:100vw;
  min-height:138px;
  margin-inline:calc(50% - 50vw);
  overflow:hidden;
  border-block:1px solid rgba(216,177,91,.54);
  background:#061820;
  box-shadow:0 8px 30px rgba(0,4,8,.24);
  isolation:isolate;
}

.mugm-siege-rail::before,
.mugm-siege-rail::after{
  position:absolute;
  z-index:3;
  left:50%;
  width:10px;
  height:10px;
  border:1px solid rgba(235,199,115,.8);
  background:#06212a;
  box-shadow:0 0 0 3px rgba(6,23,30,.88),0 0 17px rgba(220,181,91,.24);
  content:"";
  transform:translate(-50%,-50%) rotate(45deg);
}

.mugm-siege-rail::before{top:0}
.mugm-siege-rail::after{top:100%}

.mugm-siege-rail__scene{
  position:absolute;
  z-index:-2;
  inset:0;
  background-image:url("../img/brand-2026/castle-siege-hero-rail-v1.png");
  background-position:center 57%;
  background-size:cover;
  filter:saturate(.78) brightness(.76);
  transform:scale(1.012);
}

.mugm-siege-rail__scene::after{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(1,11,16,.03) 0%,rgba(2,17,23,.28) 25%,rgba(2,19,25,.80) 47%,rgba(2,18,24,.88) 100%),
    linear-gradient(180deg,rgba(2,15,21,.18),rgba(2,13,18,.44));
  content:"";
}

.mugm-siege-rail__grid{
  width:min(calc(100% - 48px),1432px);
  min-height:136px;
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(390px,1.65fr) minmax(300px,1.25fr) minmax(230px,.86fr) minmax(190px,.72fr);
  align-items:center;
}

.mugm-siege-rail__identity{
  position:relative;
  min-width:0;
  padding:18px 34px 18px clamp(184px,14vw,252px);
}

.mugm-siege-rail__identity::after{
  position:absolute;
  right:12px;
  bottom:31px;
  left:clamp(184px,14vw,252px);
  height:1px;
  background:linear-gradient(90deg,rgba(218,179,93,.72),transparent);
  content:"";
}

.mugm-siege-rail__identity h2{
  margin:0;
  color:#f1e6c7;
  font-family:var(--mugm-font-display,"Cormorant Garamond",serif);
  font-size:clamp(1.78rem,2.15vw,2.38rem);
  font-weight:500;
  letter-spacing:.025em;
  line-height:1;
  text-transform:uppercase;
  text-shadow:0 3px 18px rgba(0,3,6,.78);
  text-wrap:balance;
}

.mugm-siege-rail__crown{
  position:absolute;
  bottom:28px;
  left:clamp(150px,11vw,204px);
  display:grid;
  width:44px;
  height:44px;
  place-items:center;
  color:#e1b95e;
  font-size:1.85rem;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.62));
  transform:translateX(-50%);
}

.mugm-siege-rail__fact{
  position:relative;
  display:flex;
  min-width:0;
  min-height:82px;
  padding:9px 30px;
  flex-direction:column;
  justify-content:center;
}

.mugm-siege-rail__fact::before{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(220,183,98,.58) 22%,rgba(99,211,218,.35) 50%,rgba(220,183,98,.58) 78%,transparent);
  content:"";
}

.mugm-siege-rail__fact::after{
  position:absolute;
  top:50%;
  left:0;
  width:8px;
  height:8px;
  border:1px solid rgba(230,194,110,.75);
  background:#08232b;
  content:"";
  transform:translate(-50%,-50%) rotate(45deg);
}

.mugm-siege-rail__fact>span{
  margin-bottom:5px;
  color:#78d4d7;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.15em;
  line-height:1.2;
  text-transform:uppercase;
}

.mugm-siege-rail__fact>strong{
  min-width:0;
  overflow:hidden;
  color:#f4eee2;
  font-family:var(--mugm-font-display,"Cormorant Garamond",serif);
  font-size:clamp(1.08rem,1.35vw,1.42rem);
  font-weight:600;
  line-height:1.1;
  text-overflow:ellipsis;
  text-shadow:0 2px 13px rgba(0,3,7,.85);
  white-space:nowrap;
}

.mugm-siege-rail__fact>small{
  margin-top:6px;
  overflow:hidden;
  color:#c0c9c7;
  font-size:.72rem;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mugm-siege-rail__link{
  display:flex;
  min-height:48px;
  margin:0 0 0 18px;
  padding:11px 18px;
  align-items:center;
  justify-content:center;
  gap:16px;
  border:1px solid rgba(218,175,78,.72);
  background:rgba(3,15,20,.62);
  color:#e6c471;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.055em;
  line-height:1.2;
  text-align:center;
  text-transform:uppercase;
  transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease,transform 180ms ease;
}

.mugm-siege-rail__link i{font-size:.92rem}

.mugm-siege-rail__link:hover{
  border-color:#e7c46e;
  background:rgba(20,55,61,.82);
  color:#ffe3a0;
  transform:translateY(-1px);
}

.mugm-siege-rail__link:focus-visible{
  outline:2px solid #8ad9dd;
  outline-offset:4px;
}

@media (max-width:1180px){
  html body.mugm-site.mugm-page-home .mugm-hero,
  html body.mugm-site.mugm-page-home .mugm-hero>.mugm-hero__inner{height:auto!important;min-height:860px!important}
  .mugm-siege-rail__grid{
    grid-template-columns:minmax(310px,1.25fr) minmax(280px,1.05fr) minmax(205px,.76fr) minmax(170px,.62fr)
  }
  .mugm-siege-rail__identity{padding-left:150px}
  .mugm-siege-rail__identity::after{left:150px}
  .mugm-siege-rail__crown{left:120px}
  .mugm-siege-rail__fact{padding-inline:22px}
  .mugm-siege-rail__link{margin-left:10px;padding-inline:12px}
}

@media (min-width:1500px){
  .mugm-siege-rail__grid{grid-template-columns:minmax(450px,1.72fr) minmax(320px,1.2fr) minmax(250px,.88fr) minmax(200px,.68fr)}
  .mugm-siege-rail__identity{padding-left:clamp(210px,14vw,270px)}
  .mugm-siege-rail__identity::after{left:clamp(210px,14vw,270px)}
  .mugm-siege-rail__crown{left:clamp(174px,11vw,218px)}
}

@media (max-width:900px){
  html body.mugm-site.mugm-page-home .mugm-hero,
  html body.mugm-site.mugm-page-home .mugm-hero>.mugm-hero__inner{height:auto!important;min-height:1010px!important}
  .mugm-siege-rail{min-height:278px}
  .mugm-siege-rail__scene{background-position:24% center}
  .mugm-siege-rail__scene::after{
    background:linear-gradient(90deg,rgba(2,14,19,.22),rgba(2,19,25,.82) 46%,rgba(2,18,24,.92))
  }
  .mugm-siege-rail__grid{
    min-height:276px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto auto auto;
  }
  .mugm-siege-rail__identity{grid-column:1 / -1;grid-row:1;padding:18px 24px 18px 118px}
  .mugm-siege-rail__identity::after{left:118px}
  .mugm-siege-rail__crown{left:90px}
  .mugm-siege-rail__fact{min-height:78px}
  .mugm-siege-rail__fact--owner{border-top:1px solid rgba(126,205,207,.11)}
  .mugm-siege-rail__link{min-height:44px;margin:10px 22px 18px;grid-column:1 / -1;grid-row:3}
}

@media (max-width:760px){
  html body.mugm-site.mugm-page-home .mugm-hero,
  html body.mugm-site.mugm-page-home .mugm-hero>.mugm-hero__inner{
    height:auto!important;
    min-height:0!important;
  }
  html body.mugm-site.mugm-page-home .mugm-hero__content,
  html body.mugm-site.mugm-page-home .mugm-hero__content h1{
    width:calc(100vw - 36px)!important;
    min-width:0;
    max-width:calc(100vw - 36px)!important;
  }
  html body.mugm-site.mugm-page-home .mugm-hero__content h1{
    font-size:clamp(2.32rem,9.5vw,2.9rem)!important;
    letter-spacing:-.035em;
    white-space:normal!important;
  }
  .mugm-siege-rail{
    min-height:0;
    margin-top:28px;
  }
  .mugm-siege-rail__scene{
    background-position:18% center;
  }
  .mugm-siege-rail__scene::after{
    background:linear-gradient(180deg,rgba(2,16,21,.32),rgba(2,17,23,.88) 38%,rgba(2,15,20,.96))
  }
  .mugm-siege-rail__grid{
    width:min(calc(100% - 32px),560px);
    min-height:0;
    padding:20px 0;
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }
  .mugm-siege-rail__identity,
  .mugm-siege-rail__fact,
  .mugm-siege-rail__link{
    grid-column:1;
    grid-row:auto;
  }
  .mugm-siege-rail__identity{
    min-height:90px;
    padding:16px 12px 18px 94px;
  }
  .mugm-siege-rail__identity h2{font-size:clamp(1.75rem,8vw,2.35rem)}
  .mugm-siege-rail__identity::after{right:14px;bottom:14px;left:94px}
  .mugm-siege-rail__crown{bottom:12px;left:64px}
  .mugm-siege-rail__fact{
    min-height:84px;
    padding:16px 14px 16px 28px;
    border-top:1px solid rgba(126,205,207,.11);
  }
  .mugm-siege-rail__fact::before{top:14px;bottom:14px}
  .mugm-siege-rail__fact>strong,
  .mugm-siege-rail__fact>small{white-space:normal}
  .mugm-siege-rail__fact>strong{overflow:visible;text-overflow:clip}
  .mugm-siege-rail__link{
    width:100%;
    min-height:48px;
    margin:12px 0 0;
  }
}

@media (max-width:390px){
  .mugm-siege-rail__grid{width:min(calc(100% - 24px),560px)}
  .mugm-siege-rail__identity{padding-left:80px}
  .mugm-siege-rail__identity::after{left:80px}
  .mugm-siege-rail__crown{left:53px}
  .mugm-siege-rail__fact>small{font-size:.67rem}
  html body.mugm-site.mugm-page-home .mugm-pvp-hall,
  html body.mugm-site.mugm-page-home .mugm-pvp-hall__list,
  html body.mugm-site.mugm-page-home .mugm-pvp-champion{
    width:100%;max-width:100%;min-width:0;overflow:hidden
  }
  html body.mugm-site.mugm-page-home .mugm-pvp-champion__body{
    grid-template-columns:minmax(0,1fr) minmax(72px,.72fr)
  }
  html body.mugm-site.mugm-page-home .mugm-pvp-champion__name{
    max-width:100%;overflow:hidden;font-size:.7rem;overflow-wrap:anywhere;
    text-overflow:ellipsis;white-space:normal!important
  }
}

@media (prefers-reduced-motion:reduce){
  .mugm-siege-rail__link{transition:none}
  .mugm-siege-rail__link:hover{transform:none}
}
