/* ============================================================
   PVP Palworld.cl — tema carmesí geométrico
   ============================================================ */

:root {
    --bg: #050506;
    --bg-2: #0a0a0d;
    --surface: #0e0e12;
    --surface-2: #141419;
    --border: #232329;
    --border-strong: #2e2e36;
    --text: #ececf0;
    --text-muted: #8b8b94;
    --text-dim: #5c5c64;

    --accent: #e6203a;
    --accent-bright: #ff2d4d;
    --accent-dark: #8f0f22;
    --accent-glow: rgba(230, 32, 58, 0.45);
    --accent-soft: rgba(230, 32, 58, 0.12);

    --gold: #ffd166;
    --silver: #c7d1dd;
    --bronze: #d28a5c;

    --font-head: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --radius: 4px;
    --clip-notch: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); }

/* ---------- Fondo ---------- */
.bg-wallpaper {
    position: fixed;
    inset: 0;
    z-index: -5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 30%, transparent 100%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -4;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    z-index: -3;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
}
.bg-glow-1 {
    width: 560px; height: 560px;
    top: -180px; left: -140px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}
.bg-glow-2 {
    width: 480px; height: 480px;
    bottom: -140px; right: -120px;
    background: radial-gradient(circle, rgba(230, 32, 58, 0.22), transparent 70%);
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 6, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}
.brand-mark {
    width: 28px; height: 28px;
    color: var(--accent-bright);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}
.brand-text { color: var(--text); }
.brand-dot { color: var(--accent-bright); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}
.nav-links a {
    position: relative;
    display: block;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--accent-bright);
    clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    width: 22px; height: 2px;
    background: var(--text);
    transition: 0.2s;
}

/* ---------- Layout ---------- */
.main-content { flex: 1; }
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 24px 72px;
}
.hero::before {
    content: "";
    position: absolute;
    top: 40px; right: -60px;
    width: 380px; height: 380px;
    border: 1px solid var(--border-strong);
    transform: rotate(45deg);
    opacity: 0.5;
    z-index: -1;
}
.hero::after {
    content: "";
    position: absolute;
    top: 100px; right: 10px;
    width: 240px; height: 240px;
    border: 1px dashed var(--accent-dark);
    transform: rotate(45deg);
    opacity: 0.4;
    z-index: -1;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    color: var(--accent-bright);
    text-transform: uppercase;
}
.kicker-line {
    width: 40px; height: 1px;
    background: var(--accent-bright);
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 22px 0 20px;
    text-transform: uppercase;
}
.hero-word { display: block; }
.hero-word-accent {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-bright);
    text-shadow: 0 0 40px rgba(230, 32, 58, 0.25);
}

.hero-desc {
    max-width: 560px;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.hstat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hstat-val {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.hstat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 0 28px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
}

/* ---------- Secciones ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
}
.section-title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.title-hash {
    font-family: var(--font-mono);
    color: var(--accent-bright);
    font-size: 1.2rem;
    margin-right: 6px;
}
.section-sub {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ---------- Cards de servidor ---------- */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
}
.server-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
    transition: 0.22s;
    overflow: hidden;
}
.server-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--accent-bright), transparent);
    opacity: 0;
    transition: 0.22s;
}
.server-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.server-card:hover::before { opacity: 1; }

.server-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sc-season {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-bright);
    padding: 4px 10px;
    background: var(--accent-soft);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.sc-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.sc-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
}
.sc-dot-live {
    background: var(--accent-bright);
    box-shadow: 0 0 8px var(--accent-glow);
}

.sc-name {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.sc-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}
.sc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sc-meta code {
    font-size: 0.85rem;
    color: var(--text);
    padding: 5px 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
}
.sc-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.sc-tag-accent {
    color: var(--accent-bright);
    padding: 2px 8px;
    background: var(--accent-soft);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.sc-proxy {
    font-size: 0.8rem;
    color: var(--text-dim);
}
.sc-proxy code { font-size: 0.8rem; }
.sc-cta {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    letter-spacing: 0.03em;
}
.cta-arrow {
    color: var(--accent-bright);
    transition: 0.2s;
    display: inline-block;
}
.server-card:hover .cta-arrow { transform: translateX(4px); }

/* ---------- Grid 2 columnas ---------- */
.home-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.home-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

/* ---------- Arena mini ---------- */
.arena-mini, .leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.arena-mini-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: 0.2s;
}
.arena-mini-row:hover { border-color: var(--accent-dark); }
.arena-top1 { background: var(--accent-soft); border-color: var(--accent-dark); }

