/* Ana sayfa yenilemesi: PHP bileşenlerini korur, sunum katmanını değiştirir. */
:root {
    --home-bg: #07090d;
    --home-panel: rgba(9, 13, 20, 0.78);
    --home-line: rgba(154, 187, 221, 0.22);
    --home-line-hot: rgba(255, 99, 70, 0.54);
    --home-gold: #ffd27a;
    --home-cyan: #65d9ff;
    --home-text: #f4f7fb;
    --home-muted: #aeb9c9;
}

html,
body {
    min-height: 100%;
    background: var(--home-bg) !important;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    color: var(--home-text) !important;
    padding-bottom: 74px !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(6, 12, 19, 0.62) 0%, rgba(6, 10, 16, 0.34) 28%, rgba(10, 6, 9, 0.08) 52%, rgba(16, 6, 6, 0.34) 100%),
        radial-gradient(circle at 50% 12%, rgba(255, 58, 45, 0.16), transparent 20rem),
        url("/images/video/backround.webp?v=20260727-optimized1") center top / cover no-repeat fixed;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 6, 10, 0.08), rgba(4, 6, 10, 0.38) 76%, rgba(4, 6, 10, 0.68)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 90px);
}

#arkaplan-gorseli,
.b-popup-shader + header {
    display: none !important;
}

.main-container {
    width: min(1480px, calc(100vw - 48px)) !important;
    max-width: none !important;
    min-height: auto !important;
    margin: 0 auto !important;
    padding: 28px 0 34px !important;
    gap: 18px !important;
    transform: none !important;
    color: var(--home-text);
    position: relative;
    z-index: 1;
}

.main-container::before,
.main-container::after {
    content: "";
    position: fixed;
    inset: -12%;
    pointer-events: none;
    z-index: -1;
}

.main-container::before {
    opacity: 0.28;
    background:
        radial-gradient(ellipse at 18% 82%, rgba(150, 190, 215, 0.18), transparent 24rem),
        radial-gradient(ellipse at 72% 78%, rgba(255, 80, 46, 0.18), transparent 22rem),
        linear-gradient(102deg, transparent 0 28%, rgba(190, 220, 255, 0.08) 34%, transparent 42% 100%);
    filter: blur(18px);
    animation: dragonMist 18s ease-in-out infinite alternate;
}

.main-container::after {
    opacity: 0.36;
    background:
        radial-gradient(circle at 12% 68%, rgba(255, 175, 74, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 35% 82%, rgba(255, 88, 53, 0.72) 0 1px, transparent 2px),
        radial-gradient(circle at 59% 72%, rgba(255, 215, 124, 0.62) 0 1px, transparent 2px),
        radial-gradient(circle at 79% 84%, rgba(255, 105, 56, 0.58) 0 1px, transparent 2px);
    background-size: 280px 260px, 340px 310px, 410px 360px, 300px 280px;
    animation: emberDrift 24s linear infinite;
}

@keyframes dragonMist {
    0% {
        transform: translate3d(-1.5%, 1%, 0) scale(1);
    }
    100% {
        transform: translate3d(1.5%, -1%, 0) scale(1.04);
    }
}

@keyframes emberDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
        transform: translateY(0);
    }
    100% {
        background-position: 180px -420px, -160px -520px, 220px -620px, -120px -500px;
        transform: translateY(-18px);
    }
}

@keyframes lightningVein {
    0%, 82%, 100% {
        opacity: 0;
    }
    84% {
        opacity: 0.72;
    }
    86% {
        opacity: 0.12;
    }
    88% {
        opacity: 0.45;
    }
}

.game-header {
    min-height: 176px;
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center !important;
    gap: 24px;
    padding: 18px 26px !important;
    overflow: visible !important;
}

