﻿:root {
    --asphalt: #0b0c0e;
    --panel: #16181c;
    --panel-2: #1d2025;
    --hairline: #2a2d33;
    --gold: #e8a934;
    --gold-dim: #a97a26;
    --red: #d6534a;
    --green: #3fae7a;
    --purple: #9a6fd6;
    --brown: #b5793f;
    --text: #ece9e2;
    --text-muted: #8d8a82;
    --font-display: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background: var(--asphalt);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
}
/* Fundo com screenshot do jogo (mesmo mecanismo do site real: /background/random.php),
     desfocado e escurecido para não brigar com a paleta dourado/asfalto */
.bg-photo {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(180deg, rgba(11,12,14,.62), rgba(11,12,14,.72)), url('https://darkstreetrp.com.br/content/images/site/background/random.php');
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(.92) saturate(.92);
}

a {
    color: inherit;
    text-decoration: none;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .01em;
}
/* ---------- HERO (cinematográfico, inspirado na composição do site do GTA VI —
     não no visual: aqui é só posicionamento/espaçamento/sensação, mantendo a
     identidade preta/dourada e o mesmo background do jogo) ---------- */
.hero {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 22px 24px 34px;
    overflow: hidden;
}
    /* O hero NÃO busca uma foto própria — usa a mesma foto compartilhada do .bg-photo
     (que fica atrás de toda a página), só que aqui, no topo/centro, o véu é mais
     fraco pra revelar mais dela. Isso evita duas requisições ao random.php trazendo
     fotos diferentes (era isso que causava a "emenda" visível ao rolar pra baixo). */
    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(11,12,14,.5) 0%, rgba(11,12,14,.12) 30%, rgba(11,12,14,.2) 62%, rgba(11,12,14,.72) 100%);
    }

.hero-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 52px;
}

.hero-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
    /* Luz dourada atrás do logo — igual ao efeito que glorificava a logo nas versões
     antigas do site, só que via CSS (glow radial + blur), sem precisar de asset novo. */
    .hero-center::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 460px;
        max-width: 100vw;
        height: 340px;
        background: radial-gradient(ellipse at center, rgba(232,169,52,.28) 0%, rgba(232,169,52,.12) 42%, transparent 72%);
        filter: blur(28px);
        z-index: -1;
        pointer-events: none;
    }

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

/* Coluna de redes sociais flutuando na lateral do hero — só aparece em telas
     largas (em mobile o rodapé já resolve, não tem espaço sobrando aqui). */
.hero-socials {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-socials-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(236,233,226,.4);
    margin-bottom: 4px;
}

.hero-socials-line {
    width: 1px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.22), transparent);
}

.hero-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11,12,14,.5);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(236,233,226,.78);
    font-size: 14px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

    .hero-socials a:hover {
        color: #1a1408;
        background: var(--gold);
        border-color: var(--gold);
        transform: scale(1.1);
    }

@media (max-width:1200px) {
    .hero-socials {
        display: none;
    }
}

.hero-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(11,12,14,.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: rgba(236,233,226,.78);
    margin-bottom: 22px;
}

    .hero-badge b {
        color: var(--gold);
        font-weight: 700;
    }

.badge-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.badge-sep {
    opacity: .45;
}

.wordmark-logo {
    position: relative;
    display: block;
    width: min(360px,58vw);
    height: auto;
    filter: drop-shadow(0 0 22px rgba(232,169,52,.4)) drop-shadow(0 0 50px rgba(232,169,52,.22));
}

.wordmark-sub {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(13px,2vw,18px);
    color: var(--text);
    letter-spacing: .36em;
    text-transform: uppercase;
    margin-top: 12px;
}

.typewrite {
    margin-top: 14px;
    font-size: clamp(15px,2vw,20px);
    color: rgba(236,233,226,.7);
    min-height: 1.4em;
}

    .typewrite .cursor {
        border-right: 2px solid var(--gold);
        padding-right: 3px;
    }

/* HUD console — agora translúcido/glass, integrado ao background em vez de um
     painel opaco empilhado por cima dele. */
.hud {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4,minmax(140px,1fr));
    gap: 1px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    overflow: hidden;
    max-width: 880px;
    width: 100%;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.hud-cell {
    background: rgba(11,12,14,.42);
    padding: 14px 18px;
    text-align: left;
    transition: background .2s ease;
}

    .hud-cell:hover {
        background: rgba(11,12,14,.62);
    }

