/* MuShadow CastleSiege: scoped styles; native Siege widget stays unchanged. */
#navbar .cs-nav-item { position:relative; }
#navbar .cs-nav-menu > summary { display:block; padding:20px 22px; cursor:pointer; color:#fff; font-size:14px; text-transform:uppercase; list-style:none; }
#navbar .cs-nav-menu > summary::-webkit-details-marker { display:none; }
#navbar .cs-nav-menu > summary::after { content:' ▾'; color:#d5b36b; }
#navbar .cs-nav-menu[open] > summary, #navbar .cs-nav-menu > summary:focus-visible { color:#e2b84b; outline:1px solid #ba9557; outline-offset:-3px; }
#navbar .cs-nav-submenu { position:absolute; top:100%; left:50%; z-index:10010; min-width:220px; margin:0; padding:8px 0; transform:translateX(-50%); background:#090a0c; border:1px solid #443724; box-shadow:0 12px 30px #0009; text-align:left; }
#navbar .cs-nav-submenu li { display:block; width:100%; }
#navbar .cs-nav-submenu li a { display:block; padding:12px 18px; color:#eee !important; white-space:nowrap; font-size:13px; text-align:left; }
#navbar .cs-nav-submenu li a:hover, #navbar .cs-nav-submenu li a:focus { background:#1c1812; color:#e2b84b !important; }
.cs-section-heading { margin-bottom:24px; }
.cs-kicker { color:#c4a36c; font-size:11px; font-weight:700; letter-spacing:2px; }
.cs-section-heading h1, .cs-section-heading h2 { margin:8px 0 10px; color:#e5eaf0; font-family:Cinzel,Georgia,serif; font-size:30px; }
.cs-section-heading p { margin:0; color:#a6a6ac; line-height:1.7; }
.cs-rank-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0; }
.cs-rank-tab { padding:11px 18px; color:#c7c3bb; border:1px solid #34312c; background:#121316; border-radius:4px; text-decoration:none; }
.cs-rank-tab.is-active, .cs-rank-tab:hover, .cs-rank-tab:focus { color:#f5dfb3; border-color:#ad854b; background:#2a2116; text-decoration:none; }
.cs-edition-form { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:18px; margin:0 0 22px; border:1px solid #2e2b26; border-radius:5px; background:#080c11; }
.cs-edition-form label { margin:0; color:#ccc6bb; }
.cs-edition-form select { flex:1 1 250px; min-width:0; max-width:450px; background:#191a1e; color:#eee; border-color:#45413b; }
.cs-edition-meta { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; color:#b9b2a5; margin:0 0 15px; }
.cs-status { display:inline-block; padding:5px 9px; border:1px solid #514329; border-radius:4px; color:#d5b77f; font-size:11px; }
.cs-table-scroll { overflow-x:auto; border:1px solid #293642; border-radius:6px; }
.cs-ranking-table { width:100%; border-collapse:collapse; color:#cbc8c2; }
.cs-ranking-table th { background:#131a23; color:#d9bd8b; font-size:12px; font-weight:600; padding:16px 14px; white-space:nowrap; text-align:left; }
.cs-ranking-table td { padding:15px 14px; border-top:1px solid #26313c; background:#080c11; vertical-align:top; }
.cs-ranking-table tbody tr:nth-child(even) td { background:#0b1016; }
.cs-player { font-weight:700; color:#f3eee5; }
.cs-place { display:inline-block; min-width:26px; color:#9a958d; text-align:center; }
.cs-place.is-podium { color:#f3ce86; font-weight:700; }
.cs-score { color:#ebca89; font-weight:700; }
.cs-time { font-variant-numeric:tabular-nums; white-space:nowrap; }
.cs-note { margin:15px 0; color:#96918a; font-size:12px; line-height:1.7; }
.cs-empty { padding:34px 24px; border:1px dashed #454038; border-radius:6px; background:#0b1016; text-align:center; color:#aaa49a; line-height:1.8; }
.cs-empty strong { display:block; color:#e4d3b2; font-size:17px; margin-bottom:6px; }
.cs-empty p { margin:0; }
.cs-contributions summary { cursor:pointer; color:#d9bd8b; white-space:nowrap; }
.cs-contributions dl { margin:14px 0 0; min-width:200px; font-size:12px; }
.cs-contributions dl div { display:flex; justify-content:space-between; gap:16px; padding:5px 0; border-top:1px solid #35312c; }
.cs-contributions dt { font-weight:400; }.cs-contributions dd { margin:0; color:#ece0c9; }
.cs-home-section { margin:38px 0; padding:30px 24px; background:linear-gradient(135deg,#131a23,#0e1013 65%); border:1px solid #27323d; border-radius:8px; }
.cs-home-section .cs-section-heading { text-align:center; }
.cs-home-edition { margin-top:15px; color:#99948d; font-size:12px; }.cs-home-edition .cs-status { margin-left:8px; }
.cs-home-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.cs-home-card { min-width:0; display:flex; flex-direction:column; border:1px solid #39332b; border-radius:6px; background:#0b1016; overflow:hidden; }
.cs-home-card > header { display:flex; gap:10px; align-items:center; padding:18px; border-bottom:1px solid #332d25; }
.cs-card-mark { color:#d6ad65; font-size:23px; }.cs-home-card h3 { margin:0; color:#eee1c8; font-size:16px; }
.cs-home-list { flex:1; list-style:none; margin:0; padding:0 16px; }
.cs-home-list li { display:flex; align-items:center; gap:10px; padding:14px 0; border-bottom:1px solid #262526; }
.cs-home-list li:last-child { border-bottom:0; }
.cs-home-place { width:14px; flex-shrink:0; color:#b39155; font-size:12px; }
.cs-home-player { flex:1; min-width:0; }.cs-home-player strong { display:block; overflow:hidden; text-overflow:ellipsis; color:#e1ded7; font-size:13px; }
.cs-home-player small { display:block; margin-top:3px; color:#87837d; font-size:11px; overflow:hidden; text-overflow:ellipsis; }
.cs-home-value { text-align:right; flex-shrink:0; }.cs-home-value strong { display:block; color:#e4c48a; font-size:13px; font-variant-numeric:tabular-nums; }.cs-home-value small { color:#858079; font-size:10px; }
.cs-home-empty { flex:1; min-height:105px; padding:30px 18px; color:#9a948b; line-height:1.7; font-size:13px; margin:0; text-align:center; }
.cs-home-more { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:13px 18px; border-top:1px solid #332d25; color:#c8ae7d; font-size:12px; }
.cs-home-more:hover, .cs-home-more:focus { background:#241d14; color:#f3d69d; text-decoration:none; }
@media(max-width:900px) { .cs-home-grid { grid-template-columns:1fr; }.cs-home-section { padding:24px 16px; }.cs-home-empty { min-height:80px; padding:22px; } }
@media(max-width:768px) { #navbar .cs-nav-item { display:block; } #navbar .cs-nav-menu > summary { padding:14px 18px; } #navbar .cs-nav-submenu { position:static; transform:none; min-width:0; border-width:1px 0 0; box-shadow:none; } #navbar .cs-nav-submenu li a { text-align:center; } .cs-section-heading h1,.cs-section-heading h2 { font-size:25px; } .cs-rank-tab { flex:1 1 120px; text-align:center; padding:11px 8px; } .cs-edition-form { align-items:stretch; }.cs-edition-form label { width:100%; }.cs-edition-form select { max-width:100%; }.cs-ranking-table th,.cs-ranking-table td { padding:12px 10px; } }

/* MuShadow: one visual system for all nine home rankings. */
.mu-rank-section.home-rankings-section,
.mu-rank-section.cs-home-section {
    clear:both; margin:34px 15px 0; padding:26px 22px 22px;
    border:1px solid #27323d; border-radius:8px;
    background:linear-gradient(135deg,#131a23 0%,#080c11 68%);
    box-sizing:border-box;
}
.mu-rank-section .mu-rank-section__heading { margin:0 0 24px; text-align:center; }
.mu-rank-section .mu-rank-section__heading h2 { font-family:'PT Sans',Arial,sans-serif; font-size:28px; font-weight:700; }
.mu-rank-section__heading > p { font-size:12px; }
.mu-rank-section .home-rankings-grid,
.mu-rank-section .cs-home-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.mu-rank-card.home-ranking-card,
.mu-rank-card.cs-home-card {
    display:flex; flex-direction:column; min-width:0; margin:0;
    overflow:hidden; border:1px solid #293642; border-radius:6px;
    background:#080c11; box-shadow:0 8px 22px #0002;
    transition:border-color .18s ease, box-shadow .18s ease;
}
.mu-rank-section { font-family:'PT Sans',Arial,sans-serif; }
.mu-rank-card { font-family:'PT Sans',Arial,sans-serif; }
.mu-rank-card:hover { border-color:#486176; box-shadow:0 8px 24px #0004; }
.mu-rank-card > .mu-rank-card__header {
    display:flex; align-items:flex-start; gap:12px; padding:18px 16px;
    min-height:100px; box-sizing:border-box; border-bottom:1px solid #293642;
    background:linear-gradient(135deg,#131a23,#0b1016);
}
.mu-rank-card .mu-rank-icon {
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; flex:0 0 34px; border:1px solid #35485a;
    border-radius:7px; background:#132233; color:#dab36f;
}
.mu-rank-card .mu-rank-heading { min-width:0; }
.mu-rank-card .mu-rank-heading h3 {
    margin:0; padding:0; color:#e5eaf0; font-family:'PT Sans',Arial,sans-serif;
    font-size:16px; font-weight:700; line-height:1.35; text-transform:none;
}
.mu-rank-card .mu-rank-heading p { margin:6px 0 0; color:#8996a3; font-size:11px; font-weight:400; line-height:1.5; }
.mu-rank-card .mu-rank-body { display:flex; flex:1 0 auto; min-height:252px; }
.mu-rank-card .mu-rank-list { list-style:none; margin:0; padding:0 15px; width:100%; flex:1; }
.mu-rank-card .mu-rank-list li {
    display:flex; align-items:center; gap:10px; min-height:50px; margin:0;
    padding:8px 0; border-bottom:1px solid #26313c; box-sizing:border-box;
}
.mu-rank-card .mu-rank-list li:last-child { border-bottom:0; }
.mu-rank-card .mu-rank-position {
    display:inline-flex; align-items:center; justify-content:center;
    width:23px; min-height:23px; flex:0 0 23px; border:0;
    border-radius:0; background:none; color:#b5bdc6;
    font-family:inherit; font-size:15px; font-weight:700; line-height:1.4;
    font-variant-numeric:tabular-nums;
}
.mu-rank-card .mu-rank-position.is-place-1 { color:#edcc89; }
.mu-rank-card .mu-rank-position.is-place-2 { color:#d0d3d5; }
.mu-rank-card .mu-rank-position.is-place-3 { color:#d7ab8b; }
.mu-rank-card .mu-rank-identity { display:block; min-width:0; flex:1; }
.mu-rank-card .mu-rank-name {
    display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis;
    white-space:nowrap; color:#e5eaf0 !important; font-family:inherit; font-size:13px;
    font-weight:700; line-height:1.5; text-decoration:none;
}
.mu-rank-card a.mu-rank-name:hover { color:#f1cd8e !important; }
.mu-rank-card .mu-rank-detail {
    display:block; margin-top:2px; overflow:hidden; text-overflow:ellipsis;
    white-space:nowrap; color:#8996a3; font-size:11px; line-height:1.4;
}
.mu-rank-card .mu-rank-metric { flex:0 0 auto; max-width:48%; text-align:right; }
.mu-rank-card .mu-rank-metric strong {
    display:block; color:#e3be7b; font-size:14px; font-weight:700;
    font-variant-numeric:tabular-nums; line-height:1.5; white-space:nowrap;
}
.mu-rank-card .mu-rank-metric small { display:block; margin-top:2px; color:#948c7d; font-size:11px; line-height:1.4; }
.mu-rank-card .mu-rank-empty {
    display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center;
    gap:12px; min-height:252px; padding:26px 18px; color:#a09a8f; text-align:center;
}
.mu-rank-card .mu-rank-empty p { margin:0; font-size:11px; line-height:1.75; }
.mu-rank-empty-mark { display:inline-flex; color:#6e5c3c; opacity:.8; }
.mu-rank-card .mu-rank-footer { display:flex; align-items:stretch; min-height:46px; margin:0; padding:0; border-top:1px solid #293642; background:#0b1016; }
.mu-rank-card .mu-rank-more {
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    flex:1; padding:14px 15px; color:#d7e1eb !important; font-size:12px;
    font-weight:700; line-height:1.6; text-decoration:none;
}
.mu-rank-card .mu-rank-more:hover { background:#152535; color:#f2d8a7 !important; }
.mu-rank-card .mu-rank-wiki { display:flex; align-items:center; flex:0 0 auto; padding:12px; border-left:1px solid #293642; color:#a99776 !important; font-size:12px; text-decoration:none; }
.mu-rank-card .mu-rank-wiki:hover { background:#152535; color:#f2d8a7 !important; }
.mu-rank-card a:focus-visible { outline:2px solid #c59b57; outline-offset:-3px; }
@media(max-width:991px) {
    .mu-rank-section .home-rankings-grid, .mu-rank-section .cs-home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mu-rank-section.home-rankings-section, .mu-rank-section.cs-home-section { padding:22px 18px 18px; }
}
@media(max-width:600px) {
    .mu-rank-section .home-rankings-grid, .mu-rank-section .cs-home-grid { grid-template-columns:1fr; gap:14px; }
    .mu-rank-section.home-rankings-section, .mu-rank-section.cs-home-section { margin:26px 0 0; padding:22px 14px 14px; }
    .mu-rank-section__heading h2 { font-size:24px; }
    .mu-rank-card > .mu-rank-card__header { min-height:88px; }
    .mu-rank-card .mu-rank-body { min-height:0; }
    .mu-rank-card .mu-rank-empty { min-height:145px; }
    .mu-rank-card .mu-rank-name { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { .mu-rank-card.home-ranking-card,.mu-rank-card.cs-home-card { transition:none; } }

/* Original slate/blue site palette and automatic native castle owner. */
.mu-rank-section .cs-section-heading h2 { color:#e5eaf0; }
.mu-rank-card .mu-rank-footer { background:#0b1016 !important; }
.home-castle-owner-caption { display:flex; align-items:center; gap:12px; }
.home-castle-owner-caption > img { width:48px; height:48px; flex:0 0 48px; image-rendering:pixelated; border:1px solid #35485a; border-radius:4px; background:#0b1016; }
.home-castle-owner-caption > div { min-width:0; }
.home-castle-owner-caption strong { display:block; overflow-wrap:anywhere; }

/* Castle Siege: manual photo and automatic owner above the three rankings. */
.cs-home-section .cs-home-castle {
    margin:0 0 22px; border:1px solid #293642; border-radius:6px;
    clip-path:none; background:#080c11;
}
.cs-home-section .cs-home-castle .home-highlight-media { height:360px; margin:0; }
.cs-home-section .cs-home-castle .home-highlight-caption strong { white-space:normal; }
@media(max-width:767px) {
    .cs-home-section .cs-home-castle .home-highlight-media { height:280px; }
}
@media(max-width:480px) {
    .cs-home-section .cs-home-castle .home-highlight-media { height:220px; }
    .cs-home-section .cs-home-castle .home-highlight-caption { left:14px; right:14px; bottom:14px; }
}
