/* MU WarZone home refresh: a compact dark dashboard with copper highlights. */
:root {
    --bone-bg:#0d0e10;
    --bone-bg-soft:#111214;
    --bone-surface:#17191c;
    --bone-surface-raised:#1d2023;
    --bone-line:rgba(221,165,63,.19);
    --bone-text:#f1f1f2;
    --bone-muted:#aeb4bd;
    --bone-dim:#7f8792;
    --bone-gold:#e7a52d;
    --bone-gold-light:#ffd06a;
    --bone-teal:#ffad3d;
    --bone-radius:4px;
    --bone-content:1320px;
}

html,body { background:#0d0e10; }
body { color:#f1f1f2; }
a { color:#e5b24f; }
a:hover,a:focus { color:#ffdc8d; }
.site-nav { min-height:78px; border-bottom:1px solid rgba(255,255,255,.09); background:rgba(10,11,13,.96); box-shadow:0 5px 22px rgba(0,0,0,.25); }
.site-nav-inner { width:min(calc(100% - 36px),1320px); min-height:78px; gap:26px; }
.nav-brand,.nav-brand picture,.nav-brand img { width:126px; height:70px; }
#navbar { gap:10px; }
#navbar > ul { gap:5px; }
#navbar > ul > li > a { min-height:44px; padding:9px 10px; border-radius:3px; color:#e2e4e8; font-size:12px; font-weight:750; letter-spacing:.035em; text-transform:uppercase; }
#navbar > ul > li > a:hover,#navbar > ul > li.is-active > a { background:rgba(235,176,62,.09); color:#ffd06a; }
#navbar .nav-icon { display:none; }
.nav-account { min-height:40px; border-radius:3px; font-size:12px; letter-spacing:.02em; text-transform:uppercase; }
.nav-account-primary { border-color:#d9dadd; background:#d9dadd; color:#101113; }
.nav-account-primary:hover { border-color:#f0f0f0; background:#f0f0f0; color:#101113; }
.nav-account-ghost { border-color:rgba(255,255,255,.1); background:#181a1d; }

.home-status-strip { position:relative; z-index:3; border-bottom:1px solid rgba(255,255,255,.1); background:#111214; }
.home-status-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; width:min(calc(100% - 36px),1320px); min-height:56px; margin:0 auto; }
.home-status-facts { display:flex; flex:1 1 auto; flex-wrap:wrap; align-items:center; gap:0; min-width:0; }
.home-status-item { display:flex; align-items:center; gap:6px; min-height:32px; padding:0 17px; border-right:1px solid rgba(255,255,255,.1); color:#f2f3f4; font-size:12px; font-weight:700; }
.home-status-item:first-child { padding-left:0; }
.home-status-item b { color:#8e98a5; font-size:11px; font-weight:500; }
.home-status-online { display:inline-flex; align-items:center; gap:8px; padding:0 17px; color:#c2c6cd; font-size:12px; }
.home-status-online i { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:#45d58b; box-shadow:0 0 0 3px rgba(69,213,139,.12); }
.home-status-actions { display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.home-status-quicklinks { display:flex; flex:0 0 auto; align-items:center; gap:8px; }
.home-status-download { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 14px; border:1px solid rgba(255,255,255,.14); border-radius:3px; background:#1b1d20; color:#fff; font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; white-space:nowrap; }
.home-status-download:hover,.home-status-download:focus-visible { border-color:#e7a52d; background:#252323; color:#ffd06a; }
.home-status-community:empty { display:none; }
.home-status-community .itemmarket-home-social-button.is-discord { display:inline-flex; align-items:center; gap:8px; min-width:0; min-height:38px; padding:6px 12px; border:1px solid #5865f2; border-radius:3px; background:#5865f2; color:#fff; box-shadow:none; text-align:left; animation:homeDiscordPulse 2.2s ease-out infinite; }
.home-status-community .itemmarket-home-social-button:hover,.home-status-community .itemmarket-home-social-button:focus-visible { border-color:#4752c4; background:#4752c4; color:#fff; box-shadow:0 0 0 3px rgba(88,101,242,.2); transform:translateY(-1px); }
.home-status-community .itemmarket-home-social-button svg { width:20px; height:20px; flex:0 0 20px; margin:0; }
.home-status-community .itemmarket-home-social-button > span { display:flex; flex-direction:column; gap:1px; }
.home-status-community .itemmarket-home-social-button strong { color:#fff; font-size:10px; line-height:1.15; }
.home-status-community .itemmarket-home-social-button small { display:block; margin:0; color:rgba(255,255,255,.85); font-size:7px; font-weight:800; letter-spacing:.04em; line-height:1.15; }
@keyframes homeDiscordPulse { 0%,100% { box-shadow:0 0 0 0 rgba(88,101,242,.28); } 50% { box-shadow:0 0 0 7px rgba(88,101,242,0); } }
.home-server-clock { position:static; display:flex; gap:0; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.home-server-clock > div { grid-template-columns:auto auto; min-width:150px; padding:7px 12px; }
.home-server-clock > div + div { border-left:1px solid rgba(255,255,255,.1); }
.home-server-clock span { font-size:8px; letter-spacing:.09em; }
.home-server-clock time { min-width:64px; font-size:13px; }
.home-server-clock small { font-size:9px; }

.site-main { padding:0 0 54px; background:#0d0e10; }
.site-main-inner { width:min(calc(100% - 36px),1320px); }
.home-content-layout { display:grid; grid-template-columns:minmax(260px,320px) minmax(0,1fr); grid-template-areas:"sidebar main"; align-items:start; gap:20px; margin:20px 0 42px; }
.home-sidebar { display:grid; grid-area:sidebar; align-content:start; gap:16px; }
.home-content-primary { display:grid; grid-area:main; gap:18px; min-width:0; }
.home-sidebar-card,.home-ranking-card,.home-news,.home-siege,.home-events-slot .panel-sidebar-events { border:1px solid rgba(255,255,255,.1); border-radius:4px; background:#151619; box-shadow:none; }
.home-sidebar-card-heading { gap:10px; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.1); background:#1a1b1e; }
.home-sidebar-icon { display:none; }
.home-sidebar-card-heading .section-kicker { margin:0 0 3px; color:#e5ad3e; font-size:9px; letter-spacing:.11em; }
.home-sidebar-card-heading h2 { font:750 13px/1.3 Inter,"Segoe UI",system-ui,sans-serif; letter-spacing:.035em; text-transform:uppercase; }
.home-sidebar-stats { padding:9px 12px 12px; }
.home-sidebar-stats > div { min-height:36px; padding:7px 9px; border:0; background:#1c1d20; }
.home-sidebar-stats > div + div { margin-top:4px; }
.home-sidebar-stats dt { color:#97a0ae; font-size:11px; }
.home-sidebar-stats dd { color:#f0f1f4; font-size:11px; }
.home-sidebar-more { min-height:37px; margin:0 12px 12px; padding:8px 9px; border:1px solid rgba(255,255,255,.1); color:#d8a83f; font-size:10px; }
.home-login-slot:empty { display:none; }
.home-login-panel { margin:0; border-color:rgba(255,255,255,.1); border-radius:4px; background:#151619; }
.home-login-panel > .panel-heading { padding:12px 14px; background:#1a1b1e; }
.home-login-panel .panel-title { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#f1f1f2; font-size:13px; letter-spacing:.04em; text-transform:uppercase; }
.home-login-panel .panel-title:before,.home-sidebar-card-heading h2:before,.home-panel-heading h2:before { display:inline-block; width:3px; height:14px; margin:0 9px 0 0; background:#e2aa3a; content:""; vertical-align:-2px; }
.home-login-panel .panel-body { padding:13px 14px 15px; }
.home-login-panel .form-group { margin-bottom:9px; }
.home-login-panel .form-control { min-height:42px; border-color:#2a2c30; border-radius:3px; background:#1d1f22; color:#f3f4f5; }
.home-login-panel .form-control::placeholder { color:#77808d; }
.home-login-panel .btn-primary { width:100%; min-height:43px; border-color:#d9dadd; border-radius:3px; background:#d9dadd; color:#121315; font-size:12px; font-weight:800; text-transform:uppercase; }
.home-login-panel .panel-heading .panel-title > a.btn { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:flex-end; width:auto !important; min-height:24px; margin:0; padding:3px 0 3px 6px; border:0; background:transparent !important; box-shadow:none; color:#c2c8d0 !important; font-size:9px; line-height:1.2; opacity:1; text-align:right; text-decoration:none; text-transform:none; white-space:nowrap; }
.home-login-panel .panel-title .btn:hover { color:#ffd06a; }
.home-login-panel .panel-usercp-menu a { color:#d7dbe1; }
.castle-owner-widget .castle-owner-mark { display:flex; align-items:center; justify-content:center; width:100px; height:100px; margin:0 auto; border:1px solid rgba(230,163,51,.28); background:rgba(8,9,11,.72); }
.castle-owner-widget .castle-owner-mark svg { display:block; width:80px; height:80px; shape-rendering:crispEdges; }
.castle-owner-widget .castle-owner-mark-empty:after { color:#69717b; content:'—'; font-size:28px; font-weight:400; }
.home-community-card[hidden] { display:none !important; }
.home-community-links { display:flex; flex-wrap:wrap; gap:7px; padding:11px 12px 13px; }
.home-community-links .itemmarket-home-social-button { display:inline-flex; flex:1 1 82px; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:8px 9px; border:1px solid rgba(255,255,255,.1); border-radius:3px; background:#1c1d20; color:#dce0e5; box-shadow:none; }
.home-community-links .itemmarket-home-social-button.is-discord { background:#242633; }
.home-community-links .itemmarket-home-social-button.is-whatsapp { display:none !important; }
.home-community-links .itemmarket-home-social-button strong { color:inherit; font-size:11px; }
.home-community-links .itemmarket-home-social-button small { display:none; }
.home-community-links .itemmarket-home-social-button svg { width:18px; height:18px; }
.home-community-links .itemmarket-home-shortcut { display:flex; flex:1 0 100%; align-items:center; justify-content:flex-start; gap:10px; min-height:45px; margin:0; padding:7px 9px; border:1px solid rgba(255,255,255,.1); border-left:3px solid #e2aa3a; border-radius:3px; background:#1c1d20; color:#f1f1f2; box-shadow:none; }
.home-community-links .itemmarket-home-shortcut-icon { flex:0 0 26px; width:26px; height:26px; object-fit:contain; }
.home-community-links .itemmarket-home-shortcut-copy { display:flex; flex:1 1 auto; flex-direction:column; gap:1px; }
.home-community-links .itemmarket-home-shortcut-title { color:#f1f1f2; font-size:11px; }
.home-community-links .itemmarket-home-shortcut-subtitle { color:#8f97a2; font-size:9px; }
.home-community-links .itemmarket-home-shortcut-action { display:inline-flex; align-items:center; min-height:29px; padding:5px 8px; border-radius:3px; background:#d9a63e; color:#17130c; font-size:9px; font-weight:850; }

.page-home .home-hero { position:relative; isolation:isolate; min-height:0; margin:0; overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:4px; background:#160a07; }
.page-home .home-hero-inner { position:relative; display:block; width:100%; min-height:0; padding:0; }
.page-home .hero-launch-picture { display:block; width:100%; }
.page-home .hero-launch-image { display:block; width:100%; height:auto; aspect-ratio:2169 / 725; object-fit:cover; }
.page-home .hero-launch-shade { position:absolute; inset:0; background:linear-gradient(90deg,transparent 54%,rgba(12,5,3,.18) 66%,rgba(12,5,3,.38) 100%); pointer-events:none; }
.page-home .hero-launch-title { position:absolute; top:19%; right:3.5%; width:38%; margin:0; color:#f3e7d3; font:700 clamp(16px,2.2vw,34px)/1.02 Georgia,"Times New Roman",serif; letter-spacing:.035em; text-align:center; text-shadow:0 2px 5px #160904,0 0 18px rgba(0,0,0,.85); text-transform:uppercase; }
.page-home .hero-launch-title span { display:block; }
.page-home .hero-launch-title span + span { margin-top:.08em; color:#f2cb83; }

.home-content-primary > .section-block { margin:0; }
.home-news,.home-top-rankings { min-width:0; overflow:hidden; }
.home-panel-heading,.home-top-rankings > .section-heading { display:flex; align-items:center; gap:12px; min-height:49px; margin:0; padding:10px 14px; border-bottom:1px solid rgba(255,255,255,.1); background:#191a1d; }
.home-panel-heading h2,.home-top-rankings > .section-heading h2 { margin:0; color:#f1f1f2; font:750 13px/1.3 Inter,"Segoe UI",system-ui,sans-serif; letter-spacing:.04em; text-transform:uppercase; }
.home-panel-heading .section-link,.home-top-rankings > .section-heading .section-link { margin-left:auto; padding:5px 0; color:#9ea8b5; font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.home-panel-heading .section-link:hover,.home-top-rankings > .section-heading .section-link:hover { color:#ffd06a; }
.home-news-list { display:grid; }
.home-news-item { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; padding:10px 14px; border-bottom:1px solid rgba(255,255,255,.085); background:#151619; }
.home-news-item:last-child { border-bottom:0; }
.home-news-item.has-image { grid-template-columns:94px minmax(0,1fr); gap:12px; }
.home-news-image { display:block; width:94px; height:68px; overflow:hidden; border:1px solid rgba(255,255,255,.09); background:#1d1e21; }
.home-news-image img { display:block; width:100%; height:100%; object-fit:cover; }
.home-news-copy { min-width:0; }
.home-news-meta { display:flex; align-items:center; gap:10px; margin-bottom:3px; }
.home-news-meta time { margin-left:auto; color:#8b95a2; font-size:10px; white-space:nowrap; }
.home-news-meta .news-category { padding:3px 7px; border:0; border-radius:2px; background:rgba(221,165,63,.13); color:#e4ad3d; font-size:9px; font-weight:800; letter-spacing:.045em; }
.home-news-item:nth-child(even) .news-category { background:rgba(74,143,232,.12); color:#83b9ff; }
.home-news-item h3 { overflow:hidden; margin:0; font-size:13px; font-weight:750; line-height:1.4; text-overflow:ellipsis; }
.home-news-item h3 a { color:#e8eaed; }
.home-news-item h3 a:hover { color:#ffd06a; }
.home-news-excerpt { display:-webkit-box; overflow:hidden; margin:3px 0 0; color:#929aa6; font-size:10px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.home-news-read { display:none; }

.home-top-rankings { margin:0; }
.home-top-rankings-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; padding:11px; }
.home-ranking-card { min-width:0; border-radius:4px; background:#1b1c1f; }
.home-ranking-card-heading { min-height:37px; padding:9px 9px 7px; border-bottom:1px solid rgba(255,255,255,.08); background:#1b1c1f; }
.home-ranking-card-heading h3 { color:#e8eaed; font-size:10px; letter-spacing:.03em; text-transform:uppercase; }
.home-ranking-card-heading > a { flex-basis:23px; width:23px; height:23px; border-radius:3px; }
.home-ranking-card-labels { display:none; }
.home-ranking-list { padding:6px 8px 8px; }
.home-ranking-list > li { display:flex; min-height:0; flex-direction:column; gap:5px; padding:5px 0; border:0; text-align:center; }
.home-ranking-position { display:none; }
.home-ranking-avatar,.home-ranking-guild-logo { width:62px; height:72px; border:0; border-radius:3px; background:#131416; }
.home-ranking-avatar { object-fit:cover; }
.home-ranking-guild-logo { width:62px; height:62px; border:1px solid rgba(230,163,51,.34); border-radius:50%; }
.home-ranking-guild-logo svg { display:block; width:48px; height:48px; shape-rendering:crispEdges; }
.home-ranking-name { width:100%; gap:2px; color:#f1f2f4; font-size:11px; text-align:center; }
.home-ranking-name > a { max-width:100%; }
.home-ranking-name small { color:#8792a0; font-size:9px; }
.home-ranking-score { color:#c1c5cc; font-size:10px; font-weight:600; }
.home-ranking-card-more { min-height:31px; padding:6px 9px; font-size:9px; }
.home-ranking-card-more span { color:#e2aa3a; }
.home-market-panel { min-width:0; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:4px; background:#151619; }
.home-market-panel[hidden] { display:none !important; }
.home-market-heading { display:flex; align-items:center; min-height:49px; padding:10px 14px; border-bottom:1px solid rgba(255,255,255,.1); background:#191a1d; }
.home-market-heading .section-kicker { margin:0 0 3px; color:#e5ad3e; font-size:9px; letter-spacing:.11em; }
.home-market-heading h2 { margin:0; color:#f1f1f2; font:750 13px/1.3 Inter,"Segoe UI",system-ui,sans-serif; letter-spacing:.04em; text-transform:uppercase; }
.home-market-heading h2:before { display:inline-block; width:3px; height:14px; margin:0 9px 0 0; background:#e2aa3a; content:""; vertical-align:-2px; }
.home-market-slot { padding:11px; }
.home-market-slot .itemmarket-home-shortcut { display:flex; align-items:center; gap:14px; min-height:82px; margin:0; padding:12px 14px; border:1px solid rgba(255,255,255,.1); border-left:3px solid #e2aa3a; border-radius:3px; background:#1b1c1f; color:#f1f1f2; box-shadow:none; }
.home-market-slot .itemmarket-home-shortcut-icon { flex:0 0 44px; width:44px; height:44px; object-fit:contain; }
.home-market-slot .itemmarket-home-shortcut-copy { display:grid; flex:1 1 auto; gap:3px; }
.home-market-slot .itemmarket-home-shortcut-title { color:#f1f1f2; font-size:15px; font-weight:800; }
.home-market-slot .itemmarket-home-shortcut-subtitle { color:#9ca4af; font-size:11px; }
.home-market-slot .itemmarket-home-shortcut-action { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 12px; border-radius:3px; background:#dda537; color:#17130c; font-size:10px; font-weight:850; }
.home-market-slot .itemmarket-home-shortcut:hover { border-color:rgba(230,163,51,.6); color:#fff; transform:translateY(-1px); }

.page-home #content { display:none !important; }
.home-content-layout .home-login-panel .panel-body > .row,
.home-content-layout .home-login-panel .panel-body > ul { margin:0; }
.home-content-layout,.home-sidebar,.home-content-primary,.home-login-slot,.home-sidebar > * { min-width:0; max-width:100%; }
.home-content-layout .home-login-panel .panel-body > .row > [class*="col-"] { width:100%; max-width:100%; }
.home-world-layout { grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr); gap:16px; margin:0 0 34px; }
.home-world-layout.no-castle { grid-template-columns:minmax(0,1fr); }
.home-siege { min-height:100%; margin:0; border-radius:4px; background:#151619; }
.home-events-slot .panel-sidebar-events { border-radius:4px; }
.home-events-slot .panel-sidebar-events > .panel-heading { background:#191a1d; }
.home-events-slot .panel-sidebar-events > .panel-body { padding:10px 12px; }
.home-events-slot .panel-sidebar-events .table td { padding:9px 7px; }
.footer { left:50%; width:min(calc(100vw - 40px),1120px); margin:0; transform:translateX(-50%); border-top-color:rgba(255,255,255,.1); background:#090a0b; }
.footer-container { width:100%; margin:0 auto; }

/* Keep language controls compact; legacy navbar link rules must not stretch them. */
#navbar .nav-language .webengine-language-switcher > li { display:flex; flex:0 0 34px; min-height:34px; width:auto; padding:0; }
#navbar .nav-language .webengine-language-switcher > li > a { display:inline-flex; align-items:center; gap:4px; min-height:34px; height:34px; padding:6px 7px; font-size:10px; line-height:1; white-space:nowrap; }
#navbar .nav-language .webengine-language-switcher img { width:16px; height:12px; flex:0 0 16px; object-fit:cover; }

@media (min-width:769px) {
    .nav-language .webengine-language-switcher { width:auto; height:auto; overflow:visible; }
    #navbar .nav-language .webengine-language-switcher > li { display:flex; flex:0 0 auto; min-height:34px; }
    .nav-language .webengine-language-switcher > li + li { margin-left:3px; }
    .nav-language .webengine-language-switcher a { min-height:34px; padding:6px 7px; border:1px solid rgba(255,255,255,.1); border-radius:3px; color:#c3cad3; font-size:9px; font-weight:750; }
}

@media (max-width:1200px) {
    .home-content-layout { grid-template-columns:minmax(245px,285px) minmax(0,1fr); }
    .home-top-rankings-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:1050px) {
    .home-status-inner { flex-wrap:wrap; padding:6px 0; }
    .home-status-facts { min-height:38px; }
    .home-status-actions { justify-content:space-between; width:100%; border-top:1px solid rgba(255,255,255,.08); }
    .home-server-clock { margin-left:auto; }
    .home-content-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"sidebar" "main"; }
    .home-sidebar { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
    .home-login-slot { grid-column:1; }
    .home-server-card { grid-column:2; grid-row:1; }
    .home-community-card { grid-column:1 / -1; }
    .home-world-layout { grid-template-columns:minmax(0,1fr); }
}

@media (max-width:700px) {
    html,body { max-width:100%; overflow-x:hidden; }
    .site-nav-inner { width:calc(100% - 24px); gap:10px; }
    .nav-brand,.nav-brand picture,.nav-brand img { width:92px; height:60px; }
    .nav-toggle { display:flex; flex:0 0 46px; width:46px; min-width:46px; height:46px; margin-left:auto; }
    #navbar { right:0; left:0; width:100%; max-width:100vw; max-height:calc(100dvh - 72px); overflow:auto; }
    .nav-account { min-height:44px; }
    .home-status-inner,.site-main-inner,.footer-container { width:calc(100% - 24px); }
    .home-status-inner { gap:6px; }
    .home-status-facts { gap:5px 0; }
    .home-status-item { min-height:28px; padding:0 9px; font-size:10px; }
    .home-status-item:first-child { padding-left:0; }
    .home-status-item b { font-size:9px; }
    .home-status-online { padding:0 8px; font-size:10px; }
    .home-status-actions { flex-wrap:wrap; gap:4px; }
    .home-status-quicklinks { flex-wrap:wrap; gap:6px; }
    .home-status-download { min-height:40px; padding:8px 10px; font-size:10px; }
    .home-server-clock > div { grid-template-columns:auto; min-width:92px; gap:2px; padding:6px 8px; }
    .home-server-clock small { display:none; }
    .home-server-clock span { grid-column:auto; font-size:7px; }
    .home-server-clock time { min-width:0; font-size:12px; }
    .home-content-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"sidebar" "main"; gap:14px; margin:14px 0 28px; }
    .home-sidebar,.home-content-primary { width:100%; min-width:0; grid-template-columns:minmax(0,1fr); gap:12px; }
    .home-login-slot,.home-server-card,.home-community-card { grid-column:auto; grid-row:auto; }
    .page-home .hero-launch-title { top:19%; right:3%; width:43%; font-size:clamp(15px,4.2vw,20px); }
    .home-panel-heading,.home-top-rankings > .section-heading { min-height:45px; padding:9px 11px; }
    .home-news-item { padding:9px 10px; }
    .home-news-item.has-image { grid-template-columns:72px minmax(0,1fr); gap:9px; }
    .home-news-image { width:72px; height:60px; }
    .home-news-item h3 { font-size:12px; }
    .home-news-excerpt { font-size:9px; }
    .home-top-rankings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:8px; }
    .home-ranking-card-heading { padding:8px 7px; }
    .home-ranking-card-heading h3 { font-size:9px; }
    .home-ranking-avatar { width:56px; height:64px; }
    .home-ranking-guild-logo { width:54px; height:54px; }
    .home-ranking-guild-logo svg { width:44px; height:44px; }
    .home-market-slot { padding:8px; }
    .home-market-slot .itemmarket-home-shortcut { min-height:68px; gap:9px; padding:9px; }
    .home-market-slot .itemmarket-home-shortcut-icon { flex-basis:34px; width:34px; height:34px; }
    .home-market-slot .itemmarket-home-shortcut-title { font-size:13px; }
    .home-market-slot .itemmarket-home-shortcut-subtitle { font-size:9px; }
    .home-market-slot .itemmarket-home-shortcut-action { min-height:36px; padding:7px 8px; font-size:9px; }
    .home-world-layout { gap:12px; }
    .home-siege { grid-template-columns:minmax(0,1fr); padding:16px; }
    .home-events-slot .panel-sidebar-events .table td { padding:8px 5px; font-size:11px; }
    .home-events-slot .panel-sidebar-events .table td.text-right { white-space:normal; }
    .footer .footer-container > .row:last-child > .col-xs-4 { justify-content:flex-start; }
}

/* Explicit mobile menu state overrides the legacy hidden/opacity rules. */
@media (max-width:1050px) {
    .site-nav { position:sticky; top:0; z-index:1200; overflow:visible; }
    .site-nav-inner { position:relative; }
    #navbar { position:fixed; top:72px; right:0; bottom:0; left:0; z-index:1201; display:none; align-items:stretch; flex-direction:column; gap:12px; width:100%; max-width:100vw; max-height:calc(100dvh - 72px); margin:0; padding:16px clamp(16px,5vw,28px); overflow-x:hidden; overflow-y:auto; border-top:1px solid rgba(255,255,255,.12); background:rgba(10,11,13,.985); box-shadow:0 18px 36px rgba(0,0,0,.55); opacity:0; visibility:hidden; pointer-events:none; transform:none; }
    body.nav-open #navbar { display:flex; opacity:1; visibility:visible; pointer-events:auto; }
    #navbar > ul { display:flex; align-items:stretch; flex-direction:column; width:min(100%,460px); margin:0 auto; }
    #navbar > ul > li { display:block; width:100%; }
    #navbar > ul > li > a { display:flex; width:100%; min-height:48px; padding:10px 13px; font-size:14px; }
    #navbar .nav-utilities { width:min(100%,460px); margin:0 auto; }
    #navbar .nav-language { z-index:1202; }
    #navbar .nav-language .webengine-language-switcher { width:42px; height:34px; }
    #navbar .nav-language .webengine-language-switcher > li { flex:0 0 34px; width:100%; }
    #navbar .nav-language .webengine-language-switcher > li > a { min-height:34px; height:34px; padding:6px 7px; font-size:10px; }
}

@media (max-width:560px) {
    #navbar { top:68px; max-height:calc(100dvh - 68px); }
    .site-nav.is-scrolled #navbar { top:66px; max-height:calc(100dvh - 66px); }
}

@media (max-width:400px) {
    .home-status-item { padding-right:7px; padding-left:7px; font-size:9px; }
    .home-status-online { gap:6px; padding-right:5px; padding-left:5px; font-size:9px; }
    .home-status-download { font-size:9px; }
    .home-server-clock > div { min-width:78px; padding-right:5px; padding-left:5px; }
    .page-home .hero-launch-title { font-size:15px; }
}

@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    *,*:before,*:after { transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* Launch countdown replaces the two clock widgets in the home status bar. */
.home-launch-countdown, .page-launch-countdown {
    --countdown-gold:#e7a52d;
    --countdown-gold-bright:#ffd06a;
    display:flex;
    flex:0 1 auto;
    align-items:center;
    gap:11px;
    width:auto;
    max-width:100%;
    margin:0;
    padding:6px 9px;
    border:1px solid rgba(231,165,45,.28);
    border-radius:4px;
    background:linear-gradient(110deg,rgba(231,165,45,.08),rgba(20,21,24,.92) 42%);
    box-shadow:inset 0 1px rgba(255,255,255,.035);
    text-align:left;
    backdrop-filter:none;
}
.home-launch-countdown::before, .page-launch-countdown::before { top:0; left:10%; width:80%; background:linear-gradient(90deg,transparent,rgba(255,208,106,.8),transparent); }
.home-launch-countdown::after, .page-launch-countdown::after { display:none; }
.home-launch-copy { display:grid; flex:0 0 auto; gap:3px; min-width:104px; }
.home-launch-title { color:#ffd06a; font-size:9px; font-weight:850; letter-spacing:.1em; line-height:1.2; }
.home-launch-date { color:#aeb4bd; font-size:8px; font-weight:700; letter-spacing:.035em; line-height:1.3; white-space:nowrap; }
.home-launch-countdown .launch-countdown-units, .page-launch-countdown .launch-countdown-units { display:flex; flex:0 0 auto; gap:3px; width:auto; margin:0; }
.home-launch-countdown .launch-countdown-unit, .page-launch-countdown .launch-countdown-unit { display:grid; align-content:center; justify-items:center; width:39px; min-height:37px; padding:4px 2px 3px; border:1px solid rgba(255,255,255,.075); border-radius:3px; background:rgba(6,7,9,.5); }
.home-launch-countdown .launch-countdown-unit::after, .page-launch-countdown .launch-countdown-unit::after { display:none; }
.home-launch-countdown .launch-countdown-value, .page-launch-countdown .launch-countdown-value { color:#f3d49a; font:750 16px/1 'Cinzel',Georgia,serif; text-shadow:none; }
.home-launch-countdown .launch-countdown-label, .page-launch-countdown .launch-countdown-label { margin-top:4px; color:#818995; font-size:7px; letter-spacing:.08em; line-height:1; }
.home-launch-message { display:none; margin:0; color:#d9c49e; font-size:10px; font-weight:650; letter-spacing:.02em; }
.home-launch-countdown.is-launched, .page-launch-countdown.is-launched { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; min-height:0; background:linear-gradient(110deg,rgba(231,165,45,.1),rgba(20,21,24,.92) 42%); }
.home-launch-countdown.is-launched .home-launch-title, .page-launch-countdown.is-launched .home-launch-title { color:#ffd06a; font:850 10px/1.2 Inter,'Segoe UI',system-ui,sans-serif; letter-spacing:.1em; }
.home-launch-countdown.is-launched .home-launch-message, .page-launch-countdown.is-launched .home-launch-message { display:block; }

.page-launch-countdown { flex:0 1 auto; margin-left:auto; }

@media (max-width:1050px) {
    .home-launch-countdown { margin-left:auto; }
}

@media (max-width:700px) {
    .home-status-actions { align-items:center; }
    .home-launch-countdown { flex:1 0 100%; justify-content:center; margin:3px 0 0; }
    .page-banner-inner { align-items:flex-start; }
    .page-launch-countdown { flex:1 0 100%; justify-content:flex-start; margin:8px 0 0; }
    .home-launch-copy { min-width:116px; }
    .home-launch-countdown .launch-countdown-unit, .page-launch-countdown .launch-countdown-unit { width:42px; }
}

@media (max-width:400px) {
    .home-launch-countdown, .page-launch-countdown { gap:7px; padding:6px; }
    .home-launch-copy { min-width:101px; }
    .home-launch-title { font-size:8px; }
    .home-launch-date { font-size:7px; }
    .home-launch-countdown .launch-countdown-units, .page-launch-countdown .launch-countdown-units { gap:2px; }
    .home-launch-countdown .launch-countdown-unit, .page-launch-countdown .launch-countdown-unit { width:37px; min-height:35px; }
    .home-launch-countdown .launch-countdown-value, .page-launch-countdown .launch-countdown-value { font-size:14px; }
}
