:root {
    --bg: #06111f;
    --panel: #0b1b2e;
    --card: #10284a;
    --line: #213957;
    --gold: #ffc928;
    --purple: #8537ff;
    --green: #31d158;
    --red: #ff5b5b;
    --text: #f7fbff;
    --muted: #a9b7c9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #10284a, #030914);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
}

/* SIDEBAR */

aside {
    width: 250px;
    height: 100vh;
    background: #030914;
    border-right: 1px solid var(--line);
    padding: 24px;
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
}
.brand {
    font-weight: 900;
    font-size: 26px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.brand span {
    color: var(--gold);
}

aside a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    margin: 8px 0;
    background: #0b1b2e;
}

aside a:hover {
    background: #10284a;
    transform: translateX(3px);
}

/* MAIN */

main {
    margin-left: 250px;
    padding: 32px;
    width: calc(100% - 250px);
}

h1 {
    font-size: 34px;
    margin-top: 0;
}

h2 {
    font-size: 24px;
}

.card,
.display,
.grid,
table,
form {
    background: rgba(11, 27, 46, 0.9);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

/* GRID */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* FORMS */

input,
textarea,
select {
    width: 100%;
    background: #071525;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
}

label {
    display: block;
    margin: 14px 0 6px;
    color: var(--muted);
    font-weight: 700;
}

/* BUTTONS */

button,
.button {
    background: linear-gradient(90deg, var(--gold), #ff9f0a);
    color: #111;
    font-weight: 900;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    transform: scale(1.03);
}

/* TABLES */

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

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--gold);
}

/* QUIZ */

.choice {
    display: block;
    cursor: pointer;
    margin: 12px 0;
}

.choice input {
    width: auto;
    margin-right: 12px;
    transform: scale(1.2);
}

.correct {
    color: var(--green);
    font-weight: 900;
}

.wrong {
    color: var(--red);
    font-weight: 900;
}

.flash {
    background: #123d26;
    border: 1px solid var(--green);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* PLAYER HOME */

.playcard h3 {
    font-size: 24px;
    line-height: 1.25;
}

.resultcard h1 {
    margin-top: 10px;
}

.small {
    color: var(--muted);
}

/* MOBILE */

@media (max-width: 800px) {
    body {
        display: block;
    }

    aside {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    main {
        margin-left: 0;
        width: 100%;
        padding: 18px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}
.phone {
    max-width: 430px;
    width: 95%;
    margin: 0 auto;
}
/* Mobile menu button - hidden on desktop */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 700px) {

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
        padding: 10px 14px;
        border: none;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
    }

    aside {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 220px;
        height: 100vh;
        overflow-y: auto;
        z-index: 1000;
        padding-top: 60px;
    }

    aside.show-menu {
        display: block;
    }

    main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 70px 15px 20px 15px !important;
        box-sizing: border-box;
    }
}