.game-header::before {
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    z-index: -1 !important;
    opacity: 1 !important;
    filter: none !important;
    animation: none !important;
    background:
        linear-gradient(90deg, transparent, rgba(101, 217, 255, 0.16), transparent),
        radial-gradient(circle at 50% 38%, rgba(255, 73, 60, 0.3), transparent 15rem) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.game-header::after {
    display: none !important;
}

.game-header > a {
    grid-column: 2;
    justify-self: center;
    display: block !important;
}

.game-logo {
    width: 168px !important;
    max-width: 168px !important;
    height: auto !important;
    margin: 0 !important;
    filter:
        drop-shadow(0 16px 26px rgba(0, 0, 0, 0.84))
        drop-shadow(0 0 22px rgba(255, 83, 63, 0.46))
        drop-shadow(0 0 20px rgba(101, 217, 255, 0.18)) !important;
}

.hero-copy {
    grid-column: 1;
    justify-self: start;
    max-width: 430px;
}

.hero-kicker,
.hero-status span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    color: var(--home-cyan);
    background: rgba(4, 12, 22, 0.72);
    border: 1px solid rgba(101, 217, 255, 0.32);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy .hero-title {
    margin: 13px 0 8px;
    color: #fff8e6;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.02;
    font-weight: 900;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.82);
}

.hero-copy p {
    margin: 0;
    max-width: 40ch;
    color: #dce7f4;
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-status {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 390px;
}

.hero-status span {
    color: #fff1c7;
    border-color: rgba(255, 210, 122, 0.34);
    background: rgba(33, 15, 11, 0.72);
}

.mobile-menu-toggle {
    grid-column: 3;
    justify-self: end;
    width: 46px !important;
    height: 46px !important;
    border-radius: 5px !important;
    background: rgba(12, 17, 27, 0.94) !important;
    border: 1px solid rgba(101, 217, 255, 0.34) !important;
    color: var(--home-text) !important;
    box-shadow: 0 0 22px rgba(101, 217, 255, 0.16);
}

.game-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    align-items: start !important;
    justify-content: stretch !important;
    place-items: start stretch !important;
}

.main-content {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
}

.left-sidebar {
    grid-column: 2;
    grid-row: 1;
}

.main-content,
.sidebar-panel,
.left-sidebar .ranking-section,
.content-section,
.news-item,
.mobile-menu-content {
    background: linear-gradient(180deg, var(--home-panel), rgba(7, 10, 16, 0.88)) !important;
    border: 1px solid var(--home-line) !important;
    border-radius: 8px !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(18px);
}

.main-content,
.sidebar-panel {
    padding: 16px !important;
}

.main-content::before,
.sidebar-panel::before,
.left-sidebar .ranking-section::before {
    display: none !important;
}

.left-sidebar {
    gap: 12px !important;
    min-width: 0 !important;
    position: relative !important;
    top: auto;
}

.left-sidebar::after {
    content: "OYUN PANELİ";
    display: block;
    order: -2;
    margin: -2px 0 2px;
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.left-sidebar .action-button,
.left-sidebar .client-download-button,
.nav-button,
.ranking-tab,
.ranking-type-tab,
.news-comment-submit {
    min-height: 44px !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0)),
        linear-gradient(135deg, rgba(32, 46, 66, 0.96), rgba(10, 14, 22, 0.96)) !important;
    color: var(--home-text) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.12) !important;
    text-shadow: none !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase;
}

.left-sidebar .action-button,
.left-sidebar .client-download-button {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 11px;
    width: 100% !important;
    padding: 0 15px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.left-sidebar .action-button::before,
.left-sidebar .client-download-button::before,
.nav-button::before {
    position: static !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    background: rgba(0, 0, 0, 0.28) !important;
    color: var(--home-gold);
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    box-shadow: none !important;
}

.left-sidebar .action-button::after,
.left-sidebar .client-download-button::after,
.nav-button::after {
    display: none !important;
}

.left-sidebar .action-button:not(.secondary) {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0)),
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0)),
        linear-gradient(135deg, #c91e27, #6d1018 58%, #23070a) !important;
    border-color: rgba(255, 95, 74, 0.68) !important;
}

.left-sidebar .action-button:not(.secondary)::before {
    content: "↪";
}

.left-sidebar .action-button.secondary {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0)),
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0)),
        linear-gradient(135deg, #0f7f9e, #0b415c 62%, #061927) !important;
    border-color: rgba(101, 217, 255, 0.46) !important;
}

.left-sidebar .action-button.secondary::before {
    content: "+";
    color: var(--home-cyan);
}

.left-sidebar .client-download-button {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0)),
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0)),
        linear-gradient(135deg, #cc8f26, #765016 62%, #271906) !important;
    border-color: rgba(255, 210, 122, 0.56) !important;
}