.hud-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(236,233,226,.55);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-value {
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: 700;
    margin-top: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    box-shadow: 0 0 8px var(--green);
}

    .status-dot.off {
        background: var(--red);
        box-shadow: 0 0 8px var(--red);
    }

.bar-track {
    height: 4px;
    background: rgba(255,255,255,.12);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
}

/* IP e downloads: mais discretos, texto pequeno sobre o background em vez de chips
     com borda cheia. */
.hero-ip {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
    /* IP é a informação mais crítica pra um servidor SAMP — precisa ser lido e copiado
     rápido, então vira um destaque tipo botão, não um texto discreto perdido no rodapé. */
    .hero-ip .chip-ip {
        font-family: var(--font-mono);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: .01em;
        color: var(--text);
        background: rgba(232,169,52,.12);
        border: 1.5px solid rgba(232,169,52,.6);
        border-radius: 8px;
        padding: 12px 22px 12px 18px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 8px 24px rgba(232,169,52,.08);
        transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
    }

        .hero-ip .chip-ip::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            content: "\f0c5";
            color: var(--gold);
            font-size: 14px;
        }

        .hero-ip .chip-ip:hover {
            background: rgba(232,169,52,.22);
            border-color: var(--gold);
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(232,169,52,.18);
        }

.hero-downloads {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(236,233,226,.4);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

    .hero-downloads a {
        border-bottom: 1px dotted rgba(255,255,255,.14);
        transition: color .2s ease, border-color .2s ease;
    }

        .hero-downloads a:hover {
            color: var(--gold);
            border-bottom-color: var(--gold);
        }

    .hero-downloads .chip-secondary {
        border-bottom: 1px dashed rgba(255,255,255,.2);
        padding: 2px 2px;
        cursor: pointer;
        transition: color .2s ease, border-color .2s ease;
    }

        .hero-downloads .chip-secondary:hover {
            border-color: var(--gold);
            color: var(--gold);
        }

    .hero-downloads .downloads-sep {
        opacity: .4;
    }

/* ---------- NAV — integrada ao topo, barra de vidro translúcida ---------- */
.nav-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.nav-inner {
    max-width: 96%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 20px 38px;
    flex-wrap: wrap;
    border-radius: 999px;
    background: rgba(9,10,11,.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(232,169,52,.28);
    box-shadow: 0 16px 42px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
}

    .nav-inner a {
        font-family: var(--font-mono);
        font-size: 12.5px;
        letter-spacing: .07em;
        text-transform: uppercase;
        font-weight: 700;
        color: rgba(236,233,226,.75);
        background: transparent;
        border: none;
        padding: 3px 1px;
        position: relative;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color .2s ease;
    }

        .nav-inner a::after {
            content: '';
            position: absolute;
            left: 0;
            right: 100%;
            bottom: -5px;
            height: 1px;
            background: var(--gold);
            transition: right .25s ease;
        }

        .nav-inner a:hover {
            color: var(--gold);
        }

            .nav-inner a:hover::after {
                right: 0;
            }

        .nav-inner a.discord:hover {
            color: #8ea6ff;
        }

            .nav-inner a.discord:hover::after {
                background: #8ea6ff;
            }

/* ---------- SECTIONS ---------- */
section {
    padding: 90px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-head {
    position: relative;
    margin-bottom: 40px;
    padding: 22px 60px 22px 26px;
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(11,12,14,.72) 0%, rgba(11,12,14,.5) 55%, rgba(11,12,14,0) 100%);
    border-radius: 0 14px 14px 0;
    overflow: hidden;
}

    .section-head::after {
        content: attr(data-index);
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-family: var(--font-display);
        font-size: clamp(56px,7vw,92px);
        line-height: 1;
        color: rgba(255,255,255,.045);
        pointer-events: none;
        z-index: -1;
    }

    .section-head h2 {
        font-size: clamp(28px,4vw,42px);
        color: var(--text);
        margin-top: 6px;
    }

    .section-head p {
        color: var(--text-muted);
        max-width: 520px;
        margin-top: 10px;
    }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 18px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 22px;
}

    .card .tag {
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--gold);
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .card h3 {
        font-family: var(--font-body);
        font-weight: 700;
        font-size: 17px;
        margin: 8px 0 6px;
    }

    .card p {
        color: var(--text-muted);
        font-size: 14px;
    }

    .card .date {
        margin-top: 14px;
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--text-muted);
        border-top: 1px solid var(--hairline);
        padding-top: 10px;
    }

