:root {
    --bg: #07090d;
    --graphite: #11151b;
    --panel: #151a22;
    --line: #262e39;
    --text: #f5f7fb;
    --muted: #98a2b3;

    --red: #ef3046;
    --red2: #8e1324;
    --blue: #4484ff;
    --gold: #e3b24f;
    --green: #48d597;

    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.home-ambassador-strip{padding:22px 0;background:#080b0f}.home-ambassador-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px 22px;border:1px solid rgba(239,184,69,.5);border-radius:18px;background:radial-gradient(circle at 0 50%,rgba(239,184,69,.16),transparent 32%),linear-gradient(135deg,#15180f,#091019);color:#f7f8fa;text-decoration:none;box-shadow:0 18px 50px rgba(0,0,0,.24)}.home-ambassador-mark{width:60px;height:60px;display:grid;place-items:center;border:1px solid rgba(239,184,69,.45);border-radius:16px;background:#211708;font-size:1.75rem}.home-ambassador-card small,.home-ambassador-card strong,.home-ambassador-card em{display:block}.home-ambassador-card small{color:#efb845;font-weight:900;letter-spacing:.13em}.home-ambassador-card strong{margin-top:4px;font-size:1.1rem}.home-ambassador-card em{margin-top:5px;color:#aab7c2;font-style:normal}.home-ambassador-card>b{color:#ffd777;font-size:.86rem;letter-spacing:.08em}.home-ambassador-card:hover{transform:translateY(-2px);border-color:#ffd777}@media(max-width:680px){.home-ambassador-strip{padding:14px 12px}.home-ambassador-card{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:14px}.home-ambassador-mark{width:46px;height:46px;border-radius:13px;font-size:1.35rem}.home-ambassador-card>b{grid-column:2;font-size:.7rem}.home-ambassador-card strong{font-size:.88rem}.home-ambassador-card em{font-size:.72rem}}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(227, 178, 79, 0.09),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #0a0d12,
            #05070a 65%
        );

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}

a {
    color: inherit;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}


/* =========================================================
   TOP NAVIGATION
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;

    background: rgba(7, 9, 13, 0.82);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;

    font-weight: 950;
    letter-spacing: 0.04em;
}



.brand-dragon {
    display: block;

    width: 210px;
    height: 62px;
    max-width: 100%;

    object-fit: contain;
    object-position: left center;

    flex-shrink: 0;

    filter:
        drop-shadow(
            0 4px 8px
            rgba(0, 0, 0, 0.65)
        )
        drop-shadow(
            0 0 8px
            rgba(239, 48, 70, 0.25)
        );
}
.navlinks {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navlinks a {
    text-decoration: none;

    color: #d8dde7;

    font-size: 14px;
    font-weight: 750;
}

.navlinks a:hover {
    color: var(--gold);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    min-height: 46px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: #121720;
    color: var(--text);

    font: inherit;
    font-weight: 850;

    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: #3a4554;
}

.btn-gold {
    border: 0;

    color: #171108;

    background:
        linear-gradient(
            135deg,
            #f2cf72,
            #c7892f
        );

    box-shadow:
        0 12px 28px rgba(199, 137, 47, 0.18);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 84px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;

    gap: 46px;

    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid rgba(227, 178, 79, 0.2);
    border-radius: 999px;

    background: rgba(227, 178, 79, 0.06);

    color: #eacb83;

    text-transform: uppercase;
    letter-spacing: 0.13em;

    font-size: 12px;
    font-weight: 900;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    margin: 18px 0;

    font-size: clamp(50px, 8vw, 92px);
    line-height: 0.92;

    letter-spacing: -0.055em;
}

.goldtext {
    background:
        linear-gradient(
            180deg,
            #fff0b8,
            #dfaa42 58%,
            #8e5c19
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 680px;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.72;
}

.actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;
}


/* =========================================================
   MILITARY CARD
   ========================================================= */

.military-card {
    position: relative;
    overflow: hidden;

    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(26, 32, 42, 0.96),
            rgba(10, 13, 18, 0.98)
        );

    box-shadow: var(--shadow);
}

