/*
 * HCPC Highscore V1.1.2
 * Alle Selektoren sind auf .highscore-* begrenzt.
 * Keine bestehenden Seiten werden funktional verändert.
 */

.highscore-page {
    width: min(100% - 64px, 1440px);
    margin: 30px auto 70px;
}

.highscore-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 190px;
    padding: 38px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(234, 163, 65, 0.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(19, 24, 30, 0.98),
            rgba(14, 18, 23, 0.98)
        );
}

.highscore-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(234, 163, 65, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.highscore-hero__copy {
    position: relative;
    z-index: 1;
}

.highscore-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #eba441;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.highscore-hero h1 {
    margin: 0;
    color: #f4f6f8;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.highscore-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    color: #9da8b7;
    font-size: 15px;
}

.highscore-hero__meta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(8, 12, 16, 0.78);
    color: #d7dde5;
    font-size: 13px;
    font-weight: 700;
}

.highscore-live-dot,
.highscore-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ea5d62;
    box-shadow: 0 0 12px rgba(234, 93, 98, 0.35);
}

.highscore-live-dot,
.highscore-status-dot.is-online {
    background: #54dd82;
    box-shadow: 0 0 12px rgba(84, 221, 130, 0.55);
}


.highscore-scope-switch {
    display: inline-flex;
    gap: 5px;
    margin-top: 22px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    background: #0c1116;
}

.highscore-scope {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 39px;
    padding: 0 18px;
    border-radius: 6px;
    color: #9ea8b5;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.highscore-scope:hover {
    color: #f5f7f9;
}

.highscore-scope.is-active {
    background: #eba441;
    color: #141414;
}

.highscore-tribe {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highscore-tribe small {
    color: #7f8b98;
    font-size: 11px;
}

.highscore-tabs,
.highscore-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highscore-tabs {
    margin-top: 22px;
}

.highscore-periods {
    margin-top: 10px;
}

.highscore-tab,
.highscore-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 7px;
    background: #11171d;
    color: #9ea8b5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.highscore-period {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 12px;
}

.highscore-tab:hover,
.highscore-period:hover {
    border-color: rgba(234, 164, 65, 0.42);
    color: #f5f7f9;
    transform: translateY(-1px);
}

.highscore-tab.is-active,
.highscore-period.is-active {
    border-color: #eba441;
    background: #eba441;
    color: #141414;
}

.highscore-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.highscore-summary-card {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: #11171d;
}

.highscore-summary-card span {
    display: block;
    color: #8995a3;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.highscore-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #f2f5f8;
    font-size: 25px;
    line-height: 1;
}

.highscore-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    align-items: end;
}

.highscore-podium-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(24, 30, 37, 0.98),
            rgba(13, 17, 22, 0.98)
        );
}

.highscore-podium-card--1 {
    min-height: 174px;
    border-color: rgba(235, 164, 65, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.highscore-podium-card::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(235, 164, 65, 0.05);
}

.highscore-podium-card__rank {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 28px;
}

.highscore-podium-card__name {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    color: #eef1f5;
    font-size: 17px;
    font-weight: 800;
}

.highscore-podium-card > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: #eba441;
    font-size: 24px;
}

.highscore-podium-card__sub {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: #8995a3;
    font-size: 12px;
}

.highscore-panel {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: #0f151a;
}

.highscore-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #12181e;
}

.highscore-search {
    width: 100%;
    display: flex;
    align-items: end;
    gap: 10px;
}

.highscore-search fieldset {
    min-width: 250px;
    margin: 0;
    padding: 3px 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    background: #0c1116;
}

.highscore-search fieldset.highscore-per-page {
    min-width: 105px;
}

.highscore-search legend {
    padding: 0 6px;
    color: #86919e;
    font-size: 11px;
    font-weight: 700;
}

.highscore-search input,
.highscore-search select {
    width: 100%;
    min-height: 30px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #edf1f5;
    font: inherit;
}

