/* MU Neverland 99: root-layout repair, single artwork and single native hero. */
html body[data-omega-stable="99"]{--s99-font:Inter,"Segoe UI",system-ui,sans-serif;--s99-gold:#f2ce85;--s99-cyan:#90d9ff;--s99-line:#9acded42;font-family:var(--s99-font)!important;color:#edf6ff;background-color:#06182c!important;}
html body[data-omega-stable="99"]:has(>header.omega-stable-hero){background-image:linear-gradient(180deg,#06182c12 0,#06182c0a 28%,#06182c66 55%,#06182c 100%),url('../img/mu-warrior-refined.webp')!important;background-repeat:no-repeat!important;background-position:center top!important;background-size:100% max(100vh,900px),max(100vw,1500px) auto!important;background-attachment:fixed!important;}
html body[data-omega-stable="99"]:has(>header.omega-stable-hero)::before{content:none!important;display:none!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero[data-omega-hero="51"]{height:auto!important;min-height:0!important;max-height:none!important;display:block!important;position:relative!important;width:100%!important;margin:0!important;padding:76px 16px 18px!important;background:transparent!important;overflow:visible!important;box-sizing:border-box!important;isolation:isolate;}
html body[data-omega-stable="99"] > header.omega-stable-hero::before,html body[data-omega-stable="99"] > header.omega-stable-hero::after{content:none!important;display:none!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .header-content{display:block!important;position:relative!important;inset:auto!important;width:100%!important;max-width:1040px!important;margin:0 auto!important;padding:0!important;transform:none!important;opacity:1!important;animation:none!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .compact-header-wrapper{display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;width:100%!important;margin:0!important;padding:0!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .logo-wrapper{position:relative!important;width:min(100%,320px)!important;max-width:320px!important;height:auto!important;min-height:0!important;padding:0!important;margin:0 auto!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .logo-wrapper img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:210px!important;object-fit:contain!important;margin:0 auto!important;filter:drop-shadow(0 7px 16px #06182cb3)!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .logo-wrapper::before{content:none!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-actions-slot{position:relative!important;display:block!important;width:min(100%,680px)!important;max-width:680px!important;margin:-9px auto 0!important;padding:0!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-intro{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;text-align:center!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-eyebrow{margin:0 0 10px!important;font-size:11px!important;line-height:1.3!important;color:#c6eaff!important;letter-spacing:.19em!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-title{font-family:var(--s99-font)!important;font-size:clamp(29px,3.2vw,48px)!important;max-width:none!important;width:100%!important;line-height:1.08!important;letter-spacing:-.035em!important;font-weight:800!important;margin:0 auto!important;color:white!important;text-shadow:0 3px 18px #001425e8!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-title span{font-family:inherit!important;color:#ffe1a1!important;text-shadow:0 3px 18px #001425e8!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-copy{font-size:15px!important;color:#e0f2ff!important;line-height:1.45!important;margin:10px 0 0!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-actions{display:flex!important;align-items:stretch!important;justify-content:center!important;flex-wrap:wrap!important;gap:12px!important;margin:20px auto 0!important;width:100%!important;max-width:100%!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-action{display:inline-flex!important;justify-content:center!important;align-items:center!important;gap:9px!important;min-width:0!important;width:205px!important;max-width:100%!important;min-height:48px!important;padding:12px 10px!important;border-radius:11px!important;font-family:var(--s99-font)!important;font-size:14px!important;line-height:1.3!important;white-space:normal!important;box-sizing:border-box!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .hero-stats-container{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:min(100%,960px)!important;max-width:960px!important;gap:0!important;margin:28px auto 0!important;padding:0!important;overflow:hidden!important;background:linear-gradient(135deg,#0e3556ed,#071d34f2)!important;border:1px solid var(--s99-line)!important;border-radius:15px!important;box-shadow:0 10px 32px #00132670,inset 0 1px #ffffff13!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .hero-stats-container .simple-rank-card{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;grid-template-areas:"icon copy value"!important;align-items:center!important;align-content:center!important;justify-items:stretch!important;gap:10px!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:72px!important;margin:0!important;padding:12px 14px!important;background:none!important;border:0!important;box-shadow:none!important;transform:none!important;box-sizing:border-box!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card+.simple-rank-card{border-left:1px solid var(--s99-line)!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .card-image{grid-area:icon!important;position:static!important;width:38px!important;height:38px!important;min-width:0!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .card-image>div{width:100%!important;height:100%!important;display:grid!important;place-items:center!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .card-info{grid-area:copy!important;position:static!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;text-align:left!important;}
html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .player-name{font-size:13px!important;white-space:normal!important;line-height:1.3!important;overflow-wrap:anywhere;}
html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .card-stat{grid-area:value!important;position:static!important;font-size:clamp(19px,1.8vw,27px)!important;margin:0!important;padding:0!important;min-width:0!important;overflow-wrap:anywhere;text-align:right!important;}
/* Only the actual outer page grid; never nested Bootstrap .container. */
html body[data-omega-stable="99"] > .container{display:grid!important;width:min(1500px,calc(100% - 40px))!important;max-width:1500px!important;grid-template-columns:minmax(0,260px) minmax(0,1fr) minmax(0,280px)!important;grid-template-areas:"omega-account omega-content omega-community"!important;gap:20px!important;align-items:start!important;justify-content:stretch!important;padding:0 0 36px!important;margin:14px auto 0!important;box-sizing:border-box!important;}
html body[data-omega-stable="99"] > .container::before,html body[data-omega-stable="99"] > .container::after{display:none!important;content:none!important;}
html body[data-omega-stable="99"] > .container > .sidebar-left{grid-area:omega-account!important;}
html body[data-omega-stable="99"] > .container > #omega-main{grid-area:omega-content!important;}
html body[data-omega-stable="99"] > .container > .sidebar-right{grid-area:omega-community!important;}
html body[data-omega-stable="99"] > .container > :is(aside,main){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;}
html body[data-omega-stable="99"] > .container > aside{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:14px!important;}
html body[data-omega-stable="99"] > .container > aside > .sidebar-module{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:13px!important;box-sizing:border-box!important;transform:none!important;border-radius:16px!important;background:linear-gradient(145deg,#123956d9,#081e35ed)!important;border:1px solid var(--s99-line)!important;box-shadow:0 8px 22px #00132650,inset 0 1px #ffffff10!important;}
/* Rankings support both original and v97/v98 HTML without changing PHP data. */
html body[data-omega-stable="99"] .container .sidebar-left .sidebar-module:has(.ranking-item) .ranking-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:8px!important;min-width:0!important;width:100%!important;min-height:56px!important;margin:0 0 5px!important;padding:8px 3px!important;box-sizing:border-box!important;overflow:visible!important;border-radius:10px!important;transform:none!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item > :first-child{position:static!important;display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;max-width:100%!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item .character-avatar-wrapper{position:relative!important;width:42px!important;height:42px!important;flex:0 0 42px!important;min-width:42px!important;margin:0!important;overflow:visible!important;border-radius:9px!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item .rank-avatar{display:block!important;width:42px!important;height:42px!important;object-fit:cover!important;border-radius:8px!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item .rank-index{position:absolute!important;top:-3px!important;left:-3px!important;width:16px!important;height:16px!important;min-width:16px!important;display:grid!important;place-items:center!important;margin:0!important;padding:0!important;font-size:10px!important;z-index:2!important;border-radius:5px!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item :is(.ranking-text,.ranking-copy){display:block!important;min-width:0!important;max-width:100%!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item .rank-meta{display:none!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item :is(.rank-name,.rank-name a){position:static!important;display:block!important;min-width:0!important;max-width:100%!important;font-family:var(--s99-font)!important;font-size:13px!important;font-weight:700!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item :is(.rank-value,.ranking-score){display:flex!important;flex-direction:column!important;position:static!important;align-items:flex-end!important;justify-content:center!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;font-size:15px!important;line-height:1.2!important;color:var(--s99-gold)!important;text-align:right!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item .rank-number{font-size:15px!important;font-weight:750!important;}
html body[data-omega-stable="99"] .container .sidebar-left .ranking-item :is(.rank-unit,.rank-value sup){position:static!important;display:block!important;color:#b5cee1!important;font-size:10px!important;line-height:1.4!important;font-weight:500!important;}
/* Social artwork is a fade, not a grid cell. Right badge stays at right. */
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banners>.omega-community-banner{display:grid!important;grid-template-columns:49px minmax(0,1fr) 28px!important;grid-template-rows:minmax(0,1fr)!important;align-items:center!important;gap:6px!important;width:100%!important;min-width:0!important;min-height:78px!important;height:auto!important;padding:8px 8px 8px 0!important;border-radius:11px!important;position:relative!important;isolation:isolate;overflow:hidden!important;}
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banner>.omega-community-art{position:absolute!important;inset:0 auto 0 0!important;width:92px!important;height:100%!important;max-width:none!important;object-fit:cover!important;z-index:-1!important;border-radius:0!important;pointer-events:none!important;}
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banner>.omega-community-copy{grid-column:2!important;grid-row:1!important;position:relative!important;min-width:0!important;max-width:100%!important;margin:0!important;}
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banner>.omega-community-badge{grid-column:3!important;grid-row:1!important;position:relative!important;inset:auto!important;justify-self:center!important;width:28px!important;height:28px!important;min-width:28px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:9px!important;}
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banner .omega-community-brand{width:16px!important;height:16px!important;}
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banner .omega-community-title>span{font-family:var(--s99-font)!important;font-size:9px!important;line-height:1.2!important;white-space:normal!important;}
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banner .omega-community-title>strong{font-family:var(--s99-font)!important;font-size:13px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important;}
html body[data-omega-stable="99"] .container .social-widgets-module .omega-community-banner .omega-community-subtitle{font-size:10px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .input-group{position:relative!important;display:block!important;width:100%!important;padding:0!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .input-group>input{width:100%!important;box-sizing:border-box!important;padding:10px 32px!important;min-height:40px!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .input-group>i:first-child{position:absolute!important;left:10px!important;top:50%!important;transform:translateY(-50%)!important;width:15px!important;height:15px!important;z-index:2!important;margin:0!important;padding:0!important;}
html body[data-omega-stable="99"] .container .castle-owner-widget .cs-widget-content:has(>.cs-hero)::before{display:none!important;content:none!important;}
html body[data-omega-stable="99"] .container .castle-owner-widget .cs-widget-content{min-width:0!important;}
html body[data-omega-stable="99"] #omega-main :is(.rank-card__header,.omega-live-header,.gens83-title,.hall79-top){min-height:0!important;height:auto!important;max-height:none!important;}
html body[data-omega-stable="99"] #omega-main #omega-hall82 .hall79-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
@media(max-width:1250px) and (min-width:981px){html body[data-omega-stable="99"] > .container{grid-template-columns:minmax(0,220px) minmax(0,1fr) minmax(0,242px)!important;gap:14px!important;width:calc(100% - 28px)!important;}}
@media(max-width:980px){html body[data-omega-stable="99"]:has(>header.omega-stable-hero){background-image:linear-gradient(180deg,#06182c14 0,#06182c55 470px,#06182c 780px),url('../img/mu-characters-portrait.webp')!important;background-size:100% 100%,100% auto!important;background-attachment:scroll!important;}html body[data-omega-stable="99"] > .container{display:flex!important;flex-direction:column!important;width:calc(100% - 28px)!important;gap:16px!important;}html body[data-omega-stable="99"] > .container > #omega-main{order:1!important;}html body[data-omega-stable="99"] > .container > .sidebar-left{order:2!important;}html body[data-omega-stable="99"] > .container > .sidebar-right{order:3!important;}}
@media(max-width:620px){html body[data-omega-stable="99"] > header.omega-stable-hero[data-omega-hero="51"]{padding:64px 12px 10px!important;}html body[data-omega-stable="99"] > header.omega-stable-hero .logo-wrapper{width:min(100%,246px)!important;}html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-actions{gap:8px!important;}html body[data-omega-stable="99"] > header.omega-stable-hero .omega-hero-action{width:calc(50% - 4px)!important;font-size:12px!important;}html body[data-omega-stable="99"] > header.omega-stable-hero .hero-stats-container .simple-rank-card{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"icon" "copy" "value"!important;justify-items:center!important;gap:4px!important;padding:8px 4px!important;}html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .card-info,html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .card-stat{text-align:center!important;}html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .player-name{font-size:11px!important;}html body[data-omega-stable="99"] > header.omega-stable-hero .simple-rank-card .card-image{width:30px!important;height:30px!important;}html body[data-omega-stable="99"] > .container{width:calc(100% - 20px)!important;} }
@media(max-width:360px){html body[data-omega-stable="99"] #omega-main #omega-hall82 .hall79-grid{grid-template-columns:1fr!important;}}
/* Center navigation independently of animations / reduced motion. */
@media(min-width:981px){html body[data-omega-stable="99"] > nav{left:0!important;right:0!important;width:max-content!important;max-width:calc(100% - 28px)!important;margin:0 auto!important;transform:none!important;animation:none!important;top:14px!important;padding:7px 10px!important;box-sizing:border-box!important;}html body[data-omega-stable="99"] > nav > #nav-menu{gap:4px!important;margin:0!important;}}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .input-group.omega-password-group{position:relative!important;display:block!important;min-height:44px!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .input-group.omega-password-group>input{width:100%!important;padding-left:32px!important;padding-right:40px!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .omega-password-group>.omega-password-slot{position:absolute!important;right:0!important;top:0!important;bottom:0!important;width:38px!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:3!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .omega-password-group .omega-password-toggle{width:36px!important;min-height:36px!important;padding:0!important;display:grid!important;place-items:center!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .omega-password-group .omega-password-toggle>span{display:none!important;}
html body[data-omega-stable="99"] .container .sidebar-left .login-form .input-group>i:first-child{top:22px!important;}
/* Keep the central feed from becoming a giant empty card. */
html body[data-omega-stable="99"] #omega-main .omega-live-card{min-height:0!important;}
html body[data-omega-stable="99"] #omega-main .omega-live-empty{min-height:82px!important;}
