body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #f2c56b;
    background:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
        url("../images/bg/background-final-final.png") no-repeat center center fixed;
    background-size: cover;
}

.hiscores-page {
    padding: 30px 20px 60px;
}

.hiscores-wrapper {
    max-width: 1500px;
    margin: 0 auto;
}

.hiscores-title-bar {
    background: #0e0b08;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.hiscores-title-bar h1 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.game-modes-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    justify-content: center;
}

.game-mode-button {
    background: #050505;
    color: #f2c56b;
    border: 2px solid #2e2418;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    min-width: 140px;
}

.game-mode-button:hover,
.game-mode-button.active {
    border-color: #d3a84e;
    box-shadow: 0 0 0 2px rgba(211, 168, 78, 0.2);
}

.hiscores-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.skills-panel {
    background: #0b0806;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    min-height: 700px;
}

.panel-header {
    padding: 24px 28px 10px;
}

.panel-header h3 {
    margin: 0;
    font-size: 2rem;
    color: #f2c56b;
}

.skills-list {
    padding: 10px 0 24px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 28px;
    color: #f2c56b;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1.15rem;
}

.skill-item:hover,
.skill-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.skill-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hiscores-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.search-box {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 20px;
    padding: 28px 30px;
    width: fit-content;
    min-width: 360px;
}

.search-box label {
    display: block;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.search-row {
    display: flex;
    gap: 12px;
}

.search-row input {
    width: 260px;
    height: 48px;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 1rem;
}

.search-row button {
    background: #f1c368;
    color: #000;
    border: none;
    padding: 0 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.divider-area {
    position: relative;
    min-height: 120px;
}

.divider-line {
    height: 18px;
    background: linear-gradient(to bottom, #c9b28a, #b59a6f);
    border-radius: 12px;
    margin-top: 48px;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.15);
}

.mascot {
    position: absolute;
    right: 60px;
    top: 0;
    width: 140px;
    height: auto;
}

.hiscores-card {
    background: transparent;
}

.hiscores-card-header {
    background: #120e0a;
    border-radius: 18px 18px 0 0;
    padding: 18px 24px;
}

.hiscores-card-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hiscores-card-title span:first-child {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd28a;
}

.mode-pill {
    display: inline-block;
    background: #1a140f;
    border: 1px solid #5b4524;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 1rem;
    color: #ffd28a;
}

.popup-highscores {
    overflow-x: auto;
}

.hiscores-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(232, 208, 158, 0.9);
    color: #111;
}

.hiscores-table thead th {
    background: #0f0c09;
    color: #ffd28a;
    text-align: left;
    font-size: 1.1rem;
    padding: 20px 18px;
}

.hiscores-table tbody td {
    padding: 18px;
    font-size: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.hiscores-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.06);
}

.no-results {
    text-align: center;
    font-weight: 700;
    color: #333;
}

@media (max-width: 1100px) {
    .hiscores-content {
        grid-template-columns: 1fr;
    }

    .skills-panel {
        min-height: auto;
    }

    .search-box {
        width: 100%;
        min-width: unset;
    }

    .mascot {
        right: 20px;
        width: 100px;
    }
}

@media (max-width: 700px) {
    .game-mode-button {
        min-width: unset;
        width: calc(50% - 8px);
    }

    .search-row {
        flex-direction: column;
    }

    .search-row input,
    .search-row button {
        width: 100%;
    }
}
