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

.game-header {
    text-align: center;
}

.difficulty-selector {
    display: flex;
    justify-content: center;
}

.difficulty-buttons {
    display: flex;
    gap: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 4px;
}

.difficulty-btn {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

.difficulty-btn:hover {
    color: var(--text-primary);
}

.difficulty-btn--active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.wf-layout {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.wf-grid {
    display: grid;
    gap: 0;
    user-select: none;
    background: linear-gradient(145deg, rgba(15, 12, 35, 0.9), rgba(8, 6, 20, 0.9));
    border: 2px solid rgba(34, 211, 238, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.06);
}

.wf-cell {
    width: clamp(28px, 6vw, 38px);
    height: clamp(28px, 6vw, 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.wf-cell:hover {
    background: rgba(99, 102, 241, 0.15);
}

.wf-cell--selecting {
    background: rgba(34, 211, 238, 0.2);
    color: var(--accent-cyan);
    text-shadow: 0 0 6px rgba(34, 211, 238, 0.3);
}

.wf-cell--found {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.wf-words {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 120px;
}

.wf-words h3 {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--accent-cyan);
    margin-bottom: var(--space-2);
}

.wf-word {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-weight: var(--weight-medium);
    transition: all var(--transition-fast);
}

.wf-word--found {
    text-decoration: line-through;
    color: var(--success);
    opacity: 0.6;
}

.game-actions {
    display: flex;
    gap: var(--space-3);
}

.message {
    min-height: 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    text-align: center;
}

@media (max-width:600px) {
    .wf-layout {
        flex-direction: column;
        align-items: center;
    }

    .wf-words {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-2);
        min-width: auto;
    }
}