:root {
    --bg: #061014;
    --surface: rgba(11, 25, 30, 0.88);
    --surface-strong: #0d1c22;
    --line: rgba(151, 202, 211, 0.13);
    --text: #ecf8f7;
    --muted: #7f9ba1;
    --cyan: #35e0da;
    --cyan-soft: rgba(53, 224, 218, 0.12);
    --coral: #ff5664;
    --gold: #ffc568;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(180deg, rgba(5, 15, 19, 0.86), var(--bg) 35%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 1px, transparent 1px 15px);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.ambient {
    position: fixed;
    z-index: -1;
    width: 36rem;
    height: 36rem;
    border-radius: 999px;
    filter: blur(120px);
    opacity: .15;
    pointer-events: none;
}

.ambient-one { top: -16rem; left: -10rem; background: var(--cyan); }
.ambient-two { right: -14rem; top: 20rem; background: var(--coral); }

.site-header {
    width: min(1420px, calc(100% - 48px));
    height: 88px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 13px; }

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: var(--cyan);
    color: #031215;
    font-size: 24px;
    font-weight: 950;
    clip-path: polygon(50% 0, 100% 25%, 87% 100%, 13% 100%, 0 25%);
}

.brand strong, .brand small { display: block; letter-spacing: .15em; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.header-actions { display: flex; gap: 10px; }

.button {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { border-color: transparent; background: var(--coral); color: white; }
.button-primary:hover { background: #ff6b77; }
.button-ghost { background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: rgba(53,224,218,.4); background: var(--cyan-soft); }

.page-shell { width: min(1420px, calc(100% - 48px)); margin: 0 auto; }

.hero {
    min-height: 460px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
    align-items: center;
    gap: 56px;
    padding: 70px 4vw 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: 19%;
    top: 30px;
    width: 1px;
    height: 390px;
    background: linear-gradient(transparent, rgba(53,224,218,.45), transparent);
    transform: rotate(19deg);
}

.eyebrow {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .21em;
}

.hero h1 {
    max-width: 800px;
    margin: 17px 0 22px;
    font-size: clamp(54px, 7vw, 102px);
    line-height: .9;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.hero h1 em { color: var(--coral); font-style: normal; }

.hero-copy > p {
    max-width: 690px;
    margin: 0;
    color: #9ab0b5;
    font-size: 17px;
}

.server-line {
    width: fit-content;
    margin-top: 28px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
}

.server-line strong { color: var(--text); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #45df91; box-shadow: 0 0 0 5px rgba(69,223,145,.1); }

.leader-card {
    min-height: 300px;
    position: relative;
    padding: 31px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(21,48,56,.92), rgba(10,22,27,.92));
    border: 1px solid rgba(53,224,218,.22);
    border-radius: 3px 24px 3px 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.leader-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -70% -40%;
    height: 90%;
    border-radius: 50%;
    background: var(--cyan);
    filter: blur(80px);
    opacity: .12;
}

.card-label { align-self: flex-start; position: absolute; top: 24px; left: 27px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.leader-card img { object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.3)); }
.leader-card strong { margin-top: 11px; font-size: 21px; text-align: center; }
.leader-card > span:not(.card-label) { color: var(--gold); font-size: 13px; }
.leader-card i { position: absolute; right: 22px; bottom: 8px; color: rgba(255,255,255,.035); font-size: 88px; font-style: normal; font-weight: 950; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    background: rgba(8, 21, 26, .7);
    box-shadow: var(--shadow);
}

.stats-grid article {
    min-height: 137px;
    padding: 25px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.stats-grid article:last-child { border-right: 0; }
.stats-grid span, .stats-grid small { color: var(--muted); }
.stats-grid span { font-size: 12px; font-weight: 700; }
.stats-grid strong { margin: 3px 0 1px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; }
.stats-grid small { font-size: 11px; }
.stats-grid .accent-stat { background: linear-gradient(140deg, var(--cyan-soft), transparent); }
.stats-grid .accent-stat strong { color: var(--cyan); }

.ranking-panel {
    margin: 28px 0 60px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.panel-top {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.panel-top h2 { margin: 6px 0 0; font-size: 27px; letter-spacing: -.025em; }

.filters { display: flex; align-items: flex-end; gap: 10px; }
.filters label span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.filters select, .filters input {
    height: 42px;
    padding: 0 13px;
    color: var(--text);
    background: #0b181d;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
}
.filters select:focus, .filters input:focus { border-color: rgba(53,224,218,.5); box-shadow: 0 0 0 3px rgba(53,224,218,.08); }
.search-field input { width: 210px; }

.table-wrap { overflow-x: auto; }

table { width: 100%; min-width: 1100px; border-collapse: collapse; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #66868d; background: rgba(0,0,0,.11); font-size: 10px; text-transform: uppercase; letter-spacing: .095em; }
td { color: #b5c7cb; font-size: 13px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(53,224,218,.035); }
tbody tr:last-child td { border-bottom: 0; }

.position {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}
.top-position { color: var(--gold); border-color: rgba(255,197,104,.3); background: rgba(255,197,104,.08); }

.player-cell, .rank-cell { display: flex; align-items: center; gap: 11px; }
.avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid rgba(53,224,218,.16);
    border-radius: 50%;
    font-weight: 850;
    text-transform: uppercase;
}
.player-cell strong, .player-cell small { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.player-cell strong { color: var(--text); }
.player-cell small { margin-top: 2px; color: #567178; font-size: 9px; }
.rank-cell img { object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.rank-cell strong { color: var(--text); font-size: 12px; }
.kp { color: var(--cyan); }
.muted { color: #68858c; font-size: 11px; }
.empty-row { height: 150px; text-align: center; color: var(--muted); }

.pagination {
    min-height: 66px;
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.pagination a { padding: 8px 12px; color: var(--text); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 7px; }
.pagination a:hover { border-color: rgba(53,224,218,.4); }

footer {
    width: min(1420px, calc(100% - 48px));
    min-height: 80px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #57737a;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.fatal { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; }
.fatal div { max-width: 700px; padding: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.fatal h1 { margin: 13px 0 8px; font-size: clamp(30px, 6vw, 58px); line-height: 1; }
.fatal p { color: var(--muted); }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; gap: 20px; padding-inline: 0; }
    .leader-card { min-height: 230px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid article:nth-child(2) { border-right: 0; }
    .stats-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .panel-top { align-items: stretch; flex-direction: column; }
}

@media (max-width: 700px) {
    .site-header, .page-shell, footer { width: min(100% - 24px, 1420px); }
    .site-header { height: 74px; }
    .brand small { display: none; }
    .header-actions .button-ghost { display: none; }
    .header-actions .button { min-height: 38px; padding-inline: 12px; font-size: 12px; }
    .hero { min-height: auto; padding-block: 50px 36px; }
    .hero h1 { font-size: clamp(47px, 15vw, 72px); }
    .hero-copy > p { font-size: 15px; }
    .server-line { align-items: flex-start; flex-wrap: wrap; }
    .leader-card { padding: 25px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-grid article { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--line); }
    .stats-grid article:last-child { border-bottom: 0; }
    .panel-top { padding: 21px; }
    .filters { align-items: stretch; flex-direction: column; }
    .filters select, .filters input, .filters .button { width: 100%; }
    .search-field input { width: 100%; }
    footer { padding-block: 24px; align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
