@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --bg: #0D0D0D;
    --bg-dark: #1b1b1b;
    --text: #FFFFFF;
    --text-muted: #6b6c6d;
    /* --accent: #D6B83D;
    --accent-dark: #8e7a29; */
    /* --accent: #7CB342;
    --accent-dark: #53772c; */
    --accent: #9B6DCC;
    --accent-dark: #714f96;
    
}

* {
    font-family: "Inter", system-ui, sans-serif;
    box-sizing: border-box;
    /* corner-shape: superellipse(2); */
}

body {
    background: var(--bg);
    color: var(--text);
}

main {
    max-width: 80rem;
    padding: 10px;
    margin: auto;
}

#players {
    width: max-content;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap:10px;
}

#player-list {
    display: flex;
    flex-direction: column;
    gap:10px;
}

.player {
    min-width: 320px;
    background: var(--bg-dark);
    text-align: left;

    &:hover {
        background: var(--accent-dark);
    }
}

.player .name {

    font-weight: bold;
}

.player .score {
    float: right;
    color: var(--text-muted);
}

button {
    border: none;
    background: none;
    color: var(--text);

    border-radius: 10px;
    padding: 0 1rem;
    height: 2.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

#player-add {
    background: var(--accent);
    border: none;
    font-weight: bold;
    width: 100%;

    &:hover {
        background: var(--accent-dark);
    }
}

/* h1 {
    margin-bottom: 0.5rem;
}

span {
    color: var(--text-muted);
}

img {
    height: 3rem;
    image-rendering: pixelated;
} */

@media (max-width: 480px) {
    :root {
        font-size: 20px;
    }

    #players {
        width: 100%;
    }
}