.am-rank {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-dim);
    width: 22px;
}
.am-icon { width: 24px; height: 24px; }
.am-name {
    font-weight: 600;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.am-rank-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.am-points {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-bright);
}
.am-points small { font-weight: 400; color: var(--text-dim); }

/* ---------- Leaderboard ---------- */
.lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: 0.2s;
}
.lb-row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.lb-top1 { border-left: 3px solid var(--gold); }
.lb-top2 { border-left: 3px solid var(--silver); }
.lb-top3 { border-left: 3px solid var(--bronze); }

.lb-rank {
    font-family: var(--font-mono);
    width: 26px;
    font-weight: 700;
    color: var(--text-dim);
}
.lb-avatar {
    width: 30px; height: 30px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
}
.lb-name {
    flex: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.lb-guild {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-arena {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-bright);
}
.lb-arena img { width: 20px; height: 20px; }

.online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 8px var(--accent-glow);
    flex-shrink: 0;
}

.empty-inline {
    padding: 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
}

/* ---------- Connect card ---------- */
.connect-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
}
.connect-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    counter-reset: step;
}
.connect-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.connect-steps li span {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1;
}
.connect-steps li strong { color: var(--text); }

/* ---------- Page hero ---------- */
.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 40px;
    text-align: center;
}
.page-hero .hero-kicker { justify-content: center; }
.page-title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 16px 0 12px;
}
.page-sub {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Tabs ---------- */
.tabs-wrap { margin-bottom: 24px; }
.tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active {
    background: var(--accent);
    color: #fff;
}
.tab-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.25);
    letter-spacing: 0.04em;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Tabla ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    background: var(--surface);
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.ranking-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.ranking-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.ranking-table tbody tr:last-child td { border-bottom: none; }
.ranking-table tbody tr { transition: 0.15s; }
.ranking-table tbody tr:hover { background: var(--surface-2); }

.rank-gold { background: rgba(255, 209, 102, 0.05); }
.rank-silver { background: rgba(199, 209, 221, 0.04); }
.rank-bronze { background: rgba(210, 138, 92, 0.04); }

.rank-num { font-family: var(--font-mono); font-weight: 700; color: var(--text-dim); }
.rank-player { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.player-link { color: var(--text); }
.player-link:hover { color: var(--accent-bright); }
.rank-level {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text);
}
.rank-arena {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    gap: 6px;
}
.arena-rank-icon { width: 22px; height: 22px; }
.alpha-col { color: var(--gold); }
.sort-header { cursor: pointer; user-select: none; }
.sort-header:hover { color: var(--text); }
.table-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 32px !important;
}

/* ---------- Season ---------- */
.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.season-stat {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ss-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
}
.ss-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}
.season-connect {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.season-connect code {
    font-size: 0.9rem;
    padding: 6px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
}
.season-proxy { font-size: 0.82rem; color: var(--text-dim); }
.season-proxy code { font-size: 0.8rem; }

/* ---------- Podium ---------- */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 28px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-width: 160px;
    clip-path: var(--clip-notch);
}
.podium-1 { order: 2; padding-top: 40px; border-color: var(--gold); }
.podium-2 { order: 1; border-color: var(--silver); }
.podium-3 { order: 3; border-color: var(--bronze); }
.podium-avatar {
    width: 56px; height: 56px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
}
.podium-icon { width: 32px; height: 32px; }
.podium-name { font-weight: 700; }
.podium-rank {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.podium-points {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-bright);
}

/* ---------- Arena strip ---------- */
.rank-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.rank-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.rank-pill img { width: 22px; height: 22px; }
.rp-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
}
.rp-threshold {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.arena-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.arena-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: 0.2s;
}
.arena-row:hover { border-color: var(--accent-dark); }
.arena-row-1 { background: var(--accent-soft); border-color: var(--accent-dark); }
.ar-rank {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dim);
    width: 30px;
}
.ar-icon { width: 28px; height: 28px; }
.ar-name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-name:hover { color: var(--accent-bright); }
.ar-name-muted { color: var(--text-dim); }
.ar-rank-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.ar-points {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent-bright);
}
.ar-points small { font-size: 0.75rem; font-weight: 400; color: var(--text-dim); }

/* ---------- Profile ---------- */
.profile { max-width: 1280px; margin: 0 auto; padding: 56px 24px; }
.profile-hero {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.profile-avatar {
    width: 92px; height: 92px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--accent-glow);
}
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-letter {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
}
.profile-name {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
}
.profile-steam {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.profile-steam:hover { color: var(--accent-bright); }

.profile-server-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.profile-server-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.profile-server-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pst-status {
    width: 8px; height: 8px; border-radius: 50%;
}
.pst-status.online { background: var(--accent-bright); }
.pst-status.offline { background: var(--text-dim); }
.pst-level {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    opacity: 0.8;
}

.profile-server-panel { display: none; }
.profile-server-panel.active { display: block; }
.profile-server-single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.pss-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.profile-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.profile-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.profile-status.online .profile-status-dot { background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-glow); }
.profile-status.offline .profile-status-dot { background: var(--text-dim); }

