* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #050510;
    color: #00ffcc;
    font-family: Consolas, monospace;
    overflow-x: hidden;

    /* Base font size larger */
    font-size: 20px;
}

/* Hidden by default */
.mobile-scoreboard {
    display: none;
}

h1 {
    text-align: center;
    margin-bottom: 30px;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    color: #00ffcc;

    text-shadow:
        0 0 5px #00ffcc,
        0 0 15px #00ffcc,
        0 0 30px #00ffcc;

    letter-spacing: 6px;
}

.gold {
    background: rgba(255, 215, 0, 0.12);
}

.silver {
    background: rgba(192, 192, 192, 0.12);
}

.bronze {
    background: rgba(205, 127, 50, 0.12);
}


table {
    width: 100%;
    border-collapse: collapse;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);

    border: 2px solid #00ffcc;

    box-shadow:
        0 0 10px rgba(0, 255, 204, 0.5),
        0 0 25px rgba(0, 255, 204, 0.3),
        0 0 50px rgba(0, 255, 204, 0.15);

    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 20px 24px;
    text-align: center;
}
td.username, th.username {
    text-align: left;
}

th {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}
td {
    font-size: 2.2rem;
    font-weight: 600;
}

.score {
    color: #00ff66;
    font-weight: bold;
    font-size: 2.5rem;

    text-shadow:
        0 0 8px #00ff66,
        0 0 16px #00ff66;
}

.scoreboard-frame {
    padding: 4px;
    border: 1px solid #00ffcc;
    border-radius: 10px;

    box-shadow:
        0 0 15px rgba(0, 255, 204, 0.6),
        0 0 40px rgba(0, 255, 204, 0.25);

    background: rgba(0, 255, 204, 0.05);
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(circle at 30% 30%, rgba(0,255,200,0.2), transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255,0,255,0.15), transparent 40%),
        #050510;

    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        filter: brightness(0.8);
    }
    50% {
        filter: brightness(1.3);
    }
    100% {
        filter: brightness(0.8);
    }
}

.container {
    max-width: 1920px;
    margin: 40px auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;

    color: #00ffcc;

    text-shadow:
        0 0 5px #00ffcc,
        0 0 15px #00ffcc,
        0 0 30px #00ffcc;

    letter-spacing: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;

    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(5px);

    box-shadow:
        0 0 20px rgba(0,255,200,0.3);
}

thead {
    background: rgba(0,255,200,0.15);
}

th,
td {
    padding: 16px;
    text-align: center;
}

th {
    color: #ffffff;
    text-transform: uppercase;
}

tbody tr {
    border-bottom: 1px solid rgba(0,255,200,0.15);
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: rgba(0,255,200,0.08);
}

.score {
    color: #00ff66;
    font-weight: bold;
    text-shadow: 0 0 8px #00ff66;
}


@media (max-width: 768px) {

    .container {
        margin: 15px;
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    table {
        display: none;
    }

    .mobile-scoreboard {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .score-card {
        background: rgba(0, 0, 0, 0.8);

        border: 1px solid rgba(0,255,204,0.5);
        border-radius: 10px;

        padding: 15px;

        box-shadow:
            0 0 10px rgba(0,255,204,0.25);
    }

    .score-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;

        margin-bottom: 10px;

        font-size: 1.3rem;
        font-weight: bold;
    }

    .score-card-name {
        color: #00ffcc;
    }

    .score-card-score {
        color: #00ff66;

        text-shadow:
            0 0 5px #00ff66;
    }

    .score-card-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;

        font-size: 1rem;
    }

    .score-stat {
        padding: 5px 0;
    }
    .score-stat.rank {
	text-align: right;
    }
}
