:root {
    --primary: #00d2ff;
    /* Brighter Cyan */
    --primary-dark: #0099cc;
    --player-1: #ff3333;
    /* More vibrant Red */
    --player-2: #ffdd00;
    /* Brighter Yellow */
    --bg-dark: #020617;
    /* Darker slate */
    --bg-darker: #000000;
    /* Pure Black background */
    --surface: rgba(15, 23, 42, 0.9);
    /* More opaque */
    --glass: rgba(255, 255, 255, 0.15);
    /* Brighter glass borders */
    --text: #ffffff;
    /* Pure White */
    --text-muted: #cbd5e1;
    /* Lighter muted text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Decor - Disabled for Solid Background */
.background-decor {
    display: none;
}

/* Container */
.game-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .accent {
    color: var(--primary);
}

.difficulty-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.difficulty-control label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

/* Status Panel */
.status-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.player-indicator.active {
    opacity: 1;
    transform: scale(1.1);
}

.player-indicator.player-1 .token {
    background-color: var(--player-1);
    box-shadow: 0 0 15px var(--player-1);
}

.player-indicator.player-2 .token {
    background-color: var(--player-2);
    box-shadow: 0 0 15px var(--player-2);
}

.token {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.vs {
    font-style: italic;
    color: var(--text-muted);
    font-weight: 600;
}

/* Board */
.board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 12px;
    background: #000000;
    padding: 18px;
    border-radius: 1.5rem;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.8);
    margin: 0 auto 2rem;
    max-width: 500px;
    aspect-ratio: 7/6;
}

.cell {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell::after {
    content: '';
    position: absolute;
    width: 92%;
    height: 92%;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
}

.cell.player1::after {
    transform: scale(1);
    background-color: var(--player-1);
    box-shadow: 0 0 25px var(--player-1), inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cell.player2::after {
    transform: scale(1);
    background-color: var(--player-2);
    box-shadow: 0 0 25px var(--player-2), inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cell:hover {
    background-color: rgba(51, 65, 85, 0.8);
}

/* Animations for pieces */
@keyframes fall {
    0% {
        transform: translateY(-300px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.token-animate {
    animation: fall 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(13, 166, 242, 0.3);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 166, 242, 0.4);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--glass);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid var(--glass);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tokenLarge {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.tokenLarge.player1 {
    background-color: var(--player-1);
    box-shadow: 0 0 30px var(--player-1);
}

.tokenLarge.player2 {
    background-color: var(--player-2);
    box-shadow: 0 0 30px var(--player-2);
}

/* Responsive */
@media (max-width: 600px) {
    .game-container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .status-panel {
        gap: 1rem;
        padding: 1rem;
    }

    .board {
        gap: 5px;
        padding: 10px;
    }
}