.players-table {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    overflow: hidden;
}

    .players-table table {
        width: 100%;
        border-collapse: collapse;
        font-family: var(--font-mono);
        font-size: 13px;
    }

    .players-table th {
        text-align: left;
        padding: 14px 20px;
        color: var(--gold);
        text-transform: uppercase;
        letter-spacing: .08em;
        font-size: 11px;
        border-bottom: 1px solid var(--hairline);
    }

    .players-table td {
        padding: 12px 20px;
        border-bottom: 1px solid var(--hairline);
        color: var(--text);
    }

    .players-table tr:last-child td {
        border-bottom: none;
    }

    .players-table .empty-state {
        text-align: center;
        padding: 44px 24px;
    }

        .players-table .empty-state i {
            font-size: 26px;
            color: var(--gold);
            margin-bottom: 12px;
            display: block;
        }

        .players-table .empty-state strong {
            display: block;
            font-family: var(--font-body);
            font-size: 16px;
            color: var(--text);
            margin-bottom: 6px;
        }

        .players-table .empty-state span {
            display: block;
            color: var(--text-muted);
            font-size: 13.5px;
        }

        .players-table .empty-state b {
            color: var(--gold);
        }

/* Aviso no hero quando o servidor está offline — direciona pro Discord. */
.hero-offline-notice {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(214,83,74,.12);
    border: 1px solid rgba(214,83,74,.4);
    border-radius: 10px;
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: rgba(236,233,226,.85);
}

    .hero-offline-notice i {
        color: var(--red);
    }

    .hero-offline-notice a {
        color: var(--gold);
        font-weight: 700;
        border-bottom: 1px dashed rgba(232,169,52,.5);
    }

        .hero-offline-notice a:hover {
            border-bottom-color: var(--gold);
        }

.historia-panel {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 36px;
}

    .historia-panel .timeline {
        position: relative;
        display: grid;
        gap: 24px;
        padding-left: 30px;
    }

        .historia-panel .timeline::before {
            content: '';
            position: absolute;
            top: 6px;
            bottom: 6px;
            left: 7px;
            width: 2px;
            background: var(--hairline);
        }

.timeline .item {
    position: relative;
    margin: 0;
}

    .timeline .item::before {
        content: '';
        position: absolute;
        left: -28px;
        top: 5px;
        width: 12px;
        height: 12px;
        border: 3px solid var(--gold);
        border-radius: 50%;
        background: var(--panel);
    }

    .timeline .item.current::before {
        background: var(--gold);
        box-shadow: 0 0 14px rgba(232,169,52,.55);
    }

    .timeline .item .date {
        font-family: var(--font-mono);
        color: var(--gold);
        font-size: 13px;
    }

    .timeline .item h3 {
        font-family: var(--font-body);
        font-size: 16px;
        font-weight: 700;
        margin-top: 3px;
    }

    .timeline .item p {
        font-size: 14px;
        color: var(--text-muted);
        margin-top: 4px;
        max-width: 760px;
    }

.history-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

    .history-summary p {
        color: var(--text-muted);
        max-width: 620px;
    }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #1a1408;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background: #f2ba54;
    }

    .btn.ghost {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--hairline);
    }

        .btn.ghost:hover {
            border-color: var(--gold);
            color: var(--gold);
        }

.slideshow-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--panel);
    aspect-ratio: 16/9;
}

.mySlides {
    display: none;
}

    .mySlides img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mySlides .numbertext {
        position: absolute;
        top: 14px;
        left: 14px;
        font-family: var(--font-mono);
        font-size: 12px;
        background: rgba(11,12,14,.7);
        padding: 4px 10px;
        border-radius: 999px;
        color: var(--text);
    }

.slideshow-nav {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    pointer-events: none;
}

    .slideshow-nav a {
        pointer-events: auto;
        cursor: pointer;
        user-select: none;
        position: relative;
        top: -46px;
        width: 38px;
        height: 38px;
        margin: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(11,12,14,.7);
        border: 1px solid var(--hairline);
        color: var(--text);
        font-weight: 700;
    }

        .slideshow-nav a:hover {
            border-color: var(--gold);
            color: var(--gold);
        }

.dots-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hairline);
    cursor: pointer;
}

    .dot.active {
        background: var(--gold);
    }

.gallery-empty {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 18px;
}