.military-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.015) 0 1px,
            transparent 1px 8px
        );

    pointer-events: none;
}


/* =========================================================
   MINI VS
   ========================================================= */

.mini-vs {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 15px;

    margin: 20px 0;
}

.team-box {
    padding: 20px 10px;

    text-align: center;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: #0f141c;
}

.team-box strong {
    font-size: 28px;
}

.team-box small {
    display: block;

    margin-top: 6px;

    color: var(--muted);
}

.ride strong {
    color: #ff5368;
}

.onestr strong {
    color: #72a0ff;
}

.score {
    color: #f0c76d;

    font-size: 34px;
    font-weight: 950;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 70px 0;
}

.section-head {
    max-width: 760px;

    margin: 0 auto 34px;

    text-align: center;
}

.section-head h2 {
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.section-head p {
    color: var(--muted);
    line-height: 1.7;
}


/* =========================================================
   FEATURES
   ========================================================= */

.grid3 {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.feature {
    padding: 24px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.025);
}

.feature .icon {
    font-size: 28px;
}

.feature p {
    color: var(--muted);
    line-height: 1.65;
}


/* =========================================================
   SUPPORT / PAYPAL
   ========================================================= */

.support-grid {
    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 18px;
}

/* =========================================================
   PAYPAL SUPPORT BOX
   ========================================================= */

.paypal-box {
    position: relative;
    overflow: hidden;

    padding: 28px;

    border: 1px solid #2b3441;
    border-radius: 20px;

    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.012) 0 1px,
            transparent 1px 8px
        ),
        linear-gradient(
            180deg,
            #171d26,
            #0d1118
        );

    color: #f5f7fb;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.35);
}


.paypal-box h3 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 900;
}


.paypal-box > p {
    margin: 0 0 22px;

    color: #98a2b3;

    line-height: 1.6;
}


/* PayPal widget area */

#paypal-container-8SLYN2W9FZA8G {
    width: 100%;

    padding: 18px;

    border: 1px solid rgba(227, 178, 79, 0.15);
    border-radius: 14px;

    background: rgba(5, 8, 13, 0.55);
}

.paypal-fallback {
    width: 100%;
    margin-top: 12px;
}

.paypal-fallback[hidden],
.paypal-fallback-message[hidden] {
    display: none;
}

.paypal-fallback-message {
    margin: 10px 0 0;
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.5;
}
/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 28px 0 44px;

    border-top: 1px solid var(--line);

    color: #7f8898;

    font-size: 12px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;

    gap: 18px;

    flex-wrap: wrap;
}


/* =========================================================
   SUCCESS PAGE
   ========================================================= */

.success {
    min-height: calc(100vh - 70px);

    display: grid;
    place-items: center;

    padding: 30px;
}

.success-card {
    max-width: 720px;

    text-align: center;
}

.success-card .heart {
    font-size: 64px;
}

.success-card h1 {
    font-size: clamp(40px, 7vw, 66px);
}


/* =========================================================
   AUTH / LOGIN
   ========================================================= */

.auth-panel {
    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid var(--line);
}

.auth-row {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    color: #b8c0ce;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.field input {
    width: 100%;
    min-height: 46px;

    padding: 0 13px;

    border: 1px solid #303946;
    border-radius: 10px;

    background: #0a0f16;
    color: #ffffff;

    font: inherit;
}

.notice {
    min-height: 20px;

    margin-top: 10px;

    color: #ff8f9d;

    font-size: 13px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .brand-dragon {
        width: 132px;
        height: 44px;
        max-width: 36vw;
    }

    .hero-grid,
    .support-grid,
    .grid3 {
        grid-template-columns: 1fr;
    }

    .navlinks a:not(.btn) {
        display: none;
    }

    .hero {
        padding-top: 56px;
    }

    .auth-row {
        grid-template-columns: 1fr;
    }

    .mini-vs {
        gap: 8px;
    }

    .team-box strong {
        font-size: 22px;
    }

    .score {
        font-size: 28px;
    }
}

