
:root {
    --bg: #05070a;
    --panel: #11161d;
    --panel-2: #0b1017;
    --line: #263348;
    --line-strong: #9c7b27;
    --blue: #0b1f3a;
    --blue-2: #123c69;
    --gold: #d6a934;
    --gold-soft: #e6c86a;
    --green: #34d177;
    --red: #ef4444;
    --text: #e8dfc8;
    --muted: #aaa08d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(5,7,10,.88), rgba(5,7,10,.95)),
        radial-gradient(circle at 18% 8%, rgba(18,60,105,.35), transparent 30%),
        radial-gradient(circle at 82% 85%, rgba(214,169,52,.15), transparent 34%),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0, rgba(255,255,255,.022) 1px, transparent 1px, transparent 5px);
    pointer-events: none;
    z-index: -1;
}

.wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 18px;
}

.container {
    width: 100%;
    max-width: 1180px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, rgba(16,22,30,.98), rgba(8,10,13,.99));
    box-shadow: 0 0 0 4px rgba(6,26,61,.65), 0 28px 90px rgba(0,0,0,.72), 0 0 34px rgba(214,169,52,.08);
}

.topbar {
    background: linear-gradient(90deg, var(--blue), #090d12, var(--blue-2));
    border-bottom: 1px solid var(--gold);
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    color: var(--gold-soft);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nav a {
    color: var(--gold-soft);
    text-decoration: none;
    border: 1px solid rgba(214,169,52,.45);
    padding: 7px 10px;
    background: rgba(0,0,0,.25);
}

.nav a:hover { border-color: var(--gold); color: #fff3c4; }

.status-mini {
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    background: #0a0d12;
    font-weight: bold;
    white-space: nowrap;
}

.hero {
    padding: 34px 34px 22px;
    border-bottom: 1px solid var(--line);
}

.label {
    display: inline-block;
    background: var(--blue-2);
    color: var(--gold-soft);
    border: 1px solid var(--gold);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: .92;
    color: #f0e5c9;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 4px 4px 0 var(--blue), 0 0 24px rgba(214,169,52,.24);
}

.subtitle {
    margin: 18px 0 0;
    color: #c9bea7;
    font-size: 17px;
    max-width: 920px;
    line-height: 1.6;
}

.content {
    padding: 28px 34px 34px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
}

.content.single { grid-template-columns: 1fr; }

.panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.panel-title {
    background: linear-gradient(90deg, var(--blue-2), #171814);
    border-bottom: 1px solid var(--gold);
    padding: 12px 16px;
    color: var(--gold-soft);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-body { padding: 20px; }

.server-name {
    font-size: 25px;
    font-weight: bold;
    color: #fff4d0;
    margin-bottom: 16px;
}

.ip-box {
    background: linear-gradient(135deg, rgba(11,31,58,.78), rgba(5,7,10,.94));
    border: 1px solid var(--gold);
    padding: 18px;
    font-family: Consolas, monospace;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: inset 0 0 22px rgba(0,0,0,.9), 0 0 15px rgba(214,169,52,.16);
    margin-bottom: 16px;
    text-align: center;
    color: #fff2bd;
}

.ip-br .a { color: #42d982; }
.ip-br .b { color: var(--gold-soft); }
.ip-br .c { color: #76b7ff; }
.ip-br .port { color: #f7f4ec; }

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    background: linear-gradient(#123c69, #0b1f3a);
    color: #ffe9a0;
    border: 1px solid var(--gold);
    padding: 12px 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 3px 3px 0 #06080b;
    display: inline-block;
}

.btn:hover { background: linear-gradient(#17518e, #123c69); color: #fff; }
.btn.secondary { background: linear-gradient(#202831, #11161d); }

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat {
    background: rgba(0,0,0,.28);
    border: 1px solid var(--line);
    padding: 14px;
}

.stat small {
    display: block;
    color: #c0cce0;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 8px;
}

.stat strong {
    color: #fff4d0;
    font-size: 22px;
}

.online { color: var(--green) !important; }
.offline { color: var(--red) !important; }

.briefing {
    line-height: 1.75;
    color: #d6c9ad;
    margin: 0;
    padding-left: 18px;
}

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

.game-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(18,60,105,.34), rgba(0,0,0,.26));
    border: 1px solid var(--line);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.game-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -50px;
    bottom: -50px;
    border: 1px solid rgba(214,169,52,.25);
    transform: rotate(35deg);
}

.game-card h2 { margin: 0 0 10px; color: #fff2bd; text-transform: uppercase; }
.game-card p { color: #c7bea9; line-height: 1.55; }
.game-card .meta { color: var(--gold-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.maps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: 12px;
}

.map {
    border: 1px solid #274b8d;
    background: linear-gradient(135deg, rgba(11,47,107,.24), #101318);
    padding: 10px;
    color: #ffe4a0;
    text-transform: uppercase;
    font-size: 13px;
}

.rules {
    color: #cfc1a6;
    line-height: 1.6;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.gametracker-banner {
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--gold);
    background: #080808;
    box-shadow: 3px 3px 0 #06080b;
}

.gametracker-banner img {
    display: block;
    max-width: 100%;
    height: auto;
}

.notice {
    border-left: 3px solid var(--gold);
    background: rgba(214,169,52,.08);
    padding: 12px 14px;
    color: #ddd2b8;
    line-height: 1.55;
}

.footer {
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    color: #8f866f;
    text-align: center;
    font-size: 12px;
    background: #07090c;
}

.server-banner {
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #d6a934;
    background: #05070a;
    box-shadow: 3px 3px 0 #020202;
}

.server-banner img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===================================== */
/* X-FAST BR - HOTFIX MOBILE DEFINITIVO  */
/* ===================================== */

@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body {
        margin: 0 !important;
    }

    .wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 12px !important;
        margin: 0 !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        border-width: 1px !important;
        box-shadow: 0 0 0 2px rgba(6,26,61,.65), 0 18px 45px rgba(0,0,0,.72) !important;
    }

    .topbar {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 12px !important;
        gap: 12px !important;
    }

    .topbar span {
        width: 100% !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        letter-spacing: 1px !important;
    }

    .nav {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .nav a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 38px !important;
        padding: 9px 6px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .hero {
        width: 100% !important;
        padding: 24px 18px 22px !important;
    }

    .label {
        font-size: 11px !important;
        line-height: 1.4 !important;
        letter-spacing: 1px !important;
        padding: 7px 10px !important;
    }

    h1 {
        font-size: 34px !important;
        line-height: 1.05 !important;
        letter-spacing: 3px !important;
        word-break: break-word !important;
    }

    .subtitle {
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 16px !important;
        gap: 18px !important;
    }

    .content.single {
        display: flex !important;
        flex-direction: column !important;
    }

    .panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .panel-title {
        width: 100% !important;
        padding: 13px 15px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        letter-spacing: 1px !important;
    }

    .panel-body {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        overflow: hidden !important;
    }

    .server-name {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .ip-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 8px !important;
        font-size: 17px !important;
        line-height: 1.35 !important;
        letter-spacing: 1px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .buttons {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 13px 10px !important;
        font-size: 13px !important;
    }

    .gametracker-banner,
    .server-banner {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        margin: 16px 0 !important;
    }

    .gametracker-banner img,
    .server-banner img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .stats,
    .status-grid,
    .maps,
    .cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .stat,
    .status-card,
    .map {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .stat strong,
    .status-card strong {
        font-size: 21px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    .briefing {
        padding-left: 18px !important;
        line-height: 1.65 !important;
    }

    .briefing li {
        margin-bottom: 9px !important;
    }

    .rules,
    .notice {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
        overflow-wrap: anywhere !important;
    }

    .footer {
        width: 100% !important;
        padding: 16px 10px !important;
        text-align: center !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 420px) {
    .wrap {
        padding: 8px !important;
    }

    .content {
        padding: 12px !important;
    }

    .hero {
        padding: 20px 14px 18px !important;
    }

    h1 {
        font-size: 30px !important;
        letter-spacing: 2px !important;
    }

    .panel-body {
        padding: 14px !important;
    }

    .ip-box {
        font-size: 15px !important;
        letter-spacing: 1px !important;
    }

    .nav a {
        font-size: 10px !important;
        padding: 8px 5px !important;
    }
}