.coin-card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

    .coin-card i {
        font-size: 28px;
        color: var(--gold);
    }

    .coin-card .amount {
        font-family: var(--font-mono);
        font-size: 24px;
        font-weight: 700;
        margin: 10px 0 4px;
    }

    .coin-card .price {
        color: var(--text-muted);
        font-size: 13px;
        margin-bottom: 16px;
    }

    .coin-card.featured {
        border-color: var(--gold);
    }

.discord-feed {
    display: grid;
    gap: 18px;
}

.discord-message {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 24px;
}

.discord-message-content {
    color: var(--text);
    overflow-wrap: anywhere;
}

    .discord-message-content img {
        max-width: 100%;
        height: auto;
    }

.discord-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

    .discord-message-meta a {
        color: var(--gold);
    }

.feed-loading {
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: 16px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 18px;
}

.news-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: left;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 22px;
    transition: border-color .2s ease, transform .2s ease;
}

    .news-card:hover, .news-card:focus {
        border-color: var(--gold);
        transform: translateY(-2px);
        outline: none;
    }

    .news-card h3 {
        font-family: var(--font-body);
        font-weight: 700;
        font-size: 17px;
        margin: 8px 0 6px;
    }

    .news-card p {
        color: var(--text-muted);
        font-size: 14px;
    }

    .news-card .date {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        align-items: center;
        margin-top: auto;
        padding-top: 14px;
        border-top: 1px solid var(--hairline);
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--text-muted);
    }

    .news-card .open-label {
        margin-left: auto;
        color: var(--gold);
    }

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
}

    .news-modal[hidden] {
        display: none;
    }

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.76);
    backdrop-filter: blur(4px);
}

.news-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(800px,100%);
    max-height: min(82vh,780px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.news-modal-title {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
}

.icon-button {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    cursor: pointer;
}

    .icon-button:hover, .icon-button:focus {
        color: var(--gold);
        border-color: var(--gold);
        outline: none;
    }

.news-modal-content {
    color: var(--text);
    overflow-wrap: anywhere;
}

    .news-modal-content img {
        max-width: 100%;
        height: auto;
    }

    .news-modal-content p, .news-modal-content ul, .news-modal-content ol {
        margin: 0 0 14px;
    }

.modal-open {
    overflow: hidden;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

    .back-to-top:hover, .back-to-top:focus {
        color: #1a1408;
        background: var(--gold);
        border-color: var(--gold);
        outline: none;
    }

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 18px;
}

.dev-card {
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 26px 16px;
}

.dev-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--gold);
    font-weight: 700;
}

.dev-card h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
}

.role-badge {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    color: var(--text-muted);
}

    .role-badge.purple {
        color: var(--purple);
        border-color: var(--purple);
    }

    .role-badge.brown {
        color: var(--brown);
        border-color: var(--brown);
    }

    .role-badge.red {
        color: var(--red);
        border-color: var(--red);
    }

footer {
    border-top: 1px solid var(--hairline);
    padding: 40px 24px;
    text-align: center;
}

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .socials a {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid rgba(232,169,52,.25);
        background: rgba(255,255,255,.03);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--text-muted);
        box-shadow: 0 6px 18px rgba(0,0,0,.25);
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    }

        .socials a:hover {
            color: #1a1408;
            background: var(--gold);
            border-color: var(--gold);
            transform: translateY(-3px);
            box-shadow: 0 10px 26px rgba(232,169,52,.28);
        }

.socials-divider {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,.15);
    margin: 0 2px;
}

footer .copy {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width:720px) {
    .historia-panel {
        padding: 24px;
    }

    .hud {
        grid-template-columns: repeat(2,1fr);
    }

    .news-modal {
        padding: 12px;
    }

    .news-modal-dialog {
        padding: 20px;
        max-height: 88vh;
    }

    .hero {
        padding: 16px 16px 24px;
    }

    .hero-top {
        margin-bottom: 32px;
    }

    .hero-bottom {
        margin-top: 28px;
    }

    .nav-inner {
        gap: 16px;
        padding: 12px 20px;
    }

        .nav-inner a {
            font-size: 11px;
        }

    .hero-ip .chip-ip {
        font-size: 13px;
        padding: 10px 16px;
    }

    .section-head {
        padding: 18px 36px 18px 20px;
    }
}

@media (max-width:480px) {
    .nav-inner {
        border-radius: 20px;
        gap: 12px 18px;
        padding: 14px 18px;
    }

    .hero-badge {
        border-radius: 14px;
        font-size: 10px;
        padding: 8px 14px;
        gap: 4px 8px;
    }
}
