```css
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #101827;
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    width: 92%;
    max-width: 650px;
    margin: 35px auto;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-size: 35px;
    letter-spacing: 2px;
}

header h1 span {
    color: #94a3b8;
}

header p {
    color: #aab6c7;
}

.connection {
    font-size: 12px;
    color: #22c55e;
}

.game,
.history {
    background: #1e293b;
    padding: 22px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.round-info {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.round-info h2 {
    font-size: 30px;
    margin-top: 8px;
}

small {
    color: #aab6c7;
}

.game h3 {
    text-align: center;
    margin: 25px 0;
}

.choices {
    display: flex;
    gap: 15px;
}

.colour {
    width: 50%;
    padding: 28px 10px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.colour:hover:not(:disabled) {
    transform: translateY(-2px);
}

.red {
    background: #dc3545;
}

.blue {
    background: #2563eb;
}

.colour:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#selection,
#result {
    text-align: center;
    margin-top: 22px;
}

#selection {
    font-weight: bold;
    color: #facc15;
    font-size: 16px;
}

#result {
    font-size: 20px;
    font-weight: bold;
    min-height: 28px;
}

#result.win {
    color: #22c55e;
    font-size: 24px;
}

#result.loss {
    color: #ef4444;
    font-size: 24px;
}

.history h3 {
    text-align: center;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.history-item {
    text-align: center;
    padding: 14px 4px;
    border-radius: 8px;
    font-weight: bold;
}

.history-item small {
    display: block;
    color: white;
    margin-top: 5px;
}

.history-red {
    background: #dc3545;
}

.history-blue {
    background: #2563eb;
}

footer {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    padding: 15px;
}

@media(max-width: 400px) {
    .container {
        width: 95%;
    }

    .game,
    .history {
        padding: 15px;
    }

    .colour {
        font-size: 20px;
        padding: 22px 8px;
    }

    .history-grid {
        gap: 6px;
    }
}
