/* ============================================================
   GAME PAGE
============================================================ */

.play-game-page {
    padding: 26px 0 50px;
}

.play-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 16px;
}

.play-game-heading span {
    display: block;

    margin-bottom: 4px;

    color: #08769b;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.play-game-heading h1 {
    margin: 0;

    color: #173f51;

    font-size: 24px;
}

.play-game-heading p {
    margin: 5px 0 0;

    max-width: 650px;

    color: #687e88;

    font-size: 12px;
    line-height: 1.5;
}

.play-game-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;

    border: 1px solid #c3d3da;
    border-radius: 4px;

    background: #f7fafb;
    color: #365663;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

/* ============================================================
   SCORE BAR
============================================================ */

.game-score-bar {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    margin-bottom: 14px;

    border: 1px solid #cbd9df;
    border-radius: 4px;

    background: #ffffff;
}

.game-score-item {
    padding: 12px 14px;
}

.game-score-item + .game-score-item {
    border-left: 1px solid #e0e8ec;
}

.game-score-item span {
    display: block;

    margin-bottom: 3px;

    color: #7a8d96;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .05em;
    text-transform: uppercase;
}

.game-score-item strong {
    color: #173f51;

    font-size: 14px;
}

.game-score-item small {
    margin-left: 5px;

    color: #748993;

    font-size: 9px;
    font-weight: 500;
}

/* ============================================================
   GAME CONTAINER
============================================================ */

.game-shell {
    padding: 18px;

    border: 1px solid #cbd9df;
    border-radius: 4px;

    background: #ffffff;
}

.game-area {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 520px;

    background: #08171d;
}

.game-message {
    padding: 30px;

    color: #ffffff;

    text-align: center;
}

.game-message h2 {
    margin-top: 0;
}

/* ============================================================
   DARK MODE
============================================================ */

html[data-theme="dark"] .play-game-heading h1,
html[data-theme="dark"] .game-score-item strong {
    color: #e8f0f3;
}

html[data-theme="dark"] .play-game-heading p,
html[data-theme="dark"] .game-score-item span,
html[data-theme="dark"] .game-score-item small {
    color: #aabac1;
}

html[data-theme="dark"] .game-score-bar,
html[data-theme="dark"] .game-shell {
    border-color: #34464f;

    background: #18272e;
}

html[data-theme="dark"] .game-score-item + .game-score-item {
    border-color: #34464f;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 800px) {

    .play-game-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .game-score-bar {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .game-score-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e0e8ec;
    }

    .game-score-item:nth-child(4) {
        border-top: 1px solid #e0e8ec;
    }

}

@media (max-width: 520px) {

    .play-game-page {
        padding-top: 18px;
    }

    .game-shell {
        padding: 10px;
    }

}