.event-frame{border:none!important;width:132px!important;height:262px!important;margin-right:auto;display:block;margin-left:auto}.discord-widget{width:320px;transition-property:right;transition-duration:2s;-webkit-transition-property:right;-webkit-transition-duration:2s;position:fixed;bottom:20px;left:0;z-index:10}.discord-widget.active{right:20px}.facebook-like{position:relative;width:549px;height:325px;border:none;margin-top:10%}.fbBoard{line-height:0;position:fixed;text-align:center;z-index:1000}.fbBoard2{top:0;left:0;width:100%;height:100%;background:transparent url(../images/black-transparent.png) repeat top left}.rc-anchor-light{background:#fff!important;color:#fff!important}.rc-anchor-blue{background:#131f2b!important;color:#131f2b!important}.rc-anchor-dark{background:#080808!important;color:#080808!important}li.WebDon{float:right}.Karakter_Kutu_Icerik{padding:10px;height:115px;padding-top:0}.Karakter_Kutu_Icerik .list-group{margin:0;line-height:10px}.Karakter_Kutu_Icerik a.list-group-item{border-radius:0!important;background:linear-gradient(to top left,#151e27,#233140,#46586b);display:block;background-size:cover;color:#f7fbfe!important;text-shadow:1px 1px 1px rgba(0,0,0,.45);border:none;line-height:13px}.Karakter_Kutu_Icerik a.list-group-item:hover{background:linear-gradient(to top left,#212e3c,#2e4154,#597088);color:#afd6ff!important}.ItemDetayResim{height:136px;border:1px solid #2a3c4e;display:block;background-position:center!important}.ItemDetayResim2{height:136px;border:1px solid #2a3c4e;display:block;background-position:center!important;background-size:contain,cover!important}.ItemIcerikMin{height:150px;float:left;position:relative;padding:0;margin:.5%;margin-bottom:calc(30px + 0.5%)}.col-md-1.ItemIcerikMin{width:calc(13.5% - 2%)!important}.col-md-2.ItemIcerikMin{width:calc(16.666666667% - 1%)!important}.col-md-4.ItemIcerikMin{width:calc(33.33333333% - 1%)!important}.col-md-6.ItemIcerikMin{width:calc(50% - 1%)!important}.ItemIcerikWiki{height:150px;float:left;position:relative;padding:0;margin:.5%;margin-bottom:calc(30px + 0.5%)}.ItemIcerikWiki{width:calc(50% - 1%)!important}.ItemIcerikWikiMob{height:150px;float:left;position:relative;padding:0;margin:.5%;margin-bottom:calc(30px + 0.5%)}.ItemIcerikWikiMob{width:calc(13.5% - 2%)!important}.ItemIcerikWikiItem{height:130px;float:left;position:relative;padding:0;margin:.5%;margin-bottom:calc(30px + 0.5%)}.ItemIcerikWikiItem{width:calc(13.5% - 2%)!important}.ItemIcerikWikiSystem{height:150px;float:left;position:relative;padding:0;margin:.5%;margin-bottom:calc(30px + 0.5%)}.ItemIcerikWikiSystem{width:calc(50% - 1%)!important}.YukseltmeEsyaBilgilendirme{padding:10px;padding-left:20px;background:linear-gradient(to top left,#6ea9a9,#9ecaca);padding-right:20px;color:#fff;text-shadow:1px 1px 0 rgba(0,0,0,.29);margin-bottom:10px}.MobResimli{background-size:contain,cover!important}.nice_button,input[type=submit],.nice_button,input[type=button]{height:50px;color:#ead796;border:none;cursor:pointer;outline:none;padding:0 20px;display:inline-block;overflow:hidden;position:relative;font-size:14px;text-align:center;font-weight:700;line-height:50px;white-space:nowrap;font-family:calibrib,serif;box-shadow:0 0 10px 0 rgba(0,0,0,.5);-moz-box-shadow:0 0 10px 0 rgba(0,0,0,.5);-webkit-box-shadow:0 0 10px 0 rgba(0,0,0,.5);text-shadow:0 2px 5px rgba(0,0,0,.28);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;vertical-align:top;text-transform:uppercase;-webkit-font-smoothing:antialiased}.warfg_btn{height:50px;display:inline-block;position:relative}.warfg_btn:before,.warfg_btn:after{top:0!important}.nice_button:before,.warfg_btn:before{width:15px;height:50px;top:0;left:0;cursor:pointer;content:"";z-index:999;display:inline-block;position:absolute}.nice_button:after,.warfg_btn:after{width:15px;height:50px;top:0;right:0;cursor:pointer;content:"";z-index:999;display:inline-block;position:absolute}.nice_button:hover,.warfg_btn:hover input[type=submit]{color:#f9ecc0}.nice_active{color:#fff7da;box-shadow:0 0 12px 1px rgba(91,12,12,.8);-moz-box-shadow:0 0 12px 1px rgba(91,12,12,.8);-webkit-box-shadow:0 0 12px 1px rgba(91,12,12,.8)}.nice_active:hover{color:#fffcef}.nice_active:active{color:#fff7da;box-shadow:0 0 10px 1px rgba(91,12,12,.5);-moz-box-shadow:0 0 10px 1px rgba(91,12,12,.5);-webkit-box-shadow:0 0 10px 1px rgba(91,12,12,.5)}.ucp_divider{margin:0 auto 30px}#popup_bg{z-index:999999}#confirm,.popup{width:270px;max-width:400px;top:30%;left:47%;border:0;display:none;padding:20px;position:fixed;overflow:hidden;text-shadow:none;margin-left:-120px;border-radius:16px;-moz-border-radius:16px;-webkit-border-radius:16px;box-shadow:inset 0 0 0 1px #7e3018,0 0 28px #000,0 0 10px #000,inset 0 0 15px rgba(0,0,0,.6),0 0 45px #000;-moz-box-shadow:inset 0 0 0 1px #7e3018,0 0 28px #000,0 0 10px #000,inset 0 0 15px rgba(0,0,0,.6),0 0 45px #000;-webkit-box-shadow:inset 0 0 0 1px #7e3018,0 0 28px #000,0 0 10px #000,inset 0 0 15px rgba(0,0,0,.6),0 0 45px #000;background:#1f1918}#confirm h1,.popup h1{color:#9d9687;margin:0 auto;display:block;font-size:14px;text-align:center;text-shadow:0 0 3px #000}#validation{width:590px;height:44px;margin:0 auto;margin-bottom:6px}#validation .error{display:block;height:44px}#validation .error p{color:#a25656;text-shadow:0 3px 2px rgba(0,0,0,.4);padding:7px 0 0 60px;font-size:11px}#validation .success{display:block;height:44px}#validation .success p{color:#6fa256;text-shadow:0 3px 2px rgba(0,0,0,.4);padding:7px 0 0 60px;font-size:11px}#validation .warning{display:block;height:44px}#validation .warning p{color:#9c920e;text-shadow:0 3px 2px rgba(0,0,0,.4);padding:7px 0 0 60px;font-size:11px}a#facebook_banner p{border:none!important}a#facebook_banner:hover{-webkit-filter:contrast(120%);transition:.5s ease-out}a#facebook_banner:active{-webkit-filter:contrast(90%);transition:.5s ease-out}
/* === LONEX ASSET THEME === */
.logo-header .logo {
    display: block;
    margin-right: auto;
    margin-left: auto;
    width: 612px;
    left: 53px;
    right: 0;
    position: absolute;
    filter: none;
    margin-top: 230px;
    cursor: pointer;
}

.logo-header a:hover {
    filter: none !important;
}

.logo:hover {
    filter: brightness(120%);
}

.discord-widget {
    width: 320px;
    transition-property: right;
    transition-duration: 2s;
    -webkit-transition-property: right;
    -webkit-transition-duration: 2s;
    position: fixed;
    bottom: 20px;
    right: -340px;
    z-index: 10;
}

.discord-widget.active {
    right: 20px;
}

.agreement-content p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #ffe8a6;
}

