body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a2e;
}

/* Override global background for dark theme */
.game-container {
    text-align: center;
    max-width: 600px;
}

.game-area {
    background: #16213e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Header overrides for dark theme */
.header {
    background: #16213e;
}

.header h1 {
    color: #e0e0e0;
}

.breadcrumb a {
    color: #5dade2;
}

.breadcrumb,
.breadcrumb-separator {
    color: #aaa;
}

/* Score Display */
.score-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: #e0e0e0;
}

/* Status */
.status {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #e0e0e0;
    height: 1.5em;
}

/* Simon Board - 2x2 grid with center circle */
.simon-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 320px;
    height: 320px;
    margin: 0 auto 25px;
    position: relative;
}

/* Simon Buttons */
.simon-btn {
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    transition: filter 0.1s ease, transform 0.1s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.simon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.simon-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Green - top left */
#btn-green {
    background-color: #2ecc40;
    border-radius: 100% 0 0 0;
}

#btn-green:hover:not(:disabled) {
    background-color: #3ddb4f;
}

#btn-green.active {
    background-color: #7fff8e;
    box-shadow: 0 0 40px rgba(46, 204, 64, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
}

/* Red - top right */
#btn-red {
    background-color: #e74c3c;
    border-radius: 0 100% 0 0;
}

#btn-red:hover:not(:disabled) {
    background-color: #f05a4a;
}

#btn-red.active {
    background-color: #ff8a80;
    box-shadow: 0 0 40px rgba(231, 76, 60, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
}

/* Yellow - bottom left */
#btn-yellow {
    background-color: #f1c40f;
    border-radius: 0 0 0 100%;
}

#btn-yellow:hover:not(:disabled) {
    background-color: #f5d020;
}

#btn-yellow.active {
    background-color: #fff176;
    box-shadow: 0 0 40px rgba(241, 196, 15, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
}

/* Blue - bottom right */
#btn-blue {
    background-color: #3498db;
    border-radius: 0 0 100% 0;
}

#btn-blue:hover:not(:disabled) {
    background-color: #45a8eb;
}

#btn-blue.active {
    background-color: #90caf9;
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
}

/* Center circle */
.simon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

.simon-center span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e0e0e0;
}

/* Game Buttons */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#start-btn {
    background-color: #27ae60;
    font-size: 1.1rem;
    padding: 14px 32px;
}

#start-btn:hover {
    background-color: #2ecc71;
}

#exit-game-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Online Info overrides */
.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: #aaa;
}

/* Local multiplayer player indicator */
.player-turn-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.player-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #aaa;
    background: #1a1a2e;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.player-tag.active {
    color: #fff;
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.3);
}

.player-tag.eliminated {
    color: #666;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    text-decoration: line-through;
}

/* Responsive */
@media (max-width: 400px) {
    .simon-board {
        width: 260px;
        height: 260px;
        gap: 8px;
    }

    .simon-center {
        width: 64px;
        height: 64px;
    }

    .simon-center span {
        font-size: 1.4rem;
    }

    .game-area {
        padding: 20px;
    }

    .score-display {
        gap: 20px;
    }

    .score-value {
        font-size: 1.5rem;
    }
}
