:root {
    --primary-color: #251656;
    --text-color: #333333;
    --background-color: #f0f2f5;
    --glass-background: rgba(255, 255, 255, 0.95);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --board-size: min(80vw, 600px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.container {
    padding: 2rem;
    text-align: center;
}

.glass {
    background: var(--glass-background);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-button {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

h1 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.score {
    display: flex;
    gap: 2rem;
    font-size: 1.2rem;
}

.black-score, .white-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.turn-indicator {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

.board {
    width: var(--board-size);
    height: var(--board-size);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    background: var(--primary-color);
    padding: 2px;
    border-radius: 8px;
    margin: 0 auto;
}

.cell {
    background: #ffffff;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background: #e6f7ff;
}

.cell.valid-move::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.disc {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    transition: transform 0.5s;
}

.disc.black {
    background: #333;
}

.disc.white {
    background: #fff;
    border: 2px solid #333;
}

.game-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    text-align: center;
    display: none;
}

.game-result.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.game-result h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 10px;
    background: var(--glass-background);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.ai-move-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.3);
    pointer-events: none;
    z-index: 10;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    :root {
        --board-size: 90vw;
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
    }
}