/* =========================================================
   VS TEAM LEADERS
   ========================================================= */

.team-box {
    position: relative;

    overflow: visible;

    padding-top: 80px;
}


.team-leader-wrap {
    position: absolute;

    top: -80px;
    left: 50%;

    width: 150px;
    height: 150px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 5;
}


.team-leader {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 10px 15px
            rgba(0, 0, 0, 0.7)
        );
}

/* Do not expose an empty/broken image while the current matchup logo loads. */
#featuredBattle .team-leader[hidden] {
    display: none;
}


/* =========================================================
   RIDE R5
   ========================================================= */

.team-leader-ride {
    filter:
        drop-shadow(
            0 10px 15px
            rgba(0, 0, 0, 0.7)
        )
        drop-shadow(
            0 0 18px
            rgba(239, 48, 70, 0.35)
        );
}


/* =========================================================
   LEADER NAME
   ========================================================= */

.leader-name {
    display: block;

    margin-bottom: 5px;

    color: #d7dde8;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   R5 BADGE
   ========================================================= */

.r5-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 22px;

    margin-bottom: 8px;

    padding: 0 7px;

    border: 1px solid
        rgba(227, 178, 79, 0.55);

    border-radius: 6px;

    background:
        linear-gradient(
            180deg,
            #f0c75e,
            #a96e1f
        );

    color: #181109;

    font-size: 11px;
    font-weight: 950;
}


/* =========================================================
   RIDE LEADER NAME
   ========================================================= */

.ride .leader-name {
    color: #ff7384;
}


/* =========================================================
   FEATURED DESCRIPTION
   ========================================================= */

.featured-description {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   SUPPORT
   ========================================================= */

.support-title {
    margin: 18px 0;

    font-size: 44px;
}


.support-text {
    color: var(--muted);

    line-height: 1.7;
}

/* =========================================================
   ALLIANCE CHESS - HOME CARD
   ========================================================= */

.chess-feature {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(227, 182, 82, 0.28);

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(241, 59, 77, 0.16),
            transparent 42%
        ),
        radial-gradient(
            circle at 100% 50%,
            rgba(79, 140, 255, 0.16),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #151a21,
            #0b0f14
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* GOLD LINE */

.chess-feature::before {
    content: "";

    position: absolute;

    top: 0;
    left: 15%;
    right: 15%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #e3b652,
            transparent
        );

    opacity: 0.85;
}


/* BACKGROUND CHESS KING */

.chess-feature::after {
    content: "♚";

    position: absolute;

    right: -12px;
    bottom: -48px;

    font-size: 190px;

    color:
        rgba(
            227,
            182,
            82,
            0.035
        );

    line-height: 1;

    pointer-events: none;

    transform:
        rotate(-8deg);
}


/* =========================================================
   CHESS ICON
   ========================================================= */

.chess-feature .icon {
    position: relative;

    z-index: 2;

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border:
        1px solid
        rgba(227, 182, 82, 0.35);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(227, 182, 82, 0.15),
            rgba(227, 182, 82, 0.035)
        );

    font-size: 32px;

    box-shadow:
        inset
        0
        0
        22px
        rgba(227, 182, 82, 0.06);
}


/* =========================================================
   TITLE
   ========================================================= */

.chess-feature h3 {
    position: relative;

    z-index: 2;

    margin-bottom: 12px;

    font-size: 25px;

    color: #ffffff;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.chess-feature p {
    position: relative;

    z-index: 2;

    color: #9ca6b5;

    line-height: 1.65;
}


/* =========================================================
   PLAY BUTTON
   ========================================================= */

