* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #202840 0%,
            #090b10 55%,
            #050609 100%
        );

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: min(600px, 94%);
    text-align: center;
}

.logo {
    font-size: 58px;
    font-weight: 900;
    letter-spacing: -3px;
}

.logo span {
    color: #6c63ff;
}

.subtitle {
    color: #9da5b4;
    margin-bottom: 40px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: block;
    width: 100%;

    padding: 17px 20px;

    border: 0;
    border-radius: 12px;

    background: #252a36;
    color: white;

    text-decoration: none;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition:
        transform .15s,
        background .15s;
}

.btn:hover {
    transform: translateY(-2px);
    background: #303746;
}

.btn-primary {
    background: #6c63ff;
}

.btn-primary:hover {
    background: #7b73ff;
}

.form {
    text-align: left;

    background: rgba(255,255,255,.05);

    padding: 25px;

    border-radius: 16px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.form label {
    margin-top: 8px;
    color: #b8beca;
}

.form input,
.form select {
    width: 100%;

    padding: 15px;

    border: 1px solid #343a48;

    border-radius: 10px;

    background: #171a22;

    color: white;

    font-size: 16px;

    outline: none;
}

.form input:focus,
.form select:focus {
    border-color: #6c63ff;
}

.back {
    display: inline-block;

    margin-top: 25px;

    color: #9299a8;

    text-decoration: none;
}

.game-code-label {
    color: #9299a8;
    font-size: 13px;
    letter-spacing: 2px;
}

.game-code {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #6c63ff;

    margin: 10px 0 30px;
}

.players {
    margin: 25px 0;
}

.player {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255,255,255,.06);

    padding: 14px 18px;

    margin-bottom: 8px;

    border-radius: 10px;
}

.hidden {
    display: none !important;
}


/* =========================
   GAME
========================= */

.game-container {
    width: min(900px, 94%);
    margin: auto;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;

    color: #9da5b4;
}

.score {
    font-weight: bold;
    color: #ffffff;
}

.timer {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #6c63ff;

    font-size: 24px;
    font-weight: 900;
}

.timer.danger {
    background: #e74c3c;
}

.category {
    text-align: center;

    color: #6c63ff;

    font-size: 14px;
    font-weight: bold;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.question {
    text-align: center;

    font-size: clamp(25px, 4vw, 42px);

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 35px;
}

.answers {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.answer {
    display: flex;
    align-items: center;

    gap: 15px;

    min-height: 80px;

    padding: 15px 20px;

    border: 2px solid #303644;

    border-radius: 14px;

    background: #151821;

    color: white;

    font-size: 18px;

    text-align: left;

    cursor: pointer;

    transition:
        transform .12s,
        border-color .12s,
        background .12s;
}

.answer:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #6c63ff;
    background: #1c2030;
}

.answer:disabled {
    cursor: default;
    opacity: .65;
}

.answer-letter {
    min-width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #6c63ff;

    font-weight: 900;
}

.feedback {
    text-align: center;

    margin-top: 25px;

    min-height: 30px;

    font-size: 20px;
    font-weight: bold;
}

.feedback.correct {
    color: #4ade80;
}

.feedback.wrong {
    color: #f87171;
}

.feedback.error {
    color: #fbbf24;
}

.waiting {
    text-align: center;

    margin-top: 20px;

    color: #9da5b4;
}


/* =========================
   RESULTS
========================= */

.results {
    margin: 30px 0;
}

.result-player {
    display: grid;

    grid-template-columns:
        55px 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 17px;

    margin-bottom: 10px;

    background: rgba(255,255,255,.06);

    border-radius: 12px;
}

.position {
    font-size: 25px;
}

.result-name {
    text-align: left;
    font-weight: bold;
}

.result-score {
    font-weight: 900;
    color: #6c63ff;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .logo {
        font-size: 45px;
    }

    .game-code {
        font-size: 38px;
    }

    .answers {
        grid-template-columns: 1fr;
    }

    .answer {
        min-height: 70px;
    }

    .question {
        margin-bottom: 25px;
    }

}