body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 600px;
}

.game-area {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary-color);
    margin: 0;
}

.status {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

/* Board wrapper */
.board-wrapper {
    display: inline-block;
    position: relative;
}

/* Drop arrows row */
.drop-arrows {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
    padding: 0 8px;
}

.drop-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    color: transparent;
    transition: color 0.2s;
    border-radius: 4px;
}

.drop-arrow:hover {
    color: var(--primary-color, #3498db);
    background: rgba(52, 152, 219, 0.1);
}

.drop-arrow.disabled {
    cursor: not-allowed;
    color: transparent !important;
    background: none !important;
}

/* Board */
.c4-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    background: #2c3e80;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 128, 0.3);
}

.c4-cell {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    cursor: pointer;
}

.c4-cell:hover {
    background: #ecf0f1;
}

.c4-cell.red {
    background: #e74c3c;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.c4-cell.yellow {
    background: #f1c40f;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.c4-cell.winner {
    animation: winPulse 0.5s ease-in-out 3;
    box-shadow: 0 0 12px rgba(243, 156, 18, 0.8), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Drop animation */
.c4-cell.dropping {
    animation: dropIn 0.3s ease-in;
}

@keyframes dropIn {
    from {
        transform: translateY(-200px);
        opacity: 0.7;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Game buttons */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#exit-game-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Online info */
.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: var(--text-muted, #666);
}

/* Responsive */
@media (max-width: 460px) {
    .c4-cell {
        width: 40px;
        height: 40px;
    }

    .c4-board {
        gap: 4px;
        padding: 6px;
    }

    .drop-arrows {
        gap: 4px;
        padding: 0 6px;
    }
}
