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: 10px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

/* Score display */
.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.score {
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-separator {
    color: #95a5a6;
    font-size: 1.5rem;
}

/* Board */
.othello-board {
    display: inline-grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    background: #1a5c2e;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(26, 92, 46, 0.4);
}

.othello-cell {
    width: 52px;
    height: 52px;
    background: #2d8b4e;
    border: 1px solid #247a42;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.othello-cell:hover {
    background: #35a05a;
}

.othello-cell.valid-move {
    background: #3bb566;
    cursor: pointer;
}

.othello-cell.valid-move::after {
    content: '';
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.othello-cell.valid-move:hover {
    background: #42c470;
}

.othello-cell.valid-move:hover::after {
    background: rgba(255, 255, 255, 0.5);
}

/* Discs */
.othello-disc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.othello-disc.black {
    background: radial-gradient(circle at 35% 35%, #555, #1a1a1a);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.othello-disc.white {
    background: radial-gradient(circle at 35% 35%, #fff, #ccc);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Flip animation */
.othello-disc.flipping {
    animation: flipDisc 0.5s ease-in-out;
}

@keyframes flipDisc {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

/* Place animation */
.othello-disc.placing {
    animation: placeDisc 0.3s ease-out;
}

@keyframes placeDisc {
    from {
        transform: scale(0);
        opacity: 0.5;
    }
    to {
        transform: scale(1);
        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: 500px) {
    .othello-cell {
        width: 38px;
        height: 38px;
    }

    .othello-disc {
        width: 28px;
        height: 28px;
    }

    .othello-cell.valid-move::after {
        width: 12px;
        height: 12px;
    }

    .othello-board {
        gap: 1px;
        padding: 6px;
    }

    .score-display {
        font-size: 1.1rem;
    }
}

@media (max-width: 380px) {
    .othello-cell {
        width: 32px;
        height: 32px;
    }

    .othello-disc {
        width: 24px;
        height: 24px;
    }

    .othello-cell.valid-move::after {
        width: 10px;
        height: 10px;
    }
}