.event-calendar-block {
    margin-top: 15px;
    margin-bottom: 15px;
}

.damage-ranking-block {
    margin-top: 0;
    margin-bottom: 15px;
}

.event-calendar-list {
    padding: 8px 10px 12px;
}

.event-calendar-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 232, 166, 0.12);
}

.event-calendar-item:last-child {
    border-bottom: none;
}

.event-calendar-time {
    color: #bf8415;
    font-weight: 700;
    font-size: 12px;
}

.event-calendar-name {
    color: #ffe8a6;
    font-size: 12px;
    line-height: 1.35;
}

.event-calendar-empty {
    color: #aaa;
    font-size: 12px;
    margin: 8px 0 0;
    line-height: 1.4;
}

.social-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-section {
    background: #111;
    padding: 40px;
    text-align: center;
    border-radius: 6px;
}

.social-section h2 {
    color: #fff;
    margin: 0 0 10px;
}

.social-section p {
    color: #aaa;
    margin: 0 0 15px;
}

.social-btn {
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.social-btn:hover {
    color: #fff;
}

.social-btn--whatsapp {
    background: #25d366;
}

.social-btn--whatsapp:hover {
    background: #1ebe57;
}

.social-btn--facebook {
    background: #1877f2;
}

.social-btn--facebook:hover {
    background: #1464d0;
}

.social-btn--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn--instagram:hover {
    filter: brightness(1.1);
}

.crate-title h2 {
    color: #fff;
    text-align: center;
    margin: 0 0 15px;
    font-size: 18px;
}

#rc-imageselect,
.g-recaptcha {
    transform: scale(0.77);
    -webkit-transform: scale(0.77);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    margin: 0;
    display: inline-block;
}

.reg-form .checkbox {
    margin-bottom: 12px;
    color: #ffe8a6;
    font-size: 13px;
}

.reg-form .checkbox a {
    color: #ffdf6b;
}

.reg-form .checkbox a.agreement-popup {
    cursor: pointer;
    text-decoration: underline;
}

.top-panel__actions {
    position: absolute;
    right: -120px;
    top: 0;
    height: 56px;
    display: flex;
    align-items: center;
    border-left: 1px solid #ffea82;
}

.top-panel .login-panel {
    position: static;
    right: auto;
    margin-right: 0;
    border-left: 1px solid rgba(255, 234, 130, 0.35);
    padding-left: 12px;
}

.locale-switcher {
    position: relative;
    z-index: 120;
    padding: 0 12px;
}

.locale-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px 0 10px;
    border: 1px solid rgba(255, 234, 130, 0.55);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(60, 0, 0, 0.95), rgba(25, 0, 0, 0.98));
    color: #fff4d4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.locale-switcher__toggle:hover,
.locale-switcher.is-open .locale-switcher__toggle {
    border-color: #ffea82;
    box-shadow: 0 0 12px rgba(255, 234, 130, 0.25);
    background: linear-gradient(180deg, rgba(80, 0, 0, 0.98), rgba(35, 0, 0, 1));
}

.locale-switcher__flag-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.locale-flag {
    width: 26px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    display: block;
}