.highscore-search select {
    cursor: pointer;
}

.highscore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 0 15px;
    border: 1px solid #eba441;
    border-radius: 5px;
    background: #eba441;
    color: #151515;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.highscore-button--ghost {
    border-color: rgba(255, 255, 255, 0.13);
    background: transparent;
    color: #b0bac6;
}

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

.highscore-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1040px;
}

.highscore-table th,
.highscore-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    white-space: nowrap;
}

.highscore-table th {
    background: #171e25;
    color: #a8b2bd;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.highscore-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.016);
}

.highscore-table tbody tr:hover {
    background: rgba(235, 164, 65, 0.045);
}

.highscore-table td {
    color: #c7ced7;
    font-size: 13px;
}

.highscore-table td strong {
    color: #f0f3f6;
}

.highscore-rank {
    width: 70px;
    color: #eba441 !important;
    font-weight: 900;
}

.highscore-player {
    display: flex;
    align-items: center;
    gap: 9px;
}

.highscore-map {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 145px;
}

.highscore-map strong {
    color: #dce2e8;
    font-size: 13px;
    font-weight: 700;
}

.highscore-map-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #ea5d62;
    box-shadow: 0 0 10px rgba(234, 93, 98, 0.34);
}

.highscore-map-dot.is-current {
    background: #54dd82;
    box-shadow: 0 0 10px rgba(84, 221, 130, 0.50);
}

.highscore-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.highscore-progress progress {
    width: 92px;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #252d35;
    appearance: none;
}

.highscore-progress progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #252d35;
}

.highscore-progress progress::-webkit-progress-value {
    border-radius: 999px;
    background: #eba441;
}

.highscore-progress progress::-moz-progress-bar {
    border-radius: 999px;
    background: #eba441;
}

.highscore-progress b {
    min-width: 50px;
    color: #d8dee5;
    font-size: 12px;
}

.highscore-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(234, 93, 98, 0.28);
    border-radius: 999px;
    background: rgba(234, 93, 98, 0.07);
    color: #d98b8f;
    font-size: 11px;
    font-weight: 800;
}

.highscore-status.is-online {
    border-color: rgba(84, 221, 130, 0.30);
    background: rgba(84, 221, 130, 0.08);
    color: #75e39a;
}

.highscore-empty {
    padding: 50px 20px !important;
    color: #84909d !important;
    text-align: center !important;
}

.highscore-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 15px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.highscore-pagination a {
    color: #eba441;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.highscore-pagination a:last-child {
    justify-self: end;
}

.highscore-pagination strong {
    color: #8f9aa7;
    font-size: 11px;
    text-align: center;
}

.highscore-note {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(17, 23, 29, 0.74);
}

.highscore-note strong {
    color: #dce2e8;
    font-size: 12px;
}

.highscore-note p {
    margin: 6px 0 0;
    color: #82909e;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .highscore-page {
        width: min(100% - 30px, 1440px);
    }

    .highscore-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highscore-podium {
        grid-template-columns: 1fr;
    }

    .highscore-podium-card,
    .highscore-podium-card--1 {
        min-height: 130px;
    }

    .highscore-search {
        flex-wrap: wrap;
    }

    .highscore-search fieldset {
        flex: 1 1 220px;
    }
}

@media (max-width: 680px) {
    .highscore-page {
        width: min(100% - 20px, 1440px);
        margin-top: 18px;
    }

    .highscore-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 28px 22px;
        border-radius: 12px;
    }

    .highscore-hero h1 {
        font-size: 44px;
    }

    .highscore-summary {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .highscore-summary-card {
        padding: 15px;
    }

    .highscore-toolbar {
        padding: 12px;
    }

    .highscore-search fieldset {
        flex-basis: 100%;
        min-width: 0;
    }

    .highscore-search fieldset.highscore-per-page {
        flex-basis: 110px;
    }

    .highscore-button {
        flex: 1 1 auto;
    }
}
