 :root {
    --bg: #040811;
    --panel: rgba(9, 18, 34, 0.74);
    --panel-strong: rgba(10, 18, 32, 0.92);
    --line: rgba(148, 163, 184, 0.13);
    --line-strong: rgba(148, 163, 184, 0.24);
    --text: #eaf2ff;
    --muted: #97a6bf;
    --muted-2: #73829d;
    --accent: #69d0ff;
    --accent-2: #8b5cf6;
    --accent-3: #32c7a4;
    --shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #040811; }
body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% -10%, rgba(105, 208, 255, 0.20), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(139, 92, 246, 0.18), transparent 32%),
        linear-gradient(180deg, #040811 0%, #081020 52%, #040913 100%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
code { color: #d7ecff; background: rgba(3, 8, 18, 0.62); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 999px; padding: 5px 9px; font-size: 0.82em; }
.wrap { width: min(1320px, calc(100% - 36px)); margin: 0 auto; }
.bg-grid { position: fixed; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.bg-orb { position: fixed; border-radius: 999px; filter: blur(80px); opacity: .25; pointer-events: none; }
.orb-one { width: 340px; height: 340px; left: -40px; top: -40px; background: rgba(105, 208, 255, 0.32); }
.orb-two { width: 340px; height: 340px; right: -30px; top: 0; background: rgba(139, 92, 246, 0.24); }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(20px); background: linear-gradient(180deg, rgba(4, 8, 17, 0.88), rgba(4, 8, 17, 0.62)); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; filter: drop-shadow(0 10px 22px rgba(105, 208, 255, 0.20)); }
.brand span { display: flex; flex-direction: column; gap: 4px; }
.brand strong { font-size: 16px; letter-spacing: 0.06em; }
.brand small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { color: var(--muted); padding: 11px 16px; border-radius: 999px; border: 1px solid transparent; transition: 0.18s ease; font-weight: 700; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,0.045); border-color: var(--line); }
.nav-toggle { display: none; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); border-radius: 14px; padding: 10px 14px; font: inherit; }
.main { padding: 34px 0 56px; position: relative; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) 360px; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.hero-panel, .hero-card, .panel, .stat-card, .profile-hero { background: linear-gradient(180deg, rgba(12, 21, 39, 0.86), rgba(8, 15, 29, 0.78)); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.hero-panel { position: relative; padding: 42px; overflow: hidden; }
.eyebrow { text-transform: uppercase; color: #85d8ff; letter-spacing: .16em; font-weight: 900; font-size: 12px; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 0.96; letter-spacing: -0.06em; margin: 0 0 18px; }
h2 { font-size: 22px; line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.hero-text { color: var(--muted); font-size: 17px; max-width: 720px; line-height: 1.65; margin-bottom: 26px; }
.hero-card { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.hero-card-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.hero-card strong { font-size: 38px; letter-spacing: -0.04em; }
.hero-card small { color: var(--muted); line-height: 1.6; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; color: #dff6ff; font-weight: 800; font-size: 14px; }
.hero-status::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--accent-3); box-shadow: 0 0 0 6px rgba(50, 199, 164, 0.12); }
.global-search, .toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
input, select, button, .btn { border: 1px solid var(--line-strong); background: rgba(2, 8, 18, 0.70); color: var(--text); border-radius: 16px; padding: 13px 15px; font: inherit; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.025); }
input::placeholder { color: #6f829f; }
input:focus, select:focus { border-color: rgba(105, 208, 255, 0.36); box-shadow: 0 0 0 4px rgba(105, 208, 255, 0.08); }
input[type="search"] { min-width: min(420px, 100%); flex: 1; }
button, .btn { cursor: pointer; font-weight: 900; color: #04111d; border-color: transparent; background: linear-gradient(135deg, var(--accent), #98dbff 45%, #c4b5fd 100%); }
button:hover, .btn:hover { filter: brightness(1.05); color: #04111d; }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover { color: #fff; background: rgba(255,255,255,0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.stat-card { padding: 24px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.stat-card:hover { transform: translateY(-2px); border-color: rgba(105, 208, 255, 0.32); box-shadow: 0 18px 44px rgba(0,0,0,0.24); }
.stat-card span { color: var(--muted); display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.stat-card strong { display: block; font-size: 42px; margin-top: 12px; letter-spacing: -0.05em; }
.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.panel { padding: 24px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head a { color: #85d8ff; font-weight: 900; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid rgba(148,163,184,.11); background: rgba(3, 8, 18, 0.30); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 16px 16px; border-bottom: 1px solid rgba(148,163,184,.09); text-align: left; vertical-align: middle; }
th { color: #cad6e7; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; background: rgba(255,255,255,.02); }
td { color: #edf4ff; }
tr:hover td { background: rgba(105,208,255,.035); }
td small { display: block; color: var(--muted-2); margin-top: 5px; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-link, td a { font-weight: 900; }
.muted { color: var(--muted); }
.ranking-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ranking-list li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.025); border: 1px solid rgba(148,163,184,.1); }
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; color: #04111d; background: linear-gradient(135deg, #9de0ff, #c6b6ff); border-radius: 999px; padding: 8px 12px; font-weight: 950; white-space: nowrap; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-title p:not(.eyebrow) { color: var(--muted); max-width: 760px; line-height: 1.6; }
.toolbar { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 22px; padding: 14px; margin-bottom: 18px; backdrop-filter: blur(18px); }
.profile-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 34px; }
.profile-hero h1 { font-size: clamp(30px, 4vw, 50px); }
.profile-meta { display: grid; gap: 10px; min-width: 260px; }
.profile-meta span { display: flex; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid rgba(148,163,184,.1); border-radius: 16px; background: rgba(255,255,255,.03); color: var(--muted); }
.profile-meta strong { color: white; }
.medal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.medal-grid div { background: rgba(255,255,255,.03); border: 1px solid rgba(148,163,184,.1); border-radius: 18px; padding: 18px; }
.medal-grid span { color: var(--muted); display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.medal-grid strong { font-size: 26px; letter-spacing: -0.04em; }
.empty { box-shadow: none; background: rgba(255,255,255,.02); border-style: dashed; }
.empty p { color: var(--muted); margin-top: 10px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > span { background: rgba(255,255,255,.03); border: 1px solid rgba(148,163,184,.12); border-radius: 999px; padding: 8px 12px; color: #d8e3f5; }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); padding: 24px 0 30px; background: rgba(3,8,18,.35); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.footer-inner strong { display: block; color: white; letter-spacing: .1em; margin-bottom: 4px; }
.footer-inner span { color: var(--muted); }
@media (max-width: 940px) { .hero, .split-grid, .profile-hero { grid-template-columns: 1fr; } .stats-grid, .medal-grid { grid-template-columns: 1fr 1fr; } .main-nav { display: none; position: absolute; top: 84px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; padding: 12px; background: rgba(10, 18, 32, 0.95); border: 1px solid var(--line); border-radius: 18px; } .main-nav.open { display: flex; } .nav-toggle { display: inline-flex; align-items: center; justify-content: center; } }
@media (max-width: 640px) { .wrap { width: min(100% - 22px, 1320px); } .hero-panel, .panel, .profile-hero, .hero-card { padding: 18px; border-radius: 20px; } .stats-grid, .medal-grid { grid-template-columns: 1fr; } .header-inner { height: 76px; } .brand img { width: 48px; height: 48px; flex-basis: 48px; } .brand small { display: none; } .footer-inner { flex-direction: column; align-items: flex-start; } }


/* Header logo hard fix */
.site-header .brand img,
.site-logo {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    flex: 0 0 56px !important;
}
@media (max-width: 640px) {
    .site-header .brand img,
    .site-logo {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        flex-basis: 48px !important;
    }
}

/* Live server layout repair */
.live-server-list{align-items:stretch}.live-panel{overflow:hidden}.live-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.live-card{display:flex;flex-direction:column;gap:7px;min-width:0;padding:18px;border-radius:20px;background:linear-gradient(180deg,rgba(12,24,43,.82),rgba(5,13,25,.66));border:1px solid rgba(148,163,184,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}.live-card>span{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800}.live-card>strong{display:block;min-width:0;color:var(--text);font-size:clamp(18px,2vw,26px);line-height:1.15;letter-spacing:-.04em;overflow-wrap:anywhere}.live-card>small{display:block;min-height:18px;color:var(--muted);font-size:13px;line-height:1.35;overflow-wrap:anywhere}.compact-live .live-overview-grid{grid-template-columns:1fr 1fr}.compact-live .live-card{padding:15px}.compact-live .live-card>strong{font-size:18px}.chips{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}.chips>.live-player-pill,.live-player-pill{display:inline-flex;align-items:center;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(2,8,18,.45);border:1px solid rgba(148,163,184,.18);border-radius:999px;padding:8px 12px;color:#d8e3f5;line-height:1.1;font-weight:800}.live-player-pill .tm-color,.live-player-pill strong,.live-player-pill em,.live-card .tm-color,.live-card strong,.live-card em,td .tm-color,td strong,td em{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;display:inline!important;max-width:none!important;white-space:inherit}.live-player-pill.muted,.chips>.muted{color:var(--muted);font-weight:700}.live-table-wrap table{table-layout:fixed}.live-table-wrap th:nth-child(1),.live-table-wrap td:nth-child(1){width:50%}.live-table-wrap th:nth-child(2),.live-table-wrap td:nth-child(2){width:32%}.live-table-wrap th:nth-child(3),.live-table-wrap td:nth-child(3){width:18%}.live-player-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:rgba(255,255,255,.04);border:1px solid rgba(148,163,184,.12);color:var(--muted);font-weight:800;font-size:12px;text-transform:uppercase}.live-badge{display:inline-flex;align-items:center;gap:8px;color:#8ff5d2;font-weight:900}.live-badge.offline{color:#ff9ba5}.live-badge.stale{color:#ffd88a}@media(max-width:900px){.live-overview-grid,.compact-live .live-overview-grid{grid-template-columns:1fr}}

/* ARENA global slow parallax background */
:root {
    --arena-bg-y: 0px;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at 18% calc(8% + var(--arena-bg-y)), rgba(0, 229, 255, 0.18), transparent 34rem),
        radial-gradient(circle at 88% calc(18% + var(--arena-bg-y)), rgba(110, 75, 255, 0.14), transparent 32rem),
        linear-gradient(135deg, #061421 0%, #081327 46%, #101429 100%);
    background-attachment: fixed;
}

body {
    min-height: 100%;
    background:
        radial-gradient(circle at 20% calc(12% + var(--arena-bg-y)), rgba(69, 225, 255, 0.10), transparent 26rem),
        radial-gradient(circle at 75% calc(32% + var(--arena-bg-y)), rgba(92, 105, 255, 0.08), transparent 30rem),
        linear-gradient(rgba(11, 24, 42, 0.70), rgba(10, 16, 31, 0.82));
    background-attachment: fixed;
    background-size: auto, auto, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(125, 226, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 226, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle, rgba(126, 236, 255, 0.24) 1px, transparent 1.5px);
    background-size: 48px 48px, 48px 48px, 24px 24px;
    background-position:
        0 calc(var(--arena-bg-y) * 0.40),
        0 calc(var(--arena-bg-y) * 0.40),
        0 calc(var(--arena-bg-y) * 0.65);
    transform: translateZ(0);
}

body > * {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --arena-bg-y: 0px !important;
    }
}