.left-sidebar .client-download-button::before {
    content: "↓";
}

.left-sidebar .action-button:hover,
.left-sidebar .client-download-button:hover,
.nav-button:hover,
.ranking-tab:hover,
.ranking-tab.active,
.ranking-type-tab:hover,
.ranking-type-tab.active {
    transform: translateY(-1px) !important;
    filter: brightness(1.12);
    border-color: rgba(255, 255, 255, 0.34) !important;
}

.left-sidebar .login-action,
.left-sidebar .register-action,
.left-sidebar .client-download-button {
    isolation: isolate;
}

.left-sidebar .login-action::after,
.left-sidebar .register-action::after,
.left-sidebar .client-download-button::after {
    content: "";
    position: absolute;
    inset: 5px 9px;
    z-index: 0;
    display: block !important;
    pointer-events: none;
    border-radius: 4px;
    opacity: 0.74;
    background:
        linear-gradient(116deg, transparent 0 18%, rgba(255,255,255,0.2) 19%, transparent 21% 100%),
        linear-gradient(64deg, transparent 0 58%, rgba(255,255,255,0.16) 59%, transparent 61% 100%),
        radial-gradient(circle at 22% 50%, rgba(255,255,255,0.12) 0 1px, transparent 2px),
        radial-gradient(circle at 38% 50%, rgba(255,255,255,0.1) 0 1px, transparent 2px),
        radial-gradient(circle at 54% 50%, rgba(255,255,255,0.08) 0 1px, transparent 2px);
    background-size: auto, auto, 18px 14px, 18px 14px, 18px 14px;
}

.left-sidebar .login-action > *,
.left-sidebar .register-action > *,
.left-sidebar .client-download-button > * {
    position: relative;
    z-index: 2;
}

.left-sidebar .login-action,
.left-sidebar .register-action,
.left-sidebar .client-download-button {
    justify-content: center !important;
}