.profile-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
}
.profile-stat img { width: 34px; height: 34px; }
.profile-stat strong {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.profile-stat span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.profile-stat-arena-hero { border-color: var(--accent-dark); background: var(--accent-soft); }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.profile-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.profile-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-muted);
}
.profile-dl { display: flex; flex-direction: column; }
.profile-dl > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.profile-dl > div:last-child { border-bottom: none; }
.profile-dl dt { font-size: 0.85rem; color: var(--text-dim); }
.profile-dl dd {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-dl-sub { font-size: 0.75rem; color: var(--text-dim); font-weight: 400; }
.profile-dl .accent { color: var(--accent-bright); }
.profile-dl .gold { color: var(--gold); }
.profile-dl .bronze { color: var(--bronze); }
.profile-dl .blue { color: var(--text); }
.profile-arena-icon { width: 20px; height: 20px; }

/* ---------- Rules ---------- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}
.rule-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    clip-path: var(--clip-notch);
}
.rule-card-warn { border-left-color: var(--gold); }
.rule-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.rule-text { font-size: 0.9rem; color: var(--text-muted); }
.report-list {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.report-list li {
    padding-left: 18px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.report-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 8px;
    background: var(--accent-bright);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-dim);
}
.empty-state h3 {
    font-family: var(--font-head);
    color: var(--text-muted);
    margin-bottom: 6px;
}
.empty-state p { font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    margin-top: 40px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.footer-logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
}
.footer-brand p { font-size: 0.86rem; color: var(--text-dim); max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.footer-col a { font-size: 0.88rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---------- Reportes ---------- */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.report-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
    margin-bottom: 20px;
}
.report-card h3 {
    font-family: var(--font-head);
    margin-bottom: 12px;
}
.report-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 12px 0 20px;
}
.report-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}
.field input, .field select, .field textarea {
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 11px 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    outline: none;
    transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent);
}
.field textarea { resize: vertical; }
.report-success {
    padding: 16px;
    background: rgba(40, 200, 120, 0.08);
    border: 1px solid rgba(40, 200, 120, 0.3);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.report-error {
    padding: 14px 16px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-dark);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.report-id-big {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-bright);
    letter-spacing: 0.08em;
    margin: 8px 0;
}
.report-lookup {
    margin-top: 20px;
    padding: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.inline-form { display: flex; gap: 8px; align-items: center; }
.admin-inline-input {
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 8px 10px;
    font-size: 0.85rem;
    outline: none;
}

/* ---------- Admin login ---------- */
.login-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.login-card .brand-mark {
    width: 36px; height: 36px;
    color: var(--accent-bright);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}
.login-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
}
.admin-wrap { padding: 24px 0; }

/* ---------- Noticias ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
    transition: 0.2s;
}
.news-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-3px);
}
.news-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}
.news-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
}
.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}
.news-author {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-bright);
}

.news-content {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: var(--clip-notch);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    overflow-wrap: break-word;
}
.news-content p { margin-bottom: 16px; color: var(--text-muted); }
.news-content h1, .news-content h2, .news-content h3, .news-content h4 {
    font-family: var(--font-head);
    color: var(--text);
    margin: 24px 0 12px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.news-content h1 { font-size: 1.6rem; }
.news-content h2 { font-size: 1.35rem; }
.news-content h3 { font-size: 1.15rem; }
.news-content h4 { font-size: 1rem; }
.news-content ul, .news-content ol { margin: 0 0 16px 20px; color: var(--text-muted); }
.news-content li { margin-bottom: 6px; }
.news-content a { color: var(--accent-bright); text-decoration: underline; }
.news-content a:hover { color: var(--accent); }
.news-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.news-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: var(--bg-2);
    color: var(--text-muted);
}
.news-content code {
    font-family: var(--font-mono);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 2px 6px;
    font-size: 0.9em;
}
.news-content pre {
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}
.news-content pre code { border: none; padding: 0; }
.news-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}
.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.news-content th, .news-content td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}
.news-content th { background: var(--bg-2); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links {
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .home-grid-2col { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .report-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .podium-1 { order: 1; }
    .podium-2 { order: 2; }
    .podium-3 { order: 3; }
    .hero-stats { gap: 28px; }
}