.locale-switcher__label {
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.locale-switcher__caret {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ffdf6b;
    transition: transform 0.2s;
}

.locale-switcher.is-open .locale-switcher__caret {
    transform: rotate(180deg);
}

.locale-switcher__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #ffea82;
    border-radius: 6px;
    background: linear-gradient(180deg, #2a0000, #120000);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 234, 130, 0.15) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.locale-switcher.is-open .locale-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.locale-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 4px;
    color: #fff4d4;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.locale-switcher__option:hover {
    background: rgba(255, 234, 130, 0.12);
    color: #fff;
}

.locale-switcher__option.is-active {
    background: rgba(255, 234, 130, 0.18);
    color: #ffdf6b;
}

.locale-switcher__option-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    line-height: 1.2;
}

.locale-switcher__option-text strong {
    font-size: 13px;
    font-weight: 600;
}

.locale-switcher__option-text small {
    font-size: 11px;
    color: rgba(255, 244, 212, 0.55);
    letter-spacing: 0.08em;
}

.locale-switcher__option.is-active .locale-switcher__option-text small {
    color: rgba(255, 223, 107, 0.75);
}

.locale-switcher__check {
    color: #ffdf6b;
    font-size: 14px;
    font-weight: 700;
}

.download-item-warp::after {
    content: "";
    display: table;
    clear: both;
}

.single-download-item h4 {
    color: #ffdf6b;
    margin: 12px 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.single-download-item p {
    color: #ccc;
    margin: 0;
    font-size: 13px;
}

.single-download-item:hover img {
    filter: grayscale(0);
}

.download-requerment h4 {
    color: #ffdf6b;
    margin: 0;
    font-size: 16px;
}

.download-requerment p span {
    color: #ffdf6b;
    font-weight: 600;
}

.download-empty {
    padding: 30px 20px;
    text-align: center;
    color: #ffe8a6;
    font-size: 14px;
    background: #1e0000;
    border-radius: 5px;
    margin: 12px;
}

table.ranking-table.sidebar_rank,
table.table-full-ranking.sidebar_rank {
    color: #fff4d4;
}

table.ranking-table.sidebar_rank thead th,
table.table-full-ranking.sidebar_rank thead th {
    background: #150a05;
    color: #ffdf6b;
    border: 1px solid #63321b;
    font-weight: 700;
    font-size: 14px;
    padding: 10px;
}

table.ranking-table.sidebar_rank tbody td,
table.table-full-ranking.sidebar_rank tbody td {
    background: #29140a;
    border: 1px solid #63321b;
    color: #d6b59a;
    padding: 8px 10px;
    font-size: 14px;
}

table.ranking-table.sidebar_rank tbody tr:hover td,
table.table-full-ranking.sidebar_rank tbody tr:hover td {
    background: #3a1c10;
}

.sidebar-logout-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 5px;
}

.sidebar-account-meta {
    padding: 12px 14px 8px;
    border-top: 1px solid rgba(255, 234, 130, 0.2);
    border-bottom: 1px solid rgba(255, 234, 130, 0.2);
    margin-bottom: 10px;
}

.sidebar-account-meta p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 13px;
    color: #ffe8a6;
    line-height: 1.4;
}

.sidebar-account-meta p:last-child {
    margin-bottom: 0;
}

.sidebar-account-meta span {
    color: rgba(255, 232, 166, 0.75);
}