.left-sidebar .login-action {
    box-shadow:
        0 0 18px rgba(255, 74, 42, 0.22),
        0 10px 24px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

.left-sidebar .register-action {
    box-shadow:
        0 0 18px rgba(101, 217, 255, 0.2),
        0 10px 24px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

.left-sidebar .client-download-button {
    box-shadow:
        0 0 18px rgba(255, 210, 122, 0.2),
        0 10px 24px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

.left-sidebar .login-action:hover {
    box-shadow:
        0 0 26px rgba(255, 74, 42, 0.42),
        0 12px 28px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.left-sidebar .register-action:hover {
    box-shadow:
        0 0 26px rgba(101, 217, 255, 0.36),
        0 12px 28px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.left-sidebar .client-download-button:hover {
    box-shadow:
        0 0 26px rgba(255, 210, 122, 0.36),
        0 12px 28px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.social-buttons {
    gap: 8px !important;
    margin: 2px 0 4px !important;
}

.social-button {
    height: 40px !important;
    padding: 0 13px !important;
    border-radius: 5px !important;
    color: #d5e3f4 !important;
    background: rgba(8, 14, 24, 0.78) !important;
    border: 1px solid rgba(101, 217, 255, 0.18) !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
}

.social-button:hover {
    color: #fff !important;
    background: rgba(18, 28, 44, 0.9) !important;
    border-color: rgba(101, 217, 255, 0.4) !important;
}

.social-button::before {
    content: "" !important;
    display: block;
    width: 20px !important;
    height: 20px;
    flex: 0 0 20px;
    margin-right: 10px !important;
    background-color: #b9cae0;
    -webkit-mask: var(--home-social-icon) center / contain no-repeat;
    mask: var(--home-social-icon) center / contain no-repeat;
}

.social-button.instagram {
    --home-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='black'/%3E%3C/svg%3E");
}

.social-button.instagram::before {
    background-color: #ef3d79;
}

.social-button.discord {
    --home-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 7.2c3.4-1.2 6.6-1.2 10 0 1.8 2.6 2.7 5.3 3 8.3-1.4 1.9-2.8 2.5-4.4 2.9l-1.1-1.5c.7-.2 1.3-.5 1.9-.9-3 1.4-5.8 1.4-8.8 0 .6.4 1.2.7 1.9.9l-1.1 1.5c-1.6-.4-3-1-4.4-2.9.3-3 1.2-5.7 3-8.3Zm2 3.8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E");
}

.social-button.discord::before {
    background-color: #8fa8ff;
}

.social-button.whatsapp {
    --home-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.3-1.4A10 10 0 1 0 12 2Zm0 2a8 8 0 0 1 0 16c-1.3 0-2.5-.3-3.6-.8l-.7-.3-2.8.8.8-2.7-.4-.7A8 8 0 0 1 12 4Zm-3.1 3.7c-.2 0-.5.1-.7.4-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.1 5 4.2 2.4 1 2.9.8 3.4.8.5-.1 1.7-.7 1.9-1.4.2-.7.2-1.3.2-1.4-.1-.1-.3-.2-.6-.4l-2-.9c-.3-.1-.5-.2-.7.2l-.9 1.1c-.2.2-.4.2-.7.1-1.7-.8-2.8-1.5-3.9-3.4-.3-.5.3-.5.8-1.5.1-.2.1-.4 0-.6l-.9-2.1c-.2-.5-.5-.5-.7-.5Z'/%3E%3C/svg%3E");
}

.social-button.whatsapp::before {
    background-color: #25d366;
}

.world-status-panel,
.first-battle-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 210, 122, 0.2);
    background:
        linear-gradient(180deg, rgba(21, 27, 38, 0.88), rgba(8, 11, 17, 0.94)),
        radial-gradient(circle at 90% 0%, rgba(255, 87, 55, 0.2), transparent 14rem);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 42px rgba(0,0,0,0.38);
}

.world-status-panel::before,
.first-battle-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 0 47%, rgba(126, 211, 255, 0.2) 49%, transparent 52% 100%);
    opacity: 0;
    animation: lightningVein 9s linear infinite;
}

.world-status-panel > *,
.first-battle-showcase > *,
.news-item > * {
    position: relative;
    z-index: 1;
}

.world-status-panel {
    padding: 14px;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.panel-kicker,
.first-battle-showcase__kicker {
    color: var(--home-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.status-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bff4c8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pulse::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #61ff8e;
    box-shadow: 0 0 12px rgba(97,255,142,0.85);
}

.world-status-grid {
    display: grid;
    gap: 8px;
}

.world-status-item {
    padding: 10px;
    background: rgba(2, 6, 12, 0.45);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
}

.world-status-item span,
.world-status-item em {
    display: block;
    color: var(--home-muted);
    font-size: 10px;
    font-style: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.world-status-item strong {
    display: block;
    margin-top: 4px;
    color: #fff7dc;
    font-size: 13px;
    line-height: 1.25;
}

.world-status-item.featured {
    border-color: rgba(255, 210, 122, 0.28);
    background: linear-gradient(135deg, rgba(96, 48, 15, 0.42), rgba(5, 9, 16, 0.5));
}

.first-battle-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 168px;
    margin: 0 0 14px;
    padding: 22px;
    background:
        linear-gradient(90deg, rgba(8, 12, 20, 0.9), rgba(8, 12, 20, 0.62)),
        radial-gradient(circle at 82% 30%, rgba(255, 73, 60, 0.32), transparent 18rem),
        linear-gradient(135deg, rgba(31, 70, 118, 0.36), rgba(96, 22, 18, 0.28));
}

.first-battle-showcase__content {
    max-width: 680px;
}

.first-battle-showcase h2 {
    margin: 8px 0 8px;
    color: #fff4d2;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.02;
    text-shadow: 0 3px 18px rgba(0,0,0,0.8);
}

.first-battle-showcase p {
    margin: 0;
    color: #d9e5f2;
    font-size: 14px;
    line-height: 1.55;
}

.first-battle-showcase__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

.first-battle-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 5px;
    color: #e8f6ff;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    border: 1px solid rgba(101, 217, 255, 0.32);
    background: rgba(6, 13, 23, 0.72);
}

.first-battle-link--hot {
    color: #2b1308;
    border-color: rgba(255, 216, 129, 0.72);
    background: linear-gradient(180deg, #ffda84, #b66b24);
}

.first-battle-open {
    cursor: pointer;
}

.first-battle-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 5, 9, 0.76);
    backdrop-filter: blur(10px);
}

.first-battle-modal.active {
    display: flex;
}

.first-battle-frame {
    position: relative;
    width: min(560px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 32px));
    padding: 12px;
    border: 1px solid rgba(255, 210, 122, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(28, 34, 46, 0.98), rgba(6, 9, 14, 0.98)),
        linear-gradient(135deg, rgba(101, 217, 255, 0.12), rgba(255, 73, 60, 0.1));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255,255,255,0.08);
}