.chess-feature .btn {
    position: relative;

    z-index: 3;

    width: 100%;

    min-height: 48px;

    margin-top: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(227, 182, 82, 0.45);

    background:
        linear-gradient(
            135deg,
            #f1d27e,
            #b87827
        );

    color: #171108;

    font-weight: 950;

    letter-spacing: 0.04em;

    text-decoration: none;

    box-shadow:
        0
        8px
        24px
        rgba(184, 120, 39, 0.14);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


/* =========================================================
   DESKTOP HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .chess-feature:hover {
        transform:
            translateY(-5px);

        border-color:
            rgba(227, 182, 82, 0.55);

        box-shadow:
            -10px
            0
            35px
            rgba(241, 59, 77, 0.07),

            10px
            0
            35px
            rgba(79, 140, 255, 0.07),

            0
            22px
            55px
            rgba(0, 0, 0, 0.3);
    }


    .chess-feature .btn:hover {
        transform:
            translateY(-2px);

        filter:
            brightness(1.08);

        box-shadow:
            0
            12px
            30px
            rgba(227, 182, 82, 0.23);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .chess-feature::after {
        right: -8px;
        bottom: -30px;

        font-size: 145px;
    }


    .chess-feature .icon {
        width: 54px;
        height: 54px;

        font-size: 28px;
    }


    .chess-feature h3 {
        font-size: 23px;
    }


    .chess-feature .btn {
        min-height: 52px;

        font-size: 13px;
    }

}
/* =========================================================
   COMMUNITY GAMES
   ========================================================= */

.games-section {
    padding:
        80px
        0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.05);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.05);

    background:
        linear-gradient(
            180deg,
            #080b0f 0%,
            #0b1016 50%,
            #080b0f 100%
        );
}


.games-heading {
    max-width: 700px;

    margin-bottom: 34px;
}


.games-heading h2 {
    margin:
        12px
        0
        8px;

    font-size:
        clamp(
            32px,
            4vw,
            52px
        );

    line-height: 1;

    color: #f5f7fb;
}


.games-heading p {
    margin: 0;

    color: #9ba8ba;

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   GRID
   ========================================================= */

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 22px;
}


/* =========================================================
   GAME CARD
   ========================================================= */

.game-mode-card {
    position: relative;

    min-height: 310px;

    padding: 30px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 24px;

    text-decoration: none;

    color: inherit;

    background: #111720;

    box-shadow:
        0
        18px
        50px
        rgba(0, 0, 0, 0.28);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.game-mode-card::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;
}


/* =========================================================
   VS ARENA
   ========================================================= */

.vs-game-card {
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 67, 83, 0.17),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #15151a,
            #0c1117
        );
}


.vs-game-card::before {
    background:
        linear-gradient(
            120deg,
            rgba(255, 55, 75, 0.05),
            transparent 40%
        );
}


/* =========================================================
   CHESS
   ========================================================= */

.chess-game-card {
    background:
        radial-gradient(
            circle at 10% 30%,
            rgba(240, 55, 70, 0.15),
            transparent 38%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(64, 124, 255, 0.16),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #151922,
            #0b1016
        );
}


.chess-game-card::before {
    content: "♚";

    position: absolute;

    right: 22px;
    bottom: -45px;

    display: flex;

    justify-content: flex-end;
    align-items: flex-end;

    font-size: 230px;

    line-height: 1;

    color:
        rgba(
            230,
            184,
            78,
            0.045
        );
}


/* =========================================================
   TOP
   ========================================================= */

.game-mode-top {
    position: relative;

    z-index: 2;

    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 34px;
}


.game-mode-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    border:
        1px solid
        rgba(230, 184, 78, 0.32);

    background:
        rgba(230, 184, 78, 0.08);

    color: #e7b94c;

    font-size: 30px;
}


.game-mode-status {
    padding:
        7px
        12px;

    border-radius: 999px;

    background:
        rgba(255, 61, 82, 0.12);

    border:
        1px solid
        rgba(255, 61, 82, 0.35);

    color: #ff5366;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.12em;
}


.chess-status {
    background:
        rgba(230, 184, 78, 0.1);

    border-color:
        rgba(230, 184, 78, 0.35);

    color: #e7b94c;
}


/* =========================================================
   TEXT
   ========================================================= */

.game-mode-small {
    position: relative;

    z-index: 2;

    display: block;

    margin-bottom: 9px;

    color: #8793a6;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.13em;
}


