body {
    background: linear-gradient(
        to bottom,
        #101214 0%,
        #171a1f 50%,
        #20252d 100%
    );
}

.header-container .rust {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.header-container .upgrader {
    color: #d9dee6;
    text-shadow: 0 0 10px rgba(217, 222, 230, 0.2);
}

.prize-group:after {
    background: linear-gradient(90deg, #ffffff, #d9dee6);
}

.coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #eef1f5;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.prize-group .coin-icon {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
}

.prize-label {
    color: #d3d8df;
}

.lb-card {
    border: 1px solid rgba(217, 222, 230, 0.2);
}

.avatar {
    border: 2px solid rgba(217, 222, 230, 0.3);
}

.wager-section {
    border: 1px solid rgba(217, 222, 230, 0.2);
}

.wager-section::before {
    background: linear-gradient(90deg, transparent, #d9dee6, transparent);
}

.wager-label {
    color: #d9dee6;
}

.lb-rank-row {
    border: 1px solid rgba(217, 222, 230, 0.15);
}

.lb-rank-row::before {
    background: linear-gradient(90deg, transparent, rgba(217, 222, 230, 0.3), transparent);
}

.lb-rank-row:hover {
    border-color: rgba(217, 222, 230, 0.3);
}

.rank-area {
    color: #e7ebf0;
    text-shadow: 0 0 8px rgba(231, 235, 240, 0.28);
}

.rank-avatar {
    border: 2px solid rgba(217, 222, 230, 0.2);
}

.lb-rank-row:hover .rank-avatar {
    border-color: rgba(217, 222, 230, 0.45);
    box-shadow: 0 0 15px rgba(217, 222, 230, 0.2);
}

.prize-area {
    background: rgba(217, 222, 230, 0.09);
    border: 1px solid rgba(217, 222, 230, 0.2);
}

.lb-rank-row:hover .prize-area {
    background: rgba(217, 222, 230, 0.13);
    border-color: rgba(217, 222, 230, 0.3);
}

.prize-area .coin-icon {
    width: 22px;
    height: 22px;
    font-size: 0.95rem;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.35);
}

.timer-header h2 {
    color: #f2f5f8;
}

.timer-unit {
    border: 1px solid rgba(217, 222, 230, 0.2);
}

.timer-unit:hover {
    border-color: rgba(217, 222, 230, 0.4);
    box-shadow: 0 0 12px rgba(217, 222, 230, 0.22);
}

.timer-unit:hover .timer-number {
    text-shadow: 0 0 10px rgba(235, 240, 246, 0.5);
}

.timer-unit:hover .timer-label {
    color: #f2f5f8;
    text-shadow: 0 0 6px rgba(242, 245, 248, 0.35);
}

.lb-last-updated-text {
    border: 1px solid rgba(217, 222, 230, 0.1);
}

.lb-last-updated-text::before {
    background: linear-gradient(90deg, transparent, rgba(217, 222, 230, 0.07), transparent);
}

.lb-last-updated-text:hover {
    border-color: rgba(217, 222, 230, 0.2);
    box-shadow: 0 0 15px rgba(217, 222, 230, 0.1);
}

.updated-icon {
    color: #e8ecf2;
}

.lb-last-updated-text:hover .updated-icon {
    color: #ffffff;
    transform: rotate(45deg);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.lb-card {
    backdrop-filter: blur(4px);
    background: rgba(24, 29, 36, 0.86);
    border: 1px solid rgba(217, 222, 230, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.wager-section {
    background: rgba(16, 20, 26, 0.65);
    border: 1px solid rgba(217, 222, 230, 0.2);
}

.lb-rank-row {
    backdrop-filter: blur(4px);
    background: rgba(23, 28, 35, 0.72);
    border: 1px solid rgba(217, 222, 230, 0.15);
}

.lb-rank-row:hover {
    background: rgba(23, 28, 35, 0.9);
    border-color: rgba(217, 222, 230, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.timer-unit {
    background: rgba(23, 28, 35, 0.72);
    border: 1px solid rgba(217, 222, 230, 0.2);
}

.lb-last-updated-text {
    color: var(--text-muted);
    background: rgba(23, 28, 35, 0.5);
    border: 1px solid rgba(217, 222, 230, 0.1);
}

.lb-ended-message {
    backdrop-filter: blur(4px);
    background: rgba(23, 28, 35, 0.72);
    border: 1px solid rgba(217, 222, 230, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-medium);
    margin: var(--spacing-medium) auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.lb-ended-message:hover {
    border-color: rgba(217, 222, 230, 0.35);
    box-shadow: 0 0 20px rgba(217, 222, 230, 0.16);
}

.leaderboard-ended-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #f2f5f8;
    margin-bottom: var(--spacing-small);
    text-shadow: 0 0 8px rgba(242, 245, 248, 0.2);
    letter-spacing: 0.5px;
}

.leaderboard-ended-text {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .lb-ended-message {
        padding: var(--spacing-small);
        margin: var(--spacing-small) auto;
    }

    .leaderboard-ended-title {
        font-size: var(--font-size-lg);
    }

    .leaderboard-ended-text {
        font-size: var(--font-size-sm);
    }
}

.code-text {
    color: rgba(255, 255, 255, 0.9);
}

.code-highlight {
    color: #dce2ea;
    text-shadow: 0 0 4px rgba(220, 226, 234, 0.28);
    position: relative;
}

.code-highlight:hover {
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.45),
        0 0 12px rgba(220, 226, 234, 0.25);
}

.rank-level {
    margin-left: 0.7rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #c9d0d8;
    background: rgba(201, 208, 216, 0.12);
    border: 1px solid rgba(201, 208, 216, 0.3);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}

.fix {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--secondary-border);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-hover-bg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    border-color: rgba(217, 222, 230, 0.55);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(217, 222, 230, 0.16);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover::before {
    opacity: 1;
    background: rgba(217, 222, 230, 0.1);
}