.first-battle-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
    background: #05070b;
}

.first-battle-close {
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 210, 122, 0.5);
    border-radius: 50%;
    color: #fff2c9;
    background: linear-gradient(180deg, #7a1617, #2a0809);
    box-shadow: 0 10px 22px rgba(0,0,0,0.46);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.nav-buttons {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px !important;
    margin: 0 0 14px !important;
    padding: 10px !important;
    background: rgba(4, 7, 12, 0.62) !important;
    border: 1px solid rgba(101, 217, 255, 0.17) !important;
    border-radius: 8px !important;
}

.nav-button {
    justify-content: flex-start !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 12px !important;
}

.nav-button.nav-news::before {
    content: "";
}

.nav-button.nav-news {
    --home-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/g%3E%3C/svg%3E");
}

.nav-button.nav-library::before {
    content: "";
}

.nav-button.nav-library {
    --home-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5c3-1.2 6-.5 9 1.5v13c-3-2-6-2.7-9-1.5v-13Z'/%3E%3Cpath d='M21 5.5c-3-1.2-6-.5-9 1.5v13c3-2 6-2.7 9-1.5v-13Z'/%3E%3C/g%3E%3C/svg%3E");
}

.nav-button.nav-rules::before {
    content: "";
}

.nav-button.nav-rules {
    --home-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6zM9 8l1.5 1.5L14 6M9 14h6M9 18h6'/%3E%3C/g%3E%3C/svg%3E");
}

.nav-button.nav-forum::before {
    content: "";
}

.nav-button.nav-forum {
    --home-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h13v10H9l-4 4v-4H4V4Z'/%3E%3Cpath d='M17 8h3v10h-2v3l-3-3h-4'/%3E%3C/g%3E%3C/svg%3E");
}

.nav-button::before {
    border: 0 !important;
    background: var(--home-gold) !important;
    -webkit-mask: var(--home-nav-icon) center / 22px 22px no-repeat;
    mask: var(--home-nav-icon) center / 22px 22px no-repeat;
}

.content-section {
    padding: 16px !important;
}

.news-item .b-common-typography span[style*="#FF0000"] {
    color: #a40000 !important;
}

.news-item .b-common-typography [style*="#e65100"] {
    color: #9c3600 !important;
}

.news-item .b-common-typography [style*="#008000"] {
    color: #006400 !important;
}

.content-section > .text-center:last-child {
    margin: 16px 0 0 !important;
    padding: 14px !important;
    color: var(--home-muted) !important;
    background: rgba(6, 11, 18, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.content-section > .text-center:last-child strong {
    color: #fff4d4;
}

.news-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px !important;
    padding: 18px !important;
    border-left: 1px solid rgba(255, 210, 122, 0.28) !important;
    background: rgba(7, 10, 16, 0.88) !important;
}

.news-item::before,
.news-item::after {
    display: none !important;
    content: none !important;
}

.news-item:hover {
    transform: translateY(-1px) !important;
    background: rgba(10, 15, 23, 0.92) !important;
}

.news-item__top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 14px !important;
}

.news-item__top h1,
.news-item__top h3 {
    margin: 0 !important;
    color: #ffe5a8 !important;
    font-size: clamp(19px, 1.8vw, 26px) !important;
    line-height: 1.2 !important;
}

a.news-head-link {
    color: #fff1b8 !important;
}

.news-item .b-common-typography {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.news-item .b-common-typography a {
    color: inherit;
}

.news-item .b-common-typography img {
    max-width: 100% !important;
    height: auto !important;
}

.news-item .b-common-typography [style*="width:"] {
    max-width: 100% !important;
    box-sizing: border-box;
}

.news-item .b-common-typography table {
    max-width: 100% !important;
}

.news-item .b-common-typography td {
    box-sizing: border-box;
}

.news-section-title {
    margin: 0 0 12px !important;
    color: #ffe08b !important;
    font-size: clamp(22px, 2.2vw, 32px) !important;
    line-height: 1.16 !important;
    text-align: center;
}

.news-lead {
    max-width: 760px;
    margin: 0 auto 16px !important;
    color: #e7eef8 !important;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
}

.news-image-wrap {
    margin: 0 auto 16px !important;
    text-align: center;
}

.news-hero-image {
    display: block;
    width: min(100%, 720px);
    height: auto !important;
    margin: 0 auto;
    border: 1px solid rgba(218, 166, 82, 0.5);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.36);
}

.news-content-panel {
    max-width: 860px;
    margin: 16px auto !important;
    padding: 18px;
    color: #f3e6c7;
    background:
        linear-gradient(180deg, rgba(40, 31, 22, 0.94), rgba(15, 12, 10, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(255, 210, 122, 0.14), transparent 16rem);
    border: 1px solid rgba(218, 166, 82, 0.52);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 26px rgba(0,0,0,0.28);
}

.news-content-panel h3 {
    margin: 6px 0 13px !important;
    color: #ffd87a !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    text-align: center;
}

.news-content-panel p {
    color: #f0dfbd;
    line-height: 1.6;
}

.news-level-grid,
.news-reward-grid,
.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.news-level-card,
.news-reward-card,
.news-gallery-card {
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
    background: rgba(12, 9, 7, 0.56);
    border: 1px solid rgba(218, 166, 82, 0.42);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.news-level-card .artifact-table,
.news-reward-card .artifact-table,
.news-gallery-card .artifact-table,
.news-level-card table,
.news-reward-card table,
.news-gallery-card table {
    margin: 0 auto 7px;
}

.news-level-card strong,
.news-reward-card strong,
.news-gallery-card strong {
    display: block;
    color: #ffd66f !important;
    font-size: 13px;
    line-height: 1.25;
}

.news-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.news-gallery-card {
    padding: 8px;
}

.news-callout {
    margin: 14px 0;
    padding: 14px 16px;
    color: #eaf6ff;
    background:
        linear-gradient(135deg, rgba(20, 52, 78, 0.72), rgba(48, 22, 17, 0.64));
    border: 1px solid rgba(101, 217, 255, 0.26);
    border-left: 4px solid #ffd27a;
    border-radius: 7px;
}

.news-callout strong {
    display: block;
    margin: 0 0 5px;
    color: #ffe08b !important;
    font-size: 15px;
}

.news-callout p {
    margin: 0 !important;
    color: #dce7f4 !important;
    line-height: 1.55;
}

.news-quest-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
    margin: 16px auto !important;
}

.news-quest-card {
    padding: 15px 16px;
    background: rgba(8, 13, 21, 0.62);
    border: 1px solid rgba(101, 217, 255, 0.18);
    border-left: 4px solid rgba(255, 210, 122, 0.82);
    border-radius: 7px;
}

.news-quest-card h4 {
    margin: 0 0 8px !important;
    color: #ffe08b !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
}

.news-quest-card p {
    margin: 0 0 10px !important;
    color: #e6edf6 !important;
    line-height: 1.58;
}

.news-quest-card dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 5px 10px;
    margin: 0;
    color: #dce7f4;
}

.news-quest-card dt {
    color: #ffd87a;
    font-weight: 800;
}

.news-quest-card dd {
    margin: 0;
}

.news-note-list {
    display: grid;
    gap: 8px;
    max-width: 780px;
    margin: 14px auto !important;
    padding: 14px 18px 14px 34px;
    color: #e8f2df;
    background: rgba(28, 49, 24, 0.56);
    border: 1px solid rgba(145, 205, 115, 0.26);
    border-radius: 7px;
}

.news-note-list li {
    line-height: 1.55;
}

.news-action-line {
    margin: 16px 0 0 !important;
    color: #ffd87a !important;
    font-weight: 800;
    text-align: center;
}

.news-item .b-news-item__datetime,
.news-item .b-news-item__datetime-inner {
    color: var(--home-muted) !important;
    background: rgba(0, 0, 0, 0.24) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 5px !important;
}

.news-item .b-news-footer {
    margin-top: 14px !important;
    padding: 0 !important;
    background: transparent !important;
}

.news-item .b-news-footer > span {
    display: none !important;
}

.news-item .b-news-footer__cont,
.news-comment-item .b-news-footer__cont {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    background: rgba(3, 7, 13, 0.52) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
}

.news-item .b-news-footer__more,
.news-item .b-news-footer__comments {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--home-muted) !important;
}