.game-mode-card h3 {
    position: relative;

    z-index: 2;

    margin:
        0
        0
        12px;

    color: #ffffff;

    font-size:
        clamp(
            28px,
            3vw,
            40px
        );

    line-height: 1;
}


.game-mode-card p {
    position: relative;

    z-index: 2;

    max-width: 470px;

    margin: 0;

    color: #9ba8ba;

    font-size: 16px;

    line-height: 1.65;
}


/* =========================================================
   BOTTOM BUTTON AREA
   ========================================================= */

.game-mode-bottom {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 30px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);

    color: #e8b84b;

    font-size: 13px;

    letter-spacing: 0.08em;
}


.game-mode-bottom span {
    font-size: 24px;

    transition:
        transform 0.2s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .game-mode-card:hover {
        transform:
            translateY(-7px);

        border-color:
            rgba(230, 184, 78, 0.3);

        box-shadow:
            0
            28px
            70px
            rgba(0, 0, 0, 0.42);
    }


    .game-mode-card:hover
    .game-mode-bottom span {
        transform:
            translateX(6px);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .games-section {
        padding:
            55px
            0;
    }


    .games-grid {
        grid-template-columns:
            1fr;
    }


    .game-mode-card {
        min-height: auto;

        padding: 24px;
    }


    .game-mode-top {
        margin-bottom: 26px;
    }


    .chess-game-card::before {
        font-size: 170px;

        right: 5px;
    }

}


/* =========================================================
   PUBLIC LEADERBOARDS
   ========================================================= */

.leaderboard-section {
    padding: 64px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.leaderboard-section-community {
    background: radial-gradient(circle at 15% 0, rgba(231, 53, 75, 0.08), transparent 42%);
}

.leaderboard-section-chess {
    background: radial-gradient(circle at 85% 0, rgba(90, 139, 255, 0.08), transparent 42%);
}

.leaderboard-section-prediction {
    background: radial-gradient(circle at 15% 0, rgba(230, 184, 78, 0.075), transparent 42%);
}

.leaderboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.leaderboard-heading h1,
.leaderboard-heading h2 {
    margin: 8px 0 7px;
}

.leaderboard-heading p {
    margin: 0;
    color: #98a6b9;
}

.top-ten-label {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid rgba(230, 184, 78, 0.28);
    border-radius: 999px;
    color: #f2c15f;
    background: rgba(230, 184, 78, 0.08);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.home-leaderboard {
    overflow: hidden;
    border: 1px solid #263142;
    border-radius: 19px;
    background: rgba(10, 15, 23, 0.88);
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
}

.leaderboard-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px 58px minmax(220px, 1fr) minmax(220px, auto);
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-row:last-child {
    border-bottom: 0;
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #334054;
    border-radius: 50%;
    color: #aab6c8;
    font-size: 13px;
    font-weight: 950;
}

.leaderboard-rank-1 {
    color: #171108;
    border-color: #f2c15f;
    background: linear-gradient(135deg, #ffe292, #d99c2c);
}

.leaderboard-rank-2 {
    color: #171a20;
    border-color: #d7dde7;
    background: linear-gradient(135deg, #f3f6fb, #aeb8c8);
}

.leaderboard-rank-3 {
    color: #1a100a;
    border-color: #d6925c;
    background: linear-gradient(135deg, #f0b17d, #a95f2d);
}

.leaderboard-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid #38475d;
    border-radius: 14px;
    background: #070b11;
}

.leaderboard-avatar-fallback {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 4px;
    color: #f2c15f;
    background: linear-gradient(145deg, #241a0d, #0b121b);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 1;
    text-align: center;
    text-transform: none;
    word-break: break-word;
}

.leaderboard-player {
    min-width: 0;
}

.leaderboard-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.leaderboard-name-line strong {
    overflow: hidden;
    color: #f7f9fd;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-player small {
    display: block;
    margin-top: 4px;
    color: #8391a6;
}

.leaderboard-alliance {
    padding: 3px 7px;
    border: 1px solid rgba(231, 53, 75, 0.28);
    border-radius: 999px;
    color: #ff687c;
    background: rgba(231, 53, 75, 0.08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.leaderboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.leaderboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid rgba(230, 184, 78, 0.2);
    border-radius: 7px;
    color: #e9c777;
    background: rgba(230, 184, 78, 0.065);
    font-size: 10px;
    font-weight: 800;
}

.leaderboard-stat {
    color: #c7d1df;
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.leaderboard-empty {
    padding: 30px 20px;
    color: #8492a6;
    text-align: center;
}

.leaderboard-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.leaderboard-page-main {
    min-height: 70vh;
    padding: 70px 0 90px;
}

.leaderboard-page-intro {
    margin-bottom: 34px;
}

.leaderboard-page-intro h1 {
    margin: 8px 0 10px;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.leaderboard-page-intro p {
    max-width: 760px;
    color: #9aa8bb;
    line-height: 1.7;
}

.full-leaderboard-section + .full-leaderboard-section {
    margin-top: 54px;
}

@media (max-width: 760px) {
    .leaderboard-section {
        padding: 48px 0;
    }

    .leaderboard-heading {
        align-items: flex-start;
    }

    .leaderboard-row {
        grid-template-columns: 34px 48px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .leaderboard-avatar {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .leaderboard-stat {
        grid-column: 3;
        text-align: left;
    }

    .leaderboard-badge {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* =========================================================
   FACKER1389 NEWS
   ========================================================= */

.home-news-section {
    padding: 64px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: radial-gradient(circle at 82% 10%, rgba(231, 53, 75, 0.09), transparent 42%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #263142;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(17, 24, 34, 0.98), rgba(8, 13, 20, 0.98));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.25);
}

.news-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
    border-bottom: 1px solid #263142;
    background: #090e15;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #05080d;
}

.news-card:hover .news-card-image img {
    transform: none;
}

.news-card-placeholder {
    display: grid;
    place-items: center;
    color: #f1c665;
    background:
        radial-gradient(circle at center, rgba(230, 184, 78, 0.15), transparent 45%),
        linear-gradient(135deg, #171018, #07101b);
    text-decoration: none;
}

.news-card-placeholder span {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 950;
    letter-spacing: 0.09em;
    text-shadow: 0 0 28px rgba(230, 184, 78, 0.28);
}

.news-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.news-card-meta,
.news-story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #8f9caf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-card-meta > span,
.news-story-meta > a {
    color: #f2c15f;
}

.news-card-meta b,
.news-story-meta b {
    color: #ff6e82;
    font-size: 10px;
}

.news-card h2,
.news-card h3 {
    margin: 13px 0 9px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.news-card h2 a,
.news-card h3 a {
    color: #f7f9fd;
    text-decoration: none;
}

.news-card p {
    margin: 0 0 18px;
    color: #9eabbd;
    line-height: 1.65;
}

.news-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #7f8da1;
    font-size: 11px;
}

.news-card-footer a {
    color: #f2c15f;
    font-weight: 900;
    text-decoration: none;
}

.news-empty {
    grid-column: 1 / -1;
    padding: 32px 20px;
    border: 1px solid #263142;
    border-radius: 16px;
    color: #8e9bad;
    background: rgba(9, 14, 21, 0.82);
    text-align: center;
}

.news-page-main,
.news-story-main {
    min-height: 72vh;
    padding: 68px 0 90px;
}

.news-page-intro {
    max-width: 820px;
    margin-bottom: 27px;
}

.news-page-intro h1,
.news-story-header h1 {
    margin: 9px 0 12px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.02;
}

.news-page-intro p,
.news-story-excerpt {
    color: #a4b0c1;
    font-size: 1.08rem;
    line-height: 1.7;
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.news-categories button {
    padding: 9px 12px;
    border: 1px solid #303e50;
    border-radius: 999px;
    color: #b6c0cf;
    background: #0b1119;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.news-categories button.active {
    color: #130e05;
    border-color: #f2c15f;
    background: #f2c15f;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    color: #9ba8ba;
}

.news-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.news-story-wrap {
    max-width: 980px;
}

.news-back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: #f2c15f;
    font-weight: 850;
    text-decoration: none;
}

.news-story,
.news-community {
    overflow: hidden;
    border: 1px solid #263142;
    border-radius: 22px;
    background: rgba(9, 14, 21, 0.94);
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.3);
}

.news-story-header {
    padding: clamp(25px, 5vw, 55px);
}

.news-story-header small {
    color: #7f8da1;
}

.news-story-cover {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #05080d;
    border-block: 1px solid #263142;
}

.news-story-content {
    padding: clamp(25px, 5vw, 55px);
    color: #d0d7e2;
    font-size: 1.04rem;
    line-height: 1.85;
}

.news-story-content p:first-child { margin-top: 0; }
.news-story-content p:last-child { margin-bottom: 0; }

.news-community {
    margin-top: 24px;
}

.news-reaction-panel,
.news-comments-panel {
    padding: clamp(22px, 4vw, 38px);
}

.news-reaction-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #263142;
}

.news-reaction-panel h2,
.news-comments-heading h2 {
    margin: 5px 0 0;
}

.news-reaction-buttons {
    display: flex;
    gap: 9px;
}

.news-reaction-buttons button {
    min-width: 82px;
    padding: 12px 14px;
    border: 1px solid #354459;
    border-radius: 12px;
    color: #dbe2ec;
    background: #0d151f;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.news-reaction-buttons button.active {
    color: #171005;
    border-color: #f2c15f;
    background: #f2c15f;
}

.news-notice {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
    color: #ff8796;
    font-size: 13px;
}

.news-notice a,
.news-login-prompt a { color: #f2c15f; }

.news-comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 19px;
}

.news-comments-heading > strong {
    color: #f2c15f;
    font-size: 1.45rem;
}

.news-comments {
    display: grid;
    gap: 10px;
}

.news-comment {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #273547;
    border-radius: 13px;
    background: #0a1018;
}

.news-comment-avatar {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: cover;
    border: 1px solid #37475c;
    border-radius: 50%;
}

.news-comment-avatar-fallback {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 4px;
    color: #f2c15f;
    background: linear-gradient(145deg, #241a0d, #0b121b);
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    word-break: break-word;
}

.news-comment-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.news-comment-head time {
    color: #7f8da1;
    font-size: 11px;
}

.news-comment p {
    margin: 7px 0 0;
    color: #c4cedc;
    line-height: 1.6;
}

.news-comment > button {
    padding: 5px 8px;
    border: 1px solid #5e3039;
    border-radius: 7px;
    color: #ff8d9a;
    background: #251219;
    cursor: pointer;
}

.news-comment-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.news-comment-form label {
    color: #cbd4df;
    font-weight: 850;
}

.news-comment-form textarea {
    width: 100%;
    resize: vertical;
    padding: 14px;
    border: 1px solid #34445a;
    border-radius: 12px;
    color: #fff;
    background: #070c12;
    font: inherit;
    line-height: 1.55;
}

.news-login-prompt {
    margin: 20px 0 0;
    color: #9aa7b9;
}

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .news-grid { grid-template-columns: 1fr; }
    .home-news-section,
    .news-page-main,
    .news-story-main { padding: 48px 0 65px; }
    .news-card-footer { align-items: flex-start; flex-direction: column; }
    .news-reaction-panel { grid-template-columns: 1fr; }
    .news-comment { grid-template-columns: 42px minmax(0, 1fr); }
    .news-comment-avatar { width: 42px; height: 42px; }
    .news-comment > button { grid-column: 2; justify-self: start; }
}
/* Gift Code Hub preview */
.home-gift-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.home-gift-card{display:grid;gap:9px;padding:17px;border:1px solid rgba(116,146,179,.3);border-radius:13px;background:#0b121b}.home-gift-card>span{color:#70dea3;font-size:.65rem;font-weight:950}.home-gift-card>strong{overflow-wrap:anywhere;color:#fff;font:950 1.15rem/1.1 ui-monospace,Consolas,monospace}.home-gift-card small{color:#9eb0c3}.home-gift-card button{padding:8px;border:0;border-radius:7px;background:#dca33a;color:#120d04;font-weight:950;cursor:pointer}@media(max-width:980px){.home-gift-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.home-gift-grid{grid-template-columns:1fr}}

/* =========================================================
   FACKER1389 - MOBILE HOME FIX
   ========================================================= */

@media (max-width: 600px) {

    /* Cela stranica */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    /* HERO */
    .hero {
        padding-top: 24px;
        padding-bottom: 30px;
    }

    .hero-grid {
        display: block;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 48px);
        line-height: 0.95;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.55;
    }

    /* Enter Arena + Support */
    .hero .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .hero .actions .btn {
        width: 100%;
        min-height: 52px;
        padding: 12px 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 16px;
    }

    /* FEATURED VS BATTLE */
    .featured-battle {
        width: 100%;
        max-width: 100%;
        margin-top: 28px;
        padding: 18px 12px;
        box-sizing: border-box;
    }

    /* RIDE - SCORE - OPPONENT ostaju jedan pored drugog */
    .battle-row,
    .featured-battle-row,
    .teams {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    /* Player kartice */
    .team-box {
        min-width: 0;
        width: 100%;
        padding: 58px 8px 14px;
        box-sizing: border-box;
    }

    /* Slika igrača */
    .team-leader-wrap {
        top: -45px;
        width: 90px;
        height: 90px;
    }

    .team-leader {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Ime igrača */
    .leader-name {
        font-size: 12px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    /* Alliance */
    .team-box strong {
        display: block;
        font-size: 22px;
        line-height: 1.05;
        margin-top: 6px;
    }

    /* Server */
    .team-box small {
        display: block;
        font-size: 12px;
        line-height: 1.2;
        margin-top: 8px;
    }

    /* Rezultat */
    .score {
        min-width: 48px;
        padding: 0 2px;
        font-size: 28px;
        line-height: 1;
        white-space: nowrap;
        text-align: center;
    }

    /* Tekst ispod VS */
    .featured-description {
        margin: 18px 0 0;
        font-size: 15px;
        line-height: 1.5;
        text-align: center;
    }

    /* Sekcije da nemaju ogromne praznine */
    .section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    /* Community naslov */
    .leaderboard-heading {
        gap: 12px;
    }

    .leaderboard-heading h2 {
        font-size: 28px;
        line-height: 1.05;
    }
}

/* Facker Ambassador image replaces the old emoji on the website home card. */
.home-ambassador-mark{overflow:hidden;background:radial-gradient(circle,#281907,#090b0e);font-size:0}
.home-ambassador-mark img{display:block;width:calc(100% - 4px);height:calc(100% - 4px);object-fit:contain;filter:drop-shadow(0 4px 8px rgba(0,0,0,.5))}

/* Restored game artwork: a real image layer stays behind readable card content. */
.game-mode-bg{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:.64;transform:scale(1.01);transition:transform .35s ease,opacity .35s ease}
.game-mode-card::after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(5,8,12,.96) 0%,rgba(7,11,16,.83) 47%,rgba(7,11,16,.43) 100%),linear-gradient(0deg,rgba(4,7,11,.9),transparent 62%)}
.game-mode-card::before{z-index:1}
.chess-game-card::before{content:"";inset:0;right:auto;bottom:auto;background:linear-gradient(120deg,rgba(255,55,75,.09),transparent 42%)}
.hero-arena-card .game-mode-bg{object-position:72% 35%}
.slot-game-card .game-mode-bg{object-position:center 43%}
@media(hover:hover) and (pointer:fine){.game-mode-card:hover .game-mode-bg{transform:scale(1.055);opacity:.76}}
@media(max-width:680px){.game-mode-bg{opacity:.56}.game-mode-card::after{background:linear-gradient(90deg,rgba(5,8,12,.94),rgba(7,11,16,.6)),linear-gradient(0deg,rgba(4,7,11,.92),transparent 58%)}}
