/* === Connect 4 Styles === */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    min-height: calc(100vh - var(--nav-height));
    padding-top: calc(var(--nav-height) + var(--space-6));
}

.difficulty-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.difficulty-buttons {
    display: flex;
    gap: var(--space-2);
}

.difficulty-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.difficulty-btn--active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.difficulty-btn:hover:not(.difficulty-btn--active) {
    border-color: rgba(99, 102, 241, 0.3);
}

.c4-frame {
    background: linear-gradient(145deg, #1e40af, #1d4ed8);
    border-radius: var(--radius-2xl);
    padding: 10px;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.c4-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.c4-cell {
    width: clamp(38px, 10vw, 56px);
    height: clamp(38px, 10vw, 56px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(15, 12, 35, 0.6), rgba(5, 3, 15, 0.9));
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 -2px 4px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.15s ease;
}

.c4-cell:hover {
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.15);
}

.c4-cell--red {
    background: radial-gradient(circle at 35% 35%, #f87171, #dc2626);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 0 12px rgba(239, 68, 68, 0.4);
}

.c4-cell--yellow {
    background: radial-gradient(circle at 35% 35%, #fde047, #eab308);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 0 12px rgba(234, 179, 8, 0.4);
}

.c4-cell--win {
    animation: winGlow 0.5s ease infinite alternate;
}

@keyframes winGlow {
    0% {
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 0 12px currentColor;
    }

    100% {
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 0 24px currentColor, 0 0 40px currentColor;
    }
}

.c4-cell--drop {
    animation: dropIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropIn {
    0% {
        transform: translateY(-200%);
        opacity: 0;
    }

    60% {
        transform: translateY(5%);
    }

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

/* Info modal */
.info-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.info-modal__card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    max-width: 420px;
    width: 90%;
}

.info-modal__card h2 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.info-modal__card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.info-modal__card li {
    color: var(--text-secondary);
    padding-left: var(--space-4);
    position: relative;
}

.info-modal__card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary-bright);
}

@media (max-width: 480px) {
    .c4-frame {
        padding: 6px;
    }

    .c4-board {
        gap: 4px;
    }
}