.sidebar-account-meta strong {
    color: #ffdf6b;
    font-weight: 700;
    word-break: break-all;
    text-align: right;
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-account-actions {
    padding: 0 10px 10px;
}

.sidebar-account-actions .sidebar-panel-btn,
.sidebar-account-actions .sidebar-logout-btn {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.sidebar-account-actions .sidebar-panel-btn:last-child,
.sidebar-account-actions form:last-child .sidebar-logout-btn {
    margin-bottom: 0;
}

.control-panel-content {
    padding: 20px 10px 10px;
}

.control-panel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.control-panel-grid .control-panel-button {
    width: calc(50% - 6px);
    margin: 0;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    padding: 14px 10px;
    line-height: 1.3;
}

.control-panel-grid .control-panel-button:hover {
    filter: brightness(115%);
}

.shop-g2g-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.shop-g2g-button img {
    height: 22px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

.turnstile-widget {
    margin: 10px 0;
}

.turnstile-label {
    margin: 0 0 8px;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
}

.turnstile-widget .cf-turnstile {
    display: inline-block;
}

.register-form .sidebar-turnstile {
    width: 92%;
    margin: 5px 0 8px;
    display: inline-block;
    overflow: hidden;
    container-type: inline-size;
    height: 54px;
}

.register-form .sidebar-turnstile .turnstile-widget {
    margin: 0;
    width: 100%;
    height: 100%;
}

.register-form .sidebar-turnstile .turnstile-widget--sidebar .cf-turnstile {
    display: block;
    width: 300px !important;
    max-width: none;
    transform: scale(calc(100cqw / 300px));
    transform-origin: left top;
}

.register-form .login-links {
    margin: 4px 0 10px;
}

.register-form .login-links p {
    margin: 0 0 4px;
    line-height: 1.35;
}

.register-form .login-links a {
    font-size: 12px;
}

.register-form .login-submit {
    text-align: right;
    margin-bottom: 6px;
}

.register-form .login-submit button {
    min-width: 110px;
}

/* ========================================================================== */
/* Lonex Web - asset-only visual skin                                         */
/* Existing PHP/HTML structure is preserved; this stylesheet loads in <head>. */
/* ========================================================================== */

:root {
    --lx-bg: #08080a;
    --lx-panel: rgba(13, 12, 15, 0.93);
    --lx-panel-soft: rgba(22, 16, 18, 0.88);
    --lx-red: #941c29;
    --lx-red-light: #c83240;
    --lx-gold: #d2a74e;
    --lx-gold-light: #f0d58d;
    --lx-text: #f5f0e9;
    --lx-muted: #9d9691;
    --lx-border: rgba(216, 174, 82, 0.25);
    --lx-border-strong: rgba(235, 193, 98, 0.5);
    --lx-nav-height: 78px;
    --lx-max: 1360px;
}

html {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--lx-bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #08080a url(../images/headerBG.png) center top / cover fixed no-repeat;
    color: var(--lx-text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% 18%, rgba(162, 21, 38, 0.14), transparent 34%),
        radial-gradient(circle at 72% 22%, rgba(39, 81, 188, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(5, 5, 7, 0.35), rgba(6, 6, 8, 0.83) 70%, #08080a 100%);
}

body,
body * {
    box-sizing: border-box;
}

body a {
    color: var(--lx-gold-light);
}

body a:hover,
body button:hover {
    filter: none;
}

/* Existing navbar, reskinned without replacing its markup. */
.top-panel {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
    height: var(--lx-nav-height);
    border: 0;
    border-bottom: 1px solid var(--lx-border);
    background: rgba(8, 8, 11, 0.88);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.36);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.top-panel::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(48, 92, 231, 0.48), rgba(202, 41, 54, 0.65), transparent);
    box-shadow: 0 0 16px rgba(201, 40, 51, 0.22);
}

.top-panel.is-scrolled {
    background: rgba(7, 7, 10, 0.97);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.top-panel > .wrap {
    width: min(var(--lx-max), calc(100% - 38px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.top-panel > .wrap::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 160px;
    height: 64px;
    background: url(../uploads/logo.png) left center / contain no-repeat;
    filter: drop-shadow(0 0 15px rgba(208, 47, 57, 0.22));
}

.top-menu {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    justify-self: center;
}

.top-menu > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.5vw, 28px);
    margin: 0;
    padding: 0;
}

.top-menu > ul > li {
    display: block;
    padding: 0;
}

.top-menu > ul > li > a {
    min-height: var(--lx-nav-height);
    padding: 0 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d3ceca;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.085em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.top-menu > ul > li > a::before {
    position: static;
    width: 17px;
    height: auto;
    opacity: 1;
    color: var(--lx-gold);
    background: none;
    font-family: ForkAwesome, FontAwesome, sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    text-align: center;
}

.top-menu > ul > li:nth-child(1) > a::before { content: "\f015"; }
.top-menu > ul > li:nth-child(2) > a::before { content: "\f234"; }
.top-menu > ul > li:nth-child(3) > a::before { content: "\f019"; }
.top-menu > ul > li:nth-child(4) > a::before { content: "\f091"; }
.top-menu > ul > li:nth-child(5) > a::before { content: "\f145"; }
.top-menu > ul > li:nth-child(6) > a::before { content: "\f291"; }

/* Keep the Font Awesome icon in the flex row when the legacy hover rule fires. */
.top-menu > ul > li:hover > a::before,
.top-menu > ul > li > a.active::before,
.top-menu > ul > li:focus-within > a::before {
    position: static;
    top: auto;
    left: auto;
    width: 17px;
    height: auto;
    margin: 0;
    opacity: 1;
    color: var(--lx-gold);
    background: none;
    transform: none;
}

.top-menu > ul > li > a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 16px;
    left: 50%;
    height: 1px;
    background: linear-gradient(90deg, var(--lx-red-light), var(--lx-gold));
    box-shadow: 0 0 9px rgba(213, 172, 83, 0.34);
    transition: right 0.22s ease, left 0.22s ease;
}

.top-menu > ul > li:hover > a,
.top-menu > ul > li > a.active,
.top-menu > ul > li > a:focus-visible {
    color: #fff;
    text-shadow: none;
}

.top-menu > ul > li:hover > a::after,
.top-menu > ul > li > a.active::after {
    right: 0;
    left: 0;
}

.top-menu li ul {
    top: calc(100% - 12px);
    min-width: 215px;
    padding: 8px;
    border: 1px solid var(--lx-border);
    background: rgba(11, 10, 13, 0.98);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.48);
}

.top-menu li ul::before {
    left: 24px;
    border-width: 0 6px 6px;
    border-bottom-color: var(--lx-gold);
}

.top-menu li ul li a,
.top-menu li:hover ul li a {
    padding: 11px 13px;
    color: #aaa39f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.top-menu li ul li a::before,
.top-menu li ul li a::after {
    display: none;
}

.top-menu li ul li a:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(148, 28, 41, 0.35), rgba(210, 167, 78, 0.06));
}

.top-panel__actions {
    position: static;
    grid-column: 3;
    grid-row: 1;
    height: auto;
    border: 0;
    gap: 10px;
    justify-self: end;
}

.top-panel .login-panel {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.top-panel .login-panel a,
.top-panel .button-bg {
    min-width: 130px;
    min-height: 43px;
    margin: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(234, 193, 100, 0.4);
    border-left: 3px solid var(--lx-gold);
    border-radius: 2px;
    background: linear-gradient(110deg, #571018, #971c29 62%, #bf2e3b);
    box-shadow: 0 10px 24px rgba(92, 11, 21, 0.24);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.095em;
    text-shadow: none;
}

.locale-switcher {
    z-index: 1002;
    padding: 0;
}

.locale-switcher__toggle {
    height: 39px;
    padding: 0 10px;
    border: 1px solid var(--lx-border);
    border-radius: 2px;
    background: rgba(12, 11, 14, 0.82);
    color: #d3ceca;
}

.locale-switcher__toggle:hover,
.locale-switcher.is-open .locale-switcher__toggle {
    border-color: var(--lx-border-strong);
    background: rgba(25, 18, 20, 0.96);
    box-shadow: 0 0 15px rgba(181, 39, 49, 0.16);
}

.locale-switcher__menu {
    right: 0;
    left: auto;
    border-radius: 2px;
    border-color: var(--lx-border);
    background: rgba(10, 9, 12, 0.98);
}

.lonex-menu-toggle {
    display: none;
    width: 43px;
    height: 41px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lx-border);
    border-radius: 2px;
    background: rgba(18, 14, 16, 0.9);
    color: var(--lx-gold-light);
}

.lonex-menu-toggle span,
.lonex-menu-toggle span::before,
.lonex-menu-toggle span::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lonex-menu-toggle span { position: relative; }
.lonex-menu-toggle span::before,
.lonex-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.lonex-menu-toggle span::before { top: -6px; }
.lonex-menu-toggle span::after { top: 6px; }
.lonex-menu-open .lonex-menu-toggle span { background: transparent; }
.lonex-menu-open .lonex-menu-toggle span::before { top: 0; transform: rotate(45deg); }
.lonex-menu-open .lonex-menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Existing header remains the header; only its skin changes. */
.wrapper,
.wrap {
    width: auto;
    max-width: none;
}

.wrapper {
    min-height: 100vh;
}

.header {
    position: relative;
    height: 440px;
    margin: 0;
    overflow: hidden;
    /* background: transparent; */
}

.header::before {
    display: none;
}

.header::after {
    display: none;
}

.logo-header {
    position: absolute;
    inset: 108px 0 auto;
    z-index: 2;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-header .logo {
    position: static;
    display: block;
    width: min(560px, 45vw);
    max-height: 280px;
    margin: 0 auto !important;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
}

.glare,
.glare-yellow,
.light {
    display: none;
}

/* Existing three-column PHP layout, only restyled. */
.container {
    position: relative;
    z-index: 3;
    width: min(var(--lx-max), calc(100% - 38px));
    min-height: 760px;
    margin: -18px auto 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    align-items: start;
    gap: 18px;
}

.left-sidebar,
.content,
.right-sidebar {
    width: auto;
    min-width: 0;
    background: transparent;
}

.left-sidebar,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.left-sidebar > *,
.right-sidebar > *,
.content > *,
.panel,
.news-tab-area {
    border: 1px solid var(--lx-border);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(20, 16, 18, 0.94), rgba(9, 9, 12, 0.94));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.4);
}

.left-sidebar > *,
.right-sidebar > * {
    margin: 0;
    overflow: hidden;
}

.sidebar-title,
.panel-heading,
.crate-title,
.tabs-title {
    position: relative;
    min-height: 55px;
    margin: 0;
    padding: 18px 18px 14px;
    border: 0;
    border-bottom: 1px solid rgba(216, 174, 82, 0.16);
    background: linear-gradient(90deg, rgba(128, 21, 32, 0.23), transparent 74%);
    color: var(--lx-text);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar-title::before,
.panel-heading::before,
.crate-title::before,
.tabs-title::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(180deg, var(--lx-gold-light), var(--lx-red-light));
}

.sidebar-title a {
    float: right;
    color: var(--lx-muted);
    font-size: 8px;
}

.crate-title h2,
.tabs-title h4 {
    margin: 0;
    color: var(--lx-text);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.panel-body,
.tab-text,
.content-page {
    padding: 21px;
    color: #c8c1bc;
}

.content img {
    max-width: 100%;
}

.register-box-main,
.rankings-block,
.top-guilds-block,
.event-calendar-block,
.damage-ranking-block {
    border: 1px solid var(--lx-border);
}

.register-box-worp,
.register-form,
.rankings,
.top-guilds,
.event-calendar-list {
    background: transparent;
}

.register-form {
    padding: 17px;
}

body input,
body textarea,
body select,
body .form-control {
    width: 100%;
    min-height: 42px;
    margin: 4px 0 10px;
    padding: 10px 13px;
    border: 1px solid rgba(216, 174, 82, 0.2);
    border-radius: 2px;
    background: rgba(5, 5, 7, 0.7);
    color: #f1ece7;
    box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.2);
}

body textarea {
    min-height: 115px;
    resize: vertical;
}

body input:focus,
body textarea:focus,
body select:focus {
    border-color: var(--lx-border-strong);
    box-shadow: 0 0 0 3px rgba(166, 35, 46, 0.08);
}

body input::placeholder,
body textarea::placeholder {
    color: #77706d;
}

body button,
body .button,
body input[type="submit"] {
    min-height: 42px;
    padding: 0 19px;
    border: 1px solid rgba(234, 193, 100, 0.4);
    border-left: 3px solid var(--lx-gold);
    border-radius: 2px;
    background: linear-gradient(110deg, #561018, #931b28 62%, #b92c39);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-shadow: none;
}

.login-links a {
    color: #918a86;
    font-size: 11px;
}

.rankings-title,
.rankings-title-block,
.guilds {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 48px;
    align-items: center;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: transparent;
    color: #aaa39f;
    font-size: 11px;
}

.rankings-title {
    min-height: 34px;
    color: #756f6b;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.rankings-title-block:hover,
.guilds:hover {
    background: linear-gradient(90deg, rgba(148, 28, 41, 0.14), transparent);
    color: #fff;
}

.rank-number,
.rank-name,
.rank-lvl,
.guild-img,
.clan-team,
.points {
    width: auto;
    float: none;
    padding: 0;
}

.rank-lvl,
.points { text-align: right; }
.purple { color: var(--lx-gold-light); }
.clan-team-name { color: #c8c1bc; }

/* Existing right-side links keep their content and URLs. */
.dowload-button,
.best-price-block,
.right-sidebar > .best-price {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.dowload-button a,
.best-price {
    position: relative;
    width: 100%;
    min-height: 76px;
    height: auto;
    padding: 19px 21px 18px 63px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--lx-border);
    border-left: 3px solid var(--lx-gold);
    border-radius: 2px;
    background: linear-gradient(110deg, rgba(78, 11, 18, 0.92), rgba(20, 14, 16, 0.95));
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-shadow: none;
    text-transform: uppercase;
}

.dowload-button a::before,
.best-price::before {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lx-gold-light);
    font-family: ForkAwesome, FontAwesome, sans-serif;
    font-size: 19px;
    font-weight: normal;
}

.dowload-button a::before { content: "\f019"; }
.best-price.one::before { content: "\f291"; }
.best-price.two::before { content: "\f1d8"; }
.best-price::after,
.best-price-bottom::before,
.best-price-bottom::after { display: none; }

.best-price-bottom {
    position: static;
    padding: 0;
    color: #817a76;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
}

.best-price-bottom br { display: none; }
.best-price-bottom span {
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Support is a direct sidebar link, so give it the same full card treatment. */
.right-sidebar > .best-price.two {
    min-height: 96px;
    border: 1px solid rgba(86, 151, 235, 0.5);
    border-left: 3px solid #5798ed;
    background: linear-gradient(110deg, rgba(17, 66, 136, 0.96), rgba(10, 24, 48, 0.97));
    box-shadow: 0 18px 38px rgba(13, 58, 132, 0.24);
    overflow: hidden;
}

.right-sidebar > .best-price.two::before {
    color: #9dccff;
    text-shadow: 0 0 14px rgba(78, 151, 242, 0.34);
}

.right-sidebar > .best-price.two .best-price-bottom span {
    color: #ddebff;
}

.right-sidebar > .best-price.two:hover {
    border-color: rgba(116, 177, 255, 0.72);
    border-left-color: #79b3ff;
    background: linear-gradient(110deg, rgba(21, 79, 158, 0.98), rgba(12, 31, 60, 0.98));
    box-shadow: 0 20px 44px rgba(22, 78, 166, 0.34);
}

.social-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social-section {
    min-height: 205px;
    padding: 26px;
    border: 1px solid rgba(216, 174, 82, 0.18);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(28, 20, 22, 0.92), rgba(8, 8, 11, 0.95));
    text-align: left;
}

.social-section h2 {
    margin: 0 0 9px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
}

.social-section p {
    min-height: 58px;
    color: #99918d;
    font-size: 11px;
    line-height: 1.55;
}

.social-btn,
.social-btn--facebook,
.social-btn--instagram {
    padding: 11px 17px;
    border: 1px solid rgba(234, 193, 100, 0.34);
    border-radius: 2px;
    background: linear-gradient(110deg, #541018, #921b28);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alert {
    padding: 14px 16px;
    border: 1px solid var(--lx-border);
    border-left-width: 3px;
    border-radius: 2px;
    background: rgba(14, 12, 15, 0.93);
    color: #c8c1bc;
    line-height: 1.55;
}

.alert-info { border-left-color: #4b75ce; }
.alert-warning { border-left-color: var(--lx-gold); }
.alert-danger { border-left-color: var(--lx-red-light); }
.alert-success { border-left-color: #45bd75; }

.table {
    width: 100%;
    margin: 0;
    color: #c7c1bc;
}

.table th,
.table td,
table#RankingTable td,
table#RankingTable th {
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    vertical-align: middle;
}

.table thead th {
    color: var(--lx-gold-light);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.018);
}

.single-download-item,
.download-requerment {
    border: 1px solid var(--lx-border);
    border-radius: 2px;
    background: rgba(8, 8, 11, 0.72);
    color: #bdb6b1;
}

.download-requerment {
    margin-bottom: 0;
    padding: 23px;
}

/* Exact local copy of the Lonex index Discord banner. */
.discord-widget,
.discord-widget.active {
    position: fixed;
    z-index: 950;
    left: 24px;
    right: auto;
    bottom: 24px;
    width: 292px;
    min-height: 0;
    padding: 13px 13px 12px 16px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(130, 146, 255, 0.82);
    border-radius: 2px;
    color: #fff;
    background: linear-gradient(115deg, rgba(33, 43, 91, 0.98), rgba(10, 12, 25, 0.99) 48%, rgba(45, 28, 75, 0.98));
    background-size: 190% 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.52), 0 0 27px rgba(88, 101, 242, 0.24), inset 0 1px rgba(190, 198, 255, 0.1);
    text-decoration: none;
    animation: lonex-discord-panel-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both, lonex-discord-panel-border 3.6s ease-in-out 0.65s infinite, lonex-discord-panel-color 5.4s ease-in-out 0.65s infinite;
}

.discord-widget::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #6176ff 20%, #fff 50%, #a668ff 80%, transparent);
    box-shadow: 0 0 16px rgba(117, 134, 255, 0.9);
    pointer-events: none;
    animation: lonex-discord-edge-signal 2.8s ease-in-out infinite;
}

.discord-widget::after {
    content: "";
    position: absolute;
    left: -45%;
    top: 0;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8190ff 35%, #fff 50%, #ae73ff 65%, transparent);
    box-shadow: 0 0 11px rgba(126, 141, 255, 0.72);
    animation: lonex-discord-top-scan 3.2s ease-in-out infinite;
}

.discord-widget > img {
    display: none !important;
}

.lonex-discord-banner-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
}

.lonex-discord-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(181, 190, 255, 0.92);
    border-radius: 2px;
    color: #fff;
    background: linear-gradient(145deg, #4c5ee8, #7a61e8);
    box-shadow: 0 0 18px rgba(88, 101, 242, 0.42), inset 0 1px rgba(255, 255, 255, 0.18);
    animation: lonex-discord-mark-signal 2.6s ease-in-out infinite;
}

.lonex-discord-mark > i {
    font-size: 20px;
}

.lonex-discord-banner-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.lonex-discord-banner-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(128, 143, 255, 0.28);
    animation: lonex-discord-title-signal 3s ease-in-out infinite;
}

.lonex-discord-banner-copy small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #858b9e;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.lonex-discord-banner-copy small > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52ee91;
    box-shadow: 0 0 10px rgba(82, 238, 145, 0.92);
    animation: lonex-discord-status-pulse 1.6s ease-in-out infinite;
}

