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;
    height: 1.5em;
}

.nim-rules {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.nim-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nim-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nim-row-label {
    font-size: 0.8rem;
    color: #999;
    width: 50px;
    text-align: right;
}

.nim-stones {
    display: flex;
    gap: 8px;
}

.nim-stone {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.nim-stone:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.5);
}

.nim-stone.selected {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    transform: scale(1.1);
}

.nim-stone.removed {
    background: #dfe6e9;
    cursor: default;
    opacity: 0.3;
    box-shadow: none;
}

.nim-stone.removed:hover {
    transform: scale(1);
}

.nim-controls {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#selection-info {
    font-size: 0.9rem;
    color: #666;
}

.confirm-btn {
    padding: 10px 25px;
    font-size: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.confirm-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.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);
}

@media (max-width: 400px) {
    .nim-stone { width: 32px; height: 32px; }
    .nim-stones { gap: 5px; }
    .game-area { padding: 20px; }
}
