body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 650px;
}

.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 */
.gomoku-board {
    display: inline-grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 0;
    background:
        linear-gradient(to right, #8B6914 1px, transparent 1px),
        linear-gradient(to bottom, #8B6914 1px, transparent 1px),
        #dcb35c;
    background-size: 40px 40px;
    padding: 19px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 3px solid #8B6914;
}

.gomoku-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.gomoku-cell::after {
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.gomoku-cell:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.gomoku-cell.black::after {
    background: radial-gradient(circle at 35% 35%, #555, #111);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.gomoku-cell.black:hover::after {
    background: radial-gradient(circle at 35% 35%, #555, #111);
}

.gomoku-cell.white::after {
    background: radial-gradient(circle at 35% 35%, #fff, #ccc);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gomoku-cell.white:hover::after {
    background: radial-gradient(circle at 35% 35%, #fff, #ccc);
}

.gomoku-cell.winner::after {
    animation: winPulse 0.5s ease-in-out 3;
    box-shadow: 0 0 12px 4px rgba(243, 156, 18, 0.8);
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* 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: 580px) {
    .gomoku-board {
        background-size: 30px 30px;
        padding: 14px;
    }

    .gomoku-cell {
        width: 30px;
        height: 30px;
    }

    .gomoku-cell::after {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 430px) {
    .gomoku-board {
        background-size: 24px 24px;
        padding: 11px;
    }

    .gomoku-cell {
        width: 24px;
        height: 24px;
    }

    .gomoku-cell::after {
        width: 20px;
        height: 20px;
    }
}