.lonex-discord-join {
    position: relative;
    min-height: 34px;
    margin-top: 10px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(177, 186, 255, 0.9);
    border-radius: 1px;
    color: #fff;
    background: linear-gradient(90deg, #3f50d4, #6d62e8, #465be4, #885fe4);
    background-size: 260% 100%;
    box-shadow: 0 8px 20px rgba(61, 70, 190, 0.4), inset 0 1px rgba(255, 255, 255, 0.18);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: lonex-discord-cta-scan 3.2s ease-in-out infinite;
}

.lonex-discord-join > i {
    font-size: 12px;
    transform: rotate(45deg);
    animation: lonex-discord-arrow-step 2.6s ease-in-out infinite;
}

@keyframes lonex-discord-panel-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lonex-discord-panel-border { 0%, 100% { border-color: rgba(106, 124, 238, 0.58); box-shadow: 0 18px 45px rgba(0,0,0,.52), 0 0 20px rgba(88,101,242,.18), inset 0 1px rgba(190,198,255,.08); } 50% { border-color: rgba(185,194,255,.98); box-shadow: 0 18px 45px rgba(0,0,0,.52), 0 0 34px rgba(88,101,242,.38), inset 0 1px rgba(215,220,255,.16); } }
@keyframes lonex-discord-panel-color { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes lonex-discord-edge-signal { 0%, 100% { opacity: .45; transform: scaleY(.48); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes lonex-discord-top-scan { 0%, 12% { left: -45%; opacity: 0; } 36%, 64% { opacity: 1; } 88%, 100% { left: 100%; opacity: 0; } }
@keyframes lonex-discord-mark-signal { 0%, 100% { transform: translateY(0) scale(1); border-color: rgba(158,170,255,.72); } 50% { transform: translateY(-2px) scale(1.06); border-color: #fff; box-shadow: inset 0 0 14px rgba(88,101,242,.22), 0 0 22px rgba(100,113,255,.58); } }
@keyframes lonex-discord-title-signal { 0%, 100% { color: #dfe2ff; text-shadow: 0 0 6px rgba(128,143,255,.2); } 50% { color: #fff; text-shadow: 0 0 15px rgba(147,158,255,.62); } }
@keyframes lonex-discord-cta-scan { 0%, 100% { background-position: 0 50%; box-shadow: 0 7px 17px rgba(48,58,170,.3), inset 0 1px rgba(255,255,255,.14); } 50% { background-position: 100% 50%; box-shadow: 0 9px 24px rgba(91,76,214,.5), inset 0 1px rgba(255,255,255,.24); } }
@keyframes lonex-discord-arrow-step { 0%, 100% { transform: translate(0,0) rotate(45deg); opacity: .55; } 50% { transform: translate(3px,-3px) rotate(45deg) scale(1.12); opacity: 1; } }
@keyframes lonex-discord-status-pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; transform: scale(1.15); } }

.footer {
    width: min(var(--lx-max), calc(100% - 38px));
    min-height: 235px;
    margin: 60px auto 0;
    padding: 48px 28px 26px;
    border-top: 1px solid var(--lx-border);
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.82), rgba(6, 6, 8, 0.98));
}

.footer-logo {
    width: 220px;
    min-height: 94px;
    margin: 0 auto 18px;
    background: url(../uploads/logo.png) center / contain no-repeat;
}

.footer-logo::before,
.footer-logo::after {
    top: 50%;
    width: min(340px, 30vw);
    border-color: rgba(216, 174, 82, 0.24);
}

.footer-logo::before { right: calc(100% + 20px); left: auto; }
.footer-logo::after { right: auto; left: calc(100% + 20px); }

.footer-menu {
    margin-bottom: 25px;
}

.footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px 28px;
}

.footer-menu li { margin: 0; }
.footer-menu li a {
    color: #918a86;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.footer-text p {
    margin: 0;
    color: #696360;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .top-panel > .wrap {
        width: calc(100% - 26px);
        grid-template-columns: 145px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .top-panel > .wrap::before {
        width: 138px;
    }

    .top-menu > ul { gap: 12px; }
    .top-menu > ul > li > a {
        gap: 5px;
        font-size: 8.5px;
        letter-spacing: 0.06em;
    }

    .locale-switcher__label,
    .locale-switcher__caret { display: none; }

    .top-panel .login-panel a {
        min-width: 108px;
        padding: 0 12px;
        font-size: 8px;
    }

    .container {
        width: min(100% - 28px, 1060px);
        grid-template-columns: 250px minmax(0, 1fr);
        grid-template-areas:
            "left content"
            "right content";
    }

    .left-sidebar { grid-area: left; }
    .content { grid-area: content; }
    .right-sidebar { grid-area: right; }
}

@media (max-width: 860px) {
    :root { --lx-nav-height: 68px; }

    body.lonex-menu-open { overflow: hidden; }

    .top-panel {
        background: rgba(8, 8, 11, 0.98);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .top-panel > .wrap {
        width: calc(100% - 22px);
        grid-template-columns: minmax(120px, 1fr) auto auto;
        gap: 8px;
    }

    .top-panel > .wrap::before {
        width: 132px;
        height: 58px;
    }

    .top-panel__actions {
        grid-column: 2;
        grid-row: 1;
    }

    .locale-switcher { display: none; }

    .lonex-menu-toggle {
        display: inline-flex;
        grid-column: 3;
        grid-row: 1;
    }

    .top-menu {
        position: fixed;
        top: var(--lx-nav-height);
        right: 0;
        bottom: 0;
        width: min(340px, 88vw);
        padding: 18px;
        overflow-y: auto;
        visibility: hidden;
        border-left: 1px solid var(--lx-border);
        background: rgba(8, 8, 11, 0.99);
        box-shadow: -22px 0 55px rgba(0, 0, 0, 0.5);
        transform: translateX(105%);
        transition: transform 0.23s ease, visibility 0.23s ease;
    }

    .lonex-menu-open .top-menu {
        visibility: visible;
        transform: translateX(0);
    }

    .top-menu > ul { display: block; }
    .top-menu > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .top-menu > ul > li > a {
        width: 100%;
        min-height: 55px;
        padding: 0 7px;
        font-size: 10px;
    }

    .top-menu > ul > li > a::after { bottom: 5px; }

    .top-menu li ul,
    .top-menu li:hover ul {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0 0 9px 27px;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
    }

    .top-menu li ul::before { display: none; }
    .top-menu li ul li a,
    .top-menu li:hover ul li a {
        padding: 9px 7px;
        border-left: 1px solid rgba(216, 174, 82, 0.2);
        color: #8f8884;
        font-size: 9px;
    }

    .header { height: 325px; }
    .logo-header {
        inset: 78px 0 auto;
        height: 220px;
    }
    .logo-header .logo {
        width: min(430px, 72vw);
        max-height: 220px;
    }

    .container {
        width: min(100% - 22px, 720px);
        margin-top: 0;
        padding-top: 15px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "content"
            "left"
            "right";
        gap: 13px;
    }

    .content { grid-area: content; }
    .left-sidebar { grid-area: left; }
    .right-sidebar { grid-area: right; }

    .left-sidebar,
    .right-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer {
        width: calc(100% - 22px);
        margin-top: 42px;
    }
}

@media (max-width: 600px) {
    .top-panel > .wrap {
        grid-template-columns: minmax(100px, 1fr) auto;
    }

    .top-panel > .wrap::before { width: 116px; }
    .top-panel__actions { display: none; }
    .lonex-menu-toggle { grid-column: 2; }

    .header { height: 270px; }
    .logo-header {
        inset: 72px 0 auto;
        height: 175px;
    }
    .logo-header .logo {
        width: min(340px, 80vw);
        max-height: 175px;
    }

    .container {
        width: calc(100% - 16px);
        gap: 10px;
    }

    .left-sidebar,
    .right-sidebar,
    .social-channels {
        display: flex;
        flex-direction: column;
    }

    .panel-body,
    .tab-text,
    .content-page { padding: 15px; }

    .social-section {
        min-height: 0;
        padding: 21px;
    }
    .social-section p { min-height: 0; }

    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .discord-widget,
    .discord-widget.active {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: min(292px, calc(100vw - 24px));
        height: auto;
        padding: 12px 12px 11px 15px;
    }

    .footer {
        width: calc(100% - 16px);
        padding: 40px 15px 95px;
    }

    .footer-logo {
        width: 175px;
        min-height: 76px;
    }

    .lonex-discord-banner-head { gap: 11px; }
    .lonex-discord-mark { width: 36px; height: 36px; }
    .lonex-discord-mark > i { font-size: 19px; }
    .lonex-discord-banner-copy strong { font-size: 10px; }
    .lonex-discord-banner-copy small { font-size: 8px; }
    .lonex-discord-join { min-height: 33px; margin-top: 9px; padding: 0 10px; }
}

/* Continuous dark stage behind the three-column area. */
.container::before {
    content: "";
    position: absolute;
    top: -90px;
    bottom: -38px;
    left: 50%;
    width: 100vw;
    z-index: -1;
    transform: translateX(-50%);
    pointer-events: none;
    border-top: 0;
    border-bottom: 1px solid rgba(216, 174, 82, 0.12);
    background: linear-gradient(180deg, rgba(7, 7, 10, 0), rgba(7, 7, 10, 0.3) 46px, rgba(7, 7, 10, 0.62) 90px, rgba(7, 7, 10, 0.86) 48%, rgba(6, 6, 8, 0.94));
    /* box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36); */
}

/* Let the news/content column continue to the bottom of the grid row. */
.container > .content {
    align-self: stretch;
    min-height: 100%;
    border: 1px solid var(--lx-border);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(15, 13, 16, 0.95), rgba(7, 7, 10, 0.97));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
    overflow: hidden;
}

.container > .content > .news-tab-area {
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Use one exact grid for guild heading and every 1-5 row. */
.top-guilds .rankings-title,
.top-guilds .guilds {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 52px;
    column-gap: 10px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 14px;
}

.top-guilds .rankings-title {
    min-height: 34px;
}

.top-guilds .guilds {
    min-height: 48px;
}

.top-guilds .rankings-title .guild-img,
.top-guilds .rankings-title .clan-team,
.top-guilds .rankings-title .points,
.top-guilds .guilds .rank-number,
.top-guilds .guilds .clan-team,
.top-guilds .guilds .points {
    width: auto;
    margin: 0;
    padding: 0;
}

.top-guilds .rankings-title .guild-img,
.top-guilds .guilds .rank-number {
    text-align: center;
}

.top-guilds .guilds .clan-team {
    min-width: 0;
}

.top-guilds .guilds .points {
    text-align: right;
    white-space: nowrap;
}

/* Footer background spans edge to edge on desktop and mobile. */
.wrapper > .footer {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: clamp(16px, 3vw, 48px);
    padding-left: clamp(16px, 3vw, 48px);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}