.news-item .b-news-footer__more-link,
.news-item .b-news-footer__comments-link,
.news-comment-submit {
    color: var(--home-cyan) !important;
    text-decoration: none !important;
}

.rat_span {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    padding-left: 0 !important;
    gap: 4px !important;
}

.rat_butt {
    border-radius: 3px;
}

.rat_block {
    min-width: 24px;
    height: 18px !important;
    padding: 1px 5px !important;
    color: #fff7df !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.left-sidebar .ranking-section {
    padding: 14px !important;
    margin: 0 !important;
}

.ranking-board {
    background:
        linear-gradient(180deg, rgba(48, 41, 32, 0.96), rgba(19, 15, 12, 0.96)),
        radial-gradient(circle at 50% 24%, rgba(255, 226, 166, 0.22), transparent 12rem) !important;
    border-color: rgba(213, 164, 86, 0.54) !important;
}

.ranking-title {
    margin: 0 0 10px !important;
    padding: 0 0 9px !important;
    color: #ffe0a0 !important;
    border-bottom: 1px solid rgba(255, 210, 122, 0.28) !important;
    font-size: 14px !important;
    letter-spacing: 1.2px !important;
    text-align: center;
    text-transform: uppercase;
}

.ranking-board-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 10px;
    padding: 6px;
    border-radius: 7px;
    background: rgba(255, 230, 180, 0.08);
    border: 1px solid rgba(255, 210, 122, 0.18);
}

