/* --- Shared ------------------------------------------------------------ */

.card {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--pico-card-background-color, #fff);
    border: 1px solid var(--pico-muted-border-color, rgba(0, 0, 0, 0.1));
    box-shadow: 0 7px 7px rgba(0, 0, 0, 0.25);
}

/* --- Navigation -------------------------------------------------------- */

nav a {
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: var(--pico-muted-color);
    transition: background 0.15s ease, color 0.125s ease;
}

nav a:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* --- Login page -------------------------------------------------------- */

.login-page {
    display: flex;
    align-items: center;
    min-height: 100dvh;
    padding: 16px;
}

.login-form {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
}

.login-form h1 {
    font-size: 1.5rem;
}

/* --- Home: page layout ------------------------------------------------- */

.dashboard {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 24px;
    align-items: stretch;
}

/* --- Home: leaderboard ------------------------------------------------- */

.player-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.player .rank {
    font-weight: 800;
    font-size: 2.2em;
}

.player:not(.leader) .rank {
    opacity: 0.6;
}

.player .name {
    font-weight: 600;
    font-size: 2.2em;
}

.player .score {
    margin-left: auto;
    font-size: 3em;
    font-weight: 800;
}

/* --- Home: chart ------------------------------------------------------- */

.chart-panel {
    position: relative;
}

.chart-box {
    position: absolute;
    inset: 0;             /* Chart.js sizes the canvas to this box */
}