.ranking-board-tab {
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(108, 79, 42, 0.7);
    border-radius: 5px;
    color: #9d0d12;
    background: linear-gradient(180deg, #f5dca9, #b99258);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), 0 3px 8px rgba(0,0,0,0.24);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 1px 0 rgba(255,255,255,0.38);
}

.ranking-board-tab.active,
.ranking-board-tab:hover {
    color: #fff3cf;
    border-color: rgba(255, 210, 122, 0.72);
    background: linear-gradient(180deg, #a9161e, #5d090d);
    text-shadow: 0 1px 2px #000;
}

.ranking-pane {
    display: none;
}

.ranking-pane.active {
    display: block;
}

.ranking-tabs,
.ranking-type-tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    justify-content: center !important;
    margin-bottom: 9px !important;
}

.ranking-tab,
.ranking-type-tab {
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 9px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

.ranking-type-tab {
    border-radius: 4px !important;
}

.ranking-board .ranking-tab,
.ranking-board .ranking-type-tab {
    color: #f0d49a !important;
    border-color: rgba(213, 164, 86, 0.55) !important;
    background: linear-gradient(180deg, #4f3e29, #251c14) !important;
}

.ranking-board .ranking-tab.active,
.ranking-board .ranking-tab:hover,
.ranking-board .ranking-type-tab.active,
.ranking-board .ranking-type-tab:hover {
    color: #211309 !important;
    border-color: #f2d38c !important;
    background: linear-gradient(180deg, #f0c66f, #b8792e) !important;
}

.ranking-board .ranking-type-tabs {
    margin: 10px 0 0 !important;
}

.ranking-section .b-ratings__table {
    width: 100%;
    color: #3b2818 !important;
    font-size: 11px !important;
    border-collapse: separate;
    border-spacing: 0 3px;
}

.ranking-section .b-ratings__table td {
    color: #3b2818 !important;
    padding: 1px 2px;
    vertical-align: middle;
}

.ranking-section .b-ratings__table a,
.ranking-section .b-ratings__table b {
    color: #4a160e !important;
}

.ranking-board .b-ratings__table tbody tr {
    background: linear-gradient(180deg, rgba(255, 236, 194, 0.88), rgba(214, 177, 117, 0.82));
    border-radius: 4px;
}

.ranking-board .b-ratings__table img {
    max-width: 18px;
    max-height: 18px;
}

.ranking-board .b-ratings__table__num {
    width: 22px;
}

.ranking-board .b-ratings__table-inner__race {
    width: 24px;
}

.mobile-menu {
    background: rgba(3, 6, 10, 0.66) !important;
    backdrop-filter: blur(12px);
}

.mobile-menu-content {
    max-width: 390px !important;
    border-radius: 0 !important;
}

body > div[style*="grid-template-columns: 200px 1fr 200px"] {
    min-height: 46px !important;
    padding: 7px 22px !important;
    background:
        linear-gradient(180deg, rgba(39, 46, 58, 0.94), rgba(7, 10, 15, 0.96)),
        linear-gradient(90deg, rgba(101, 217, 255, 0.08), rgba(255, 210, 122, 0.1), rgba(255, 73, 60, 0.08)) !important;
    border-top: 1px solid rgba(255, 210, 122, 0.34) !important;
    box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(16px);
}

body > div[style*="grid-template-columns: 200px 1fr 200px"] a {
    color: #dbe8f7 !important;
    border-radius: 4px !important;
}

body > div[style*="grid-template-columns: 200px 1fr 200px"] a:hover {
    color: var(--home-cyan) !important;
    background: rgba(101, 217, 255, 0.08) !important;
    border-color: rgba(101, 217, 255, 0.28) !important;
}

body > div[style*="grid-template-columns: 200px 1fr 200px"] > div:first-child,
body > div[style*="grid-template-columns: 200px 1fr 200px"] span {
    color: #dbe8f7 !important;
}

body > div[style*="grid-template-columns: 200px 1fr 200px"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 122, 0.72), transparent);
}

@media (max-width: 1180px) {
    .main-container {
        width: min(100% - 24px, 980px) !important;
    }

    .game-header {
        grid-template-columns: 1fr auto;
    }

    .game-header > a {
        grid-column: 1 / -1;
        order: -1;
    }

    .hero-copy {
        grid-column: 1;
    }

    .hero-status {
        grid-column: 2;
    }

    .game-layout {
        grid-template-columns: 1fr !important;
    }

    .first-battle-showcase {
        grid-template-columns: 1fr;
    }

    .first-battle-showcase__actions {
        flex-direction: row;
        min-width: 0;
    }

    .main-content,
    .left-sidebar {
        grid-column: 1;
    }

    .left-sidebar {
        grid-row: 1;
        position: static !important;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
    }

    .main-content {
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 132px !important;
    }

    .main-container {
        width: calc(100% - 16px) !important;
        padding-top: 10px !important;
    }

    .game-header {
        grid-template-columns: 1fr auto;
        min-height: 0;
        padding: 12px 8px 18px !important;
        gap: 12px;
    }

    .game-header > a {
        grid-column: 1;
        justify-self: start;
    }

    .game-logo {
        width: 92px !important;
        max-width: 92px !important;
    }

    .hero-copy {
        grid-column: 1 / -1;
        max-width: none;
    }

    .hero-copy h1,
    .hero-copy .hero-title {
        font-size: 28px;
    }

    .hero-status {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: flex-start;
    }

    .mobile-menu-toggle {
        display: block !important;
        grid-column: 2;
        grid-row: 1;
    }

    .main-content,
    .sidebar-panel,
    .content-section {
        padding: 10px !important;
    }

    .nav-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .news-item {
        padding: 13px !important;
    }

    .news-item__top {
        flex-direction: column;
        gap: 8px !important;
    }

    .news-item .b-news-footer__cont,
    .news-comment-item .b-news-footer__cont {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        grid-template-columns: 1fr;
    }

    .hero-status span {
        width: 100%;
        justify-content: center;
    }

    .first-battle-showcase {
        padding: 16px;
    }

    .first-battle-showcase__actions {
        flex-direction: column;
    }

    .ranking-tabs,
    .ranking-type-tabs {
        justify-content: stretch !important;
    }

    .ranking-tab,
    .ranking-type-tab {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-container::before,
    .main-container::after,
    .world-status-panel::before,
    .first-battle-showcase::before {
        animation: none !important;
    }
}
